Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 1,169 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Stake | 14767481 | 979 days ago | IN | 0 ETH | 0.01113325 | ||||
Stake | 14289611 | 1054 days ago | IN | 0 ETH | 0.01352946 | ||||
Stake | 14170207 | 1072 days ago | IN | 0 ETH | 0.01508813 | ||||
Stake | 14146333 | 1076 days ago | IN | 0 ETH | 0.02095021 | ||||
Stake | 14145258 | 1076 days ago | IN | 0 ETH | 0.00954057 | ||||
Stake | 14143861 | 1076 days ago | IN | 0 ETH | 0.01547187 | ||||
Stake | 14142990 | 1077 days ago | IN | 0 ETH | 0.01562847 | ||||
Stake | 14141140 | 1077 days ago | IN | 0 ETH | 0.04178969 | ||||
Stake | 14126449 | 1079 days ago | IN | 0 ETH | 0.02431528 | ||||
Stake | 14120674 | 1080 days ago | IN | 0 ETH | 0.04349801 | ||||
Stake | 14116568 | 1081 days ago | IN | 0 ETH | 0.03618572 | ||||
Stake | 14116159 | 1081 days ago | IN | 0 ETH | 0.02473629 | ||||
Stake | 14116148 | 1081 days ago | IN | 0 ETH | 0.02470828 | ||||
Stake | 14115634 | 1081 days ago | IN | 0 ETH | 0.03738259 | ||||
Stake | 14103847 | 1083 days ago | IN | 0 ETH | 0.02024176 | ||||
Stake | 14101673 | 1083 days ago | IN | 0 ETH | 0.01680385 | ||||
Stake | 14101565 | 1083 days ago | IN | 0 ETH | 0.02300813 | ||||
Stake | 14101452 | 1083 days ago | IN | 0 ETH | 0.01939672 | ||||
Stake | 14097577 | 1084 days ago | IN | 0 ETH | 0.04309202 | ||||
Stake | 14089344 | 1085 days ago | IN | 0 ETH | 0.07029908 | ||||
Stake | 14085430 | 1085 days ago | IN | 0 ETH | 0.02861902 | ||||
Stake | 14083540 | 1086 days ago | IN | 0 ETH | 0.02708472 | ||||
Stake | 14077269 | 1087 days ago | IN | 0 ETH | 0.02196166 | ||||
Stake | 14077121 | 1087 days ago | IN | 0 ETH | 0.04927481 | ||||
Stake | 14075280 | 1087 days ago | IN | 0 ETH | 0.02686022 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
StakingHelper
Compiler Version
v0.7.5+commit.eb77ed08
Optimization Enabled:
Yes with 1000 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(uint256 _amount, address _recipient) external returns (bool); function claim(address _recipient) external; } contract StakingHelper { address public immutable staking; address public immutable DMND; constructor(address _staking, address _DMND) { require(_staking != address(0)); staking = _staking; require(_DMND != address(0)); DMND = _DMND; } function stake(uint256 _amount, address _recipient) external { IERC20(DMND).transferFrom(msg.sender, address(this), _amount); IERC20(DMND).approve(staking, _amount); IStaking(staking).stake(_amount, _recipient); IStaking(staking).claim(_recipient); } }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_staking","type":"address"},{"internalType":"address","name":"_DMND","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"DMND","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_recipient","type":"address"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"staking","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60c060405234801561001057600080fd5b506040516104d53803806104d58339818101604052604081101561003357600080fd5b5080516020909101516001600160a01b03821661004f57600080fd5b6001600160601b0319606083901b166080526001600160a01b03811661007457600080fd5b606081811b6001600160601b03191660a052608051901c91506001600160a01b031661040b6100ca6000398060c6528061012e528061020452508060a252806101d352806102bd528061036f525061040b6000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80634cf088d9146100465780636d7e9a081461006a5780637acb775714610072575b600080fd5b61004e6100a0565b604080516001600160a01b039092168252519081900360200190f35b61004e6100c4565b61009e6004803603604081101561008857600080fd5b50803590602001356001600160a01b03166100e8565b005b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b604080517f23b872dd0000000000000000000000000000000000000000000000000000000081523360048201523060248201526044810184905290516001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916323b872dd9160648083019260209291908290030181600087803b15801561017657600080fd5b505af115801561018a573d6000803e3d6000fd5b505050506040513d60208110156101a057600080fd5b5050604080517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301526024820185905291517f00000000000000000000000000000000000000000000000000000000000000009092169163095ea7b3916044808201926020929091908290030181600087803b15801561024f57600080fd5b505af1158015610263573d6000803e3d6000fd5b505050506040513d602081101561027957600080fd5b5050604080517f7acb7757000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b03838116602483015291517f000000000000000000000000000000000000000000000000000000000000000090921691637acb7757916044808201926020929091908290030181600087803b15801561030857600080fd5b505af115801561031c573d6000803e3d6000fd5b505050506040513d602081101561033257600080fd5b5050604080517f1e83409a0000000000000000000000000000000000000000000000000000000081526001600160a01b03838116600483015291517f000000000000000000000000000000000000000000000000000000000000000090921691631e83409a9160248082019260009290919082900301818387803b1580156103b957600080fd5b505af11580156103cd573d6000803e3d6000fd5b50505050505056fea264697066735822122063adae22208b585cc1ec713b85547729357260a608f0d6dff57ec97325f2601a64736f6c63430007050033000000000000000000000000dcacd61fcc9cee58c6b38076d867ba4c7e738ca3000000000000000000000000144e3b02e08e644ffbb7ff652763f5b72ee22701
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100415760003560e01c80634cf088d9146100465780636d7e9a081461006a5780637acb775714610072575b600080fd5b61004e6100a0565b604080516001600160a01b039092168252519081900360200190f35b61004e6100c4565b61009e6004803603604081101561008857600080fd5b50803590602001356001600160a01b03166100e8565b005b7f000000000000000000000000dcacd61fcc9cee58c6b38076d867ba4c7e738ca381565b7f000000000000000000000000144e3b02e08e644ffbb7ff652763f5b72ee2270181565b604080517f23b872dd0000000000000000000000000000000000000000000000000000000081523360048201523060248201526044810184905290516001600160a01b037f000000000000000000000000144e3b02e08e644ffbb7ff652763f5b72ee2270116916323b872dd9160648083019260209291908290030181600087803b15801561017657600080fd5b505af115801561018a573d6000803e3d6000fd5b505050506040513d60208110156101a057600080fd5b5050604080517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b037f000000000000000000000000dcacd61fcc9cee58c6b38076d867ba4c7e738ca3811660048301526024820185905291517f000000000000000000000000144e3b02e08e644ffbb7ff652763f5b72ee227019092169163095ea7b3916044808201926020929091908290030181600087803b15801561024f57600080fd5b505af1158015610263573d6000803e3d6000fd5b505050506040513d602081101561027957600080fd5b5050604080517f7acb7757000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b03838116602483015291517f000000000000000000000000dcacd61fcc9cee58c6b38076d867ba4c7e738ca390921691637acb7757916044808201926020929091908290030181600087803b15801561030857600080fd5b505af115801561031c573d6000803e3d6000fd5b505050506040513d602081101561033257600080fd5b5050604080517f1e83409a0000000000000000000000000000000000000000000000000000000081526001600160a01b03838116600483015291517f000000000000000000000000dcacd61fcc9cee58c6b38076d867ba4c7e738ca390921691631e83409a9160248082019260009290919082900301818387803b1580156103b957600080fd5b505af11580156103cd573d6000803e3d6000fd5b50505050505056fea264697066735822122063adae22208b585cc1ec713b85547729357260a608f0d6dff57ec97325f2601a64736f6c63430007050033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000dcacd61fcc9cee58c6b38076d867ba4c7e738ca3000000000000000000000000144e3b02e08e644ffbb7ff652763f5b72ee22701
-----Decoded View---------------
Arg [0] : _staking (address): 0xdcaCD61fCC9CeE58C6B38076D867Ba4C7E738ca3
Arg [1] : _DMND (address): 0x144E3b02e08e644fFbB7fF652763F5B72eE22701
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000dcacd61fcc9cee58c6b38076d867ba4c7e738ca3
Arg [1] : 000000000000000000000000144e3b02e08e644ffbb7ff652763f5b72ee22701
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.