Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
IlliquidDAODropper
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol"; import {MerkleProofUpgradeable} from "@openzeppelin/contracts-upgradeable/utils/cryptography/MerkleProofUpgradeable.sol"; struct MerkleDrop { bytes32 root; uint256 amount; bool on; mapping(uint256 => uint256) claims; } interface IJPEG { function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); function transfer(address recipient, uint256 amount) external returns (bool); } contract IlliquidDAODropper is Initializable, OwnableUpgradeable, PausableUpgradeable { event JPEGDropInit(uint256 indexed index); event JPEGDropDone(uint256 indexed index); event ClaimExecuted(uint256 indexed dropIndex, address indexed account, uint256 indexed amount); address private constant BURN_ADDR = 0x000000000000000000000000000000000000dEaD; // -- APPEND-ONLY STORAGE -- mapping(uint256 => MerkleDrop) public drops; uint256 public dropCounter; IJPEG public jpeg; function initialize(address jpeg_) external initializer { require(jpeg_ != address(0), "ZeroTokenAddress"); jpeg = IJPEG(jpeg_); __Ownable_init(); __Pausable_init(); } function toggle() external { _onlyOwner(); if (paused()) { _unpause(); } else { _pause(); } } function createDrop(bytes32 root, address treasury, uint256 amount) external { _onlyOwner(); require(amount > 0, "ZeroDropAmount"); require(treasury != address(0), "ZeroTreasuryAddress"); drops[dropCounter].root = root; drops[dropCounter].amount = amount * 1 ether; drops[dropCounter].on = true; dropCounter++; emit JPEGDropInit(dropCounter - 1); require(jpeg.transferFrom(treasury, address(this), amount * 1 ether), "TokenTransferFailed"); } function completeDrop(uint256 index) external { _onlyOwner(); require(index < dropCounter, "DropNotFound"); MerkleDrop storage drop = drops[index]; require(drop.on, "DropAlreadyDone"); drop.on = false; emit JPEGDropDone(index); if (drop.amount > 0) { require(jpeg.transfer(BURN_ADDR, drop.amount), "TokenBurnFailed"); drop.amount = 0; } } function claim(uint256 dropIndex, uint256 index, uint256 amount, bytes32[] calldata proof) external whenNotPaused { MerkleDrop storage drop = drops[dropIndex]; uint256 _amount = amount * 1 ether; require(drop.on, "DropNotFoundOrDone"); require(drop.amount >= _amount, "OutOfTokens"); require(!_isClaimed(drop, index), "TokensAlreadyClaimed"); _verifyProof(index, msg.sender, amount, proof, drop); _setClaimed(drop, index); drop.amount -= _amount; emit ClaimExecuted(dropIndex, msg.sender, _amount); require(jpeg.transfer(msg.sender, _amount), "TokenTransferFailed"); } function isClaimed(uint256 dropIndex, uint256 index) external view returns (bool) { require(dropIndex < dropCounter, "DropNotFound"); return _isClaimed(drops[dropIndex], index); } // - internals function _onlyOwner() internal view { require(msg.sender == owner(), "UnauthorizedAccess"); } function _verifyProof( uint256 index, address account, uint256 amount, bytes32[] calldata merkleProof, MerkleDrop storage drop ) internal view { bytes32 node = keccak256( abi.encodePacked(index, account, amount) ); require( MerkleProofUpgradeable.verify(merkleProof, drop.root, node), "InvalidMerkleProof" ); } function _setClaimed(MerkleDrop storage drop, uint256 index) internal { uint256 claimedWordIndex = index / 256; uint256 claimedBitIndex = index % 256; drop.claims[claimedWordIndex] = drop.claims[claimedWordIndex] | (1 << claimedBitIndex); } function _isClaimed(MerkleDrop storage drop, uint256 index) internal view returns (bool) { uint256 claimedWordIndex = index / 256; uint256 claimedBitIndex = index % 256; uint256 claimedWord = drop.claims[claimedWordIndex]; uint256 mask = (1 << claimedBitIndex); return claimedWord & mask == mask; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (proxy/utils/Initializable.sol) pragma solidity ^0.8.0; import "../../utils/AddressUpgradeable.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() initializer {} * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. */ bool private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Modifier to protect an initializer function from being invoked twice. */ modifier initializer() { // If the contract is initializing we ignore whether _initialized is set in order to support multiple // inheritance patterns, but we only do this in the context of a constructor, because in other contexts the // contract may have been reentered. require(_initializing ? _isConstructor() : !_initialized, "Initializable: contract is already initialized"); bool isTopLevelCall = !_initializing; if (isTopLevelCall) { _initializing = true; _initialized = true; } _; if (isTopLevelCall) { _initializing = false; } } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} modifier, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } function _isConstructor() private view returns (bool) { return !AddressUpgradeable.isContract(address(this)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal onlyInitializing { __Context_init_unchained(); __Ownable_init_unchained(); } function __Ownable_init_unchained() internal onlyInitializing { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } uint256[49] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract PausableUpgradeable is Initializable, ContextUpgradeable { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ function __Pausable_init() internal onlyInitializing { __Context_init_unchained(); __Pausable_init_unchained(); } function __Pausable_init_unchained() internal onlyInitializing { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } uint256[49] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProofUpgradeable { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = keccak256(abi.encodePacked(computedHash, proofElement)); } else { // Hash(current element of the proof + current computed hash) computedHash = keccak256(abi.encodePacked(proofElement, computedHash)); } } return computedHash; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract ContextUpgradeable is Initializable { function __Context_init() internal onlyInitializing { __Context_init_unchained(); } function __Context_init_unchained() internal onlyInitializing { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } uint256[50] private __gap; }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"dropIndex","type":"uint256"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ClaimExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"index","type":"uint256"}],"name":"JPEGDropDone","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"index","type":"uint256"}],"name":"JPEGDropInit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"uint256","name":"dropIndex","type":"uint256"},{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"completeDrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"root","type":"bytes32"},{"internalType":"address","name":"treasury","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"createDrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"dropCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"drops","outputs":[{"internalType":"bytes32","name":"root","type":"bytes32"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bool","name":"on","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"jpeg_","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"dropIndex","type":"uint256"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"isClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"jpeg","outputs":[{"internalType":"contract IJPEG","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50611295806100206000396000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c80638da5cb5b1161008c578063ea25e17611610066578063ea25e176146101c6578063eb88d91a146101d9578063f2fde38b146101ec578063f364c90c146101ff57600080fd5b80638da5cb5b1461017b578063c4d66de8146101a0578063e16e678e146101b357600080fd5b806320b537dc146100d457806340a3d246146100e95780634ecf0d57146100f15780635c975abb1461010d5780635eb3996814610124578063715018a614610173575b600080fd5b6100e76100e2366004611000565b610212565b005b6100e76103ca565b6100fa60985481565b6040519081526020015b60405180910390f35b60655460ff165b6040519015158152602001610104565b610156610132366004611000565b60976020526000908152604090208054600182015460029092015490919060ff1683565b604080519384526020840192909252151590820152606001610104565b6100e76103ef565b6033546001600160a01b03165b6040516001600160a01b039091168152602001610104565b6100e76101ae366004611035565b610453565b6100e76101c1366004611050565b610580565b6100e76101d4366004611085565b6107a8565b609954610188906001600160a01b031681565b6100e76101fa366004611035565b610a1a565b61011461020d366004611115565b610ae5565b61021a610b46565b609854811061025f5760405162461bcd60e51b815260206004820152600c60248201526b111c9bdc139bdd119bdd5b9960a21b60448201526064015b60405180910390fd5b6000818152609760205260409020600281015460ff166102b35760405162461bcd60e51b815260206004820152600f60248201526e44726f70416c7265616479446f6e6560881b6044820152606401610256565b60028101805460ff1916905560405182907f7d41028c723ad23aae8838bb64456d90dffe97fc289d1e3175e35cf448c88e7090600090a26001810154156103c657609954600182015460405163a9059cbb60e01b815261dead600482015260248101919091526001600160a01b039091169063a9059cbb90604401602060405180830381600087803b15801561034857600080fd5b505af115801561035c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103809190611137565b6103be5760405162461bcd60e51b815260206004820152600f60248201526e151bdad95b909d5c9b91985a5b1959608a1b6044820152606401610256565b600060018201555b5050565b6103d2610b46565b60655460ff16156103e7576103e5610b95565b565b6103e5610c28565b6033546001600160a01b031633146104495760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610256565b6103e56000610ca3565b600054610100900460ff1661046e5760005460ff1615610472565b303b155b6104d55760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610256565b600054610100900460ff161580156104f7576000805461ffff19166101011790555b6001600160a01b0382166105405760405162461bcd60e51b815260206004820152601060248201526f5a65726f546f6b656e4164647265737360801b6044820152606401610256565b609980546001600160a01b0319166001600160a01b038416179055610563610cf5565b61056b610d2c565b80156103c6576000805461ff00191690555050565b610588610b46565b600081116105c95760405162461bcd60e51b815260206004820152600e60248201526d16995c9bd11c9bdc105b5bdd5b9d60921b6044820152606401610256565b6001600160a01b0382166106155760405162461bcd60e51b81526020600482015260136024820152725a65726f54726561737572794164647265737360681b6044820152606401610256565b609854600090815260976020526040902083905561063b81670de0b6b3a764000061116f565b60988054600090815260976020526040808220600190810194909455825482528120600201805460ff19169093179092558054916106788361118e565b9190505550600160985461068c91906111a9565b6040517f5ca1b4a6209cc50b4679016901722b4b4c9988e5b00b3069d17027793fb5631c90600090a26099546001600160a01b03166323b872dd83306106da85670de0b6b3a764000061116f565b6040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401602060405180830381600087803b15801561072957600080fd5b505af115801561073d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107619190611137565b6107a35760405162461bcd60e51b8152602060048201526013602482015272151bdad95b951c985b9cd9995c91985a5b1959606a1b6044820152606401610256565b505050565b60655460ff16156107ee5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610256565b60008581526097602052604081209061080f85670de0b6b3a764000061116f565b600283015490915060ff1661085b5760405162461bcd60e51b815260206004820152601260248201527144726f704e6f74466f756e644f72446f6e6560701b6044820152606401610256565b808260010154101561089d5760405162461bcd60e51b815260206004820152600b60248201526a4f75744f66546f6b656e7360a81b6044820152606401610256565b6108a78287610d63565b156108eb5760405162461bcd60e51b8152602060048201526014602482015273151bdad95b9cd05b1c9958591e50db185a5b595960621b6044820152606401610256565b6108f9863387878787610da7565b6109038287610e73565b8082600101600082825461091791906111a9565b90915550506040518190339089907f75eef6f906fb79d72532c01c18547c1d9a378995a73c4d1ef680889dd5e96e7890600090a460995460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb90604401602060405180830381600087803b15801561099757600080fd5b505af11580156109ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109cf9190611137565b610a115760405162461bcd60e51b8152602060048201526013602482015272151bdad95b951c985b9cd9995c91985a5b1959606a1b6044820152606401610256565b50505050505050565b6033546001600160a01b03163314610a745760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610256565b6001600160a01b038116610ad95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610256565b610ae281610ca3565b50565b60006098548310610b275760405162461bcd60e51b815260206004820152600c60248201526b111c9bdc139bdd119bdd5b9960a21b6044820152606401610256565b6000838152609760205260409020610b3f9083610d63565b9392505050565b6033546001600160a01b031633146103e55760405162461bcd60e51b8152602060048201526012602482015271556e617574686f72697a656441636365737360701b6044820152606401610256565b60655460ff16610bde5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610256565b6065805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60655460ff1615610c6e5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610256565b6065805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610c0b3390565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff16610d1c5760405162461bcd60e51b8152600401610256906111c0565b610d24610eb4565b6103e5610edb565b600054610100900460ff16610d535760405162461bcd60e51b8152600401610256906111c0565b610d5b610eb4565b6103e5610f0b565b600080610d7261010084611221565b90506000610d8261010085611235565b6000928352600395909501602052506040902054600190931b92831690921492915050565b60408051602081018890526bffffffffffffffffffffffff19606088901b169181019190915260548101859052600090607401604051602081830303815290604052805190602001209050610e328484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505085549150849050610f3e565b610a115760405162461bcd60e51b815260206004820152601260248201527124b73b30b634b226b2b935b632a83937b7b360711b6044820152606401610256565b6000610e8161010083611221565b90506000610e9161010084611235565b6000928352600390940160205250604090208054600190931b9290921790915550565b600054610100900460ff166103e55760405162461bcd60e51b8152600401610256906111c0565b600054610100900460ff16610f025760405162461bcd60e51b8152600401610256906111c0565b6103e533610ca3565b600054610100900460ff16610f325760405162461bcd60e51b8152600401610256906111c0565b6065805460ff19169055565b600082610f4b8584610f54565b14949350505050565b600081815b8451811015610ff8576000858281518110610f7657610f76611249565b60200260200101519050808311610fb8576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250610fe5565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080610ff08161118e565b915050610f59565b509392505050565b60006020828403121561101257600080fd5b5035919050565b80356001600160a01b038116811461103057600080fd5b919050565b60006020828403121561104757600080fd5b610b3f82611019565b60008060006060848603121561106557600080fd5b8335925061107560208501611019565b9150604084013590509250925092565b60008060008060006080868803121561109d57600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff808211156110ca57600080fd5b818801915088601f8301126110de57600080fd5b8135818111156110ed57600080fd5b8960208260051b850101111561110257600080fd5b9699959850939650602001949392505050565b6000806040838503121561112857600080fd5b50508035926020909101359150565b60006020828403121561114957600080fd5b81518015158114610b3f57600080fd5b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561118957611189611159565b500290565b60006000198214156111a2576111a2611159565b5060010190565b6000828210156111bb576111bb611159565b500390565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b6000826112305761123061120b565b500490565b6000826112445761124461120b565b500690565b634e487b7160e01b600052603260045260246000fdfea264697066735822122089953a8580a0ef17dbb014f0a66a8dcd7a5371781ad2dbc6739ef11fd4da2c4c64736f6c63430008090033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100cf5760003560e01c80638da5cb5b1161008c578063ea25e17611610066578063ea25e176146101c6578063eb88d91a146101d9578063f2fde38b146101ec578063f364c90c146101ff57600080fd5b80638da5cb5b1461017b578063c4d66de8146101a0578063e16e678e146101b357600080fd5b806320b537dc146100d457806340a3d246146100e95780634ecf0d57146100f15780635c975abb1461010d5780635eb3996814610124578063715018a614610173575b600080fd5b6100e76100e2366004611000565b610212565b005b6100e76103ca565b6100fa60985481565b6040519081526020015b60405180910390f35b60655460ff165b6040519015158152602001610104565b610156610132366004611000565b60976020526000908152604090208054600182015460029092015490919060ff1683565b604080519384526020840192909252151590820152606001610104565b6100e76103ef565b6033546001600160a01b03165b6040516001600160a01b039091168152602001610104565b6100e76101ae366004611035565b610453565b6100e76101c1366004611050565b610580565b6100e76101d4366004611085565b6107a8565b609954610188906001600160a01b031681565b6100e76101fa366004611035565b610a1a565b61011461020d366004611115565b610ae5565b61021a610b46565b609854811061025f5760405162461bcd60e51b815260206004820152600c60248201526b111c9bdc139bdd119bdd5b9960a21b60448201526064015b60405180910390fd5b6000818152609760205260409020600281015460ff166102b35760405162461bcd60e51b815260206004820152600f60248201526e44726f70416c7265616479446f6e6560881b6044820152606401610256565b60028101805460ff1916905560405182907f7d41028c723ad23aae8838bb64456d90dffe97fc289d1e3175e35cf448c88e7090600090a26001810154156103c657609954600182015460405163a9059cbb60e01b815261dead600482015260248101919091526001600160a01b039091169063a9059cbb90604401602060405180830381600087803b15801561034857600080fd5b505af115801561035c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103809190611137565b6103be5760405162461bcd60e51b815260206004820152600f60248201526e151bdad95b909d5c9b91985a5b1959608a1b6044820152606401610256565b600060018201555b5050565b6103d2610b46565b60655460ff16156103e7576103e5610b95565b565b6103e5610c28565b6033546001600160a01b031633146104495760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610256565b6103e56000610ca3565b600054610100900460ff1661046e5760005460ff1615610472565b303b155b6104d55760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610256565b600054610100900460ff161580156104f7576000805461ffff19166101011790555b6001600160a01b0382166105405760405162461bcd60e51b815260206004820152601060248201526f5a65726f546f6b656e4164647265737360801b6044820152606401610256565b609980546001600160a01b0319166001600160a01b038416179055610563610cf5565b61056b610d2c565b80156103c6576000805461ff00191690555050565b610588610b46565b600081116105c95760405162461bcd60e51b815260206004820152600e60248201526d16995c9bd11c9bdc105b5bdd5b9d60921b6044820152606401610256565b6001600160a01b0382166106155760405162461bcd60e51b81526020600482015260136024820152725a65726f54726561737572794164647265737360681b6044820152606401610256565b609854600090815260976020526040902083905561063b81670de0b6b3a764000061116f565b60988054600090815260976020526040808220600190810194909455825482528120600201805460ff19169093179092558054916106788361118e565b9190505550600160985461068c91906111a9565b6040517f5ca1b4a6209cc50b4679016901722b4b4c9988e5b00b3069d17027793fb5631c90600090a26099546001600160a01b03166323b872dd83306106da85670de0b6b3a764000061116f565b6040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401602060405180830381600087803b15801561072957600080fd5b505af115801561073d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107619190611137565b6107a35760405162461bcd60e51b8152602060048201526013602482015272151bdad95b951c985b9cd9995c91985a5b1959606a1b6044820152606401610256565b505050565b60655460ff16156107ee5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610256565b60008581526097602052604081209061080f85670de0b6b3a764000061116f565b600283015490915060ff1661085b5760405162461bcd60e51b815260206004820152601260248201527144726f704e6f74466f756e644f72446f6e6560701b6044820152606401610256565b808260010154101561089d5760405162461bcd60e51b815260206004820152600b60248201526a4f75744f66546f6b656e7360a81b6044820152606401610256565b6108a78287610d63565b156108eb5760405162461bcd60e51b8152602060048201526014602482015273151bdad95b9cd05b1c9958591e50db185a5b595960621b6044820152606401610256565b6108f9863387878787610da7565b6109038287610e73565b8082600101600082825461091791906111a9565b90915550506040518190339089907f75eef6f906fb79d72532c01c18547c1d9a378995a73c4d1ef680889dd5e96e7890600090a460995460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb90604401602060405180830381600087803b15801561099757600080fd5b505af11580156109ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109cf9190611137565b610a115760405162461bcd60e51b8152602060048201526013602482015272151bdad95b951c985b9cd9995c91985a5b1959606a1b6044820152606401610256565b50505050505050565b6033546001600160a01b03163314610a745760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610256565b6001600160a01b038116610ad95760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610256565b610ae281610ca3565b50565b60006098548310610b275760405162461bcd60e51b815260206004820152600c60248201526b111c9bdc139bdd119bdd5b9960a21b6044820152606401610256565b6000838152609760205260409020610b3f9083610d63565b9392505050565b6033546001600160a01b031633146103e55760405162461bcd60e51b8152602060048201526012602482015271556e617574686f72697a656441636365737360701b6044820152606401610256565b60655460ff16610bde5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610256565b6065805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60655460ff1615610c6e5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610256565b6065805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610c0b3390565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff16610d1c5760405162461bcd60e51b8152600401610256906111c0565b610d24610eb4565b6103e5610edb565b600054610100900460ff16610d535760405162461bcd60e51b8152600401610256906111c0565b610d5b610eb4565b6103e5610f0b565b600080610d7261010084611221565b90506000610d8261010085611235565b6000928352600395909501602052506040902054600190931b92831690921492915050565b60408051602081018890526bffffffffffffffffffffffff19606088901b169181019190915260548101859052600090607401604051602081830303815290604052805190602001209050610e328484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505085549150849050610f3e565b610a115760405162461bcd60e51b815260206004820152601260248201527124b73b30b634b226b2b935b632a83937b7b360711b6044820152606401610256565b6000610e8161010083611221565b90506000610e9161010084611235565b6000928352600390940160205250604090208054600190931b9290921790915550565b600054610100900460ff166103e55760405162461bcd60e51b8152600401610256906111c0565b600054610100900460ff16610f025760405162461bcd60e51b8152600401610256906111c0565b6103e533610ca3565b600054610100900460ff16610f325760405162461bcd60e51b8152600401610256906111c0565b6065805460ff19169055565b600082610f4b8584610f54565b14949350505050565b600081815b8451811015610ff8576000858281518110610f7657610f76611249565b60200260200101519050808311610fb8576040805160208101859052908101829052606001604051602081830303815290604052805190602001209250610fe5565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b5080610ff08161118e565b915050610f59565b509392505050565b60006020828403121561101257600080fd5b5035919050565b80356001600160a01b038116811461103057600080fd5b919050565b60006020828403121561104757600080fd5b610b3f82611019565b60008060006060848603121561106557600080fd5b8335925061107560208501611019565b9150604084013590509250925092565b60008060008060006080868803121561109d57600080fd5b853594506020860135935060408601359250606086013567ffffffffffffffff808211156110ca57600080fd5b818801915088601f8301126110de57600080fd5b8135818111156110ed57600080fd5b8960208260051b850101111561110257600080fd5b9699959850939650602001949392505050565b6000806040838503121561112857600080fd5b50508035926020909101359150565b60006020828403121561114957600080fd5b81518015158114610b3f57600080fd5b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561118957611189611159565b500290565b60006000198214156111a2576111a2611159565b5060010190565b6000828210156111bb576111bb611159565b500390565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b6000826112305761123061120b565b500490565b6000826112445761124461120b565b500690565b634e487b7160e01b600052603260045260246000fdfea264697066735822122089953a8580a0ef17dbb014f0a66a8dcd7a5371781ad2dbc6739ef11fd4da2c4c64736f6c63430008090033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
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.