More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 1,048 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Swap Tokens For ... | 24368709 | 42 days ago | IN | 0 ETH | 0.00001608 | ||||
| Swap Exact Token... | 24317852 | 49 days ago | IN | 0 ETH | 0.00000712 | ||||
| Set Prices | 24037734 | 88 days ago | IN | 0 ETH | 0.00008698 | ||||
| Request Withdraw... | 23089962 | 221 days ago | IN | 0 ETH | 0.00061153 | ||||
| Claim Withdrawal... | 23089883 | 221 days ago | IN | 0 ETH | 0.0006729 | ||||
| Request Withdraw... | 22799238 | 261 days ago | IN | 0 ETH | 0.00032925 | ||||
| Request Withdraw... | 22798345 | 261 days ago | IN | 0 ETH | 0.00032925 | ||||
| Request Withdraw... | 22795663 | 262 days ago | IN | 0 ETH | 0.00065847 | ||||
| Claim Withdrawal... | 22794845 | 262 days ago | IN | 0 ETH | 0.00063344 | ||||
| Request Withdraw... | 22786711 | 263 days ago | IN | 0 ETH | 0.00065847 | ||||
| Claim Withdrawal... | 22785892 | 263 days ago | IN | 0 ETH | 0.00063344 | ||||
| Request Withdraw... | 22783130 | 263 days ago | IN | 0 ETH | 0.00118538 | ||||
| Claim Withdrawal... | 22782320 | 264 days ago | IN | 0 ETH | 0.00210634 | ||||
| Request Withdraw... | 22763444 | 266 days ago | IN | 0 ETH | 0.00059269 | ||||
| Claim Withdrawal... | 22762622 | 266 days ago | IN | 0 ETH | 0.00113522 | ||||
| Request Withdraw... | 22760762 | 267 days ago | IN | 0 ETH | 0.00325979 | ||||
| Claim Withdrawal... | 22759942 | 267 days ago | IN | 0 ETH | 0.0003009 | ||||
| Request Withdraw... | 22758080 | 267 days ago | IN | 0 ETH | 0.00029634 | ||||
| Claim Withdrawal... | 22757262 | 267 days ago | IN | 0 ETH | 0.0003009 | ||||
| Request Withdraw... | 22756297 | 267 days ago | IN | 0 ETH | 0.00118538 | ||||
| Claim Withdrawal... | 22755477 | 267 days ago | IN | 0 ETH | 0.00057921 | ||||
| Request Withdraw... | 22755402 | 267 days ago | IN | 0 ETH | 0.00029632 | ||||
| Claim Withdrawal... | 22753691 | 268 days ago | IN | 0 ETH | 0.0002838 | ||||
| Request Withdraw... | 22750040 | 268 days ago | IN | 0 ETH | 0.00029634 | ||||
| Claim Withdrawal... | 22749218 | 268 days ago | IN | 0 ETH | 0.0002896 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
Proxy
Compiler Version
v0.8.23+commit.f704f362
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.23;
import {Ownable} from "./Ownable.sol";
/**
* @title Proxy
* @dev Based on Origin Protocol InitializeGovernedUpgradeabilityProxy
* https://github.com/OriginProtocol/origin-dollar/blob/master/contracts/contracts/proxies/InitializeGovernedUpgradeabilityProxy.sol
* @author Origin Protocol Inc
*/
contract Proxy is Ownable {
/**
* @notice Storage slot with the address of the current implementation.
* This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is
* validated in the constructor.
*/
bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
/**
* @notice Emitted when the implementation is upgraded.
* @param implementation Address of the new implementation.
*/
event Upgraded(address indexed implementation);
/**
* @notice Contract initializer with Owner enforcement
* @param _logic Address of the initial implementation.
* @param _initOwner Address of the initial Owner.
* @param _data Data to send as msg.data to the implementation to initialize
* the proxied contract.
* It should include the signature and the parameters of the function to be
* called, as described in
* https://solidity.readthedocs.io/en/v0.4.24/abi-spec.html#function-selector-and-argument-encoding.
* This parameter is optional, if no data is given the initialization call
* to proxied contract will be skipped.
*/
function initialize(address _logic, address _initOwner, bytes calldata _data) public onlyOwner {
require(_implementation() == address(0));
assert(IMPLEMENTATION_SLOT == bytes32(uint256(keccak256("eip1967.proxy.implementation")) - 1));
_upgradeTo(_logic);
if (_data.length > 0) {
(bool success,) = _logic.delegatecall(_data);
require(success);
}
_setOwner(_initOwner);
}
/**
* @notice The address of the proxy admin. This is also the contract owner.
*/
function admin() external view returns (address) {
return _owner();
}
/**
* @notice The address of the implementation contract.
*/
function implementation() external view returns (address) {
return _implementation();
}
/**
* @notice Upgrade the backing implementation of the proxy.
* Only the admin can call this function.
* @param newImplementation Address of the new implementation.
*/
function upgradeTo(address newImplementation) external onlyOwner {
_upgradeTo(newImplementation);
}
/**
* @notice Upgrade the backing implementation of the proxy and call a function
* on the new implementation.
* This is useful to initialize the proxied contract.
* @param newImplementation Address of the new implementation.
* @param data Data to send as msg.data in the low level call.
* It should include the signature and the parameters of the function to be called, as described in
* https://solidity.readthedocs.io/en/v0.4.24/abi-spec.html#function-selector-and-argument-encoding.
*/
function upgradeToAndCall(address newImplementation, bytes calldata data) external onlyOwner {
_upgradeTo(newImplementation);
(bool success,) = newImplementation.delegatecall(data);
require(success);
}
/**
* @notice Fallback function.
* Implemented entirely in `_delegate`.
*/
fallback() external {
_delegate(_implementation());
}
/**
* @dev Delegates execution to an implementation contract.
* This is a low level function that doesn't return to its internal call site.
* It will return to the external caller whatever the implementation returns.
* @param _impl Address to delegate.
*/
function _delegate(address _impl) internal {
// solhint-disable-next-line no-inline-assembly
assembly {
// Copy msg.data. We take full control of memory in this inline assembly
// block because it will not return to Solidity code. We overwrite the
// Solidity scratch pad at memory position 0.
calldatacopy(0, 0, calldatasize())
// Call the implementation.
// out and outsize are 0 because we don't know the size yet.
let result := delegatecall(gas(), _impl, 0, calldatasize(), 0, 0)
// Copy the returned data.
returndatacopy(0, 0, returndatasize())
switch result
// delegatecall returns 0 on error.
case 0 { revert(0, returndatasize()) }
default { return(0, returndatasize()) }
}
}
/**
* @dev Returns the current implementation.
* @return impl Address of the current implementation
*/
function _implementation() internal view returns (address impl) {
bytes32 slot = IMPLEMENTATION_SLOT;
// solhint-disable-next-line no-inline-assembly
assembly {
impl := sload(slot)
}
}
/**
* @dev Upgrades the proxy to a new implementation.
* @param newImplementation Address of the new implementation.
*/
function _upgradeTo(address newImplementation) internal {
require(newImplementation.code.length > 0, "Cannot set a proxy implementation to a non-contract address");
bytes32 slot = IMPLEMENTATION_SLOT;
// solhint-disable-next-line no-inline-assembly
assembly {
sstore(slot, newImplementation)
}
emit Upgraded(newImplementation);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.23;
contract Ownable {
/// @notice The slot used to store the owner of the contract.
/// This is also used as the proxy admin.
/// keccak256(“eip1967.proxy.admin”) - 1 per EIP 1967
bytes32 internal constant OWNER_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;
event AdminChanged(address previousAdmin, address newAdmin);
constructor() {
assert(OWNER_SLOT == bytes32(uint256(keccak256("eip1967.proxy.admin")) - 1));
_setOwner(msg.sender);
}
/// @notice The contract owner and proxy admin.
function owner() external view returns (address) {
return _owner();
}
/// @notice Set the owner and proxy admin of the contract.
/// @param newOwner The address of the new owner.
function setOwner(address newOwner) external onlyOwner {
_setOwner(newOwner);
}
function _owner() internal view returns (address ownerOut) {
bytes32 position = OWNER_SLOT;
// solhint-disable-next-line no-inline-assembly
assembly {
ownerOut := sload(position)
}
}
function _setOwner(address newOwner) internal {
emit AdminChanged(_owner(), newOwner);
bytes32 position = OWNER_SLOT;
// solhint-disable-next-line no-inline-assembly
assembly {
sstore(position, newOwner)
}
}
function _onlyOwner() internal view {
require(msg.sender == _owner(), "ARM: Only owner can call this function.");
}
modifier onlyOwner() {
_onlyOwner();
_;
}
}{
"remappings": [
"contracts/=src/contracts/",
"script/=script/",
"test/=test/",
"utils/=src/contracts/utils/",
"forge-std/=lib/forge-std/src/"
],
"optimizer": {
"enabled": true,
"runs": 200
},
"metadata": {
"useLiteralContent": false,
"bytecodeHash": "ipfs",
"appendCBOR": true
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"evmVersion": "paris",
"viaIR": false,
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"stateMutability":"nonpayable","type":"fallback"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_logic","type":"address"},{"internalType":"address","name":"_initOwner","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
608060405234801561001057600080fd5b5061003c60017fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61046100d1565b6000805160206107e983398151915214610058576100586100f8565b61006133610066565b61010e565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f61009d6000805160206107e98339815191525490565b604080516001600160a01b03928316815291841660208301520160405180910390a16000805160206107e983398151915255565b818103818111156100f257634e487b7160e01b600052601160045260246000fd5b92915050565b634e487b7160e01b600052600160045260246000fd5b6106cc8061011d6000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c80635c60da1b1161005b5780635c60da1b146100d65780638da5cb5b146100fa578063cf7a1d7714610102578063f851a440146100fa5761007d565b806313af40351461009d5780633659cfe6146100b05780634f1ef286146100c3575b61009b6100966000805160206106778339815191525490565b610115565b005b61009b6100ab3660046104ea565b610139565b61009b6100be3660046104ea565b61014d565b61009b6100d1366004610555565b61015e565b6100de6101df565b6040516001600160a01b03909116815260200160405180910390f35b6100de6101fc565b61009b6101103660046105a8565b610214565b3660008037600080366000845af43d6000803e808015610134573d6000f35b3d6000fd5b610141610312565b61014a81610399565b50565b610155610312565b61014a81610404565b610166610312565b61016f83610404565b6000836001600160a01b0316838360405161018b929190610609565b600060405180830381855af49150503d80600081146101c6576040519150601f19603f3d011682016040523d82523d6000602084013e6101cb565b606091505b50509050806101d957600080fd5b50505050565b60006101f76000805160206106778339815191525490565b905090565b60006101f76000805160206106578339815191525490565b61021c610312565b60006102346000805160206106778339815191525490565b6001600160a01b03161461024757600080fd5b61027260017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd610619565b6000805160206106778339815191521461028e5761028e610640565b61029784610404565b8015610309576000846001600160a01b031683836040516102b9929190610609565b600060405180830381855af49150503d80600081146102f4576040519150601f19603f3d011682016040523d82523d6000602084013e6102f9565b606091505b505090508061030757600080fd5b505b6101d983610399565b600080516020610657833981519152546001600160a01b0316336001600160a01b0316146103975760405162461bcd60e51b815260206004820152602760248201527f41524d3a204f6e6c79206f776e65722063616e2063616c6c20746869732066756044820152663731ba34b7b71760c91b60648201526084015b60405180910390fd5b565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6103d06000805160206106578339815191525490565b604080516001600160a01b03928316815291841660208301520160405180910390a160008051602061065783398151915255565b6000816001600160a01b03163b116104845760405162461bcd60e51b815260206004820152603b60248201527f43616e6e6f742073657420612070726f787920696d706c656d656e746174696f60448201527f6e20746f2061206e6f6e2d636f6e747261637420616464726573730000000000606482015260840161038e565b6000805160206106778339815191528181556040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a25050565b80356001600160a01b03811681146104e557600080fd5b919050565b6000602082840312156104fc57600080fd5b610505826104ce565b9392505050565b60008083601f84011261051e57600080fd5b50813567ffffffffffffffff81111561053657600080fd5b60208301915083602082850101111561054e57600080fd5b9250929050565b60008060006040848603121561056a57600080fd5b610573846104ce565b9250602084013567ffffffffffffffff81111561058f57600080fd5b61059b8682870161050c565b9497909650939450505050565b600080600080606085870312156105be57600080fd5b6105c7856104ce565b93506105d5602086016104ce565b9250604085013567ffffffffffffffff8111156105f157600080fd5b6105fd8782880161050c565b95989497509550505050565b8183823760009101908152919050565b8181038181111561063a57634e487b7160e01b600052601160045260246000fd5b92915050565b634e487b7160e01b600052600160045260246000fdfeb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122021901c0dc424fd57b0041bae0b7fdb850a54f1494c7e9e8012da5497a9c8cf9264736f6c63430008170033b53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061007d5760003560e01c80635c60da1b1161005b5780635c60da1b146100d65780638da5cb5b146100fa578063cf7a1d7714610102578063f851a440146100fa5761007d565b806313af40351461009d5780633659cfe6146100b05780634f1ef286146100c3575b61009b6100966000805160206106778339815191525490565b610115565b005b61009b6100ab3660046104ea565b610139565b61009b6100be3660046104ea565b61014d565b61009b6100d1366004610555565b61015e565b6100de6101df565b6040516001600160a01b03909116815260200160405180910390f35b6100de6101fc565b61009b6101103660046105a8565b610214565b3660008037600080366000845af43d6000803e808015610134573d6000f35b3d6000fd5b610141610312565b61014a81610399565b50565b610155610312565b61014a81610404565b610166610312565b61016f83610404565b6000836001600160a01b0316838360405161018b929190610609565b600060405180830381855af49150503d80600081146101c6576040519150601f19603f3d011682016040523d82523d6000602084013e6101cb565b606091505b50509050806101d957600080fd5b50505050565b60006101f76000805160206106778339815191525490565b905090565b60006101f76000805160206106578339815191525490565b61021c610312565b60006102346000805160206106778339815191525490565b6001600160a01b03161461024757600080fd5b61027260017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd610619565b6000805160206106778339815191521461028e5761028e610640565b61029784610404565b8015610309576000846001600160a01b031683836040516102b9929190610609565b600060405180830381855af49150503d80600081146102f4576040519150601f19603f3d011682016040523d82523d6000602084013e6102f9565b606091505b505090508061030757600080fd5b505b6101d983610399565b600080516020610657833981519152546001600160a01b0316336001600160a01b0316146103975760405162461bcd60e51b815260206004820152602760248201527f41524d3a204f6e6c79206f776e65722063616e2063616c6c20746869732066756044820152663731ba34b7b71760c91b60648201526084015b60405180910390fd5b565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6103d06000805160206106578339815191525490565b604080516001600160a01b03928316815291841660208301520160405180910390a160008051602061065783398151915255565b6000816001600160a01b03163b116104845760405162461bcd60e51b815260206004820152603b60248201527f43616e6e6f742073657420612070726f787920696d706c656d656e746174696f60448201527f6e20746f2061206e6f6e2d636f6e747261637420616464726573730000000000606482015260840161038e565b6000805160206106778339815191528181556040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a25050565b80356001600160a01b03811681146104e557600080fd5b919050565b6000602082840312156104fc57600080fd5b610505826104ce565b9392505050565b60008083601f84011261051e57600080fd5b50813567ffffffffffffffff81111561053657600080fd5b60208301915083602082850101111561054e57600080fd5b9250929050565b60008060006040848603121561056a57600080fd5b610573846104ce565b9250602084013567ffffffffffffffff81111561058f57600080fd5b61059b8682870161050c565b9497909650939450505050565b600080600080606085870312156105be57600080fd5b6105c7856104ce565b93506105d5602086016104ce565b9250604085013567ffffffffffffffff8111156105f157600080fd5b6105fd8782880161050c565b95989497509550505050565b8183823760009101908152919050565b8181038181111561063a57634e487b7160e01b600052601160045260246000fd5b92915050565b634e487b7160e01b600052600160045260246000fdfeb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122021901c0dc424fd57b0041bae0b7fdb850a54f1494c7e9e8012da5497a9c8cf9264736f6c63430008170033
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.