More Info
Private Name Tags
ContractCreator
Latest 21 from a total of 21 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Dispatch | 15101683 | 752 days ago | IN | 0 ETH | 0.00196091 | ||||
Dispatch | 14300516 | 881 days ago | IN | 0 ETH | 0.00215723 | ||||
Dispatch | 14282399 | 883 days ago | IN | 0 ETH | 0.0047448 | ||||
Dispatch | 13715159 | 971 days ago | IN | 0 ETH | 0.00824343 | ||||
Dispatch | 13240001 | 1046 days ago | IN | 0 ETH | 0.00157821 | ||||
Dispatch | 13239992 | 1046 days ago | IN | 0 ETH | 0.00536719 | ||||
Dispatch | 13112187 | 1066 days ago | IN | 0 ETH | 0.00648683 | ||||
Dispatch | 13055244 | 1075 days ago | IN | 0 ETH | 0.00257424 | ||||
Dispatch | 12950966 | 1091 days ago | IN | 0 ETH | 0.00272562 | ||||
Dispatch | 12842339 | 1108 days ago | IN | 0 ETH | 0.00234967 | ||||
Dispatch | 12677152 | 1134 days ago | IN | 0 ETH | 0.00323853 | ||||
Dispatch | 12560431 | 1152 days ago | IN | 0 ETH | 0.00206771 | ||||
Dispatch | 12451640 | 1169 days ago | IN | 0 ETH | 0.00453633 | ||||
Dispatch | 12442367 | 1170 days ago | IN | 0 ETH | 0.00498131 | ||||
Dispatch | 12373642 | 1181 days ago | IN | 0 ETH | 0.00291359 | ||||
Dispatch | 12309549 | 1191 days ago | IN | 0 ETH | 0.00451137 | ||||
Set Dispatcher | 12309470 | 1191 days ago | IN | 0 ETH | 0.00124149 | ||||
Dispatch | 12302414 | 1192 days ago | IN | 0 ETH | 0.00675337 | ||||
Set Dispatcher | 12302407 | 1192 days ago | IN | 0 ETH | 0.00175065 | ||||
Set Dispatcher | 12302344 | 1192 days ago | IN | 0 ETH | 0.00278203 | ||||
0x60806040 | 12230790 | 1203 days ago | IN | 0 ETH | 0.0906432 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
DAOTreasury
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-04-13 */ pragma solidity ^0.6.0; // SPDX-License-Identifier: MIT /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(_owner == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @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) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @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 sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @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) { // 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 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts 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) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts 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) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts 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 mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message 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, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } /** * @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 * ==== */ function isContract(address account) internal view returns (bool) { // This method relies in extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (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"); return _functionCallWithValue(target, data, value, errorMessage); } function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) { require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: weiValue }(data); 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 // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } /** * @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 SafeMath for uint256; 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' // solhint-disable-next-line max-line-length 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).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _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 // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } interface IDispatcher { function dispatch(uint256 amount) external; } contract DAOTreasury is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; IERC20 public token; IDispatcher public dispatcher; uint256 public unit = 1000 * 1e18; event Dispatched(address indexed to, uint256 amount); constructor(address _token) public { token = IERC20(_token); } function setDispatcher(address _dispatcher) public onlyOwner { dispatcher = IDispatcher(_dispatcher); } function setUnit(uint256 _unit) public onlyOwner { require(_unit != 0, "!can't be 0"); unit = _unit; } function dispatch() public { require(address(dispatcher) != address(0), "!zero address"); uint256 balance = token.balanceOf(address(this)); if (balance < unit) { return; } uint256 dispatchAmount = balance.div(unit).mul(unit); token.safeTransfer(address(dispatcher), dispatchAmount); dispatcher.dispatch(dispatchAmount); emit Dispatched(address(dispatcher), dispatchAmount); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Dispatched","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"dispatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"dispatcher","outputs":[{"internalType":"contract IDispatcher","name":"","type":"address"}],"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":"address","name":"_dispatcher","type":"address"}],"name":"setDispatcher","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_unit","type":"uint256"}],"name":"setUnit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6080604052683635c9adc5dea0000060035534801561001d57600080fd5b50604051610b73380380610b738339818101604052602081101561004057600080fd5b5051600061004c6100bb565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b0319166001600160a01b03929092169190911790556100bf565b3390565b610aa5806100ce6000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c8063ba22bd7611610066578063ba22bd76146100fd578063cb7e905714610123578063e9c4a3ac1461012b578063f2fde38b14610133578063fc0c546a1461015957610093565b8063715018a6146100985780638da5cb5b146100a2578063907af6c0146100c6578063aae07890146100e0575b600080fd5b6100a0610161565b005b6100aa610203565b604080516001600160a01b039092168252519081900360200190f35b6100ce610212565b60408051918252519081900360200190f35b6100a0600480360360208110156100f657600080fd5b5035610218565b6100a06004803603602081101561011357600080fd5b50356001600160a01b03166102b5565b6100aa61032f565b6100a061033e565b6100a06004803603602081101561014957600080fd5b50356001600160a01b03166104fb565b6100aa6105f3565b610169610602565b6000546001600160a01b039081169116146101b9576040805162461bcd60e51b81526020600482018190526024820152600080516020610a26833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b60035481565b610220610602565b6000546001600160a01b03908116911614610270576040805162461bcd60e51b81526020600482018190526024820152600080516020610a26833981519152604482015290519081900360640190fd5b806102b0576040805162461bcd60e51b815260206004820152600b60248201526a02163616e277420626520360ac1b604482015290519081900360640190fd5b600355565b6102bd610602565b6000546001600160a01b0390811691161461030d576040805162461bcd60e51b81526020600482018190526024820152600080516020610a26833981519152604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6002546001600160a01b031681565b6002546001600160a01b031661038b576040805162461bcd60e51b815260206004820152600d60248201526c217a65726f206164647265737360981b604482015290519081900360640190fd5b600154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156103d657600080fd5b505afa1580156103ea573d6000803e3d6000fd5b505050506040513d602081101561040057600080fd5b505160035490915081101561041557506104f9565b60035460009061042f906104298482610606565b90610651565b60025460015491925061044f916001600160a01b039081169116836106aa565b6002546040805163789c4dd760e11b81526004810184905290516001600160a01b039092169163f1389bae9160248082019260009290919082900301818387803b15801561049c57600080fd5b505af11580156104b0573d6000803e3d6000fd5b50506002546040805185815290516001600160a01b0390921693507f6979598ca4d86fb9b9ff448d56594c8a75674c28a0fd4d913b7e4d342f0cd6a0925081900360200190a250505b565b610503610602565b6000546001600160a01b03908116911614610553576040805162461bcd60e51b81526020600482018190526024820152600080516020610a26833981519152604482015290519081900360640190fd5b6001600160a01b0381166105985760405162461bcd60e51b81526004018080602001828103825260268152602001806109df6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031681565b3390565b600061064883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610701565b90505b92915050565b6000826106605750600061064b565b8282028284828161066d57fe5b04146106485760405162461bcd60e51b8152600401808060200182810382526021815260200180610a056021913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526106fc9084906107a3565b505050565b6000818361078d5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561075257818101518382015260200161073a565b50505050905090810190601f16801561077f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161079957fe5b0495945050505050565b60606107f8826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166108549092919063ffffffff16565b8051909150156106fc5780806020019051602081101561081757600080fd5b50516106fc5760405162461bcd60e51b815260040180806020018281038252602a815260200180610a46602a913960400191505060405180910390fd5b6060610863848460008561086b565b949350505050565b6060610876856109d8565b6108c7576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106109065780518252601f1990920191602091820191016108e7565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610968576040519150601f19603f3d011682016040523d82523d6000602084013e61096d565b606091505b509150915081156109815791506108639050565b8051156109915780518082602001fd5b60405162461bcd60e51b815260206004820181815286516024840152865187939192839260440191908501908083836000831561075257818101518382015260200161073a565b3b15159056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a264697066735822122011072975cf9bb89405d4bb67c48995c54bf146a86c0e0661b038a179d904fc5b64736f6c634300060c0033000000000000000000000000a56ed2632e443db5f93e73c89df399a081408cc4
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100935760003560e01c8063ba22bd7611610066578063ba22bd76146100fd578063cb7e905714610123578063e9c4a3ac1461012b578063f2fde38b14610133578063fc0c546a1461015957610093565b8063715018a6146100985780638da5cb5b146100a2578063907af6c0146100c6578063aae07890146100e0575b600080fd5b6100a0610161565b005b6100aa610203565b604080516001600160a01b039092168252519081900360200190f35b6100ce610212565b60408051918252519081900360200190f35b6100a0600480360360208110156100f657600080fd5b5035610218565b6100a06004803603602081101561011357600080fd5b50356001600160a01b03166102b5565b6100aa61032f565b6100a061033e565b6100a06004803603602081101561014957600080fd5b50356001600160a01b03166104fb565b6100aa6105f3565b610169610602565b6000546001600160a01b039081169116146101b9576040805162461bcd60e51b81526020600482018190526024820152600080516020610a26833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b60035481565b610220610602565b6000546001600160a01b03908116911614610270576040805162461bcd60e51b81526020600482018190526024820152600080516020610a26833981519152604482015290519081900360640190fd5b806102b0576040805162461bcd60e51b815260206004820152600b60248201526a02163616e277420626520360ac1b604482015290519081900360640190fd5b600355565b6102bd610602565b6000546001600160a01b0390811691161461030d576040805162461bcd60e51b81526020600482018190526024820152600080516020610a26833981519152604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6002546001600160a01b031681565b6002546001600160a01b031661038b576040805162461bcd60e51b815260206004820152600d60248201526c217a65726f206164647265737360981b604482015290519081900360640190fd5b600154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156103d657600080fd5b505afa1580156103ea573d6000803e3d6000fd5b505050506040513d602081101561040057600080fd5b505160035490915081101561041557506104f9565b60035460009061042f906104298482610606565b90610651565b60025460015491925061044f916001600160a01b039081169116836106aa565b6002546040805163789c4dd760e11b81526004810184905290516001600160a01b039092169163f1389bae9160248082019260009290919082900301818387803b15801561049c57600080fd5b505af11580156104b0573d6000803e3d6000fd5b50506002546040805185815290516001600160a01b0390921693507f6979598ca4d86fb9b9ff448d56594c8a75674c28a0fd4d913b7e4d342f0cd6a0925081900360200190a250505b565b610503610602565b6000546001600160a01b03908116911614610553576040805162461bcd60e51b81526020600482018190526024820152600080516020610a26833981519152604482015290519081900360640190fd5b6001600160a01b0381166105985760405162461bcd60e51b81526004018080602001828103825260268152602001806109df6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031681565b3390565b600061064883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610701565b90505b92915050565b6000826106605750600061064b565b8282028284828161066d57fe5b04146106485760405162461bcd60e51b8152600401808060200182810382526021815260200180610a056021913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526106fc9084906107a3565b505050565b6000818361078d5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561075257818101518382015260200161073a565b50505050905090810190601f16801561077f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161079957fe5b0495945050505050565b60606107f8826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166108549092919063ffffffff16565b8051909150156106fc5780806020019051602081101561081757600080fd5b50516106fc5760405162461bcd60e51b815260040180806020018281038252602a815260200180610a46602a913960400191505060405180910390fd5b6060610863848460008561086b565b949350505050565b6060610876856109d8565b6108c7576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106109065780518252601f1990920191602091820191016108e7565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610968576040519150601f19603f3d011682016040523d82523d6000602084013e61096d565b606091505b509150915081156109815791506108639050565b8051156109915780518082602001fd5b60405162461bcd60e51b815260206004820181815286516024840152865187939192839260440191908501908083836000831561075257818101518382015260200161073a565b3b15159056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a264697066735822122011072975cf9bb89405d4bb67c48995c54bf146a86c0e0661b038a179d904fc5b64736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a56ed2632e443db5f93e73c89df399a081408cc4
-----Decoded View---------------
Arg [0] : _token (address): 0xA56Ed2632E443Db5f93e73C89df399a081408Cc4
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000a56ed2632e443db5f93e73c89df399a081408cc4
Deployed Bytecode Sourcemap
20865:1088:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2611:148;;;:::i;:::-;;1969:79;;;:::i;:::-;;;;-1:-1:-1;;;;;1969:79:0;;;;;;;;;;;;;;21034:33;;;:::i;:::-;;;;;;;;;;;;;;;;21346:125;;;;;;;;;;;;;;;;-1:-1:-1;21346:125:0;;:::i;21221:117::-;;;;;;;;;;;;;;;;-1:-1:-1;21221:117:0;-1:-1:-1;;;;;21221:117:0;;:::i;20998:29::-;;;:::i;21479:471::-;;;:::i;2914:244::-;;;;;;;;;;;;;;;;-1:-1:-1;2914:244:0;-1:-1:-1;;;;;2914:244:0;;:::i;20972:19::-;;;:::i;2611:148::-;2191:12;:10;:12::i;:::-;2181:6;;-1:-1:-1;;;;;2181:6:0;;;:22;;;2173:67;;;;;-1:-1:-1;;;2173:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2173:67:0;;;;;;;;;;;;;;;2718:1:::1;2702:6:::0;;2681:40:::1;::::0;-1:-1:-1;;;;;2702:6:0;;::::1;::::0;2681:40:::1;::::0;2718:1;;2681:40:::1;2749:1;2732:19:::0;;-1:-1:-1;;;;;;2732:19:0::1;::::0;;2611:148::o;1969:79::-;2007:7;2034:6;-1:-1:-1;;;;;2034:6:0;1969:79;:::o;21034:33::-;;;;:::o;21346:125::-;2191:12;:10;:12::i;:::-;2181:6;;-1:-1:-1;;;;;2181:6:0;;;:22;;;2173:67;;;;;-1:-1:-1;;;2173:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2173:67:0;;;;;;;;;;;;;;;21414:10;21406:34:::1;;;::::0;;-1:-1:-1;;;21406:34:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;21406:34:0;;;;;;;;;;;;;::::1;;21451:4;:12:::0;21346:125::o;21221:117::-;2191:12;:10;:12::i;:::-;2181:6;;-1:-1:-1;;;;;2181:6:0;;;:22;;;2173:67;;;;;-1:-1:-1;;;2173:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2173:67:0;;;;;;;;;;;;;;;21293:10:::1;:37:::0;;-1:-1:-1;;;;;;21293:37:0::1;-1:-1:-1::0;;;;;21293:37:0;;;::::1;::::0;;;::::1;::::0;;21221:117::o;20998:29::-;;;-1:-1:-1;;;;;20998:29:0;;:::o;21479:471::-;21533:10;;-1:-1:-1;;;;;21533:10:0;21517:59;;;;;-1:-1:-1;;;21517:59:0;;;;;;;;;;;;-1:-1:-1;;;21517:59:0;;;;;;;;;;;;;;;21607:5;;:30;;;-1:-1:-1;;;21607:30:0;;21631:4;21607:30;;;;;;21589:15;;-1:-1:-1;;;;;21607:5:0;;:15;;:30;;;;;;;;;;;;;;:5;:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;21607:30:0;21662:4;;21607:30;;-1:-1:-1;21652:14:0;;21648:53;;;21683:7;;;21648:53;21760:4;;21713:22;;21738:27;;:17;:7;21760:4;21738:11;:17::i;:::-;:21;;:27::i;:::-;21803:10;;;21776:5;21713:52;;-1:-1:-1;21776:55:0;;-1:-1:-1;;;;;21776:5:0;;;;21803:10;21713:52;21776:18;:55::i;:::-;21842:10;;:35;;;-1:-1:-1;;;21842:35:0;;;;;;;;;;-1:-1:-1;;;;;21842:10:0;;;;:19;;:35;;;;;:10;;:35;;;;;;;;:10;;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;21914:10:0;;21895:47;;;;;;;;-1:-1:-1;;;;;21914:10:0;;;;-1:-1:-1;21895:47:0;;-1:-1:-1;21895:47:0;;;;;;;21479:471;;;:::o;2914:244::-;2191:12;:10;:12::i;:::-;2181:6;;-1:-1:-1;;;;;2181:6:0;;;:22;;;2173:67;;;;;-1:-1:-1;;;2173:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2173:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;3003:22:0;::::1;2995:73;;;;-1:-1:-1::0;;;2995:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3105:6;::::0;;3084:38:::1;::::0;-1:-1:-1;;;;;3084:38:0;;::::1;::::0;3105:6;::::1;::::0;3084:38:::1;::::0;::::1;3133:6;:17:::0;;-1:-1:-1;;;;;;3133:17:0::1;-1:-1:-1::0;;;;;3133:17:0;;;::::1;::::0;;;::::1;::::0;;2914:244::o;20972:19::-;;;-1:-1:-1;;;;;20972:19:0;;:::o;605:106::-;693:10;605:106;:::o;9023:132::-;9081:7;9108:39;9112:1;9115;9108:39;;;;;;;;;;;;;;;;;:3;:39::i;:::-;9101:46;;9023:132;;;;;:::o;8076:471::-;8134:7;8379:6;8375:47;;-1:-1:-1;8409:1:0;8402:8;;8375:47;8446:5;;;8450:1;8446;:5;:1;8470:5;;;;;:10;8462:56;;;;-1:-1:-1;;;8462:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17709:177;17819:58;;;-1:-1:-1;;;;;17819:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;17819:58:0;-1:-1:-1;;;17819:58:0;;;17792:86;;17812:5;;17792:19;:86::i;:::-;17709:177;;;:::o;9651:278::-;9737:7;9772:12;9765:5;9757:28;;;;-1:-1:-1;;;9757:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9796:9;9812:1;9808;:5;;;;;;;9651:278;-1:-1:-1;;;;;9651:278:0:o;20014:761::-;20438:23;20464:69;20492:4;20464:69;;;;;;;;;;;;;;;;;20472:5;-1:-1:-1;;;;;20464:27:0;;;:69;;;;;:::i;:::-;20548:17;;20438:95;;-1:-1:-1;20548:21:0;20544:224;;20690:10;20679:30;;;;;;;;;;;;;;;-1:-1:-1;20679:30:0;20671:85;;;;-1:-1:-1;;;20671:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14785:196;14888:12;14920:53;14943:6;14951:4;14957:1;14960:12;14920:22;:53::i;:::-;14913:60;14785:196;-1:-1:-1;;;;14785:196:0:o;16162:979::-;16292:12;16325:18;16336:6;16325:10;:18::i;:::-;16317:60;;;;;-1:-1:-1;;;16317:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;16451:12;16465:23;16492:6;-1:-1:-1;;;;;16492:11:0;16512:8;16523:4;16492:36;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;16492:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16450:78;;;;16543:7;16539:595;;;16574:10;-1:-1:-1;16567:17:0;;-1:-1:-1;16567:17:0;16539:595;16688:17;;:21;16684:439;;16951:10;16945:17;17012:15;16999:10;16995:2;16991:19;16984:44;16899:148;17087:20;;-1:-1:-1;;;17087:20:0;;;;;;;;;;;;;;;;;17094:12;;17087:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11865:422;12232:20;12271:8;;;11865:422::o
Swarm Source
ipfs://11072975cf9bb89405d4bb67c48995c54bf146a86c0e0661b038a179d904fc5b
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.