More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 5,232 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 21486098 | 2 days ago | IN | 0 ETH | 0.00066545 | ||||
Deposit | 21480229 | 3 days ago | IN | 0 ETH | 0.00126946 | ||||
Withdraw | 21468236 | 4 days ago | IN | 0 ETH | 0.00121604 | ||||
Withdraw | 21437682 | 9 days ago | IN | 0 ETH | 0.00194785 | ||||
Deposit | 21429616 | 10 days ago | IN | 0 ETH | 0.00107307 | ||||
Withdraw | 21429602 | 10 days ago | IN | 0 ETH | 0.00166505 | ||||
Deposit | 21417062 | 12 days ago | IN | 0 ETH | 0.00234203 | ||||
Withdraw | 21410782 | 13 days ago | IN | 0 ETH | 0.00095803 | ||||
Withdraw | 21410772 | 13 days ago | IN | 0 ETH | 0.00089282 | ||||
Withdraw | 21410762 | 13 days ago | IN | 0 ETH | 0.00091109 | ||||
Withdraw | 21410752 | 13 days ago | IN | 0 ETH | 0.00092569 | ||||
Withdraw | 21401661 | 14 days ago | IN | 0 ETH | 0.000957 | ||||
Withdraw | 21401651 | 14 days ago | IN | 0 ETH | 0.00119204 | ||||
Deposit | 21389862 | 15 days ago | IN | 0 ETH | 0.00120175 | ||||
Withdraw | 21388104 | 16 days ago | IN | 0 ETH | 0.00328205 | ||||
Withdraw | 21380633 | 17 days ago | IN | 0 ETH | 0.00260028 | ||||
Deposit | 21379804 | 17 days ago | IN | 0 ETH | 0.00267744 | ||||
Withdraw | 21379470 | 17 days ago | IN | 0 ETH | 0.00182694 | ||||
Withdraw | 21366068 | 19 days ago | IN | 0 ETH | 0.00333939 | ||||
Withdraw | 21366067 | 19 days ago | IN | 0 ETH | 0.00274401 | ||||
Withdraw | 21364694 | 19 days ago | IN | 0 ETH | 0.00106401 | ||||
Deposit | 21364396 | 19 days ago | IN | 0 ETH | 0.00075011 | ||||
Deposit | 21359715 | 20 days ago | IN | 0 ETH | 0.00104681 | ||||
Withdraw | 21359219 | 20 days ago | IN | 0 ETH | 0.00115593 | ||||
Withdraw | 21359209 | 20 days ago | IN | 0 ETH | 0.00129495 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
HeartCollector
Compiler Version
v0.8.10+commit.fc410830
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-03-01 */ // File: @openzeppelin/contracts/utils/Address.sol // OpenZeppelin Contracts (last updated v4.5.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 assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: @openzeppelin/contracts/token/ERC20/IERC20.sol // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.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 `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); /** * @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/token/ERC20/utils/SafeERC20.sol // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; /** * @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)); } } /** * @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"); } } } // File: contracts/HeartCollector.sol pragma solidity 0.8.10; contract HeartCollector{ address private _owner; address private _operator; IERC20 private _contract; uint256 private _epochStart; uint256 private _epochDuration; uint256 private _maxAPE; mapping(address => uint) private _balances; event Deposit(address indexed _from, uint256 indexed _amount); event Withdraw(address indexed _to, uint256 indexed _amount); constructor(){ _owner=msg.sender; _operator=msg.sender; _contract=IERC20(0x8FAc8031e079F409135766C7d5De29cf22EF897C); _epochStart=1646226000; //1 march 2022 13:00 UTC _epochDuration=604800; //1 week _maxAPE=3; //in percent } receive() payable external{ } function setEpochDuration(uint256 duration)public{ require(msg.sender == _owner, "Only owner can set the epoch start"); _epochDuration=duration; } function setEpochStart()public{ require(msg.sender == _owner, "Only owner can set the epoch start"); _epochStart=block.timestamp; } function currentEpoch() public view returns (uint256 epoch){ epoch=(block.timestamp-_epochStart)/_epochDuration; } function setAPE(uint256 newAPE)public{ require(msg.sender == _owner, "Only owner can set a new APE"); _maxAPE=newAPE; } function withdrawETH(address payable to, uint256 amount)public{ require(msg.sender == _owner, "Only owner can send ETH"); to.transfer(amount); } function setOwner(address newOwner) public{ require(msg.sender == _owner, "Only owner can set a new owner"); _owner=newOwner; } function setOperator(address newOperator) public{ require(msg.sender == _owner, "Only owner can set a new operator"); _operator=newOperator; } function setContract(IERC20 contractAddress) public{ require(msg.sender == _owner, "Only owner can set a new contract"); _contract=contractAddress; } function balanceOf(address owner) public view returns (uint256 amount) { amount=_balances[owner]; } function collectorBalance() public view returns (uint256 balance){ balance = _contract.balanceOf(address(this)); } function deposit(uint256 amount) public{ _contract.transferFrom(msg.sender,address(this),amount); emit Deposit(msg.sender,amount); _balances[msg.sender]+=amount; } function withdraw(address to, uint256 amount) public{ require(msg.sender == _owner || msg.sender ==_operator, "Only owner or operator can withdraw funds"); uint256 epochsElapsed=(block.timestamp-_epochStart)/_epochDuration; uint256 maxWithdrawable=_balances[to]+(_balances[to]*epochsElapsed*_maxAPE)/100; require(amount<=maxWithdrawable,"The amount does not match the max reward calculations"); uint256 balance = _contract.balanceOf(address(this)); require(amount <= balance, "Insufficient funds"); if(amount>_balances[to]){ _balances[to]=0; }else{ _balances[to]-=amount; } _contract.transfer(to, amount); emit Deposit(to,amount); } function forceWithdraw()public{ require(msg.sender == _owner, "Only owner can force withdraw"); uint256 balance=_contract.balanceOf(address(this)); _contract.transfer(_owner,balance); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":true,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":true,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collectorBalance","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentEpoch","outputs":[{"internalType":"uint256","name":"epoch","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"forceWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newAPE","type":"uint256"}],"name":"setAPE","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"contractAddress","type":"address"}],"name":"setContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"duration","type":"uint256"}],"name":"setEpochDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setEpochStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOperator","type":"address"}],"name":"setOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405234801561001057600080fd5b50600080546001600160a01b03199081163390811790925560018054821690921790915560028054909116738fac8031e079f409135766c7d5de29cf22ef897c17905563621f6a50600390815562093a80600455600555610cf8806100766000396000f3fe6080604052600436106100c65760003560e01c8063766718081161007f578063b6b55f2511610059578063b6b55f25146101fb578063cf4fe7341461021b578063d6e6c27e14610230578063f3fef3a31461025057600080fd5b806376671808146101b15780637be80b39146101c6578063b3ab15fb146101db57600080fd5b806313af4035146100d2578063151ba800146100f457806330024dfe1461011b5780634782f7791461013b57806370a082311461015b57806375f890ab1461019157600080fd5b366100cd57005b600080fd5b3480156100de57600080fd5b506100f26100ed366004610b56565b610270565b005b34801561010057600080fd5b506101096102f1565b60405190815260200160405180910390f35b34801561012757600080fd5b506100f2610136366004610b7a565b610363565b34801561014757600080fd5b506100f2610156366004610b93565b610392565b34801561016757600080fd5b50610109610176366004610b56565b6001600160a01b031660009081526006602052604090205490565b34801561019d57600080fd5b506100f26101ac366004610b56565b610427565b3480156101bd57600080fd5b506101096104ad565b3480156101d257600080fd5b506100f26104ca565b3480156101e757600080fd5b506100f26101f6366004610b56565b610610565b34801561020757600080fd5b506100f2610216366004610b7a565b610696565b34801561022757600080fd5b506100f2610766565b34801561023c57600080fd5b506100f261024b366004610b7a565b610796565b34801561025c57600080fd5b506100f261026b366004610b93565b6107f5565b6000546001600160a01b031633146102cf5760405162461bcd60e51b815260206004820152601e60248201527f4f6e6c79206f776e65722063616e207365742061206e6577206f776e6572000060448201526064015b60405180910390fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa15801561033a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061035e9190610bbf565b905090565b6000546001600160a01b0316331461038d5760405162461bcd60e51b81526004016102c690610bd8565b600455565b6000546001600160a01b031633146103ec5760405162461bcd60e51b815260206004820152601760248201527f4f6e6c79206f776e65722063616e2073656e642045544800000000000000000060448201526064016102c6565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610422573d6000803e3d6000fd5b505050565b6000546001600160a01b0316331461048b5760405162461bcd60e51b815260206004820152602160248201527f4f6e6c79206f776e65722063616e207365742061206e657720636f6e747261636044820152601d60fa1b60648201526084016102c6565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6000600454600354426104c09190610c30565b61035e9190610c47565b6000546001600160a01b031633146105245760405162461bcd60e51b815260206004820152601d60248201527f4f6e6c79206f776e65722063616e20666f72636520776974686472617700000060448201526064016102c6565b6002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa15801561056d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105919190610bbf565b60025460005460405163a9059cbb60e01b81526001600160a01b03918216600482015260248101849052929350169063a9059cbb906044016020604051808303816000875af11580156105e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061060c9190610c69565b5050565b6000546001600160a01b031633146106745760405162461bcd60e51b815260206004820152602160248201527f4f6e6c79206f776e65722063616e207365742061206e6577206f70657261746f6044820152603960f91b60648201526084016102c6565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6002546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd906064016020604051808303816000875af11580156106ed573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107119190610c69565b50604051819033907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c90600090a3336000908152600660205260408120805483929061075e908490610c8b565b909155505050565b6000546001600160a01b031633146107905760405162461bcd60e51b81526004016102c690610bd8565b42600355565b6000546001600160a01b031633146107f05760405162461bcd60e51b815260206004820152601c60248201527f4f6e6c79206f776e65722063616e207365742061206e6577204150450000000060448201526064016102c6565b600555565b6000546001600160a01b031633148061081857506001546001600160a01b031633145b6108765760405162461bcd60e51b815260206004820152602960248201527f4f6e6c79206f776e6572206f72206f70657261746f722063616e2077697468646044820152687261772066756e647360b81b60648201526084016102c6565b6000600454600354426108899190610c30565b6108939190610c47565b6005546001600160a01b03851660009081526006602052604081205492935091606491906108c2908590610ca3565b6108cc9190610ca3565b6108d69190610c47565b6001600160a01b0385166000908152600660205260409020546108f99190610c8b565b9050808311156109695760405162461bcd60e51b815260206004820152603560248201527f54686520616d6f756e7420646f6573206e6f74206d6174636820746865206d6160448201527478207265776172642063616c63756c6174696f6e7360581b60648201526084016102c6565b6002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156109b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109d69190610bbf565b905080841115610a1d5760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742066756e647360701b60448201526064016102c6565b6001600160a01b038516600090815260066020526040902054841115610a5b576001600160a01b038516600090815260066020526040812055610a89565b6001600160a01b03851660009081526006602052604081208054869290610a83908490610c30565b90915550505b60025460405163a9059cbb60e01b81526001600160a01b038781166004830152602482018790529091169063a9059cbb906044016020604051808303816000875af1158015610adc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b009190610c69565b5060405184906001600160a01b038716907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c90600090a35050505050565b6001600160a01b0381168114610b5357600080fd5b50565b600060208284031215610b6857600080fd5b8135610b7381610b3e565b9392505050565b600060208284031215610b8c57600080fd5b5035919050565b60008060408385031215610ba657600080fd5b8235610bb181610b3e565b946020939093013593505050565b600060208284031215610bd157600080fd5b5051919050565b60208082526022908201527f4f6e6c79206f776e65722063616e20736574207468652065706f6368207374616040820152611c9d60f21b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600082821015610c4257610c42610c1a565b500390565b600082610c6457634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215610c7b57600080fd5b81518015158114610b7357600080fd5b60008219821115610c9e57610c9e610c1a565b500190565b6000816000190483118215151615610cbd57610cbd610c1a565b50029056fea2646970667358221220bbc3e146319bb8fd8b0344fba84f3fa5c6acbcce7c09575ce5058be6b214d87764736f6c634300080a0033
Deployed Bytecode
0x6080604052600436106100c65760003560e01c8063766718081161007f578063b6b55f2511610059578063b6b55f25146101fb578063cf4fe7341461021b578063d6e6c27e14610230578063f3fef3a31461025057600080fd5b806376671808146101b15780637be80b39146101c6578063b3ab15fb146101db57600080fd5b806313af4035146100d2578063151ba800146100f457806330024dfe1461011b5780634782f7791461013b57806370a082311461015b57806375f890ab1461019157600080fd5b366100cd57005b600080fd5b3480156100de57600080fd5b506100f26100ed366004610b56565b610270565b005b34801561010057600080fd5b506101096102f1565b60405190815260200160405180910390f35b34801561012757600080fd5b506100f2610136366004610b7a565b610363565b34801561014757600080fd5b506100f2610156366004610b93565b610392565b34801561016757600080fd5b50610109610176366004610b56565b6001600160a01b031660009081526006602052604090205490565b34801561019d57600080fd5b506100f26101ac366004610b56565b610427565b3480156101bd57600080fd5b506101096104ad565b3480156101d257600080fd5b506100f26104ca565b3480156101e757600080fd5b506100f26101f6366004610b56565b610610565b34801561020757600080fd5b506100f2610216366004610b7a565b610696565b34801561022757600080fd5b506100f2610766565b34801561023c57600080fd5b506100f261024b366004610b7a565b610796565b34801561025c57600080fd5b506100f261026b366004610b93565b6107f5565b6000546001600160a01b031633146102cf5760405162461bcd60e51b815260206004820152601e60248201527f4f6e6c79206f776e65722063616e207365742061206e6577206f776e6572000060448201526064015b60405180910390fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa15801561033a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061035e9190610bbf565b905090565b6000546001600160a01b0316331461038d5760405162461bcd60e51b81526004016102c690610bd8565b600455565b6000546001600160a01b031633146103ec5760405162461bcd60e51b815260206004820152601760248201527f4f6e6c79206f776e65722063616e2073656e642045544800000000000000000060448201526064016102c6565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610422573d6000803e3d6000fd5b505050565b6000546001600160a01b0316331461048b5760405162461bcd60e51b815260206004820152602160248201527f4f6e6c79206f776e65722063616e207365742061206e657720636f6e747261636044820152601d60fa1b60648201526084016102c6565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6000600454600354426104c09190610c30565b61035e9190610c47565b6000546001600160a01b031633146105245760405162461bcd60e51b815260206004820152601d60248201527f4f6e6c79206f776e65722063616e20666f72636520776974686472617700000060448201526064016102c6565b6002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa15801561056d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105919190610bbf565b60025460005460405163a9059cbb60e01b81526001600160a01b03918216600482015260248101849052929350169063a9059cbb906044016020604051808303816000875af11580156105e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061060c9190610c69565b5050565b6000546001600160a01b031633146106745760405162461bcd60e51b815260206004820152602160248201527f4f6e6c79206f776e65722063616e207365742061206e6577206f70657261746f6044820152603960f91b60648201526084016102c6565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6002546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd906064016020604051808303816000875af11580156106ed573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107119190610c69565b50604051819033907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c90600090a3336000908152600660205260408120805483929061075e908490610c8b565b909155505050565b6000546001600160a01b031633146107905760405162461bcd60e51b81526004016102c690610bd8565b42600355565b6000546001600160a01b031633146107f05760405162461bcd60e51b815260206004820152601c60248201527f4f6e6c79206f776e65722063616e207365742061206e6577204150450000000060448201526064016102c6565b600555565b6000546001600160a01b031633148061081857506001546001600160a01b031633145b6108765760405162461bcd60e51b815260206004820152602960248201527f4f6e6c79206f776e6572206f72206f70657261746f722063616e2077697468646044820152687261772066756e647360b81b60648201526084016102c6565b6000600454600354426108899190610c30565b6108939190610c47565b6005546001600160a01b03851660009081526006602052604081205492935091606491906108c2908590610ca3565b6108cc9190610ca3565b6108d69190610c47565b6001600160a01b0385166000908152600660205260409020546108f99190610c8b565b9050808311156109695760405162461bcd60e51b815260206004820152603560248201527f54686520616d6f756e7420646f6573206e6f74206d6174636820746865206d6160448201527478207265776172642063616c63756c6174696f6e7360581b60648201526084016102c6565b6002546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156109b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109d69190610bbf565b905080841115610a1d5760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742066756e647360701b60448201526064016102c6565b6001600160a01b038516600090815260066020526040902054841115610a5b576001600160a01b038516600090815260066020526040812055610a89565b6001600160a01b03851660009081526006602052604081208054869290610a83908490610c30565b90915550505b60025460405163a9059cbb60e01b81526001600160a01b038781166004830152602482018790529091169063a9059cbb906044016020604051808303816000875af1158015610adc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b009190610c69565b5060405184906001600160a01b038716907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c90600090a35050505050565b6001600160a01b0381168114610b5357600080fd5b50565b600060208284031215610b6857600080fd5b8135610b7381610b3e565b9392505050565b600060208284031215610b8c57600080fd5b5035919050565b60008060408385031215610ba657600080fd5b8235610bb181610b3e565b946020939093013593505050565b600060208284031215610bd157600080fd5b5051919050565b60208082526022908201527f4f6e6c79206f776e65722063616e20736574207468652065706f6368207374616040820152611c9d60f21b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600082821015610c4257610c42610c1a565b500390565b600082610c6457634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215610c7b57600080fd5b81518015158114610b7357600080fd5b60008219821115610c9e57610c9e610c1a565b500190565b6000816000190483118215151615610cbd57610cbd610c1a565b50029056fea2646970667358221220bbc3e146319bb8fd8b0344fba84f3fa5c6acbcce7c09575ce5058be6b214d87764736f6c634300080a0033
Deployed Bytecode Sourcemap
15449:3565:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17021:151;;;;;;;;;;-1:-1:-1;17021:151:0;;;;;:::i;:::-;;:::i;:::-;;17664:128;;;;;;;;;;;;;:::i;:::-;;;548:25:1;;;536:2;521:18;17664:128:0;;;;;;;16213:170;;;;;;;;;;-1:-1:-1;16213:170:0;;;;;:::i;:::-;;:::i;16845:168::-;;;;;;;;;;-1:-1:-1;16845:168:0;;;;;:::i;:::-;;:::i;17543:113::-;;;;;;;;;;-1:-1:-1;17543:113:0;;;;;:::i;:::-;-1:-1:-1;;;;;17632:16:0;17598:14;17632:16;;;:9;:16;;;;;;;17543:113;17354:173;;;;;;;;;;-1:-1:-1;17354:173:0;;;;;:::i;:::-;;:::i;16554:128::-;;;;;;;;;;;;;:::i;18792:218::-;;;;;;;;;;;;;:::i;17180:166::-;;;;;;;;;;-1:-1:-1;17180:166:0;;;;;:::i;:::-;;:::i;17802:195::-;;;;;;;;;;-1:-1:-1;17802:195:0;;;;;:::i;:::-;;:::i;16391:155::-;;;;;;;;;;;;;:::i;16690:143::-;;;;;;;;;;-1:-1:-1;16690:143:0;;;;;:::i;:::-;;:::i;18009:775::-;;;;;;;;;;-1:-1:-1;18009:775:0;;;;;:::i;:::-;;:::i;17021:151::-;17096:6;;-1:-1:-1;;;;;17096:6:0;17082:10;:20;17074:63;;;;-1:-1:-1;;;17074:63:0;;1885:2:1;17074:63:0;;;1867:21:1;1924:2;1904:18;;;1897:30;1963:32;1943:18;;;1936:60;2013:18;;17074:63:0;;;;;;;;;17149:6;:15;;-1:-1:-1;;;;;;17149:15:0;-1:-1:-1;;;;;17149:15:0;;;;;;;;;;17021:151::o;17664:128::-;17750:9;;:34;;-1:-1:-1;;;17750:34:0;;17778:4;17750:34;;;2188:51:1;17713:15:0;;-1:-1:-1;;;;;17750:9:0;;:19;;2161:18:1;;17750:34:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;17740:44;;17664:128;:::o;16213:170::-;16295:6;;-1:-1:-1;;;;;16295:6:0;16281:10;:20;16273:67;;;;-1:-1:-1;;;16273:67:0;;;;;;;:::i;:::-;16352:14;:23;16213:170::o;16845:168::-;16940:6;;-1:-1:-1;;;;;16940:6:0;16926:10;:20;16918:56;;;;-1:-1:-1;;;16918:56:0;;3044:2:1;16918:56:0;;;3026:21:1;3083:2;3063:18;;;3056:30;3122:25;3102:18;;;3095:53;3165:18;;16918:56:0;2842:347:1;16918:56:0;16986:19;;-1:-1:-1;;;;;16986:11:0;;;:19;;;;;16998:6;;16986:19;;;;16998:6;16986:11;:19;;;;;;;;;;;;;;;;;;;;;16845:168;;:::o;17354:173::-;17438:6;;-1:-1:-1;;;;;17438:6:0;17424:10;:20;17416:66;;;;-1:-1:-1;;;17416:66:0;;3396:2:1;17416:66:0;;;3378:21:1;3435:2;3415:18;;;3408:30;3474:34;3454:18;;;3447:62;-1:-1:-1;;;3525:18:1;;;3518:31;3566:19;;17416:66:0;3194:397:1;17416:66:0;17494:9;:25;;-1:-1:-1;;;;;;17494:25:0;-1:-1:-1;;;;;17494:25:0;;;;;;;;;;17354:173::o;16554:128::-;16599:13;16660:14;;16647:11;;16631:15;:27;;;;:::i;:::-;16630:44;;;;:::i;18792:218::-;18855:6;;-1:-1:-1;;;;;18855:6:0;18841:10;:20;18833:62;;;;-1:-1:-1;;;18833:62:0;;4282:2:1;18833:62:0;;;4264:21:1;4321:2;4301:18;;;4294:30;4360:31;4340:18;;;4333:59;4409:18;;18833:62:0;4080:353:1;18833:62:0;18923:9;;:34;;-1:-1:-1;;;18923:34:0;;18951:4;18923:34;;;2188:51:1;18907:15:0;;-1:-1:-1;;;;;18923:9:0;;:19;;2161:18:1;;18923:34:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;18968:9;;;18987:6;18968:34;;-1:-1:-1;;;18968:34:0;;-1:-1:-1;;;;;18987:6:0;;;18968:34;;;4612:51:1;4679:18;;;4672:34;;;18907:50:0;;-1:-1:-1;18968:9:0;;:18;;4585::1;;18968:34:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;18822:188;18792:218::o;17180:166::-;17261:6;;-1:-1:-1;;;;;17261:6:0;17247:10;:20;17239:66;;;;-1:-1:-1;;;17239:66:0;;5201:2:1;17239:66:0;;;5183:21:1;5240:2;5220:18;;;5213:30;5279:34;5259:18;;;5252:62;-1:-1:-1;;;5330:18:1;;;5323:31;5371:19;;17239:66:0;4999:397:1;17239:66:0;17317:9;:21;;-1:-1:-1;;;;;;17317:21:0;-1:-1:-1;;;;;17317:21:0;;;;;;;;;;17180:166::o;17802:195::-;17852:9;;:55;;-1:-1:-1;;;17852:55:0;;17875:10;17852:55;;;5641:34:1;17894:4:0;5691:18:1;;;5684:43;5743:18;;;5736:34;;;-1:-1:-1;;;;;17852:9:0;;;;:22;;5576:18:1;;17852:55:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;17923:26:0;;17942:6;;17931:10;;17923:26;;;;;17970:10;17960:21;;;;:9;:21;;;;;:29;;17983:6;;17960:21;:29;;17983:6;;17960:29;:::i;:::-;;;;-1:-1:-1;;;17802:195:0:o;16391:155::-;16454:6;;-1:-1:-1;;;;;16454:6:0;16440:10;:20;16432:67;;;;-1:-1:-1;;;16432:67:0;;;;;;;:::i;:::-;16523:15;16511:11;:27;16391:155::o;16690:143::-;16760:6;;-1:-1:-1;;;;;16760:6:0;16746:10;:20;16738:61;;;;-1:-1:-1;;;16738:61:0;;6116:2:1;16738:61:0;;;6098:21:1;6155:2;6135:18;;;6128:30;6194;6174:18;;;6167:58;6242:18;;16738:61:0;5914:352:1;16738:61:0;16811:7;:14;16690:143::o;18009:775::-;18094:6;;-1:-1:-1;;;;;18094:6:0;18080:10;:20;;:46;;-1:-1:-1;18117:9:0;;-1:-1:-1;;;;;18117:9:0;18104:10;:22;18080:46;18072:100;;;;-1:-1:-1;;;18072:100:0;;6473:2:1;18072:100:0;;;6455:21:1;6512:2;6492:18;;;6485:30;6551:34;6531:18;;;6524:62;-1:-1:-1;;;6602:18:1;;;6595:39;6651:19;;18072:100:0;6271:405:1;18072:100:0;18186:21;18238:14;;18225:11;;18209:15;:27;;;;:::i;:::-;18208:44;;;;:::i;:::-;18330:7;;-1:-1:-1;;;;;18302:13:0;;18263:23;18302:13;;;:9;:13;;;;;;18186:66;;-1:-1:-1;18263:23:0;18339:3;;18330:7;18302:27;;18186:66;;18302:27;:::i;:::-;:35;;;;:::i;:::-;18301:41;;;;:::i;:::-;-1:-1:-1;;;;;18287:13:0;;;;;;:9;:13;;;;;;:55;;;;:::i;:::-;18263:79;;18371:15;18363:6;:23;;18355:88;;;;-1:-1:-1;;;18355:88:0;;7056:2:1;18355:88:0;;;7038:21:1;7095:2;7075:18;;;7068:30;7134:34;7114:18;;;7107:62;-1:-1:-1;;;7185:18:1;;;7178:51;7246:19;;18355:88:0;6854:417:1;18355:88:0;18474:9;;:34;;-1:-1:-1;;;18474:34:0;;18502:4;18474:34;;;2188:51:1;18456:15:0;;-1:-1:-1;;;;;18474:9:0;;:19;;2161:18:1;;18474:34:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;18456:52;;18537:7;18527:6;:17;;18519:48;;;;-1:-1:-1;;;18519:48:0;;7478:2:1;18519:48:0;;;7460:21:1;7517:2;7497:18;;;7490:30;-1:-1:-1;;;7536:18:1;;;7529:48;7594:18;;18519:48:0;7276:342:1;18519:48:0;-1:-1:-1;;;;;18590:13:0;;;;;;:9;:13;;;;;;18583:20;;18580:118;;;-1:-1:-1;;;;;18619:13:0;;18633:1;18619:13;;;:9;:13;;;;;:15;18580:118;;;-1:-1:-1;;;;;18665:13:0;;;;;;:9;:13;;;;;:21;;18680:6;;18665:13;:21;;18680:6;;18665:21;:::i;:::-;;;;-1:-1:-1;;18580:118:0;18710:9;;:30;;-1:-1:-1;;;18710:30:0;;-1:-1:-1;;;;;4630:32:1;;;18710:30:0;;;4612:51:1;4679:18;;;4672:34;;;18710:9:0;;;;:18;;4585::1;;18710:30:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;18756:18:0;;18767:6;;-1:-1:-1;;;;;18756:18:0;;;;;;;;18061:723;;;18009:775;;:::o;14:131:1:-;-1:-1:-1;;;;;89:31:1;;79:42;;69:70;;135:1;132;125:12;69:70;14:131;:::o;150:247::-;209:6;262:2;250:9;241:7;237:23;233:32;230:52;;;278:1;275;268:12;230:52;317:9;304:23;336:31;361:5;336:31;:::i;:::-;386:5;150:247;-1:-1:-1;;;150:247:1:o;584:180::-;643:6;696:2;684:9;675:7;671:23;667:32;664:52;;;712:1;709;702:12;664:52;-1:-1:-1;735:23:1;;584:180;-1:-1:-1;584:180:1:o;769:323::-;845:6;853;906:2;894:9;885:7;881:23;877:32;874:52;;;922:1;919;912:12;874:52;961:9;948:23;980:31;1005:5;980:31;:::i;:::-;1030:5;1082:2;1067:18;;;;1054:32;;-1:-1:-1;;;769:323:1:o;2250:184::-;2320:6;2373:2;2361:9;2352:7;2348:23;2344:32;2341:52;;;2389:1;2386;2379:12;2341:52;-1:-1:-1;2412:16:1;;2250:184;-1:-1:-1;2250:184:1:o;2439:398::-;2641:2;2623:21;;;2680:2;2660:18;;;2653:30;2719:34;2714:2;2699:18;;2692:62;-1:-1:-1;;;2785:2:1;2770:18;;2763:32;2827:3;2812:19;;2439:398::o;3596:127::-;3657:10;3652:3;3648:20;3645:1;3638:31;3688:4;3685:1;3678:15;3712:4;3709:1;3702:15;3728:125;3768:4;3796:1;3793;3790:8;3787:34;;;3801:18;;:::i;:::-;-1:-1:-1;3838:9:1;;3728:125::o;3858:217::-;3898:1;3924;3914:132;;3968:10;3963:3;3959:20;3956:1;3949:31;4003:4;4000:1;3993:15;4031:4;4028:1;4021:15;3914:132;-1:-1:-1;4060:9:1;;3858:217::o;4717:277::-;4784:6;4837:2;4825:9;4816:7;4812:23;4808:32;4805:52;;;4853:1;4850;4843:12;4805:52;4885:9;4879:16;4938:5;4931:13;4924:21;4917:5;4914:32;4904:60;;4960:1;4957;4950:12;5781:128;5821:3;5852:1;5848:6;5845:1;5842:13;5839:39;;;5858:18;;:::i;:::-;-1:-1:-1;5894:9:1;;5781:128::o;6681:168::-;6721:7;6787:1;6783;6779:6;6775:14;6772:1;6769:21;6764:1;6757:9;6750:17;6746:45;6743:71;;;6794:18;;:::i;:::-;-1:-1:-1;6834:9:1;;6681:168::o
Swarm Source
ipfs://bbc3e146319bb8fd8b0344fba84f3fa5c6acbcce7c09575ce5058be6b214d877
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.