Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer Ownersh... | 12008870 | 1412 days ago | IN | 0 ETH | 0.00400621 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
DAOVault
Compiler Version
v0.7.6+commit.7338295f
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-03-10 */ // File: @openzeppelin/contracts/GSN/Context.sol // SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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 GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // File: @openzeppelin/contracts/access/Ownable.sol pragma solidity >=0.6.0 <0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ 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 () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(_owner == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } // File: @openzeppelin/contracts/token/ERC20/IERC20.sol pragma solidity >=0.6.0 <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 `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File: @openzeppelin/contracts/math/SafeMath.sol pragma solidity >=0.6.0 <0.8.0; /** * @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; } } // File: @openzeppelin/contracts/utils/Address.sol pragma solidity >=0.6.2 <0.8.0; /** * @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 on 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"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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 // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: @openzeppelin/contracts/token/ERC20/SafeERC20.sol pragma solidity >=0.6.0 <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 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"); } } } // File: contracts/interfaces/IWTON.sol pragma solidity ^0.7.6; interface IWTON { function balanceOf(address account) external view returns (uint256); function onApprove(address owner, address spender, uint256 tonAmount, bytes calldata data) external returns (bool); function burnFrom(address account, uint256 amount) external; function swapToTON(uint256 wtonAmount) external returns (bool); function swapFromTON(uint256 tonAmount) external returns (bool); function swapToTONAndTransfer(address to, uint256 wtonAmount) external returns (bool); function swapFromTONAndTransfer(address to, uint256 tonAmount) external returns (bool); function renounceTonMinter() external; } // File: contracts/interfaces/IDAOVault.sol pragma solidity ^0.7.6; interface IDAOVault { function setTON(address _ton) external; function setWTON(address _wton) external; function approveTON(address _to, uint256 _amount) external; function approveWTON(address _to, uint256 _amount) external; function approveERC20(address _token, address _to, uint256 _amount) external; function claimTON(address _to, uint256 _amount) external; function claimWTON(address _to, uint256 _amount) external; function claimERC20(address _token, address _to, uint256 _amount) external; } // File: contracts/dao/DAOVault.sol pragma solidity ^0.7.6; contract DAOVault is Ownable, IDAOVault { using SafeMath for uint256; using SafeERC20 for IERC20; IERC20 public ton; IERC20 public wton; ////////////////////////////// // Events ////////////////////////////// event Claimed(address indexed token, address indexed to, uint256 indexed amount); event Approved(address indexed token, address indexed to, uint256 indexed amount); constructor(address _ton, address _wton) { require(_ton != address(0) || _wton != address(0), "DAOVault: input is zero" ); ton = IERC20(_ton); wton = IERC20(_wton); } /// @notice Set TON address /// @param _ton TON address function setTON(address _ton) external override onlyOwner { require(_ton != address(0), "DAOVault: input is zero"); ton = IERC20(_ton); } /// @notice Set WTON address /// @param _wton WTON address function setWTON(address _wton) external override onlyOwner { require(_wton != address(0), "DAOVault: input is zero"); wton = IERC20(_wton); } /// @notice Approves TON to specific address /// @param _to Address to be approved /// @param _amount Approving TON amount function approveTON(address _to, uint256 _amount) external override onlyOwner { ton.safeApprove(_to, _amount); emit Approved(address(ton), _to, _amount); } /// @notice Approves WTON to specific address /// @param _to Address to be approved /// @param _amount Approving WTON amount function approveWTON(address _to, uint256 _amount) external override onlyOwner { wton.safeApprove(_to, _amount); emit Approved(address(wton), _to, _amount); } /// @notice Approves ERC20 token to specific address /// @param _token Token address /// @param _to Address to be approved /// @param _amount Approving ERC20 token amount function approveERC20(address _token, address _to, uint256 _amount) external override onlyOwner { IERC20(_token).safeApprove(_to, _amount); emit Approved(address(_token), _to, _amount); } /// @notice Transfers TON to specific address /// @param _to Address to receive /// @param _amount Transfer TON amount function claimTON(address _to, uint256 _amount) external override onlyOwner { uint256 tonBalance = ton.balanceOf(address(this)); uint256 wtonBalance = wton.balanceOf(address(this)); require( tonBalance.add(_toWAD(wtonBalance)) >= _amount, "DAOVault: not enough balance" ); uint256 tonAmount = _amount; if (tonBalance < _amount) { tonAmount = tonBalance; uint256 wtonAmount = _toRAY(_amount.sub(tonBalance)); require( IWTON(address(wton)).swapToTONAndTransfer(_to, wtonAmount), "DAOVault: failed to swap and transfer wton" ); } ton.safeTransfer(_to, tonAmount); emit Claimed(address(ton), _to, _amount); } /// @notice Transfers WTON to specific address /// @param _to Address to receive /// @param _amount Transfer WTON amount function claimWTON(address _to, uint256 _amount) external override onlyOwner { uint256 tonBalance = ton.balanceOf(address(this)); uint256 wtonBalance = wton.balanceOf(address(this)); require( _toRAY(tonBalance).add(wtonBalance) >= _amount, "DAOVault: not enough balance" ); uint256 wtonAmount = _amount; if (wtonBalance < _amount) { uint256 tonAmount = _toWAD(_amount.sub(wtonBalance)); wtonAmount = wtonBalance; ton.safeApprove(address(wton), tonAmount); require( IWTON(address(wton)).swapFromTONAndTransfer(_to, tonAmount), "DAOVault: failed to swap and transfer ton" ); } wton.safeTransfer(_to, wtonAmount); emit Claimed(address(wton), _to, _amount); } /// @notice Transfers ERC20 token to specific address /// @param _to Address to receive /// @param _amount Transfer ERC20 token amount function claimERC20(address _token, address _to, uint256 _amount) external override onlyOwner { require(IERC20(_token).balanceOf(address(this)) >= _amount, "DAOVault: not enough balance"); IERC20(_token).safeTransfer(_to, _amount); emit Claimed(address(wton), _to, _amount); } function _toRAY(uint256 v) internal pure returns (uint256) { return v * 10 ** 9; } function _toWAD(uint256 v) internal pure returns (uint256) { return v / 10 ** 9; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_ton","type":"address"},{"internalType":"address","name":"_wton","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Approved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"approveERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"approveTON","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"approveWTON","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"claimERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"claimTON","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"claimWTON","outputs":[],"stateMutability":"nonpayable","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":"_ton","type":"address"}],"name":"setTON","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_wton","type":"address"}],"name":"setWTON","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"ton","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":"wton","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b506040516117703803806117708339818101604052604081101561003357600080fd5b5080516020909101516000610046610131565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600160a01b0382161515806100af57506001600160a01b03811615155b610100576040805162461bcd60e51b815260206004820152601760248201527f44414f5661756c743a20696e707574206973207a65726f000000000000000000604482015290519081900360640190fd5b600180546001600160a01b039384166001600160a01b03199182161790915560028054929093169116179055610135565b3390565b61162c806101446000396000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c80638da5cb5b1161008c578063ef0d559411610066578063ef0d5594146101ec578063f2fde38b14610218578063f52bba701461023e578063f848091a1461026a576100cf565b80638da5cb5b146101a6578063a8e5e4aa146101ae578063cc48b947146101e4576100cf565b8063230da4f2146100d457806352cceeb6146100fc57806354e68c9a14610128578063662d12b114610154578063715018a61461017a5780638d62d94914610182575b600080fd5b6100fa600480360360208110156100ea57600080fd5b50356001600160a01b03166102a0565b005b6100fa6004803603604081101561011257600080fd5b506001600160a01b03813516906020013561036f565b6100fa6004803603604081101561013e57600080fd5b506001600160a01b03813516906020013561041f565b6100fa6004803603602081101561016a57600080fd5b50356001600160a01b03166104cf565b6100fa61059e565b61018a610640565b604080516001600160a01b039092168252519081900360200190f35b61018a61064f565b6100fa600480360360608110156101c457600080fd5b506001600160a01b0381358116916020810135909116906040013561065e565b61018a610710565b6100fa6004803603604081101561020257600080fd5b506001600160a01b03813516906020013561071f565b6100fa6004803603602081101561022e57600080fd5b50356001600160a01b0316610a0f565b6100fa6004803603604081101561025457600080fd5b506001600160a01b038135169060200135610b07565b6100fa6004803603606081101561028057600080fd5b506001600160a01b03813581169160208101359091169060400135610e16565b6102a8610f91565b6000546001600160a01b039081169116146102f8576040805162461bcd60e51b81526020600482018190526024820152600080516020611524833981519152604482015290519081900360640190fd5b6001600160a01b03811661034d576040805162461bcd60e51b815260206004820152601760248201527644414f5661756c743a20696e707574206973207a65726f60481b604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b610377610f91565b6000546001600160a01b039081169116146103c7576040805162461bcd60e51b81526020600482018190526024820152600080516020611524833981519152604482015290519081900360640190fd5b6001546103de906001600160a01b03168383610f95565b60015460405182916001600160a01b03808616929116907f80da462ebfbe41cfc9bc015e7a9a3c7a2a73dbccede72d8ceb583606c27f8f9090600090a45050565b610427610f91565b6000546001600160a01b03908116911614610477576040805162461bcd60e51b81526020600482018190526024820152600080516020611524833981519152604482015290519081900360640190fd5b60025461048e906001600160a01b03168383610f95565b60025460405182916001600160a01b03808616929116907f80da462ebfbe41cfc9bc015e7a9a3c7a2a73dbccede72d8ceb583606c27f8f9090600090a45050565b6104d7610f91565b6000546001600160a01b03908116911614610527576040805162461bcd60e51b81526020600482018190526024820152600080516020611524833981519152604482015290519081900360640190fd5b6001600160a01b03811661057c576040805162461bcd60e51b815260206004820152601760248201527644414f5661756c743a20696e707574206973207a65726f60481b604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6105a6610f91565b6000546001600160a01b039081169116146105f6576040805162461bcd60e51b81526020600482018190526024820152600080516020611524833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6002546001600160a01b031681565b6000546001600160a01b031690565b610666610f91565b6000546001600160a01b039081169116146106b6576040805162461bcd60e51b81526020600482018190526024820152600080516020611524833981519152604482015290519081900360640190fd5b6106ca6001600160a01b0384168383610f95565b80826001600160a01b0316846001600160a01b03167f80da462ebfbe41cfc9bc015e7a9a3c7a2a73dbccede72d8ceb583606c27f8f9060405160405180910390a4505050565b6001546001600160a01b031681565b610727610f91565b6000546001600160a01b03908116911614610777576040805162461bcd60e51b81526020600482018190526024820152600080516020611524833981519152604482015290519081900360640190fd5b600154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156107c257600080fd5b505afa1580156107d6573d6000803e3d6000fd5b505050506040513d60208110156107ec57600080fd5b5051600254604080516370a0823160e01b815230600482015290519293506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561083f57600080fd5b505afa158015610853573d6000803e3d6000fd5b505050506040513d602081101561086957600080fd5b505190508261088161087a836110ad565b84906110b7565b10156108d4576040805162461bcd60e51b815260206004820152601c60248201527f44414f5661756c743a206e6f7420656e6f7567682062616c616e636500000000604482015290519081900360640190fd5b82808310156109b457508160006108f36108ee8684611118565b61115a565b6002546040805163e3b99e8560e01b81526001600160a01b038a8116600483015260248201859052915193945091169163e3b99e85916044808201926020929091908290030181600087803b15801561094b57600080fd5b505af115801561095f573d6000803e3d6000fd5b505050506040513d602081101561097557600080fd5b50516109b25760405162461bcd60e51b815260040180806020018281038252602a815260200180611544602a913960400191505060405180910390fd5b505b6001546109cb906001600160a01b03168683611163565b60015460405185916001600160a01b03808916929116907ff7a40077ff7a04c7e61f6f26fb13774259ddf1b6bce9ecf26a8276cdd399268390600090a45050505050565b610a17610f91565b6000546001600160a01b03908116911614610a67576040805162461bcd60e51b81526020600482018190526024820152600080516020611524833981519152604482015290519081900360640190fd5b6001600160a01b038116610aac5760405162461bcd60e51b81526004018080602001828103825260268152602001806114d86026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b610b0f610f91565b6000546001600160a01b03908116911614610b5f576040805162461bcd60e51b81526020600482018190526024820152600080516020611524833981519152604482015290519081900360640190fd5b600154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610baa57600080fd5b505afa158015610bbe573d6000803e3d6000fd5b505050506040513d6020811015610bd457600080fd5b5051600254604080516370a0823160e01b815230600482015290519293506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015610c2757600080fd5b505afa158015610c3b573d6000803e3d6000fd5b505050506040513d6020811015610c5157600080fd5b5051905082610c6982610c638561115a565b906110b7565b1015610cbc576040805162461bcd60e51b815260206004820152601c60248201527f44414f5661756c743a206e6f7420656e6f7567682062616c616e636500000000604482015290519081900360640190fd5b8280821015610dbb576000610cd9610cd48685611118565b6110ad565b600254600154859450919250610cfc916001600160a01b03908116911683610f95565b6002546040805163588420b760e01b81526001600160a01b038981166004830152602482018590529151919092169163588420b79160448083019260209291908290030181600087803b158015610d5257600080fd5b505af1158015610d66573d6000803e3d6000fd5b505050506040513d6020811015610d7c57600080fd5b5051610db95760405162461bcd60e51b81526004018080602001828103825260298152602001806115ce6029913960400191505060405180910390fd5b505b600254610dd2906001600160a01b03168683611163565b60025460405185916001600160a01b03808916929116907ff7a40077ff7a04c7e61f6f26fb13774259ddf1b6bce9ecf26a8276cdd399268390600090a45050505050565b610e1e610f91565b6000546001600160a01b03908116911614610e6e576040805162461bcd60e51b81526020600482018190526024820152600080516020611524833981519152604482015290519081900360640190fd5b80836001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610ebc57600080fd5b505afa158015610ed0573d6000803e3d6000fd5b505050506040513d6020811015610ee657600080fd5b50511015610f3b576040805162461bcd60e51b815260206004820152601c60248201527f44414f5661756c743a206e6f7420656e6f7567682062616c616e636500000000604482015290519081900360640190fd5b610f4f6001600160a01b0384168383611163565b60025460405182916001600160a01b03808616929116907ff7a40077ff7a04c7e61f6f26fb13774259ddf1b6bce9ecf26a8276cdd399268390600090a4505050565b3390565b80158061101b575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015610fed57600080fd5b505afa158015611001573d6000803e3d6000fd5b505050506040513d602081101561101757600080fd5b5051155b6110565760405162461bcd60e51b81526004018080602001828103825260368152602001806115986036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526110a89084906111b1565b505050565b633b9aca00900490565b600082820183811015611111576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b600061111183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611262565b633b9aca000290565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526110a89084905b6000611206826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166112f99092919063ffffffff16565b8051909150156110a85780806020019051602081101561122557600080fd5b50516110a85760405162461bcd60e51b815260040180806020018281038252602a81526020018061156e602a913960400191505060405180910390fd5b600081848411156112f15760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156112b657818101518382015260200161129e565b50505050905090810190601f1680156112e35780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60606113088484600085611310565b949350505050565b6060824710156113515760405162461bcd60e51b81526004018080602001828103825260268152602001806114fe6026913960400191505060405180910390fd5b61135a8561146b565b6113ab576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b602083106113e95780518252601f1990920191602091820191016113ca565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461144b576040519150601f19603f3d011682016040523d82523d6000602084013e611450565b606091505b5091509150611460828286611471565b979650505050505050565b3b151590565b60608315611480575081611111565b8251156114905782518084602001fd5b60405162461bcd60e51b81526020600482018181528451602484015284518593919283926044019190850190808383600083156112b657818101518382015260200161129e56fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657244414f5661756c743a206661696c656420746f207377617020616e64207472616e736665722077746f6e5361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e636544414f5661756c743a206661696c656420746f207377617020616e64207472616e7366657220746f6ea264697066735822122084c64a3307439756a4d04b881d9b9cab511ca23c5d36026a078b461ccfc6d97964736f6c634300070600330000000000000000000000002be5e8c109e2197d077d13a82daead6a9b3433c5000000000000000000000000c4a11aaf6ea915ed7ac194161d2fc9384f15bff2
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100cf5760003560e01c80638da5cb5b1161008c578063ef0d559411610066578063ef0d5594146101ec578063f2fde38b14610218578063f52bba701461023e578063f848091a1461026a576100cf565b80638da5cb5b146101a6578063a8e5e4aa146101ae578063cc48b947146101e4576100cf565b8063230da4f2146100d457806352cceeb6146100fc57806354e68c9a14610128578063662d12b114610154578063715018a61461017a5780638d62d94914610182575b600080fd5b6100fa600480360360208110156100ea57600080fd5b50356001600160a01b03166102a0565b005b6100fa6004803603604081101561011257600080fd5b506001600160a01b03813516906020013561036f565b6100fa6004803603604081101561013e57600080fd5b506001600160a01b03813516906020013561041f565b6100fa6004803603602081101561016a57600080fd5b50356001600160a01b03166104cf565b6100fa61059e565b61018a610640565b604080516001600160a01b039092168252519081900360200190f35b61018a61064f565b6100fa600480360360608110156101c457600080fd5b506001600160a01b0381358116916020810135909116906040013561065e565b61018a610710565b6100fa6004803603604081101561020257600080fd5b506001600160a01b03813516906020013561071f565b6100fa6004803603602081101561022e57600080fd5b50356001600160a01b0316610a0f565b6100fa6004803603604081101561025457600080fd5b506001600160a01b038135169060200135610b07565b6100fa6004803603606081101561028057600080fd5b506001600160a01b03813581169160208101359091169060400135610e16565b6102a8610f91565b6000546001600160a01b039081169116146102f8576040805162461bcd60e51b81526020600482018190526024820152600080516020611524833981519152604482015290519081900360640190fd5b6001600160a01b03811661034d576040805162461bcd60e51b815260206004820152601760248201527644414f5661756c743a20696e707574206973207a65726f60481b604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b610377610f91565b6000546001600160a01b039081169116146103c7576040805162461bcd60e51b81526020600482018190526024820152600080516020611524833981519152604482015290519081900360640190fd5b6001546103de906001600160a01b03168383610f95565b60015460405182916001600160a01b03808616929116907f80da462ebfbe41cfc9bc015e7a9a3c7a2a73dbccede72d8ceb583606c27f8f9090600090a45050565b610427610f91565b6000546001600160a01b03908116911614610477576040805162461bcd60e51b81526020600482018190526024820152600080516020611524833981519152604482015290519081900360640190fd5b60025461048e906001600160a01b03168383610f95565b60025460405182916001600160a01b03808616929116907f80da462ebfbe41cfc9bc015e7a9a3c7a2a73dbccede72d8ceb583606c27f8f9090600090a45050565b6104d7610f91565b6000546001600160a01b03908116911614610527576040805162461bcd60e51b81526020600482018190526024820152600080516020611524833981519152604482015290519081900360640190fd5b6001600160a01b03811661057c576040805162461bcd60e51b815260206004820152601760248201527644414f5661756c743a20696e707574206973207a65726f60481b604482015290519081900360640190fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6105a6610f91565b6000546001600160a01b039081169116146105f6576040805162461bcd60e51b81526020600482018190526024820152600080516020611524833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6002546001600160a01b031681565b6000546001600160a01b031690565b610666610f91565b6000546001600160a01b039081169116146106b6576040805162461bcd60e51b81526020600482018190526024820152600080516020611524833981519152604482015290519081900360640190fd5b6106ca6001600160a01b0384168383610f95565b80826001600160a01b0316846001600160a01b03167f80da462ebfbe41cfc9bc015e7a9a3c7a2a73dbccede72d8ceb583606c27f8f9060405160405180910390a4505050565b6001546001600160a01b031681565b610727610f91565b6000546001600160a01b03908116911614610777576040805162461bcd60e51b81526020600482018190526024820152600080516020611524833981519152604482015290519081900360640190fd5b600154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156107c257600080fd5b505afa1580156107d6573d6000803e3d6000fd5b505050506040513d60208110156107ec57600080fd5b5051600254604080516370a0823160e01b815230600482015290519293506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561083f57600080fd5b505afa158015610853573d6000803e3d6000fd5b505050506040513d602081101561086957600080fd5b505190508261088161087a836110ad565b84906110b7565b10156108d4576040805162461bcd60e51b815260206004820152601c60248201527f44414f5661756c743a206e6f7420656e6f7567682062616c616e636500000000604482015290519081900360640190fd5b82808310156109b457508160006108f36108ee8684611118565b61115a565b6002546040805163e3b99e8560e01b81526001600160a01b038a8116600483015260248201859052915193945091169163e3b99e85916044808201926020929091908290030181600087803b15801561094b57600080fd5b505af115801561095f573d6000803e3d6000fd5b505050506040513d602081101561097557600080fd5b50516109b25760405162461bcd60e51b815260040180806020018281038252602a815260200180611544602a913960400191505060405180910390fd5b505b6001546109cb906001600160a01b03168683611163565b60015460405185916001600160a01b03808916929116907ff7a40077ff7a04c7e61f6f26fb13774259ddf1b6bce9ecf26a8276cdd399268390600090a45050505050565b610a17610f91565b6000546001600160a01b03908116911614610a67576040805162461bcd60e51b81526020600482018190526024820152600080516020611524833981519152604482015290519081900360640190fd5b6001600160a01b038116610aac5760405162461bcd60e51b81526004018080602001828103825260268152602001806114d86026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b610b0f610f91565b6000546001600160a01b03908116911614610b5f576040805162461bcd60e51b81526020600482018190526024820152600080516020611524833981519152604482015290519081900360640190fd5b600154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610baa57600080fd5b505afa158015610bbe573d6000803e3d6000fd5b505050506040513d6020811015610bd457600080fd5b5051600254604080516370a0823160e01b815230600482015290519293506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015610c2757600080fd5b505afa158015610c3b573d6000803e3d6000fd5b505050506040513d6020811015610c5157600080fd5b5051905082610c6982610c638561115a565b906110b7565b1015610cbc576040805162461bcd60e51b815260206004820152601c60248201527f44414f5661756c743a206e6f7420656e6f7567682062616c616e636500000000604482015290519081900360640190fd5b8280821015610dbb576000610cd9610cd48685611118565b6110ad565b600254600154859450919250610cfc916001600160a01b03908116911683610f95565b6002546040805163588420b760e01b81526001600160a01b038981166004830152602482018590529151919092169163588420b79160448083019260209291908290030181600087803b158015610d5257600080fd5b505af1158015610d66573d6000803e3d6000fd5b505050506040513d6020811015610d7c57600080fd5b5051610db95760405162461bcd60e51b81526004018080602001828103825260298152602001806115ce6029913960400191505060405180910390fd5b505b600254610dd2906001600160a01b03168683611163565b60025460405185916001600160a01b03808916929116907ff7a40077ff7a04c7e61f6f26fb13774259ddf1b6bce9ecf26a8276cdd399268390600090a45050505050565b610e1e610f91565b6000546001600160a01b03908116911614610e6e576040805162461bcd60e51b81526020600482018190526024820152600080516020611524833981519152604482015290519081900360640190fd5b80836001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610ebc57600080fd5b505afa158015610ed0573d6000803e3d6000fd5b505050506040513d6020811015610ee657600080fd5b50511015610f3b576040805162461bcd60e51b815260206004820152601c60248201527f44414f5661756c743a206e6f7420656e6f7567682062616c616e636500000000604482015290519081900360640190fd5b610f4f6001600160a01b0384168383611163565b60025460405182916001600160a01b03808616929116907ff7a40077ff7a04c7e61f6f26fb13774259ddf1b6bce9ecf26a8276cdd399268390600090a4505050565b3390565b80158061101b575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015610fed57600080fd5b505afa158015611001573d6000803e3d6000fd5b505050506040513d602081101561101757600080fd5b5051155b6110565760405162461bcd60e51b81526004018080602001828103825260368152602001806115986036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526110a89084906111b1565b505050565b633b9aca00900490565b600082820183811015611111576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b600061111183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611262565b633b9aca000290565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526110a89084905b6000611206826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166112f99092919063ffffffff16565b8051909150156110a85780806020019051602081101561122557600080fd5b50516110a85760405162461bcd60e51b815260040180806020018281038252602a81526020018061156e602a913960400191505060405180910390fd5b600081848411156112f15760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156112b657818101518382015260200161129e565b50505050905090810190601f1680156112e35780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60606113088484600085611310565b949350505050565b6060824710156113515760405162461bcd60e51b81526004018080602001828103825260268152602001806114fe6026913960400191505060405180910390fd5b61135a8561146b565b6113ab576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b602083106113e95780518252601f1990920191602091820191016113ca565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461144b576040519150601f19603f3d011682016040523d82523d6000602084013e611450565b606091505b5091509150611460828286611471565b979650505050505050565b3b151590565b60608315611480575081611111565b8251156114905782518084602001fd5b60405162461bcd60e51b81526020600482018181528451602484015284518593919283926044019190850190808383600083156112b657818101518382015260200161129e56fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657244414f5661756c743a206661696c656420746f207377617020616e64207472616e736665722077746f6e5361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e636544414f5661756c743a206661696c656420746f207377617020616e64207472616e7366657220746f6ea264697066735822122084c64a3307439756a4d04b881d9b9cab511ca23c5d36026a078b461ccfc6d97964736f6c63430007060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000002be5e8c109e2197d077d13a82daead6a9b3433c5000000000000000000000000c4a11aaf6ea915ed7ac194161d2fc9384f15bff2
-----Decoded View---------------
Arg [0] : _ton (address): 0x2be5e8c109e2197D077D13A82dAead6a9b3433C5
Arg [1] : _wton (address): 0xc4A11aaf6ea915Ed7Ac194161d2fC9384F15bff2
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000002be5e8c109e2197d077d13a82daead6a9b3433c5
Arg [1] : 000000000000000000000000c4a11aaf6ea915ed7ac194161d2fc9384f15bff2
Deployed Bytecode Sourcemap
23705:4858:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24456:160;;;;;;;;;;;;;;;;-1:-1:-1;24456:160:0;-1:-1:-1;;;;;24456:160:0;;:::i;:::-;;25004:178;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;25004:178:0;;;;;;;;:::i;25330:181::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;25330:181:0;;;;;;;;:::i;24693:165::-;;;;;;;;;;;;;;;;-1:-1:-1;24693:165:0;-1:-1:-1;;;;;24693:165:0;;:::i;2770:148::-;;;:::i;23848:18::-;;;:::i;:::-;;;;-1:-1:-1;;;;;23848:18:0;;;;;;;;;;;;;;2128:79;;;:::i;25710:210::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;25710:210:0;;;;;;;;;;;;;;;;;:::i;23824:17::-;;;:::i;26062:808::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;26062:808:0;;;;;;;;:::i;3073:244::-;;;;;;;;;;;;;;;;-1:-1:-1;3073:244:0;-1:-1:-1;;;;;3073:244:0;;:::i;27014:872::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;27014:872:0;;;;;;;;:::i;28044:308::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;28044:308:0;;;;;;;;;;;;;;;;;:::i;24456:160::-;2350:12;:10;:12::i;:::-;2340:6;;-1:-1:-1;;;;;2340:6:0;;;:22;;;2332:67;;;;;-1:-1:-1;;;2332:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2332:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;24533:18:0;::::1;24525:54;;;::::0;;-1:-1:-1;;;24525:54:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;24525:54:0;;;;;;;;;;;;;::::1;;24590:3;:18:::0;;-1:-1:-1;;;;;;24590:18:0::1;-1:-1:-1::0;;;;;24590:18:0;;;::::1;::::0;;;::::1;::::0;;24456:160::o;25004:178::-;2350:12;:10;:12::i;:::-;2340:6;;-1:-1:-1;;;;;2340:6:0;;;:22;;;2332:67;;;;;-1:-1:-1;;;2332:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2332:67:0;;;;;;;;;;;;;;;25093:3:::1;::::0;:29:::1;::::0;-1:-1:-1;;;;;25093:3:0::1;25109::::0;25114:7;25093:15:::1;:29::i;:::-;25155:3;::::0;25138:36:::1;::::0;25166:7;;-1:-1:-1;;;;;25138:36:0;;::::1;::::0;25155:3;::::1;::::0;25138:36:::1;::::0;25155:3:::1;::::0;25138:36:::1;25004:178:::0;;:::o;25330:181::-;2350:12;:10;:12::i;:::-;2340:6;;-1:-1:-1;;;;;2340:6:0;;;:22;;;2332:67;;;;;-1:-1:-1;;;2332:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2332:67:0;;;;;;;;;;;;;;;25420:4:::1;::::0;:30:::1;::::0;-1:-1:-1;;;;;25420:4:0::1;25437:3:::0;25442:7;25420:16:::1;:30::i;:::-;25483:4;::::0;25466:37:::1;::::0;25495:7;;-1:-1:-1;;;;;25466:37:0;;::::1;::::0;25483:4;::::1;::::0;25466:37:::1;::::0;25483:4:::1;::::0;25466:37:::1;25330:181:::0;;:::o;24693:165::-;2350:12;:10;:12::i;:::-;2340:6;;-1:-1:-1;;;;;2340:6:0;;;:22;;;2332:67;;;;;-1:-1:-1;;;2332:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2332:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;24772:19:0;::::1;24764:55;;;::::0;;-1:-1:-1;;;24764:55:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;24764:55:0;;;;;;;;;;;;;::::1;;24830:4;:20:::0;;-1:-1:-1;;;;;;24830:20:0::1;-1:-1:-1::0;;;;;24830:20:0;;;::::1;::::0;;;::::1;::::0;;24693:165::o;2770:148::-;2350:12;:10;:12::i;:::-;2340:6;;-1:-1:-1;;;;;2340:6:0;;;:22;;;2332:67;;;;;-1:-1:-1;;;2332:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2332:67:0;;;;;;;;;;;;;;;2877:1:::1;2861:6:::0;;2840:40:::1;::::0;-1:-1:-1;;;;;2861:6:0;;::::1;::::0;2840:40:::1;::::0;2877:1;;2840:40:::1;2908:1;2891:19:::0;;-1:-1:-1;;;;;;2891:19:0::1;::::0;;2770:148::o;23848:18::-;;;-1:-1:-1;;;;;23848:18:0;;:::o;2128:79::-;2166:7;2193:6;-1:-1:-1;;;;;2193:6:0;2128:79;:::o;25710:210::-;2350:12;:10;:12::i;:::-;2340:6;;-1:-1:-1;;;;;2340:6:0;;;:22;;;2332:67;;;;;-1:-1:-1;;;2332:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2332:67:0;;;;;;;;;;;;;;;25817:40:::1;-1:-1:-1::0;;;;;25817:26:0;::::1;25844:3:::0;25849:7;25817:26:::1;:40::i;:::-;25904:7;25899:3;-1:-1:-1::0;;;;;25873:39:0::1;25890:6;-1:-1:-1::0;;;;;25873:39:0::1;;;;;;;;;;;25710:210:::0;;;:::o;23824:17::-;;;-1:-1:-1;;;;;23824:17:0;;:::o;26062:808::-;2350:12;:10;:12::i;:::-;2340:6;;-1:-1:-1;;;;;2340:6:0;;;:22;;;2332:67;;;;;-1:-1:-1;;;2332:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2332:67:0;;;;;;;;;;;;;;;26170:3:::1;::::0;:28:::1;::::0;;-1:-1:-1;;;26170:28:0;;26192:4:::1;26170:28;::::0;::::1;::::0;;;26149:18:::1;::::0;-1:-1:-1;;;;;26170:3:0::1;::::0;:13:::1;::::0;:28;;;;;::::1;::::0;;;;;;;;:3;:28;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;26170:28:0;26231:4:::1;::::0;:29:::1;::::0;;-1:-1:-1;;;26231:29:0;;26254:4:::1;26231:29;::::0;::::1;::::0;;;26170:28;;-1:-1:-1;26209:19:0::1;::::0;-1:-1:-1;;;;;26231:4:0;;::::1;::::0;:14:::1;::::0;:29;;;;;26170:28:::1;::::0;26231:29;;;;;;;;:4;:29;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;26231:29:0;;-1:-1:-1;26332:7:0;26293:35:::1;26308:19;26231:29:::0;26308:6:::1;:19::i;:::-;26293:10:::0;;:14:::1;:35::i;:::-;:46;;26271:124;;;::::0;;-1:-1:-1;;;26271:124:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;26428:7:::0;26450:20;;::::1;26446:321;;;-1:-1:-1::0;26499:10:0;26524:18:::1;26545:31;26552:23;:7:::0;26499:10;26552:11:::1;:23::i;:::-;26545:6;:31::i;:::-;26633:4;::::0;26619:58:::1;::::0;;-1:-1:-1;;;26619:58:0;;-1:-1:-1;;;;;26619:58:0;;::::1;;::::0;::::1;::::0;;;;;;;;;26524:52;;-1:-1:-1;26633:4:0;::::1;::::0;26619:41:::1;::::0;:58;;;;;::::1;::::0;;;;;;;;;26633:4:::1;::::0;26619:58;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;26619:58:0;26593:162:::1;;;;-1:-1:-1::0;;;26593:162:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26446:321;;26779:3;::::0;:32:::1;::::0;-1:-1:-1;;;;;26779:3:0::1;26796::::0;26801:9;26779:16:::1;:32::i;:::-;26843:3;::::0;26827:35:::1;::::0;26854:7;;-1:-1:-1;;;;;26827:35:0;;::::1;::::0;26843:3;::::1;::::0;26827:35:::1;::::0;26843:3:::1;::::0;26827:35:::1;2410:1;;;26062:808:::0;;:::o;3073:244::-;2350:12;:10;:12::i;:::-;2340:6;;-1:-1:-1;;;;;2340:6:0;;;:22;;;2332:67;;;;;-1:-1:-1;;;2332:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2332:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;3162:22:0;::::1;3154:73;;;;-1:-1:-1::0;;;3154:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3264:6;::::0;;3243:38:::1;::::0;-1:-1:-1;;;;;3243:38:0;;::::1;::::0;3264:6;::::1;::::0;3243:38:::1;::::0;::::1;3292:6;:17:::0;;-1:-1:-1;;;;;;3292:17:0::1;-1:-1:-1::0;;;;;3292:17:0;;;::::1;::::0;;;::::1;::::0;;3073:244::o;27014:872::-;2350:12;:10;:12::i;:::-;2340:6;;-1:-1:-1;;;;;2340:6:0;;;:22;;;2332:67;;;;;-1:-1:-1;;;2332:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2332:67:0;;;;;;;;;;;;;;;27123:3:::1;::::0;:28:::1;::::0;;-1:-1:-1;;;27123:28:0;;27145:4:::1;27123:28;::::0;::::1;::::0;;;27102:18:::1;::::0;-1:-1:-1;;;;;27123:3:0::1;::::0;:13:::1;::::0;:28;;;;;::::1;::::0;;;;;;;;:3;:28;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;27123:28:0;27184:4:::1;::::0;:29:::1;::::0;;-1:-1:-1;;;27184:29:0;;27207:4:::1;27184:29;::::0;::::1;::::0;;;27123:28;;-1:-1:-1;27162:19:0::1;::::0;-1:-1:-1;;;;;27184:4:0;;::::1;::::0;:14:::1;::::0;:29;;;;;27123:28:::1;::::0;27184:29;;;;;;;;:4;:29;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;27184:29:0;;-1:-1:-1;27285:7:0;27246:35:::1;27184:29:::0;27246:18:::1;27253:10:::0;27246:6:::1;:18::i;:::-;:22:::0;::::1;:35::i;:::-;:46;;27224:124;;;::::0;;-1:-1:-1;;;27224:124:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;27382:7:::0;27404:21;;::::1;27400:380;;;27442:17;27462:32;27469:24;:7:::0;27481:11;27469::::1;:24::i;:::-;27462:6;:32::i;:::-;27574:4;::::0;;27550:3;27522:11;;-1:-1:-1;27442:52:0;;-1:-1:-1;27550:41:0::1;::::0;-1:-1:-1;;;;;27550:3:0;;::::1;::::0;27574:4:::1;27442:52:::0;27550:15:::1;:41::i;:::-;27646:4;::::0;27632:59:::1;::::0;;-1:-1:-1;;;27632:59:0;;-1:-1:-1;;;;;27632:59:0;;::::1;;::::0;::::1;::::0;;;;;;;;;27646:4;;;::::1;::::0;27632:43:::1;::::0;:59;;;;;::::1;::::0;;;;;;;;27646:4:::1;::::0;27632:59;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;27632:59:0;27606:162:::1;;;;-1:-1:-1::0;;;27606:162:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27400:380;;27792:4;::::0;:34:::1;::::0;-1:-1:-1;;;;;27792:4:0::1;27810:3:::0;27815:10;27792:17:::1;:34::i;:::-;27858:4;::::0;27842:36:::1;::::0;27870:7;;-1:-1:-1;;;;;27842:36:0;;::::1;::::0;27858:4;::::1;::::0;27842:36:::1;::::0;27858:4:::1;::::0;27842:36:::1;2410:1;;;27014:872:::0;;:::o;28044:308::-;2350:12;:10;:12::i;:::-;2340:6;;-1:-1:-1;;;;;2340:6:0;;;:22;;;2332:67;;;;;-1:-1:-1;;;2332:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2332:67:0;;;;;;;;;;;;;;;28200:7:::1;28164:6;-1:-1:-1::0;;;;;28157:24:0::1;;28190:4;28157:39;;;;;;;;;;;;;-1:-1:-1::0;;;;;28157:39:0::1;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;28157:39:0;:50:::1;;28149:91;;;::::0;;-1:-1:-1;;;28149:91:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;28251:41;-1:-1:-1::0;;;;;28251:27:0;::::1;28279:3:::0;28284:7;28251:27:::1;:41::i;:::-;28324:4;::::0;28308:36:::1;::::0;28336:7;;-1:-1:-1;;;;;28308:36:0;;::::1;::::0;28324:4;::::1;::::0;28308:36:::1;::::0;28324:4:::1;::::0;28308:36:::1;28044:308:::0;;;:::o;665:106::-;753:10;665:106;:::o;19874:622::-;20244:10;;;20243:62;;-1:-1:-1;20260:39:0;;;-1:-1:-1;;;20260:39:0;;20284:4;20260:39;;;;-1:-1:-1;;;;;20260:39:0;;;;;;;;;:15;;;;;;:39;;;;;;;;;;;;;;;:15;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;20260:39:0;:44;20243:62;20235:152;;;;-1:-1:-1;;;20235:152:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20425:62;;;-1:-1:-1;;;;;20425:62:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;20425:62:0;-1:-1:-1;;;20425:62:0;;;20398:90;;20418:5;;20398:19;:90::i;:::-;19874:622;;;:::o;28464:96::-;28545:7;28541:11;;;28464:96::o;7064:181::-;7122:7;7154:5;;;7178:6;;;;7170:46;;;;;-1:-1:-1;;;7170:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;7236:1;7064:181;-1:-1:-1;;;7064:181:0:o;7528:136::-;7586:7;7613:43;7617:1;7620;7613:43;;;;;;;;;;;;;;;;;:3;:43::i;28360:96::-;28441:7;28437:11;;28360:96::o;19215:177::-;19325:58;;;-1:-1:-1;;;;;19325:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;19325:58:0;-1:-1:-1;;;19325:58:0;;;19298:86;;19318:5;;21520:761;21944:23;21970:69;21998:4;21970:69;;;;;;;;;;;;;;;;;21978:5;-1:-1:-1;;;;;21970:27:0;;;:69;;;;;:::i;:::-;22054:17;;21944:95;;-1:-1:-1;22054:21:0;22050:224;;22196:10;22185:30;;;;;;;;;;;;;;;-1:-1:-1;22185:30:0;22177:85;;;;-1:-1:-1;;;22177:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7967:192;8053:7;8089:12;8081:6;;;;8073:29;;;;-1:-1:-1;;;8073:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;8125:5:0;;;7967:192::o;15214:195::-;15317:12;15349:52;15371:6;15379:4;15385:1;15388:12;15349:21;:52::i;:::-;15342:59;15214:195;-1:-1:-1;;;;15214:195:0:o;16266:530::-;16393:12;16451:5;16426:21;:30;;16418:81;;;;-1:-1:-1;;;16418:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16518:18;16529:6;16518:10;:18::i;:::-;16510:60;;;;;-1:-1:-1;;;16510:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;16644:12;16658:23;16685:6;-1:-1:-1;;;;;16685:11:0;16705:5;16713:4;16685:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;16685:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16643:75;;;;16736:52;16754:7;16763:10;16775:12;16736:17;:52::i;:::-;16729:59;16266:530;-1:-1:-1;;;;;;;16266:530:0:o;12296:422::-;12663:20;12702:8;;;12296:422::o;17802:742::-;17917:12;17946:7;17942:595;;;-1:-1:-1;17977:10:0;17970:17;;17942:595;18091:17;;:21;18087:439;;18354:10;18348:17;18415:15;18402:10;18398:2;18394:19;18387:44;18302:148;18490:20;;-1:-1:-1;;;18490:20:0;;;;;;;;;;;;;;;;;18497:12;;18490:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Swarm Source
ipfs://84c64a3307439756a4d04b881d9b9cab511ca23c5d36026a078b461ccfc6d979
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $1.78 | 17,458,010.068 | $31,075,257.92 |
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.