Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00Latest 25 from a total of 3,086 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Stake | 14462672 | 1429 days ago | IN | 0 ETH | 0.00082039 | ||||
| Stake | 14030976 | 1496 days ago | IN | 0 ETH | 0.03431828 | ||||
| Stake | 13971695 | 1505 days ago | IN | 0 ETH | 0.01158752 | ||||
| Stake | 13936656 | 1510 days ago | IN | 0 ETH | 0.0175945 | ||||
| Stake | 13936547 | 1510 days ago | IN | 0 ETH | 0.01986643 | ||||
| Stake | 13936482 | 1510 days ago | IN | 0 ETH | 0.01728697 | ||||
| Stake | 13936410 | 1510 days ago | IN | 0 ETH | 0.01732281 | ||||
| Stake | 13936071 | 1511 days ago | IN | 0 ETH | 0.03804778 | ||||
| Stake | 13930117 | 1511 days ago | IN | 0 ETH | 0.01624993 | ||||
| Stake | 13928193 | 1512 days ago | IN | 0 ETH | 0.01487911 | ||||
| Stake | 13926308 | 1512 days ago | IN | 0 ETH | 0.02967465 | ||||
| Stake | 13924985 | 1512 days ago | IN | 0 ETH | 0.02471283 | ||||
| Stake | 13920464 | 1513 days ago | IN | 0 ETH | 0.01404838 | ||||
| Stake | 13920114 | 1513 days ago | IN | 0 ETH | 0.01017439 | ||||
| Stake | 13920054 | 1513 days ago | IN | 0 ETH | 0.01935835 | ||||
| Stake | 13919105 | 1513 days ago | IN | 0 ETH | 0.00948598 | ||||
| Stake | 13918759 | 1513 days ago | IN | 0 ETH | 0.00937767 | ||||
| Stake | 13918412 | 1513 days ago | IN | 0 ETH | 0.01169967 | ||||
| Stake | 13917171 | 1513 days ago | IN | 0 ETH | 0.01632814 | ||||
| Stake | 13915898 | 1514 days ago | IN | 0 ETH | 0.02553844 | ||||
| Stake | 13913564 | 1514 days ago | IN | 0 ETH | 0.01159974 | ||||
| Stake | 13913140 | 1514 days ago | IN | 0 ETH | 0.01148775 | ||||
| Stake | 13913014 | 1514 days ago | IN | 0 ETH | 0.02482833 | ||||
| Stake | 13912445 | 1514 days ago | IN | 0 ETH | 0.01545397 | ||||
| Stake | 13911524 | 1514 days ago | IN | 0 ETH | 0.03302593 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
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
Contract ABI
API[{"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
60c060405234801561001057600080fd5b506040516106163803806106168339818101604052604081101561003357600080fd5b810190808051906020019092919080519060200190929190505050600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561008857600080fd5b8173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b81525050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156100f957600080fd5b8073ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b81525050505060805160601c60a05160601c6104a36101736000398061010252806101ed528061044b52508060de528061022952806102da52806103a752506104a36000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80634cf088d914610046578063a694fc3a1461007a578063a6c41fec146100a8575b600080fd5b61004e6100dc565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100a66004803603602081101561009057600080fd5b8101908080359060200190929190505050610100565b005b6100b0610449565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1580156101af57600080fd5b505af11580156101c3573d6000803e3d6000fd5b505050506040513d60208110156101d957600080fd5b8101908080519060200190929190505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f0000000000000000000000000000000000000000000000000000000000000000836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561029c57600080fd5b505af11580156102b0573d6000803e3d6000fd5b505050506040513d60208110156102c657600080fd5b8101908080519060200190929190505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16637acb775782336040518363ffffffff1660e01b8152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff16815260200192505050602060405180830381600087803b15801561036957600080fd5b505af115801561037d573d6000803e3d6000fd5b505050506040513d602081101561039357600080fd5b8101908080519060200190929190505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16631e83409a336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b15801561042e57600080fd5b505af1158015610442573d6000803e3d6000fd5b5050505050565b7f00000000000000000000000000000000000000000000000000000000000000008156fea264697066735822122087a62ae294c781347ec7727cc3fc84c7d58d8ab9ab3784324d0a28e8ffc96ef864736f6c6343000705003300000000000000000000000095deaf8dd30380acd6cc5e4e90e5eef94d2588540000000000000000000000008a14897ea5f668f36671678593fae44ae23b39fb
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100415760003560e01c80634cf088d914610046578063a694fc3a1461007a578063a6c41fec146100a8575b600080fd5b61004e6100dc565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100a66004803603602081101561009057600080fd5b8101908080359060200190929190505050610100565b005b6100b0610449565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b7f00000000000000000000000095deaf8dd30380acd6cc5e4e90e5eef94d25885481565b7f0000000000000000000000008a14897ea5f668f36671678593fae44ae23b39fb73ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1580156101af57600080fd5b505af11580156101c3573d6000803e3d6000fd5b505050506040513d60208110156101d957600080fd5b8101908080519060200190929190505050507f0000000000000000000000008a14897ea5f668f36671678593fae44ae23b39fb73ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f00000000000000000000000095deaf8dd30380acd6cc5e4e90e5eef94d258854836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561029c57600080fd5b505af11580156102b0573d6000803e3d6000fd5b505050506040513d60208110156102c657600080fd5b8101908080519060200190929190505050507f00000000000000000000000095deaf8dd30380acd6cc5e4e90e5eef94d25885473ffffffffffffffffffffffffffffffffffffffff16637acb775782336040518363ffffffff1660e01b8152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff16815260200192505050602060405180830381600087803b15801561036957600080fd5b505af115801561037d573d6000803e3d6000fd5b505050506040513d602081101561039357600080fd5b8101908080519060200190929190505050507f00000000000000000000000095deaf8dd30380acd6cc5e4e90e5eef94d25885473ffffffffffffffffffffffffffffffffffffffff16631e83409a336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b15801561042e57600080fd5b505af1158015610442573d6000803e3d6000fd5b5050505050565b7f0000000000000000000000008a14897ea5f668f36671678593fae44ae23b39fb8156fea264697066735822122087a62ae294c781347ec7727cc3fc84c7d58d8ab9ab3784324d0a28e8ffc96ef864736f6c63430007050033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000095deaf8dd30380acd6cc5e4e90e5eef94d2588540000000000000000000000008a14897ea5f668f36671678593fae44ae23b39fb
-----Decoded View---------------
Arg [0] : _staking (address): 0x95deaF8dd30380acd6CC5E4E90e5EEf94d258854
Arg [1] : _OHM (address): 0x8a14897eA5F668f36671678593fAe44Ae23B39FB
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000095deaf8dd30380acd6cc5e4e90e5eef94d258854
Arg [1] : 0000000000000000000000008a14897ea5f668f36671678593fae44ae23b39fb
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
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.