Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 5 from a total of 5 transactions
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
MerkleRedeem
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-01-11 */ // File: @openzeppelin/contracts/token/ERC20/IERC20.sol // SPDX-License-Identifier: MIT pragma solidity ^0.6.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File: @openzeppelin/contracts/GSN/Context.sol pragma solidity ^0.6.0; /* * @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 GSN 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 Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // File: @openzeppelin/contracts/access/Ownable.sol pragma solidity ^0.6.0; /** * @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. */ contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view 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 { emit OwnershipTransferred(_owner, address(0)); _owner = 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"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } // File: @openzeppelin/contracts/cryptography/MerkleProof.sol pragma solidity ^0.6.0; /** * @dev These functions deal with verification of Merkle trees (hash trees), */ library MerkleProof { /** * @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) { 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)); } } // Check if the computed hash (root) is equal to the provided root return computedHash == root; } } // File: localhost/contracts/erc20-redeemable/contracts/MerkleRedeem.sol pragma solidity ^0.6.0; pragma experimental ABIEncoderV2; contract MerkleRedeem is Ownable { IERC20 public token; event Claimed(address _claimant, uint256 _balance); // Recorded weeks mapping(uint256 => bytes32) public weekMerkleRoots; mapping(uint256 => mapping(address => bool)) public claimed; constructor(address _token) public { token = IERC20(_token); } function disburse(address _liquidityProvider, uint256 _balance) private { if (_balance > 0) { emit Claimed(_liquidityProvider, _balance); require( token.transfer(_liquidityProvider, _balance), "ERR_TRANSFER_FAILED" ); } } function claimWeek( address _liquidityProvider, uint256 _week, uint256 _claimedBalance, bytes32[] memory _merkleProof ) public { require(!claimed[_week][_liquidityProvider]); require( verifyClaim( _liquidityProvider, _week, _claimedBalance, _merkleProof ), "Incorrect merkle proof" ); claimed[_week][_liquidityProvider] = true; disburse(_liquidityProvider, _claimedBalance); } struct Claim { uint256 week; uint256 balance; bytes32[] merkleProof; } function claimWeeks(address _liquidityProvider, Claim[] memory claims) public { uint256 totalBalance = 0; Claim memory claim; for (uint256 i = 0; i < claims.length; i++) { claim = claims[i]; require(!claimed[claim.week][_liquidityProvider]); require( verifyClaim( _liquidityProvider, claim.week, claim.balance, claim.merkleProof ), "Incorrect merkle proof" ); totalBalance += claim.balance; claimed[claim.week][_liquidityProvider] = true; } disburse(_liquidityProvider, totalBalance); } function claimStatus( address _liquidityProvider, uint256 _begin, uint256 _end ) external view returns (bool[] memory) { uint256 size = 1 + _end - _begin; bool[] memory arr = new bool[](size); for (uint256 i = 0; i < size; i++) { arr[i] = claimed[_begin + i][_liquidityProvider]; } return arr; } function merkleRoots(uint256 _begin, uint256 _end) external view returns (bytes32[] memory) { uint256 size = 1 + _end - _begin; bytes32[] memory arr = new bytes32[](size); for (uint256 i = 0; i < size; i++) { arr[i] = weekMerkleRoots[_begin + i]; } return arr; } function verifyClaim( address _liquidityProvider, uint256 _week, uint256 _claimedBalance, bytes32[] memory _merkleProof ) public view returns (bool valid) { bytes32 leaf = keccak256( abi.encodePacked(_liquidityProvider, _claimedBalance) ); return MerkleProof.verify(_merkleProof, weekMerkleRoots[_week], leaf); } function seedAllocations( uint256 _week, bytes32 _merkleRoot, uint256 _totalAllocation ) external onlyOwner { require( weekMerkleRoots[_week] == bytes32(0), "cannot rewrite merkle root" ); weekMerkleRoots[_week] = _merkleRoot; require( token.transferFrom(msg.sender, address(this), _totalAllocation), "ERR_TRANSFER_FAILED" ); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_claimant","type":"address"},{"indexed":false,"internalType":"uint256","name":"_balance","type":"uint256"}],"name":"Claimed","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"},{"inputs":[{"internalType":"address","name":"_liquidityProvider","type":"address"},{"internalType":"uint256","name":"_begin","type":"uint256"},{"internalType":"uint256","name":"_end","type":"uint256"}],"name":"claimStatus","outputs":[{"internalType":"bool[]","name":"","type":"bool[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_liquidityProvider","type":"address"},{"internalType":"uint256","name":"_week","type":"uint256"},{"internalType":"uint256","name":"_claimedBalance","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"claimWeek","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_liquidityProvider","type":"address"},{"components":[{"internalType":"uint256","name":"week","type":"uint256"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"internalType":"struct MerkleRedeem.Claim[]","name":"claims","type":"tuple[]"}],"name":"claimWeeks","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"claimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_begin","type":"uint256"},{"internalType":"uint256","name":"_end","type":"uint256"}],"name":"merkleRoots","outputs":[{"internalType":"bytes32[]","name":"","type":"bytes32[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_week","type":"uint256"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"},{"internalType":"uint256","name":"_totalAllocation","type":"uint256"}],"name":"seedAllocations","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_liquidityProvider","type":"address"},{"internalType":"uint256","name":"_week","type":"uint256"},{"internalType":"uint256","name":"_claimedBalance","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"verifyClaim","outputs":[{"internalType":"bool","name":"valid","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"weekMerkleRoots","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50604051610fae380380610fae83398101604081905261002f916100ac565b60006100396100a8565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b0319166001600160a01b03929092169190911790556100da565b3390565b6000602082840312156100bd578081fd5b81516001600160a01b03811681146100d3578182fd5b9392505050565b610ec5806100e96000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c80638da5cb5b116100715780638da5cb5b14610152578063c804c39a14610167578063dd8c9c9d1461017a578063eb0d07f51461019a578063f2fde38b146101ad578063fc0c546a146101c0576100b4565b8063120aa877146100b957806339436b00146100e257806347fb23c1146101025780634cd488ab1461012257806358b4e4b414610137578063715018a61461014a575b600080fd5b6100cc6100c7366004610b96565b6101c8565b6040516100d99190610d0d565b60405180910390f35b6100f56100f0366004610bed565b6101e8565b6040516100d99190610cd5565b610115610110366004610acb565b61027e565b6040516100d99190610c8f565b610135610130366004610bc2565b610332565b005b610135610145366004610afe565b610455565b6101356104ea565b61015a610569565b6040516100d99190610c3e565b610135610175366004610a2f565b610578565b61018d610188366004610b7e565b610659565b6040516100d99190610d18565b6100cc6101a8366004610afe565b61066b565b6101356101bb366004610a0d565b6106c1565b61015a610777565b600360209081526000928352604080842090915290825290205460ff1681565b6060828203600101818167ffffffffffffffff8111801561020857600080fd5b50604051908082528060200260200182016040528015610232578160200160208202803683370190505b50905060005b8281101561027357858101600090815260026020526040902054825183908390811061026057fe5b6020908102919091010152600101610238565b509150505b92915050565b6060828203600101818167ffffffffffffffff8111801561029e57600080fd5b506040519080825280602002602001820160405280156102c8578160200160208202803683370190505b50905060005b828110156103285785810160009081526003602090815260408083206001600160a01b038b168452909152902054825160ff9091169083908390811061031057fe5b911515602092830291909101909101526001016102ce565b5095945050505050565b61033a610786565b6000546001600160a01b039081169116146103705760405162461bcd60e51b815260040161036790610d97565b60405180910390fd5b6000838152600260205260409020541561039c5760405162461bcd60e51b815260040161036790610df9565b6000838152600260205260409081902083905560015490516323b872dd60e01b81526001600160a01b03909116906323b872dd906103e290339030908690600401610c52565b602060405180830381600087803b1580156103fc57600080fd5b505af1158015610410573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104349190610b5e565b6104505760405162461bcd60e51b815260040161036790610dcc565b505050565b60008381526003602090815260408083206001600160a01b038816845290915290205460ff161561048557600080fd5b6104918484848461066b565b6104ad5760405162461bcd60e51b815260040161036790610d67565b60008381526003602090815260408083206001600160a01b03881684529091529020805460ff191660011790556104e4848361078a565b50505050565b6104f2610786565b6000546001600160a01b0390811691161461051f5760405162461bcd60e51b815260040161036790610d97565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b600061058261090a565b60005b835181101561064e5783818151811061059a57fe5b602090810291909101810151805160009081526003835260408082206001600160a01b038a168352909352919091205490925060ff16156105da57600080fd5b6105f28583600001518460200151856040015161066b565b61060e5760405162461bcd60e51b815260040161036790610d67565b602080830151835160009081526003835260408082206001600160a01b038a16835290935291909120805460ff1916600190811790915593019201610585565b506104e4848361078a565b60026020526000908152604090205481565b6000808584604051602001610681929190610c0e565b6040516020818303038152906040528051906020012090506106b78360026000888152602001908152602001600020548361086d565b9695505050505050565b6106c9610786565b6000546001600160a01b039081169116146106f65760405162461bcd60e51b815260040161036790610d97565b6001600160a01b03811661071c5760405162461bcd60e51b815260040161036790610d21565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031681565b3390565b8015610869577fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a82826040516107c1929190610c76565b60405180910390a160015460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb906107fb9085908590600401610c76565b602060405180830381600087803b15801561081557600080fd5b505af1158015610829573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061084d9190610b5e565b6108695760405162461bcd60e51b815260040161036790610dcc565b5050565b600081815b85518110156108ff57600086828151811061088957fe5b602002602001015190508083116108ca5782816040516020016108ad929190610c30565b6040516020818303038152906040528051906020012092506108f6565b80836040516020016108dd929190610c30565b6040516020818303038152906040528051906020012092505b50600101610872565b509092149392505050565b60405180606001604052806000815260200160008152602001606081525090565b80356001600160a01b038116811461027857600080fd5b600082601f830112610952578081fd5b813561096561096082610e57565b610e30565b81815291506020808301908481018184028601820187101561098657600080fd5b60005b848110156109a557813584529282019290820190600101610989565b505050505092915050565b6000606082840312156109c1578081fd5b6109cb6060610e30565b90508135815260208201356020820152604082013567ffffffffffffffff8111156109f557600080fd5b610a0184828501610942565b60408301525092915050565b600060208284031215610a1e578081fd5b610a28838361092b565b9392505050565b60008060408385031215610a41578081fd5b8235610a4c81610e77565b915060208381013567ffffffffffffffff811115610a68578283fd5b8401601f81018613610a78578283fd5b8035610a8661096082610e57565b81815283810190838501865b84811015610abb57610aa98b8884358901016109b0565b84529286019290860190600101610a92565b5096999098509650505050505050565b600080600060608486031215610adf578081fd5b610ae9858561092b565b95602085013595506040909401359392505050565b60008060008060808587031215610b13578081fd5b610b1d868661092b565b93506020850135925060408501359150606085013567ffffffffffffffff811115610b46578182fd5b610b5287828801610942565b91505092959194509250565b600060208284031215610b6f578081fd5b81518015158114610a28578182fd5b600060208284031215610b8f578081fd5b5035919050565b60008060408385031215610ba8578182fd5b82359150610bb9846020850161092b565b90509250929050565b600080600060608486031215610bd6578283fd5b505081359360208301359350604090920135919050565b60008060408385031215610bff578182fd5b50508035926020909101359150565b60609290921b6bffffffffffffffffffffffff19168252601482015260340190565b918252602082015260400190565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b6020808252825182820181905260009190848201906040850190845b81811015610cc9578351151583529284019291840191600101610cab565b50909695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015610cc957835183529284019291840191600101610cf1565b901515815260200190565b90815260200190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526016908201527524b731b7b93932b1ba1036b2b935b63290383937b7b360511b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526013908201527211549497d514905394d1915497d19052531151606a1b604082015260600190565b6020808252601a908201527f63616e6e6f742072657772697465206d65726b6c6520726f6f74000000000000604082015260600190565b60405181810167ffffffffffffffff81118282101715610e4f57600080fd5b604052919050565b600067ffffffffffffffff821115610e6d578081fd5b5060209081020190565b6001600160a01b0381168114610e8c57600080fd5b5056fea2646970667358221220a5505bacfbd93f16fae92fd154dc1c197dbbbe8b5f5dba6c40f5c005c1cc55e864736f6c634300060c0033000000000000000000000000ffffffff2ba8f66d4e51811c5190992176930278
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100b45760003560e01c80638da5cb5b116100715780638da5cb5b14610152578063c804c39a14610167578063dd8c9c9d1461017a578063eb0d07f51461019a578063f2fde38b146101ad578063fc0c546a146101c0576100b4565b8063120aa877146100b957806339436b00146100e257806347fb23c1146101025780634cd488ab1461012257806358b4e4b414610137578063715018a61461014a575b600080fd5b6100cc6100c7366004610b96565b6101c8565b6040516100d99190610d0d565b60405180910390f35b6100f56100f0366004610bed565b6101e8565b6040516100d99190610cd5565b610115610110366004610acb565b61027e565b6040516100d99190610c8f565b610135610130366004610bc2565b610332565b005b610135610145366004610afe565b610455565b6101356104ea565b61015a610569565b6040516100d99190610c3e565b610135610175366004610a2f565b610578565b61018d610188366004610b7e565b610659565b6040516100d99190610d18565b6100cc6101a8366004610afe565b61066b565b6101356101bb366004610a0d565b6106c1565b61015a610777565b600360209081526000928352604080842090915290825290205460ff1681565b6060828203600101818167ffffffffffffffff8111801561020857600080fd5b50604051908082528060200260200182016040528015610232578160200160208202803683370190505b50905060005b8281101561027357858101600090815260026020526040902054825183908390811061026057fe5b6020908102919091010152600101610238565b509150505b92915050565b6060828203600101818167ffffffffffffffff8111801561029e57600080fd5b506040519080825280602002602001820160405280156102c8578160200160208202803683370190505b50905060005b828110156103285785810160009081526003602090815260408083206001600160a01b038b168452909152902054825160ff9091169083908390811061031057fe5b911515602092830291909101909101526001016102ce565b5095945050505050565b61033a610786565b6000546001600160a01b039081169116146103705760405162461bcd60e51b815260040161036790610d97565b60405180910390fd5b6000838152600260205260409020541561039c5760405162461bcd60e51b815260040161036790610df9565b6000838152600260205260409081902083905560015490516323b872dd60e01b81526001600160a01b03909116906323b872dd906103e290339030908690600401610c52565b602060405180830381600087803b1580156103fc57600080fd5b505af1158015610410573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104349190610b5e565b6104505760405162461bcd60e51b815260040161036790610dcc565b505050565b60008381526003602090815260408083206001600160a01b038816845290915290205460ff161561048557600080fd5b6104918484848461066b565b6104ad5760405162461bcd60e51b815260040161036790610d67565b60008381526003602090815260408083206001600160a01b03881684529091529020805460ff191660011790556104e4848361078a565b50505050565b6104f2610786565b6000546001600160a01b0390811691161461051f5760405162461bcd60e51b815260040161036790610d97565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b600061058261090a565b60005b835181101561064e5783818151811061059a57fe5b602090810291909101810151805160009081526003835260408082206001600160a01b038a168352909352919091205490925060ff16156105da57600080fd5b6105f28583600001518460200151856040015161066b565b61060e5760405162461bcd60e51b815260040161036790610d67565b602080830151835160009081526003835260408082206001600160a01b038a16835290935291909120805460ff1916600190811790915593019201610585565b506104e4848361078a565b60026020526000908152604090205481565b6000808584604051602001610681929190610c0e565b6040516020818303038152906040528051906020012090506106b78360026000888152602001908152602001600020548361086d565b9695505050505050565b6106c9610786565b6000546001600160a01b039081169116146106f65760405162461bcd60e51b815260040161036790610d97565b6001600160a01b03811661071c5760405162461bcd60e51b815260040161036790610d21565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031681565b3390565b8015610869577fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a82826040516107c1929190610c76565b60405180910390a160015460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb906107fb9085908590600401610c76565b602060405180830381600087803b15801561081557600080fd5b505af1158015610829573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061084d9190610b5e565b6108695760405162461bcd60e51b815260040161036790610dcc565b5050565b600081815b85518110156108ff57600086828151811061088957fe5b602002602001015190508083116108ca5782816040516020016108ad929190610c30565b6040516020818303038152906040528051906020012092506108f6565b80836040516020016108dd929190610c30565b6040516020818303038152906040528051906020012092505b50600101610872565b509092149392505050565b60405180606001604052806000815260200160008152602001606081525090565b80356001600160a01b038116811461027857600080fd5b600082601f830112610952578081fd5b813561096561096082610e57565b610e30565b81815291506020808301908481018184028601820187101561098657600080fd5b60005b848110156109a557813584529282019290820190600101610989565b505050505092915050565b6000606082840312156109c1578081fd5b6109cb6060610e30565b90508135815260208201356020820152604082013567ffffffffffffffff8111156109f557600080fd5b610a0184828501610942565b60408301525092915050565b600060208284031215610a1e578081fd5b610a28838361092b565b9392505050565b60008060408385031215610a41578081fd5b8235610a4c81610e77565b915060208381013567ffffffffffffffff811115610a68578283fd5b8401601f81018613610a78578283fd5b8035610a8661096082610e57565b81815283810190838501865b84811015610abb57610aa98b8884358901016109b0565b84529286019290860190600101610a92565b5096999098509650505050505050565b600080600060608486031215610adf578081fd5b610ae9858561092b565b95602085013595506040909401359392505050565b60008060008060808587031215610b13578081fd5b610b1d868661092b565b93506020850135925060408501359150606085013567ffffffffffffffff811115610b46578182fd5b610b5287828801610942565b91505092959194509250565b600060208284031215610b6f578081fd5b81518015158114610a28578182fd5b600060208284031215610b8f578081fd5b5035919050565b60008060408385031215610ba8578182fd5b82359150610bb9846020850161092b565b90509250929050565b600080600060608486031215610bd6578283fd5b505081359360208301359350604090920135919050565b60008060408385031215610bff578182fd5b50508035926020909101359150565b60609290921b6bffffffffffffffffffffffff19168252601482015260340190565b918252602082015260400190565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b6020808252825182820181905260009190848201906040850190845b81811015610cc9578351151583529284019291840191600101610cab565b50909695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015610cc957835183529284019291840191600101610cf1565b901515815260200190565b90815260200190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526016908201527524b731b7b93932b1ba1036b2b935b63290383937b7b360511b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526013908201527211549497d514905394d1915497d19052531151606a1b604082015260600190565b6020808252601a908201527f63616e6e6f742072657772697465206d65726b6c6520726f6f74000000000000604082015260600190565b60405181810167ffffffffffffffff81118282101715610e4f57600080fd5b604052919050565b600067ffffffffffffffff821115610e6d578081fd5b5060209081020190565b6001600160a01b0381168114610e8c57600080fd5b5056fea2646970667358221220a5505bacfbd93f16fae92fd154dc1c197dbbbe8b5f5dba6c40f5c005c1cc55e864736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000ffffffff2ba8f66d4e51811c5190992176930278
-----Decoded View---------------
Arg [0] : _token (address): 0xfFffFffF2ba8F66D4e51811C5190992176930278
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000ffffffff2ba8f66d4e51811c5190992176930278
Deployed Bytecode Sourcemap
7590:3788:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7797:59;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;10141:357;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;9743:390::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;10912:463::-;;;;;;:::i;:::-;;:::i;:::-;;8274:576;;;;;;:::i;:::-;;:::i;5546:148::-;;;:::i;4904:79::-;;;:::i;:::-;;;;;;;:::i;8968:767::-;;;;;;:::i;:::-;;:::i;7740:50::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;10506:398::-;;;;;;:::i;:::-;;:::i;5849:244::-;;;;;;:::i;:::-;;:::i;7630:19::-;;;:::i;7797:59::-;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;10141:357::-;10242:16;10291:17;;;:1;:17;10242:16;10291:17;10342:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;10342:19:0;;10319:42;;10377:9;10372:98;10396:4;10392:1;:8;10372:98;;;10447:10;;;10431:27;;;;:15;:27;;;;;;10422:6;;:3;;10456:1;;10422:6;;;;;;;;;;;;;;;:36;10402:3;;10372:98;;;-1:-1:-1;10487:3:0;-1:-1:-1;;10141:357:0;;;;;:::o;9743:390::-;9879:13;9920:17;;;:1;:17;9879:13;9920:17;9968:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;9968:16:0;;9948:36;;10000:9;9995:110;10019:4;10015:1;:8;9995:110;;;10062:10;;;10054:19;;;;:7;:19;;;;;;;;-1:-1:-1;;;;;10054:39:0;;;;;;;;;;10045:6;;10054:39;;;;;10045:3;;10071:1;;10045:6;;;;;;:48;;;:6;;;;;;;;;;;:48;10025:3;;9995:110;;;-1:-1:-1;10122:3:0;9743:390;-1:-1:-1;;;;;9743:390:0:o;10912:463::-;5126:12;:10;:12::i;:::-;5116:6;;-1:-1:-1;;;;;5116:6:0;;;:22;;;5108:67;;;;-1:-1:-1;;;5108:67:0;;;;;;;:::i;:::-;;;;;;;;;11119:1:::1;11085:22:::0;;;:15:::1;:22;::::0;;;;;:36;11063:112:::1;;;;-1:-1:-1::0;;;11063:112:0::1;;;;;;;:::i;:::-;11186:22;::::0;;;:15:::1;:22;::::0;;;;;;:36;;;11257:5:::1;::::0;:63;;-1:-1:-1;;;11257:63:0;;-1:-1:-1;;;;;11257:5:0;;::::1;::::0;:18:::1;::::0;:63:::1;::::0;11276:10:::1;::::0;11296:4:::1;::::0;11303:16;;11257:63:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;11235:132;;;;-1:-1:-1::0;;;11235:132:0::1;;;;;;;:::i;:::-;10912:463:::0;;;:::o;8274:576::-;8462:14;;;;:7;:14;;;;;;;;-1:-1:-1;;;;;8462:34:0;;;;;;;;;;;;8461:35;8453:44;;;;;;8530:152;8560:18;8597:5;8621:15;8655:12;8530:11;:152::i;:::-;8508:224;;;;-1:-1:-1;;;8508:224:0;;;;;;;:::i;:::-;8745:14;;;;:7;:14;;;;;;;;-1:-1:-1;;;;;8745:34:0;;;;;;;;;:41;;-1:-1:-1;;8745:41:0;8782:4;8745:41;;;8797:45;8760:18;8826:15;8797:8;:45::i;:::-;8274:576;;;;:::o;5546:148::-;5126:12;:10;:12::i;:::-;5116:6;;-1:-1:-1;;;;;5116:6:0;;;:22;;;5108:67;;;;-1:-1:-1;;;5108:67:0;;;;;;;:::i;:::-;5653:1:::1;5637:6:::0;;5616:40:::1;::::0;-1:-1:-1;;;;;5637:6:0;;::::1;::::0;5616:40:::1;::::0;5653:1;;5616:40:::1;5684:1;5667:19:::0;;-1:-1:-1;;;;;;5667:19:0::1;::::0;;5546:148::o;4904:79::-;4942:7;4969:6;-1:-1:-1;;;;;4969:6:0;4904:79;:::o;8968:767::-;9071:20;9106:18;;:::i;:::-;9140:9;9135:540;9159:6;:13;9155:1;:17;9135:540;;;9202:6;9209:1;9202:9;;;;;;;;;;;;;;;;;;;9245:10;;9237:19;;;;:7;:19;;;;;;-1:-1:-1;;;;;9237:39:0;;;;;;;;;;;;9202:9;;-1:-1:-1;9237:39:0;;9236:40;9228:49;;;;;;9318:180;9352:18;9393:5;:10;;;9426:5;:13;;;9462:5;:17;;;9318:11;:180::i;:::-;9292:264;;;;-1:-1:-1;;;9292:264:0;;;;;;;:::i;:::-;9589:13;;;;;9625:10;;9617:19;;;;:7;:19;;;;;;-1:-1:-1;;;;;9617:39:0;;;;;;;;;;;:46;;-1:-1:-1;;9617:46:0;9659:4;9617:46;;;;;;9573:29;;;9174:3;9135:540;;;;9685:42;9694:18;9714:12;9685:8;:42::i;7740:50::-;;;;;;;;;;;;;:::o;10506:398::-;10690:10;10713:12;10769:18;10789:15;10752:53;;;;;;;;;:::i;:::-;;;;;;;;;;;;;10728:88;;;;;;10713:103;;10834:62;10853:12;10867:15;:22;10883:5;10867:22;;;;;;;;;;;;10891:4;10834:18;:62::i;:::-;10827:69;10506:398;-1:-1:-1;;;;;;10506:398:0:o;5849:244::-;5126:12;:10;:12::i;:::-;5116:6;;-1:-1:-1;;;;;5116:6:0;;;:22;;;5108:67;;;;-1:-1:-1;;;5108:67:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;5938:22:0;::::1;5930:73;;;;-1:-1:-1::0;;;5930:73:0::1;;;;;;;:::i;:::-;6040:6;::::0;;6019:38:::1;::::0;-1:-1:-1;;;;;6019:38:0;;::::1;::::0;6040:6;::::1;::::0;6019:38:::1;::::0;::::1;6068:6;:17:::0;;-1:-1:-1;;;;;;6068:17:0::1;-1:-1:-1::0;;;;;6068:17:0;;;::::1;::::0;;;::::1;::::0;;5849:244::o;7630:19::-;;;-1:-1:-1;;;;;7630:19:0;;:::o;3458:106::-;3546:10;3458:106;:::o;7949:317::-;8036:12;;8032:227;;8070:37;8078:18;8098:8;8070:37;;;;;;;:::i;:::-;;;;;;;;8148:5;;:44;;-1:-1:-1;;;8148:44:0;;-1:-1:-1;;;;;8148:5:0;;;;:14;;:44;;8163:18;;8183:8;;8148:44;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;8122:125;;;;-1:-1:-1;;;8122:125:0;;;;;;;:::i;:::-;7949:317;;:::o;6643:796::-;6734:4;6774;6734;6791:525;6815:5;:12;6811:1;:16;6791:525;;;6849:20;6872:5;6878:1;6872:8;;;;;;;;;;;;;;6849:31;;6917:12;6901;:28;6897:408;;7071:12;7085;7054:44;;;;;;;;;:::i;:::-;;;;;;;;;;;;;7044:55;;;;;;7029:70;;6897:408;;;7261:12;7275;7244:44;;;;;;;;;:::i;:::-;;;;;;;;;;;;;7234:55;;;;;;7219:70;;6897:408;-1:-1:-1;6829:3:0;;6791:525;;;-1:-1:-1;7411:20:0;;;;6643:796;-1:-1:-1;;;6643:796:0:o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;:::o;5:130::-;72:20;;-1:-1;;;;;19619:54;;20946:35;;20936:2;;20995:1;;20985:12;160:707;;277:3;270:4;262:6;258:17;254:27;244:2;;-1:-1;;285:12;244:2;332:6;319:20;354:80;369:64;426:6;369:64;:::i;:::-;354:80;:::i;:::-;462:21;;;345:89;-1:-1;506:4;519:14;;;;494:17;;;608;;;599:27;;;;596:36;-1:-1;593:2;;;645:1;;635:12;593:2;670:1;655:206;680:6;677:1;674:13;655:206;;;1865:20;;748:50;;812:14;;;;840;;;;702:1;695:9;655:206;;;659:14;;;;;237:630;;;;:::o;1967:729::-;;2078:4;2066:9;2061:3;2057:19;2053:30;2050:2;;;-1:-1;;2086:12;2050:2;2114:20;2078:4;2114:20;:::i;:::-;2105:29;;2783:6;2770:20;2198:16;2191:75;2330:2;2388:9;2384:22;2770:20;2330:2;2349:5;2345:16;2338:75;2509:2;2498:9;2494:18;2481:32;2533:18;2525:6;2522:30;2519:2;;;-1:-1;;2555:12;2519:2;2600:74;2670:3;2661:6;2650:9;2646:22;2600:74;:::i;:::-;2509:2;2586:5;2582:16;2575:100;;2044:652;;;;:::o;2840:241::-;;2944:2;2932:9;2923:7;2919:23;2915:32;2912:2;;;-1:-1;;2950:12;2912:2;3012:53;3057:7;3033:22;3012:53;:::i;:::-;3002:63;2906:175;-1:-1;;;2906:175::o;3088:546::-;;;3256:2;3244:9;3235:7;3231:23;3227:32;3224:2;;;-1:-1;;3262:12;3224:2;85:6;72:20;97:33;124:5;97:33;:::i;:::-;3314:63;-1:-1;3442:2;3427:18;;;3414:32;3466:18;3455:30;;3452:2;;;-1:-1;;3488:12;3452:2;3586:22;;1043:4;1031:17;;1027:27;-1:-1;1017:2;;-1:-1;;1058:12;1017:2;1105:6;1092:20;1127:102;1142:86;1221:6;1142:86;:::i;1127:102::-;1257:21;;;1314:14;;;;1289:17;;;-1:-1;1394:255;1419:6;1416:1;1413:13;1394:255;;;1526:59;1581:3;3442:2;1502:3;1489:17;1293:6;1477:30;;1526:59;:::i;:::-;1514:72;;1600:14;;;;1628;;;;1441:1;1434:9;1394:255;;;-1:-1;3218:416;;3508:110;;-1:-1;3218:416;-1:-1;;;;;;;3218:416::o;3641:491::-;;;;3779:2;3767:9;3758:7;3754:23;3750:32;3747:2;;;-1:-1;;3785:12;3747:2;3847:53;3892:7;3868:22;3847:53;:::i;:::-;3837:63;3937:2;3976:22;;2770:20;;-1:-1;4045:2;4084:22;;;2770:20;;3741:391;-1:-1;;;3741:391::o;4139:753::-;;;;;4319:3;4307:9;4298:7;4294:23;4290:33;4287:2;;;-1:-1;;4326:12;4287:2;4388:53;4433:7;4409:22;4388:53;:::i;:::-;4378:63;;4478:2;4521:9;4517:22;2770:20;4486:63;;4586:2;4629:9;4625:22;2770:20;4594:63;;4722:2;4711:9;4707:18;4694:32;4746:18;4738:6;4735:30;4732:2;;;-1:-1;;4768:12;4732:2;4798:78;4868:7;4859:6;4848:9;4844:22;4798:78;:::i;:::-;4788:88;;;4281:611;;;;;;;:::o;4899:257::-;;5011:2;4999:9;4990:7;4986:23;4982:32;4979:2;;;-1:-1;;5017:12;4979:2;1744:6;1738:13;21092:5;19452:13;19445:21;21070:5;21067:32;21057:2;;-1:-1;;21103:12;5163:241;;5267:2;5255:9;5246:7;5242:23;5238:32;5235:2;;;-1:-1;;5273:12;5235:2;-1:-1;2770:20;;5229:175;-1:-1;5229:175::o;5411:366::-;;;5532:2;5520:9;5511:7;5507:23;5503:32;5500:2;;;-1:-1;;5538:12;5500:2;2783:6;2770:20;5590:63;;5708:53;5753:7;5690:2;5733:9;5729:22;5708:53;:::i;:::-;5698:63;;5494:283;;;;;:::o;5784:491::-;;;;5922:2;5910:9;5901:7;5897:23;5893:32;5890:2;;;-1:-1;;5928:12;5890:2;-1:-1;;2770:20;;;6080:2;6119:22;;1865:20;;-1:-1;6188:2;6227:22;;;2770:20;;5884:391;-1:-1;5884:391::o;6282:366::-;;;6403:2;6391:9;6382:7;6378:23;6374:32;6371:2;;;-1:-1;;6409:12;6371:2;-1:-1;;2770:20;;;6561:2;6600:22;;;2770:20;;-1:-1;6365:283::o;11621:392::-;20859:2;20855:14;;;;-1:-1;;20855:14;7365:58;;11874:2;11865:12;;9136:37;11976:12;;;11765:248::o;12020:392::-;9136:37;;;12273:2;12264:12;;9136:37;12375:12;;;12164:248::o;12419:222::-;-1:-1;;;;;19619:54;;;;7227:37;;12546:2;12531:18;;12517:124::o;12648:460::-;-1:-1;;;;;19619:54;;;7086:58;;19619:54;;;;13011:2;12996:18;;7227:37;13094:2;13079:18;;9136:37;;;;12839:2;12824:18;;12810:298::o;13115:333::-;-1:-1;;;;;19619:54;;;;7227:37;;13434:2;13419:18;;9136:37;13270:2;13255:18;;13241:207::o;13455:358::-;13626:2;13640:47;;;18333:12;;13611:18;;;18861:19;;;13455:358;;13626:2;18032:14;;;;18901;;;;13455:358;7853:251;7878:6;7875:1;7872:13;7853:251;;;7939:13;;19452;19445:21;8918:34;;18604:14;;;;6797;;;;7900:1;7893:9;7853:251;;;-1:-1;13693:110;;13597:216;-1:-1;;;;;;13597:216::o;13820:370::-;13997:2;14011:47;;;18333:12;;13982:18;;;18861:19;;;13820:370;;13997:2;18032:14;;;;18901;;;;13820:370;8573:260;8598:6;8595:1;8592:13;8573:260;;;8659:13;;9136:37;;18604:14;;;;6979;;;;8620:1;8613:9;8573:260;;14197:210;19452:13;;19445:21;8918:34;;14318:2;14303:18;;14289:118::o;14414:222::-;9136:37;;;14541:2;14526:18;;14512:124::o;14898:416::-;15098:2;15112:47;;;9848:2;15083:18;;;18861:19;9884:34;18901:14;;;9864:55;-1:-1;;;9939:12;;;9932:30;9981:12;;;15069:245::o;15321:416::-;15521:2;15535:47;;;10232:2;15506:18;;;18861:19;-1:-1;;;18901:14;;;10248:45;10312:12;;;15492:245::o;15744:416::-;15944:2;15958:47;;;15929:18;;;18861:19;10599:34;18901:14;;;10579:55;10653:12;;;15915:245::o;16167:416::-;16367:2;16381:47;;;10904:2;16352:18;;;18861:19;-1:-1;;;18901:14;;;10920:42;10981:12;;;16338:245::o;16590:416::-;16790:2;16804:47;;;11232:2;16775:18;;;18861:19;11268:28;18901:14;;;11248:49;11316:12;;;16761:245::o;17013:256::-;17075:2;17069:9;17101:17;;;17176:18;17161:34;;17197:22;;;17158:62;17155:2;;;17233:1;;17223:12;17155:2;17075;17242:22;17053:216;;-1:-1;17053:216::o;17276:304::-;;17435:18;17427:6;17424:30;17421:2;;;-1:-1;;17457:12;17421:2;-1:-1;17502:4;17490:17;;;17555:15;;17358:222::o;20887:117::-;-1:-1;;;;;19619:54;;20946:35;;20936:2;;20995:1;;20985:12;20936:2;20930:74;:::o
Swarm Source
ipfs://a5505bacfbd93f16fae92fd154dc1c197dbbbe8b5f5dba6c40f5c005c1cc55e8
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $0.003538 | 450,293.75 | $1,593.04 |
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.