Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 6,305 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Stake | 16369007 | 749 days ago | IN | 0 ETH | 0.00358346 | ||||
Stake | 15965289 | 805 days ago | IN | 0 ETH | 0.00307082 | ||||
Stake | 15517733 | 868 days ago | IN | 0 ETH | 0.0019064 | ||||
Stake | 15295223 | 904 days ago | IN | 0 ETH | 0.00141172 | ||||
Stake | 15295142 | 904 days ago | IN | 0 ETH | 0.00118118 | ||||
Stake | 14978839 | 955 days ago | IN | 0 ETH | 0.00067452 | ||||
Stake | 14536401 | 1026 days ago | IN | 0 ETH | 0.00851045 | ||||
Stake | 14504163 | 1031 days ago | IN | 0 ETH | 0.01171367 | ||||
Stake | 14480134 | 1035 days ago | IN | 0 ETH | 0.00332283 | ||||
Stake | 14480134 | 1035 days ago | IN | 0 ETH | 0.00351808 | ||||
Stake | 14480134 | 1035 days ago | IN | 0 ETH | 0.00478196 | ||||
Stake | 14473917 | 1036 days ago | IN | 0 ETH | 0.00083936 | ||||
Stake | 14473917 | 1036 days ago | IN | 0 ETH | 0.00714629 | ||||
Stake | 14459162 | 1038 days ago | IN | 0 ETH | 0.00746874 | ||||
Stake | 14391223 | 1049 days ago | IN | 0 ETH | 0.00410849 | ||||
Stake | 14271283 | 1067 days ago | IN | 0 ETH | 0.01575228 | ||||
Stake | 14232295 | 1073 days ago | IN | 0 ETH | 0.02161763 | ||||
Stake | 14203208 | 1078 days ago | IN | 0 ETH | 0.00744611 | ||||
Stake | 14199754 | 1078 days ago | IN | 0 ETH | 0.00570393 | ||||
Stake | 14195257 | 1079 days ago | IN | 0 ETH | 0.01119672 | ||||
Stake | 14192582 | 1080 days ago | IN | 0 ETH | 0.00213329 | ||||
Stake | 14192185 | 1080 days ago | IN | 0 ETH | 0.00152865 | ||||
Stake | 14191784 | 1080 days ago | IN | 0 ETH | 0.00180959 | ||||
Stake | 14191775 | 1080 days ago | IN | 0 ETH | 0.00132107 | ||||
Stake | 14191775 | 1080 days ago | IN | 0 ETH | 0.00430986 |
Advanced mode: Intended for advanced users or developers and will display all Internal Transactions including zero value transfers. Name tag integration is not available in advanced view.
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
||||
---|---|---|---|---|---|---|---|
16369007 | 749 days ago | 0 ETH | |||||
16369007 | 749 days ago | 0 ETH | |||||
16369007 | 749 days ago | 0 ETH | |||||
16369007 | 749 days ago | 0 ETH | |||||
15965289 | 805 days ago | 0 ETH | |||||
15965289 | 805 days ago | 0 ETH | |||||
15965289 | 805 days ago | 0 ETH | |||||
15965289 | 805 days ago | 0 ETH | |||||
15517733 | 868 days ago | 0 ETH | |||||
15517733 | 868 days ago | 0 ETH | |||||
15517733 | 868 days ago | 0 ETH | |||||
15517733 | 868 days ago | 0 ETH | |||||
15295223 | 904 days ago | 0 ETH | |||||
15295223 | 904 days ago | 0 ETH | |||||
15295223 | 904 days ago | 0 ETH | |||||
15295223 | 904 days ago | 0 ETH | |||||
15295142 | 904 days ago | 0 ETH | |||||
15295142 | 904 days ago | 0 ETH | |||||
15295142 | 904 days ago | 0 ETH | |||||
15295142 | 904 days ago | 0 ETH | |||||
14978839 | 955 days ago | 0 ETH | |||||
14536401 | 1026 days ago | 0 ETH | |||||
14536401 | 1026 days ago | 0 ETH | |||||
14536401 | 1026 days ago | 0 ETH | |||||
14536401 | 1026 days ago | 0 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
StakingHelper
Compiler Version
v0.7.5+commit.eb77ed08
Optimization Enabled:
No with 200 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); } interface IStaking { function stake( uint _amount, address _recipient ) external returns ( bool ); function claim( address _recipient ) external; } contract StakingHelper { address public immutable staking; address public immutable OHM; constructor ( address _staking, address _OHM ) { require( _staking != address(0) ); staking = _staking; require( _OHM != address(0) ); OHM = _OHM; } function stake( uint _amount ) external { IERC20( OHM ).transferFrom( msg.sender, address(this), _amount ); IERC20( OHM ).approve( staking, _amount ); IStaking( staking ).stake( _amount, msg.sender ); IStaking( staking ).claim( msg.sender ); } }
{ "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
[{"inputs":[{"internalType":"address","name":"_staking","type":"address"},{"internalType":"address","name":"_OHM","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"OHM","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"staking","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60c060405234801561001057600080fd5b506040516106163803806106168339818101604052604081101561003357600080fd5b810190808051906020019092919080519060200190929190505050600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561008857600080fd5b8173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b81525050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156100f957600080fd5b8073ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b81525050505060805160601c60a05160601c6104a36101736000398061010252806101ed528061044b52508060de528061022952806102da52806103a752506104a36000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80634cf088d914610046578063a694fc3a1461007a578063a6c41fec146100a8575b600080fd5b61004e6100dc565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100a66004803603602081101561009057600080fd5b8101908080359060200190929190505050610100565b005b6100b0610449565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1580156101af57600080fd5b505af11580156101c3573d6000803e3d6000fd5b505050506040513d60208110156101d957600080fd5b8101908080519060200190929190505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f0000000000000000000000000000000000000000000000000000000000000000836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561029c57600080fd5b505af11580156102b0573d6000803e3d6000fd5b505050506040513d60208110156102c657600080fd5b8101908080519060200190929190505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16637acb775782336040518363ffffffff1660e01b8152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff16815260200192505050602060405180830381600087803b15801561036957600080fd5b505af115801561037d573d6000803e3d6000fd5b505050506040513d602081101561039357600080fd5b8101908080519060200190929190505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16631e83409a336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b15801561042e57600080fd5b505af1158015610442573d6000803e3d6000fd5b5050505050565b7f00000000000000000000000000000000000000000000000000000000000000008156fea264697066735822122087a62ae294c781347ec7727cc3fc84c7d58d8ab9ab3784324d0a28e8ffc96ef864736f6c634300070500330000000000000000000000005895b13da9beb11e36136817cdcf3c4fcb16aaea00000000000000000000000021ad647b8f4fe333212e735bfc1f36b4941e6ad2
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100415760003560e01c80634cf088d914610046578063a694fc3a1461007a578063a6c41fec146100a8575b600080fd5b61004e6100dc565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100a66004803603602081101561009057600080fd5b8101908080359060200190929190505050610100565b005b6100b0610449565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b7f0000000000000000000000005895b13da9beb11e36136817cdcf3c4fcb16aaea81565b7f00000000000000000000000021ad647b8f4fe333212e735bfc1f36b4941e6ad273ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1580156101af57600080fd5b505af11580156101c3573d6000803e3d6000fd5b505050506040513d60208110156101d957600080fd5b8101908080519060200190929190505050507f00000000000000000000000021ad647b8f4fe333212e735bfc1f36b4941e6ad273ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f0000000000000000000000005895b13da9beb11e36136817cdcf3c4fcb16aaea836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561029c57600080fd5b505af11580156102b0573d6000803e3d6000fd5b505050506040513d60208110156102c657600080fd5b8101908080519060200190929190505050507f0000000000000000000000005895b13da9beb11e36136817cdcf3c4fcb16aaea73ffffffffffffffffffffffffffffffffffffffff16637acb775782336040518363ffffffff1660e01b8152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff16815260200192505050602060405180830381600087803b15801561036957600080fd5b505af115801561037d573d6000803e3d6000fd5b505050506040513d602081101561039357600080fd5b8101908080519060200190929190505050507f0000000000000000000000005895b13da9beb11e36136817cdcf3c4fcb16aaea73ffffffffffffffffffffffffffffffffffffffff16631e83409a336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b15801561042e57600080fd5b505af1158015610442573d6000803e3d6000fd5b5050505050565b7f00000000000000000000000021ad647b8f4fe333212e735bfc1f36b4941e6ad28156fea264697066735822122087a62ae294c781347ec7727cc3fc84c7d58d8ab9ab3784324d0a28e8ffc96ef864736f6c63430007050033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000005895b13da9beb11e36136817cdcf3c4fcb16aaea00000000000000000000000021ad647b8f4fe333212e735bfc1f36b4941e6ad2
-----Decoded View---------------
Arg [0] : _staking (address): 0x5895B13Da9BEB11e36136817cdcf3c4fcb16aaeA
Arg [1] : _OHM (address): 0x21ad647b8F4Fe333212e735bfC1F36B4941E6Ad2
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000005895b13da9beb11e36136817cdcf3c4fcb16aaea
Arg [1] : 00000000000000000000000021ad647b8f4fe333212e735bfc1f36b4941e6ad2
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.