More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 1,736 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 21470613 | 7 days ago | IN | 0 ETH | 0.00073828 | ||||
Withdraw | 21453129 | 10 days ago | IN | 0 ETH | 0.00084057 | ||||
Withdraw | 21427199 | 13 days ago | IN | 0 ETH | 0.00105213 | ||||
Withdraw | 21417705 | 15 days ago | IN | 0 ETH | 0.00248702 | ||||
Withdraw | 21381293 | 20 days ago | IN | 0 ETH | 0.00397331 | ||||
Withdraw | 21377420 | 20 days ago | IN | 0 ETH | 0.00126545 | ||||
Withdraw | 21369264 | 22 days ago | IN | 0 ETH | 0.00246326 | ||||
Withdraw | 21355138 | 23 days ago | IN | 0 ETH | 0.00107412 | ||||
Withdraw | 21351293 | 24 days ago | IN | 0 ETH | 0.00196825 | ||||
Withdraw | 21348799 | 24 days ago | IN | 0 ETH | 0.00140115 | ||||
Withdraw | 21345643 | 25 days ago | IN | 0 ETH | 0.00273958 | ||||
Withdraw | 21329653 | 27 days ago | IN | 0 ETH | 0.00478958 | ||||
Withdraw | 21311296 | 30 days ago | IN | 0 ETH | 0.0015021 | ||||
Withdraw | 21298929 | 31 days ago | IN | 0 ETH | 0.00094347 | ||||
Withdraw | 21290806 | 32 days ago | IN | 0 ETH | 0.00066057 | ||||
Withdraw | 21282911 | 34 days ago | IN | 0 ETH | 0.00114372 | ||||
Withdraw | 21277883 | 34 days ago | IN | 0 ETH | 0.00145468 | ||||
Withdraw | 21258555 | 37 days ago | IN | 0 ETH | 0.00105701 | ||||
Withdraw | 21257726 | 37 days ago | IN | 0 ETH | 0.00240372 | ||||
Withdraw | 21251401 | 38 days ago | IN | 0 ETH | 0.00269612 | ||||
Withdraw | 21250224 | 38 days ago | IN | 0 ETH | 0.0011889 | ||||
Withdraw | 21242385 | 39 days ago | IN | 0 ETH | 0.00127402 | ||||
Withdraw | 21110058 | 58 days ago | IN | 0 ETH | 0.00053408 | ||||
Withdraw | 21021158 | 70 days ago | IN | 0 ETH | 0.00109217 | ||||
Withdraw | 20965640 | 78 days ago | IN | 0 ETH | 0.0025348 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
PaymentPool
Compiler Version
v0.8.10+commit.fc410830
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity ^0.8.4; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract PaymentPool is Ownable { using SafeMath for uint256; using SafeERC20 for ERC20; using MerkleProof for bytes32[]; ERC20 public token; uint256 public numPaymentCycles = 1; mapping(address => uint256) public withdrawals; mapping(uint256 => bytes32) payeeRoots; uint256 currentPaymentCycleStartBlock; event PaymentCycleEnded( uint256 paymentCycle, uint256 startBlock, uint256 endBlock ); event PayeeWithdraw(address indexed payee, uint256 amount); constructor(ERC20 _token) { token = _token; currentPaymentCycleStartBlock = block.number; } function startNewPaymentCycle() internal onlyOwner returns (bool) { require(block.number > currentPaymentCycleStartBlock); emit PaymentCycleEnded( numPaymentCycles, currentPaymentCycleStartBlock, block.number ); numPaymentCycles = numPaymentCycles.add(1); currentPaymentCycleStartBlock = block.number.add(1); return true; } function submitPayeeMerkleRoot(bytes32 payeeRoot) public onlyOwner returns (bool) { payeeRoots[numPaymentCycles] = payeeRoot; startNewPaymentCycle(); return true; } function balanceForProofWithAddress(address _address, bytes memory proof) public view returns (uint256) { bytes32[] memory meta; bytes32[] memory _proof; (meta, _proof) = splitIntoBytes32(proof, 2); if (meta.length != 2) { return 0; } uint256 paymentCycleNumber = uint256(meta[0]); uint256 cumulativeAmount = uint256(meta[1]); if (payeeRoots[paymentCycleNumber] == 0x0) { return 0; } bytes32 leaf = keccak256(abi.encodePacked(_address, cumulativeAmount)); if ( withdrawals[_address] < cumulativeAmount && _proof.verify(payeeRoots[paymentCycleNumber], leaf) ) { return cumulativeAmount.sub(withdrawals[_address]); } else { return 0; } } function balanceForProof(bytes memory proof) public view returns (uint256) { return balanceForProofWithAddress(msg.sender, proof); } function withdraw(uint256 amount, bytes memory proof) public returns (bool) { require(amount > 0); require(token.balanceOf(address(this)) >= amount); uint256 balance = balanceForProof(proof); require(balance >= amount); withdrawals[msg.sender] = withdrawals[msg.sender].add(amount); token.safeTransfer(msg.sender, amount); emit PayeeWithdraw(msg.sender, amount); } function withdrawTokens() public onlyOwner { uint256 balance = token.balanceOf(address(this)); token.transfer(msg.sender, balance); } function splitIntoBytes32(bytes memory byteArray, uint256 numBytes32) internal pure returns (bytes32[] memory bytes32Array, bytes32[] memory remainder) { if ( byteArray.length % 32 != 0 || byteArray.length < numBytes32.mul(32) || byteArray.length.div(32) > 50 ) { // Arbitrarily limiting this function to an array of 50 bytes32's to conserve gas bytes32Array = new bytes32[](0); remainder = new bytes32[](0); return (bytes32Array, remainder); } bytes32Array = new bytes32[](numBytes32); remainder = new bytes32[](byteArray.length.sub(64).div(32)); bytes32 _bytes32; for (uint256 k = 32; k <= byteArray.length; k = k.add(32)) { assembly { _bytes32 := mload(add(byteArray, k)) } if (k <= numBytes32 * 32) { bytes32Array[k.sub(32).div(32)] = _bytes32; } else { remainder[k.sub(96).div(32)] = _bytes32; } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.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 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() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { 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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree 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. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ 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) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle 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++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`, * consuming from one or the other at each step according to the instructions given by * `proofFlags`. * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof} * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/draft-IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; } _balances[to] += amount; emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 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 Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(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 /// @solidity memory-safe-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 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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); /** * @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 `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.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 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) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract ERC20","name":"_token","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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":true,"internalType":"address","name":"payee","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PayeeWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"paymentCycle","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"startBlock","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"endBlock","type":"uint256"}],"name":"PaymentCycleEnded","type":"event"},{"inputs":[{"internalType":"bytes","name":"proof","type":"bytes"}],"name":"balanceForProof","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bytes","name":"proof","type":"bytes"}],"name":"balanceForProofWithAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numPaymentCycles","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"bytes32","name":"payeeRoot","type":"bytes32"}],"name":"submitPayeeMerkleRoot","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"proof","type":"bytes"}],"name":"withdraw","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"withdrawals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405260016002553480156200001657600080fd5b5060405162001f2338038062001f2383398181016040528101906200003c9190620001f5565b6200005c62000050620000ab60201b60201c565b620000b360201b60201c565b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550436005819055505062000227565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620001a9826200017c565b9050919050565b6000620001bd826200019c565b9050919050565b620001cf81620001b0565b8114620001db57600080fd5b50565b600081519050620001ef81620001c4565b92915050565b6000602082840312156200020e576200020d62000177565b5b60006200021e84828501620001de565b91505092915050565b611cec80620002376000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c80637a9262a2116100715780637a9262a2146101665780638d8f2adb146101965780638da5cb5b146101a0578063ca64999c146101be578063f2fde38b146101ee578063fc0c546a1461020a576100a9565b8063030ba25d146100ae5780632426d1ae146100de578063384e09701461010e5780633a74eb911461013e578063715018a61461015c575b600080fd5b6100c860048036038101906100c39190611281565b610228565b6040516100d591906112f8565b60405180910390f35b6100f860048036038101906100f39190611371565b61042f565b60405161010591906113dc565b60405180910390f35b610128600480360381019061012391906113f7565b6105de565b60405161013591906113dc565b60405180910390f35b6101466105f1565b60405161015391906113dc565b60405180910390f35b6101646105f7565b005b610180600480360381019061017b9190611440565b61060b565b60405161018d91906113dc565b60405180910390f35b61019e610623565b005b6101a861076f565b6040516101b5919061147c565b60405180910390f35b6101d860048036038101906101d391906114cd565b610798565b6040516101e591906112f8565b60405180910390f35b61020860048036038101906102039190611440565b6107ce565b005b610212610852565b60405161021f9190611559565b60405180910390f35b600080831161023657600080fd5b82600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610292919061147c565b602060405180830381865afa1580156102af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102d39190611589565b10156102de57600080fd5b60006102e9836105de565b9050838110156102f857600080fd5b61034a84600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461087890919063ffffffff16565b600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506103da3385600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661088e9092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f641f7338679d596f5e3a15d542ea17798bff7c18eb88df7650dee714a4076f628560405161042091906113dc565b60405180910390a25092915050565b600060608061043f846002610914565b8092508193505050600282511461045b576000925050506105d8565b600082600081518110610471576104706115b6565b5b602002602001015160001c9050600083600181518110610494576104936115b6565b5b602002602001015160001c90506000801b600460008481526020019081526020016000205414156104cc5760009450505050506105d8565b600087826040516020016104e192919061164e565b60405160208183030381529060405280519060200120905081600360008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410801561056b575061056a60046000858152602001908152602001600020548286610ba59092919063ffffffff16565b5b156105ce576105c2600360008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205483610bbc90919063ffffffff16565b955050505050506105d8565b6000955050505050505b92915050565b60006105ea338361042f565b9050919050565b60025481565b6105ff610bd2565b6106096000610c50565b565b60036020528060005260406000206000915090505481565b61062b610bd2565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610688919061147c565b602060405180830381865afa1580156106a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106c99190611589565b9050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b815260040161072892919061167a565b6020604051808303816000875af1158015610747573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061076b91906116cf565b5050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006107a2610bd2565b81600460006002548152602001908152602001600020819055506107c4610d14565b5060019050919050565b6107d6610bd2565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610846576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161083d9061177f565b60405180910390fd5b61084f81610c50565b50565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000818361088691906117ce565b905092915050565b61090f8363a9059cbb60e01b84846040516024016108ad92919061167a565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610da8565b505050565b6060806000602085516109279190611853565b1415806109475750610943602084610e6f90919063ffffffff16565b8451105b806109665750603261096460208651610e8590919063ffffffff16565b115b15610a0857600067ffffffffffffffff81111561098657610985611156565b5b6040519080825280602002602001820160405280156109b45781602001602082028036833780820191505090505b509150600067ffffffffffffffff8111156109d2576109d1611156565b5b604051908082528060200260200182016040528015610a005781602001602082028036833780820191505090505b509050610b9e565b8267ffffffffffffffff811115610a2257610a21611156565b5b604051908082528060200260200182016040528015610a505781602001602082028036833780820191505090505b509150610a7b6020610a6d60408751610bbc90919063ffffffff16565b610e8590919063ffffffff16565b67ffffffffffffffff811115610a9457610a93611156565b5b604051908082528060200260200182016040528015610ac25781602001602082028036833780820191505090505b509050600080602090505b85518111610b9b57808601519150602085610ae89190611884565b8111610b39578184610b176020610b09602086610bbc90919063ffffffff16565b610e8590919063ffffffff16565b81518110610b2857610b276115b6565b5b602002602001018181525050610b80565b8183610b626020610b54606086610bbc90919063ffffffff16565b610e8590919063ffffffff16565b81518110610b7357610b726115b6565b5b6020026020010181815250505b610b9460208261087890919063ffffffff16565b9050610acd565b50505b9250929050565b600082610bb28584610e9b565b1490509392505050565b60008183610bca91906118de565b905092915050565b610bda610ef1565b73ffffffffffffffffffffffffffffffffffffffff16610bf861076f565b73ffffffffffffffffffffffffffffffffffffffff1614610c4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c459061195e565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000610d1e610bd2565b6005544311610d2c57600080fd5b7fef10d9380479fd2664589fc6860ef6cfdbbf77161a895bd0a4e0c964dd5527b960025460055443604051610d639392919061197e565b60405180910390a1610d81600160025461087890919063ffffffff16565b600281905550610d9b60014361087890919063ffffffff16565b6005819055506001905090565b6000610e0a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610ef99092919063ffffffff16565b9050600081511115610e6a5780806020019051810190610e2a91906116cf565b610e69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e6090611a27565b60405180910390fd5b5b505050565b60008183610e7d9190611884565b905092915050565b60008183610e939190611a47565b905092915050565b60008082905060005b8451811015610ee657610ed182868381518110610ec457610ec36115b6565b5b6020026020010151610f11565b91508080610ede90611a78565b915050610ea4565b508091505092915050565b600033905090565b6060610f088484600085610f3c565b90509392505050565b6000818310610f2957610f248284611050565b610f34565b610f338383611050565b5b905092915050565b606082471015610f81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7890611b33565b60405180910390fd5b610f8a85611067565b610fc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fc090611b9f565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051610ff29190611c39565b60006040518083038185875af1925050503d806000811461102f576040519150601f19603f3d011682016040523d82523d6000602084013e611034565b606091505b509150915061104482828661108a565b92505050949350505050565b600082600052816020526040600020905092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6060831561109a578290506110ea565b6000835111156110ad5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e19190611c94565b60405180910390fd5b9392505050565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b61111881611105565b811461112357600080fd5b50565b6000813590506111358161110f565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61118e82611145565b810181811067ffffffffffffffff821117156111ad576111ac611156565b5b80604052505050565b60006111c06110f1565b90506111cc8282611185565b919050565b600067ffffffffffffffff8211156111ec576111eb611156565b5b6111f582611145565b9050602081019050919050565b82818337600083830152505050565b600061122461121f846111d1565b6111b6565b9050828152602081018484840111156112405761123f611140565b5b61124b848285611202565b509392505050565b600082601f8301126112685761126761113b565b5b8135611278848260208601611211565b91505092915050565b60008060408385031215611298576112976110fb565b5b60006112a685828601611126565b925050602083013567ffffffffffffffff8111156112c7576112c6611100565b5b6112d385828601611253565b9150509250929050565b60008115159050919050565b6112f2816112dd565b82525050565b600060208201905061130d60008301846112e9565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061133e82611313565b9050919050565b61134e81611333565b811461135957600080fd5b50565b60008135905061136b81611345565b92915050565b60008060408385031215611388576113876110fb565b5b60006113968582860161135c565b925050602083013567ffffffffffffffff8111156113b7576113b6611100565b5b6113c385828601611253565b9150509250929050565b6113d681611105565b82525050565b60006020820190506113f160008301846113cd565b92915050565b60006020828403121561140d5761140c6110fb565b5b600082013567ffffffffffffffff81111561142b5761142a611100565b5b61143784828501611253565b91505092915050565b600060208284031215611456576114556110fb565b5b60006114648482850161135c565b91505092915050565b61147681611333565b82525050565b6000602082019050611491600083018461146d565b92915050565b6000819050919050565b6114aa81611497565b81146114b557600080fd5b50565b6000813590506114c7816114a1565b92915050565b6000602082840312156114e3576114e26110fb565b5b60006114f1848285016114b8565b91505092915050565b6000819050919050565b600061151f61151a61151584611313565b6114fa565b611313565b9050919050565b600061153182611504565b9050919050565b600061154382611526565b9050919050565b61155381611538565b82525050565b600060208201905061156e600083018461154a565b92915050565b6000815190506115838161110f565b92915050565b60006020828403121561159f5761159e6110fb565b5b60006115ad84828501611574565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008160601b9050919050565b60006115fd826115e5565b9050919050565b600061160f826115f2565b9050919050565b61162761162282611333565b611604565b82525050565b6000819050919050565b61164861164382611105565b61162d565b82525050565b600061165a8285611616565b60148201915061166a8284611637565b6020820191508190509392505050565b600060408201905061168f600083018561146d565b61169c60208301846113cd565b9392505050565b6116ac816112dd565b81146116b757600080fd5b50565b6000815190506116c9816116a3565b92915050565b6000602082840312156116e5576116e46110fb565b5b60006116f3848285016116ba565b91505092915050565b600082825260208201905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006117696026836116fc565b91506117748261170d565b604082019050919050565b600060208201905081810360008301526117988161175c565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006117d982611105565b91506117e483611105565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156118195761181861179f565b5b828201905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061185e82611105565b915061186983611105565b92508261187957611878611824565b5b828206905092915050565b600061188f82611105565b915061189a83611105565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156118d3576118d261179f565b5b828202905092915050565b60006118e982611105565b91506118f483611105565b9250828210156119075761190661179f565b5b828203905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006119486020836116fc565b915061195382611912565b602082019050919050565b600060208201905081810360008301526119778161193b565b9050919050565b600060608201905061199360008301866113cd565b6119a060208301856113cd565b6119ad60408301846113cd565b949350505050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000611a11602a836116fc565b9150611a1c826119b5565b604082019050919050565b60006020820190508181036000830152611a4081611a04565b9050919050565b6000611a5282611105565b9150611a5d83611105565b925082611a6d57611a6c611824565b5b828204905092915050565b6000611a8382611105565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415611ab657611ab561179f565b5b600182019050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000611b1d6026836116fc565b9150611b2882611ac1565b604082019050919050565b60006020820190508181036000830152611b4c81611b10565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000611b89601d836116fc565b9150611b9482611b53565b602082019050919050565b60006020820190508181036000830152611bb881611b7c565b9050919050565b600081519050919050565b600081905092915050565b60005b83811015611bf3578082015181840152602081019050611bd8565b83811115611c02576000848401525b50505050565b6000611c1382611bbf565b611c1d8185611bca565b9350611c2d818560208601611bd5565b80840191505092915050565b6000611c458284611c08565b915081905092915050565b600081519050919050565b6000611c6682611c50565b611c7081856116fc565b9350611c80818560208601611bd5565b611c8981611145565b840191505092915050565b60006020820190508181036000830152611cae8184611c5b565b90509291505056fea26469706673582212204c2386c090a431d584591b40b0c77826fc8bc0def394163a44eede4029534bfe64736f6c634300080a0033000000000000000000000000686f2404e77ab0d9070a46cdfb0b7fecdd2318b0
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100a95760003560e01c80637a9262a2116100715780637a9262a2146101665780638d8f2adb146101965780638da5cb5b146101a0578063ca64999c146101be578063f2fde38b146101ee578063fc0c546a1461020a576100a9565b8063030ba25d146100ae5780632426d1ae146100de578063384e09701461010e5780633a74eb911461013e578063715018a61461015c575b600080fd5b6100c860048036038101906100c39190611281565b610228565b6040516100d591906112f8565b60405180910390f35b6100f860048036038101906100f39190611371565b61042f565b60405161010591906113dc565b60405180910390f35b610128600480360381019061012391906113f7565b6105de565b60405161013591906113dc565b60405180910390f35b6101466105f1565b60405161015391906113dc565b60405180910390f35b6101646105f7565b005b610180600480360381019061017b9190611440565b61060b565b60405161018d91906113dc565b60405180910390f35b61019e610623565b005b6101a861076f565b6040516101b5919061147c565b60405180910390f35b6101d860048036038101906101d391906114cd565b610798565b6040516101e591906112f8565b60405180910390f35b61020860048036038101906102039190611440565b6107ce565b005b610212610852565b60405161021f9190611559565b60405180910390f35b600080831161023657600080fd5b82600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610292919061147c565b602060405180830381865afa1580156102af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102d39190611589565b10156102de57600080fd5b60006102e9836105de565b9050838110156102f857600080fd5b61034a84600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461087890919063ffffffff16565b600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506103da3385600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661088e9092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f641f7338679d596f5e3a15d542ea17798bff7c18eb88df7650dee714a4076f628560405161042091906113dc565b60405180910390a25092915050565b600060608061043f846002610914565b8092508193505050600282511461045b576000925050506105d8565b600082600081518110610471576104706115b6565b5b602002602001015160001c9050600083600181518110610494576104936115b6565b5b602002602001015160001c90506000801b600460008481526020019081526020016000205414156104cc5760009450505050506105d8565b600087826040516020016104e192919061164e565b60405160208183030381529060405280519060200120905081600360008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410801561056b575061056a60046000858152602001908152602001600020548286610ba59092919063ffffffff16565b5b156105ce576105c2600360008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205483610bbc90919063ffffffff16565b955050505050506105d8565b6000955050505050505b92915050565b60006105ea338361042f565b9050919050565b60025481565b6105ff610bd2565b6106096000610c50565b565b60036020528060005260406000206000915090505481565b61062b610bd2565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610688919061147c565b602060405180830381865afa1580156106a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106c99190611589565b9050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b815260040161072892919061167a565b6020604051808303816000875af1158015610747573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061076b91906116cf565b5050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006107a2610bd2565b81600460006002548152602001908152602001600020819055506107c4610d14565b5060019050919050565b6107d6610bd2565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610846576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161083d9061177f565b60405180910390fd5b61084f81610c50565b50565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000818361088691906117ce565b905092915050565b61090f8363a9059cbb60e01b84846040516024016108ad92919061167a565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610da8565b505050565b6060806000602085516109279190611853565b1415806109475750610943602084610e6f90919063ffffffff16565b8451105b806109665750603261096460208651610e8590919063ffffffff16565b115b15610a0857600067ffffffffffffffff81111561098657610985611156565b5b6040519080825280602002602001820160405280156109b45781602001602082028036833780820191505090505b509150600067ffffffffffffffff8111156109d2576109d1611156565b5b604051908082528060200260200182016040528015610a005781602001602082028036833780820191505090505b509050610b9e565b8267ffffffffffffffff811115610a2257610a21611156565b5b604051908082528060200260200182016040528015610a505781602001602082028036833780820191505090505b509150610a7b6020610a6d60408751610bbc90919063ffffffff16565b610e8590919063ffffffff16565b67ffffffffffffffff811115610a9457610a93611156565b5b604051908082528060200260200182016040528015610ac25781602001602082028036833780820191505090505b509050600080602090505b85518111610b9b57808601519150602085610ae89190611884565b8111610b39578184610b176020610b09602086610bbc90919063ffffffff16565b610e8590919063ffffffff16565b81518110610b2857610b276115b6565b5b602002602001018181525050610b80565b8183610b626020610b54606086610bbc90919063ffffffff16565b610e8590919063ffffffff16565b81518110610b7357610b726115b6565b5b6020026020010181815250505b610b9460208261087890919063ffffffff16565b9050610acd565b50505b9250929050565b600082610bb28584610e9b565b1490509392505050565b60008183610bca91906118de565b905092915050565b610bda610ef1565b73ffffffffffffffffffffffffffffffffffffffff16610bf861076f565b73ffffffffffffffffffffffffffffffffffffffff1614610c4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c459061195e565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000610d1e610bd2565b6005544311610d2c57600080fd5b7fef10d9380479fd2664589fc6860ef6cfdbbf77161a895bd0a4e0c964dd5527b960025460055443604051610d639392919061197e565b60405180910390a1610d81600160025461087890919063ffffffff16565b600281905550610d9b60014361087890919063ffffffff16565b6005819055506001905090565b6000610e0a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610ef99092919063ffffffff16565b9050600081511115610e6a5780806020019051810190610e2a91906116cf565b610e69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e6090611a27565b60405180910390fd5b5b505050565b60008183610e7d9190611884565b905092915050565b60008183610e939190611a47565b905092915050565b60008082905060005b8451811015610ee657610ed182868381518110610ec457610ec36115b6565b5b6020026020010151610f11565b91508080610ede90611a78565b915050610ea4565b508091505092915050565b600033905090565b6060610f088484600085610f3c565b90509392505050565b6000818310610f2957610f248284611050565b610f34565b610f338383611050565b5b905092915050565b606082471015610f81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7890611b33565b60405180910390fd5b610f8a85611067565b610fc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fc090611b9f565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051610ff29190611c39565b60006040518083038185875af1925050503d806000811461102f576040519150601f19603f3d011682016040523d82523d6000602084013e611034565b606091505b509150915061104482828661108a565b92505050949350505050565b600082600052816020526040600020905092915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6060831561109a578290506110ea565b6000835111156110ad5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e19190611c94565b60405180910390fd5b9392505050565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b61111881611105565b811461112357600080fd5b50565b6000813590506111358161110f565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61118e82611145565b810181811067ffffffffffffffff821117156111ad576111ac611156565b5b80604052505050565b60006111c06110f1565b90506111cc8282611185565b919050565b600067ffffffffffffffff8211156111ec576111eb611156565b5b6111f582611145565b9050602081019050919050565b82818337600083830152505050565b600061122461121f846111d1565b6111b6565b9050828152602081018484840111156112405761123f611140565b5b61124b848285611202565b509392505050565b600082601f8301126112685761126761113b565b5b8135611278848260208601611211565b91505092915050565b60008060408385031215611298576112976110fb565b5b60006112a685828601611126565b925050602083013567ffffffffffffffff8111156112c7576112c6611100565b5b6112d385828601611253565b9150509250929050565b60008115159050919050565b6112f2816112dd565b82525050565b600060208201905061130d60008301846112e9565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061133e82611313565b9050919050565b61134e81611333565b811461135957600080fd5b50565b60008135905061136b81611345565b92915050565b60008060408385031215611388576113876110fb565b5b60006113968582860161135c565b925050602083013567ffffffffffffffff8111156113b7576113b6611100565b5b6113c385828601611253565b9150509250929050565b6113d681611105565b82525050565b60006020820190506113f160008301846113cd565b92915050565b60006020828403121561140d5761140c6110fb565b5b600082013567ffffffffffffffff81111561142b5761142a611100565b5b61143784828501611253565b91505092915050565b600060208284031215611456576114556110fb565b5b60006114648482850161135c565b91505092915050565b61147681611333565b82525050565b6000602082019050611491600083018461146d565b92915050565b6000819050919050565b6114aa81611497565b81146114b557600080fd5b50565b6000813590506114c7816114a1565b92915050565b6000602082840312156114e3576114e26110fb565b5b60006114f1848285016114b8565b91505092915050565b6000819050919050565b600061151f61151a61151584611313565b6114fa565b611313565b9050919050565b600061153182611504565b9050919050565b600061154382611526565b9050919050565b61155381611538565b82525050565b600060208201905061156e600083018461154a565b92915050565b6000815190506115838161110f565b92915050565b60006020828403121561159f5761159e6110fb565b5b60006115ad84828501611574565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008160601b9050919050565b60006115fd826115e5565b9050919050565b600061160f826115f2565b9050919050565b61162761162282611333565b611604565b82525050565b6000819050919050565b61164861164382611105565b61162d565b82525050565b600061165a8285611616565b60148201915061166a8284611637565b6020820191508190509392505050565b600060408201905061168f600083018561146d565b61169c60208301846113cd565b9392505050565b6116ac816112dd565b81146116b757600080fd5b50565b6000815190506116c9816116a3565b92915050565b6000602082840312156116e5576116e46110fb565b5b60006116f3848285016116ba565b91505092915050565b600082825260208201905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006117696026836116fc565b91506117748261170d565b604082019050919050565b600060208201905081810360008301526117988161175c565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006117d982611105565b91506117e483611105565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156118195761181861179f565b5b828201905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061185e82611105565b915061186983611105565b92508261187957611878611824565b5b828206905092915050565b600061188f82611105565b915061189a83611105565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156118d3576118d261179f565b5b828202905092915050565b60006118e982611105565b91506118f483611105565b9250828210156119075761190661179f565b5b828203905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006119486020836116fc565b915061195382611912565b602082019050919050565b600060208201905081810360008301526119778161193b565b9050919050565b600060608201905061199360008301866113cd565b6119a060208301856113cd565b6119ad60408301846113cd565b949350505050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000611a11602a836116fc565b9150611a1c826119b5565b604082019050919050565b60006020820190508181036000830152611a4081611a04565b9050919050565b6000611a5282611105565b9150611a5d83611105565b925082611a6d57611a6c611824565b5b828204905092915050565b6000611a8382611105565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415611ab657611ab561179f565b5b600182019050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000611b1d6026836116fc565b9150611b2882611ac1565b604082019050919050565b60006020820190508181036000830152611b4c81611b10565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000611b89601d836116fc565b9150611b9482611b53565b602082019050919050565b60006020820190508181036000830152611bb881611b7c565b9050919050565b600081519050919050565b600081905092915050565b60005b83811015611bf3578082015181840152602081019050611bd8565b83811115611c02576000848401525b50505050565b6000611c1382611bbf565b611c1d8185611bca565b9350611c2d818560208601611bd5565b80840191505092915050565b6000611c458284611c08565b915081905092915050565b600081519050919050565b6000611c6682611c50565b611c7081856116fc565b9350611c80818560208601611bd5565b611c8981611145565b840191505092915050565b60006020820190508181036000830152611cae8184611c5b565b90509291505056fea26469706673582212204c2386c090a431d584591b40b0c77826fc8bc0def394163a44eede4029534bfe64736f6c634300080a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000686f2404e77ab0d9070a46cdfb0b7fecdd2318b0
-----Decoded View---------------
Arg [0] : _token (address): 0x686f2404e77Ab0d9070a46cdfb0B7feCDD2318b0
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000686f2404e77ab0d9070a46cdfb0b7fecdd2318b0
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $0.143347 | 5,214,199.41 | $747,439.84 |
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.