Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
VestingStaker
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; interface ILockedStakingrewards { function exit() external; function getReward() external; function getUserLockTime(address user) external view returns(uint); function withdraw(uint256 amount) external; function stake(uint256 amount) external; function earned(address account) external view returns (uint256); function reStake() external; } contract VestingStaker { using SafeERC20 for IERC20; IERC20 public token; ILockedStakingrewards public stakingContract; address public recipient; bool public started; // only owner modifier modifier onlyOwner { _onlyOwner(); _; } // only owner view function _onlyOwner() private view { require(msg.sender == recipient, "Only the contract owner may perform this action"); } constructor() { // Don't allow implementation to be initialized. recipient = address(1); } function initialize(IERC20 _token, ILockedStakingrewards _stakingContract, address _recipient) external { require(recipient == address(0), "already initialized"); require(_recipient != address(0), "recipient cannot be null"); recipient = _recipient; token = _token; stakingContract = _stakingContract; } function startStaking() public { require(started == false, "already staked"); token.safeApprove(address(stakingContract), token.balanceOf(address(this))); started = true; stakingContract.stake(token.balanceOf(address(this))); } function withdrawStaking(uint amount) public onlyOwner { stakingContract.withdraw(amount); token.safeTransfer(msg.sender, amount); } function getReward() public onlyOwner { stakingContract.getReward(); token.safeTransfer(msg.sender, token.balanceOf(address(this))); } function reStake() public onlyOwner { stakingContract.reStake(); } function withdrawToRecipient(uint amount, address tokenAddress) public onlyOwner { require(started == true, "not started"); IERC20(tokenAddress).safeTransfer(msg.sender, amount); } function changeOwner(address newOwner) public onlyOwner { recipient = newOwner; } function getUserLockTime() public view returns(uint) { return stakingContract.getUserLockTime(address(this)); } function earned() public view returns(uint) { return stakingContract.earned(address(this)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/draft-IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"changeOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getUserLockTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"contract ILockedStakingrewards","name":"_stakingContract","type":"address"},{"internalType":"address","name":"_recipient","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reStake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"recipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingContract","outputs":[{"internalType":"contract ILockedStakingrewards","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"started","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"withdrawToRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b506001600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550611ad0806100626000396000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c80639e6956a81161008c578063d6f1926211610066578063d6f19262146101b2578063eba8a266146101d0578063ee99205c146101da578063fc0c546a146101f8576100cf565b80639e6956a81461015c578063a6f9dae11461017a578063c0c53b8b14610196576100cf565b80631f2698ab146100d45780632e0b78f6146100f257806330f439821461010e5780633d18b9121461012a57806366d003ac1461013457806371b0cbfa14610152575b600080fd5b6100dc610216565b6040516100e99190611112565b60405180910390f35b61010c60048036038101906101079190611168565b610229565b005b610128600480360381019061012391906111f3565b61030c565b005b610132610399565b005b61013c610509565b6040516101499190611242565b60405180910390f35b61015a61052f565b005b6101646107ce565b604051610171919061126c565b60405180910390f35b610194600480360381019061018f9190611287565b610871565b005b6101b060048036038101906101ab9190611330565b6108bd565b005b6101ba610a84565b6040516101c7919061126c565b60405180910390f35b6101d8610b26565b005b6101e2610bb2565b6040516101ef91906113e2565b60405180910390f35b610200610bd8565b60405161020d919061141e565b60405180910390f35b600260149054906101000a900460ff1681565b610231610bfc565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d826040518263ffffffff1660e01b815260040161028c919061126c565b600060405180830381600087803b1580156102a657600080fd5b505af11580156102ba573d6000803e3d6000fd5b50505050610309338260008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610c8e9092919063ffffffff16565b50565b610314610bfc565b60011515600260149054906101000a900460ff1615151461036a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161036190611496565b60405180910390fd5b61039533838373ffffffffffffffffffffffffffffffffffffffff16610c8e9092919063ffffffff16565b5050565b6103a1610bfc565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16633d18b9126040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561040b57600080fd5b505af115801561041f573d6000803e3d6000fd5b505050506105073360008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016104809190611242565b602060405180830381865afa15801561049d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104c191906114cb565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610c8e9092919063ffffffff16565b565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60001515600260149054906101000a900460ff16151514610585576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161057c90611544565b60405180910390fd5b61068b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016106049190611242565b602060405180830381865afa158015610621573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061064591906114cb565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610d149092919063ffffffff16565b6001600260146101000a81548160ff021916908315150217905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a694fc3a60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161073d9190611242565b602060405180830381865afa15801561075a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061077e91906114cb565b6040518263ffffffff1660e01b815260040161079a919061126c565b600060405180830381600087803b1580156107b457600080fd5b505af11580156107c8573d6000803e3d6000fd5b50505050565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639742b447306040518263ffffffff1660e01b815260040161082b9190611242565b602060405180830381865afa158015610848573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086c91906114cb565b905090565b610879610bfc565b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600073ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461094e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610945906115b0565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036109bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109b49061161c565b60405180910390fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550826000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16628cc262306040518263ffffffff1660e01b8152600401610ae09190611242565b602060405180830381865afa158015610afd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b2191906114cb565b905090565b610b2e610bfc565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663eba8a2666040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610b9857600080fd5b505af1158015610bac573d6000803e3d6000fd5b50505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610c8c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c83906116ae565b60405180910390fd5b565b610d0f8363a9059cbb60e01b8484604051602401610cad9291906116ce565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610e63565b505050565b6000811480610d9e575060008373ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30856040518363ffffffff1660e01b8152600401610d5b9291906116f7565b602060405180830381865afa158015610d78573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d9c91906114cb565b145b610ddd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dd490611792565b60405180910390fd5b610e5e8363095ea7b360e01b8484604051602401610dfc9291906116ce565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610e63565b505050565b6000610ec5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610f2a9092919063ffffffff16565b9050600081511115610f255780806020019051810190610ee591906117de565b610f24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1b9061187d565b60405180910390fd5b5b505050565b6060610f398484600085610f42565b90509392505050565b606082471015610f87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7e9061190f565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051610fb091906119a0565b60006040518083038185875af1925050503d8060008114610fed576040519150601f19603f3d011682016040523d82523d6000602084013e610ff2565b606091505b50915091506110038783838761100f565b92505050949350505050565b606083156110715760008351036110695761102985611084565b611068576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105f90611a03565b60405180910390fd5b5b82905061107c565b61107b83836110a7565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000825111156110ba5781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110ee9190611a78565b60405180910390fd5b60008115159050919050565b61110c816110f7565b82525050565b60006020820190506111276000830184611103565b92915050565b600080fd5b6000819050919050565b61114581611132565b811461115057600080fd5b50565b6000813590506111628161113c565b92915050565b60006020828403121561117e5761117d61112d565b5b600061118c84828501611153565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006111c082611195565b9050919050565b6111d0816111b5565b81146111db57600080fd5b50565b6000813590506111ed816111c7565b92915050565b6000806040838503121561120a5761120961112d565b5b600061121885828601611153565b9250506020611229858286016111de565b9150509250929050565b61123c816111b5565b82525050565b60006020820190506112576000830184611233565b92915050565b61126681611132565b82525050565b6000602082019050611281600083018461125d565b92915050565b60006020828403121561129d5761129c61112d565b5b60006112ab848285016111de565b91505092915050565b60006112bf826111b5565b9050919050565b6112cf816112b4565b81146112da57600080fd5b50565b6000813590506112ec816112c6565b92915050565b60006112fd826111b5565b9050919050565b61130d816112f2565b811461131857600080fd5b50565b60008135905061132a81611304565b92915050565b6000806000606084860312156113495761134861112d565b5b6000611357868287016112dd565b93505060206113688682870161131b565b9250506040611379868287016111de565b9150509250925092565b6000819050919050565b60006113a86113a361139e84611195565b611383565b611195565b9050919050565b60006113ba8261138d565b9050919050565b60006113cc826113af565b9050919050565b6113dc816113c1565b82525050565b60006020820190506113f760008301846113d3565b92915050565b6000611408826113af565b9050919050565b611418816113fd565b82525050565b6000602082019050611433600083018461140f565b92915050565b600082825260208201905092915050565b7f6e6f742073746172746564000000000000000000000000000000000000000000600082015250565b6000611480600b83611439565b915061148b8261144a565b602082019050919050565b600060208201905081810360008301526114af81611473565b9050919050565b6000815190506114c58161113c565b92915050565b6000602082840312156114e1576114e061112d565b5b60006114ef848285016114b6565b91505092915050565b7f616c7265616479207374616b6564000000000000000000000000000000000000600082015250565b600061152e600e83611439565b9150611539826114f8565b602082019050919050565b6000602082019050818103600083015261155d81611521565b9050919050565b7f616c726561647920696e697469616c697a656400000000000000000000000000600082015250565b600061159a601383611439565b91506115a582611564565b602082019050919050565b600060208201905081810360008301526115c98161158d565b9050919050565b7f726563697069656e742063616e6e6f74206265206e756c6c0000000000000000600082015250565b6000611606601883611439565b9150611611826115d0565b602082019050919050565b60006020820190508181036000830152611635816115f9565b9050919050565b7f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660008201527f6f726d207468697320616374696f6e0000000000000000000000000000000000602082015250565b6000611698602f83611439565b91506116a38261163c565b604082019050919050565b600060208201905081810360008301526116c78161168b565b9050919050565b60006040820190506116e36000830185611233565b6116f0602083018461125d565b9392505050565b600060408201905061170c6000830185611233565b6117196020830184611233565b9392505050565b7f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60008201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000602082015250565b600061177c603683611439565b915061178782611720565b604082019050919050565b600060208201905081810360008301526117ab8161176f565b9050919050565b6117bb816110f7565b81146117c657600080fd5b50565b6000815190506117d8816117b2565b92915050565b6000602082840312156117f4576117f361112d565b5b6000611802848285016117c9565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000611867602a83611439565b91506118728261180b565b604082019050919050565b600060208201905081810360008301526118968161185a565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b60006118f9602683611439565b91506119048261189d565b604082019050919050565b60006020820190508181036000830152611928816118ec565b9050919050565b600081519050919050565b600081905092915050565b60005b83811015611963578082015181840152602081019050611948565b60008484015250505050565b600061197a8261192f565b611984818561193a565b9350611994818560208601611945565b80840191505092915050565b60006119ac828461196f565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b60006119ed601d83611439565b91506119f8826119b7565b602082019050919050565b60006020820190508181036000830152611a1c816119e0565b9050919050565b600081519050919050565b6000601f19601f8301169050919050565b6000611a4a82611a23565b611a548185611439565b9350611a64818560208601611945565b611a6d81611a2e565b840191505092915050565b60006020820190508181036000830152611a928184611a3f565b90509291505056fea2646970667358221220c67f27da6920d4314fda01e24c737e5a3aa0440e3a0204c31b781831464832b164736f6c63430008110033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100cf5760003560e01c80639e6956a81161008c578063d6f1926211610066578063d6f19262146101b2578063eba8a266146101d0578063ee99205c146101da578063fc0c546a146101f8576100cf565b80639e6956a81461015c578063a6f9dae11461017a578063c0c53b8b14610196576100cf565b80631f2698ab146100d45780632e0b78f6146100f257806330f439821461010e5780633d18b9121461012a57806366d003ac1461013457806371b0cbfa14610152575b600080fd5b6100dc610216565b6040516100e99190611112565b60405180910390f35b61010c60048036038101906101079190611168565b610229565b005b610128600480360381019061012391906111f3565b61030c565b005b610132610399565b005b61013c610509565b6040516101499190611242565b60405180910390f35b61015a61052f565b005b6101646107ce565b604051610171919061126c565b60405180910390f35b610194600480360381019061018f9190611287565b610871565b005b6101b060048036038101906101ab9190611330565b6108bd565b005b6101ba610a84565b6040516101c7919061126c565b60405180910390f35b6101d8610b26565b005b6101e2610bb2565b6040516101ef91906113e2565b60405180910390f35b610200610bd8565b60405161020d919061141e565b60405180910390f35b600260149054906101000a900460ff1681565b610231610bfc565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d826040518263ffffffff1660e01b815260040161028c919061126c565b600060405180830381600087803b1580156102a657600080fd5b505af11580156102ba573d6000803e3d6000fd5b50505050610309338260008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610c8e9092919063ffffffff16565b50565b610314610bfc565b60011515600260149054906101000a900460ff1615151461036a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161036190611496565b60405180910390fd5b61039533838373ffffffffffffffffffffffffffffffffffffffff16610c8e9092919063ffffffff16565b5050565b6103a1610bfc565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16633d18b9126040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561040b57600080fd5b505af115801561041f573d6000803e3d6000fd5b505050506105073360008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016104809190611242565b602060405180830381865afa15801561049d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104c191906114cb565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610c8e9092919063ffffffff16565b565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60001515600260149054906101000a900460ff16151514610585576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161057c90611544565b60405180910390fd5b61068b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016106049190611242565b602060405180830381865afa158015610621573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061064591906114cb565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610d149092919063ffffffff16565b6001600260146101000a81548160ff021916908315150217905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a694fc3a60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161073d9190611242565b602060405180830381865afa15801561075a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061077e91906114cb565b6040518263ffffffff1660e01b815260040161079a919061126c565b600060405180830381600087803b1580156107b457600080fd5b505af11580156107c8573d6000803e3d6000fd5b50505050565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639742b447306040518263ffffffff1660e01b815260040161082b9190611242565b602060405180830381865afa158015610848573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086c91906114cb565b905090565b610879610bfc565b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600073ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461094e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610945906115b0565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036109bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109b49061161c565b60405180910390fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550826000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16628cc262306040518263ffffffff1660e01b8152600401610ae09190611242565b602060405180830381865afa158015610afd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b2191906114cb565b905090565b610b2e610bfc565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663eba8a2666040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610b9857600080fd5b505af1158015610bac573d6000803e3d6000fd5b50505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610c8c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c83906116ae565b60405180910390fd5b565b610d0f8363a9059cbb60e01b8484604051602401610cad9291906116ce565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610e63565b505050565b6000811480610d9e575060008373ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30856040518363ffffffff1660e01b8152600401610d5b9291906116f7565b602060405180830381865afa158015610d78573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d9c91906114cb565b145b610ddd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dd490611792565b60405180910390fd5b610e5e8363095ea7b360e01b8484604051602401610dfc9291906116ce565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610e63565b505050565b6000610ec5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610f2a9092919063ffffffff16565b9050600081511115610f255780806020019051810190610ee591906117de565b610f24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1b9061187d565b60405180910390fd5b5b505050565b6060610f398484600085610f42565b90509392505050565b606082471015610f87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7e9061190f565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051610fb091906119a0565b60006040518083038185875af1925050503d8060008114610fed576040519150601f19603f3d011682016040523d82523d6000602084013e610ff2565b606091505b50915091506110038783838761100f565b92505050949350505050565b606083156110715760008351036110695761102985611084565b611068576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105f90611a03565b60405180910390fd5b5b82905061107c565b61107b83836110a7565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000825111156110ba5781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110ee9190611a78565b60405180910390fd5b60008115159050919050565b61110c816110f7565b82525050565b60006020820190506111276000830184611103565b92915050565b600080fd5b6000819050919050565b61114581611132565b811461115057600080fd5b50565b6000813590506111628161113c565b92915050565b60006020828403121561117e5761117d61112d565b5b600061118c84828501611153565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006111c082611195565b9050919050565b6111d0816111b5565b81146111db57600080fd5b50565b6000813590506111ed816111c7565b92915050565b6000806040838503121561120a5761120961112d565b5b600061121885828601611153565b9250506020611229858286016111de565b9150509250929050565b61123c816111b5565b82525050565b60006020820190506112576000830184611233565b92915050565b61126681611132565b82525050565b6000602082019050611281600083018461125d565b92915050565b60006020828403121561129d5761129c61112d565b5b60006112ab848285016111de565b91505092915050565b60006112bf826111b5565b9050919050565b6112cf816112b4565b81146112da57600080fd5b50565b6000813590506112ec816112c6565b92915050565b60006112fd826111b5565b9050919050565b61130d816112f2565b811461131857600080fd5b50565b60008135905061132a81611304565b92915050565b6000806000606084860312156113495761134861112d565b5b6000611357868287016112dd565b93505060206113688682870161131b565b9250506040611379868287016111de565b9150509250925092565b6000819050919050565b60006113a86113a361139e84611195565b611383565b611195565b9050919050565b60006113ba8261138d565b9050919050565b60006113cc826113af565b9050919050565b6113dc816113c1565b82525050565b60006020820190506113f760008301846113d3565b92915050565b6000611408826113af565b9050919050565b611418816113fd565b82525050565b6000602082019050611433600083018461140f565b92915050565b600082825260208201905092915050565b7f6e6f742073746172746564000000000000000000000000000000000000000000600082015250565b6000611480600b83611439565b915061148b8261144a565b602082019050919050565b600060208201905081810360008301526114af81611473565b9050919050565b6000815190506114c58161113c565b92915050565b6000602082840312156114e1576114e061112d565b5b60006114ef848285016114b6565b91505092915050565b7f616c7265616479207374616b6564000000000000000000000000000000000000600082015250565b600061152e600e83611439565b9150611539826114f8565b602082019050919050565b6000602082019050818103600083015261155d81611521565b9050919050565b7f616c726561647920696e697469616c697a656400000000000000000000000000600082015250565b600061159a601383611439565b91506115a582611564565b602082019050919050565b600060208201905081810360008301526115c98161158d565b9050919050565b7f726563697069656e742063616e6e6f74206265206e756c6c0000000000000000600082015250565b6000611606601883611439565b9150611611826115d0565b602082019050919050565b60006020820190508181036000830152611635816115f9565b9050919050565b7f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660008201527f6f726d207468697320616374696f6e0000000000000000000000000000000000602082015250565b6000611698602f83611439565b91506116a38261163c565b604082019050919050565b600060208201905081810360008301526116c78161168b565b9050919050565b60006040820190506116e36000830185611233565b6116f0602083018461125d565b9392505050565b600060408201905061170c6000830185611233565b6117196020830184611233565b9392505050565b7f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60008201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000602082015250565b600061177c603683611439565b915061178782611720565b604082019050919050565b600060208201905081810360008301526117ab8161176f565b9050919050565b6117bb816110f7565b81146117c657600080fd5b50565b6000815190506117d8816117b2565b92915050565b6000602082840312156117f4576117f361112d565b5b6000611802848285016117c9565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000611867602a83611439565b91506118728261180b565b604082019050919050565b600060208201905081810360008301526118968161185a565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b60006118f9602683611439565b91506119048261189d565b604082019050919050565b60006020820190508181036000830152611928816118ec565b9050919050565b600081519050919050565b600081905092915050565b60005b83811015611963578082015181840152602081019050611948565b60008484015250505050565b600061197a8261192f565b611984818561193a565b9350611994818560208601611945565b80840191505092915050565b60006119ac828461196f565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b60006119ed601d83611439565b91506119f8826119b7565b602082019050919050565b60006020820190508181036000830152611a1c816119e0565b9050919050565b600081519050919050565b6000601f19601f8301169050919050565b6000611a4a82611a23565b611a548185611439565b9350611a64818560208601611945565b611a6d81611a2e565b840191505092915050565b60006020820190508181036000830152611a928184611a3f565b90509291505056fea2646970667358221220c67f27da6920d4314fda01e24c737e5a3aa0440e3a0204c31b781831464832b164736f6c63430008110033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
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.