Contract Overview
Balance:
0 ETH
ETH Value:
$0.00
My Name Tag:
Not Available
Txn Hash | Method |
Block
|
From
|
To
|
Value | [Txn Fee] | |||
---|---|---|---|---|---|---|---|---|---|
0x3d02d8614380553e7eef52998f63926b42d7828a766e4893ae1ccf6b1d0d7997 | 0x60c06040 | 2520074 | 885 days 23 hrs ago | 0x131b4e746ca5a5a8be68d2bb5f5a8533a4dd99c1 | IN | Create: StakingWarmup | 0 ETH | 0.003461116025 ETH |
[ Download CSV Export ]
Latest 25 internal transaction
[ Download CSV Export ]
Contract Name:
StakingWarmup
Compiler Version
v0.7.5+commit.eb77ed08
Optimization Enabled:
Yes with 100 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity 0.7.5; interface IERC20 { function decimals() external view returns (uint8); /** * @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); } contract StakingWarmup { address public immutable staking; address public immutable sZ2O; constructor ( address _staking, address _sZ2O ) { require( _staking != address(0) ); staking = _staking; require( _sZ2O != address(0) ); sZ2O = _sZ2O; } function retrieve( address _staker, uint _amount ) external { require( msg.sender == staking ); IERC20( sZ2O ).transfer( _staker, _amount ); } }
{ "optimizer": { "enabled": true, "runs": 100 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "libraries": {} }
[{"inputs":[{"internalType":"address","name":"_staking","type":"address"},{"internalType":"address","name":"_sZ2O","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"_staker","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"retrieve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sZ2O","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"staking","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60c060405234801561001057600080fd5b506040516102b43803806102b48339818101604052604081101561003357600080fd5b5080516020909101516001600160a01b03821661004f57600080fd5b6001600160601b0319606083901b166080526001600160a01b03811661007457600080fd5b606081811b6001600160601b03191660a052608051901c91506001600160a01b03166101fa6100ba6000398060fb52806101a252508060a2528060cf52506101fa6000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80634cf088d914610046578063c3a2a6651461006a578063e54194b814610098575b600080fd5b61004e6100a0565b604080516001600160a01b039092168252519081900360200190f35b6100966004803603604081101561008057600080fd5b506001600160a01b0381351690602001356100c4565b005b61004e6101a0565b7f000000000000000000000000000000000000000000000000000000000000000081565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146100f957600080fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb83836040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561017057600080fd5b505af1158015610184573d6000803e3d6000fd5b505050506040513d602081101561019a57600080fd5b50505050565b7f00000000000000000000000000000000000000000000000000000000000000008156fea2646970667358221220d2e10c679f8dffeaefdb9b003df04196118abda7d2f6a9c0ce732ac8a4f75fa464736f6c6343000705003300000000000000000000000006b4dfabaf0fb0cf813526572cc86b2695c9d050000000000000000000000000c45c51d423f5e2ad2e946e45d9ec7dcf04f9bd39
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100415760003560e01c80634cf088d914610046578063c3a2a6651461006a578063e54194b814610098575b600080fd5b61004e6100a0565b604080516001600160a01b039092168252519081900360200190f35b6100966004803603604081101561008057600080fd5b506001600160a01b0381351690602001356100c4565b005b61004e6101a0565b7f00000000000000000000000006b4dfabaf0fb0cf813526572cc86b2695c9d05081565b336001600160a01b037f00000000000000000000000006b4dfabaf0fb0cf813526572cc86b2695c9d05016146100f957600080fd5b7f000000000000000000000000c45c51d423f5e2ad2e946e45d9ec7dcf04f9bd396001600160a01b031663a9059cbb83836040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561017057600080fd5b505af1158015610184573d6000803e3d6000fd5b505050506040513d602081101561019a57600080fd5b50505050565b7f000000000000000000000000c45c51d423f5e2ad2e946e45d9ec7dcf04f9bd398156fea2646970667358221220d2e10c679f8dffeaefdb9b003df04196118abda7d2f6a9c0ce732ac8a4f75fa464736f6c63430007050033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000006b4dfabaf0fb0cf813526572cc86b2695c9d050000000000000000000000000c45c51d423f5e2ad2e946e45d9ec7dcf04f9bd39
-----Decoded View---------------
Arg [0] : _staking (address): 0x06B4dFAbAf0fb0Cf813526572cc86B2695c9D050
Arg [1] : _sZ2O (address): 0xc45C51d423F5E2Ad2e946E45D9EC7DCF04F9bd39
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000006b4dfabaf0fb0cf813526572cc86b2695c9d050
Arg [1] : 000000000000000000000000c45c51d423f5e2ad2e946e45d9ec7dcf04f9bd39
Age | Block | Fee Address | BC Fee Address | Voting Power | Jailed | Incoming |
---|
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.