Latest 25 from a total of 8,167 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Stake | 21548929 | 376 days ago | IN | 0 ETH | 0.00019175 | ||||
| Stake | 21463136 | 388 days ago | IN | 0 ETH | 0.00248858 | ||||
| Stake | 21328792 | 406 days ago | IN | 0 ETH | 0.00704853 | ||||
| Stake | 20558659 | 514 days ago | IN | 0 ETH | 0.00047509 | ||||
| Stake | 20408520 | 535 days ago | IN | 0 ETH | 0.00026664 | ||||
| Stake | 20342258 | 544 days ago | IN | 0 ETH | 0.00299092 | ||||
| Stake | 20251552 | 557 days ago | IN | 0 ETH | 0.00129008 | ||||
| Stake | 20212023 | 562 days ago | IN | 0 ETH | 0.00415412 | ||||
| Stake | 20149814 | 571 days ago | IN | 0 ETH | 0.00067392 | ||||
| Stake | 20127462 | 574 days ago | IN | 0 ETH | 0.00733784 | ||||
| Stake | 20050722 | 585 days ago | IN | 0 ETH | 0.00167865 | ||||
| Stake | 20022700 | 589 days ago | IN | 0 ETH | 0.00343224 | ||||
| Stake | 20006589 | 591 days ago | IN | 0 ETH | 0.00799049 | ||||
| Stake | 20006512 | 591 days ago | IN | 0 ETH | 0.00701815 | ||||
| Stake | 19990836 | 593 days ago | IN | 0 ETH | 0.00918565 | ||||
| Stake | 19978262 | 595 days ago | IN | 0 ETH | 0.00379003 | ||||
| Stake | 19972298 | 596 days ago | IN | 0 ETH | 0.00031509 | ||||
| Stake | 19972298 | 596 days ago | IN | 0 ETH | 0.00342851 | ||||
| Stake | 19967325 | 596 days ago | IN | 0 ETH | 0.00867673 | ||||
| Stake | 19955933 | 598 days ago | IN | 0 ETH | 0.00163455 | ||||
| Stake | 19955308 | 598 days ago | IN | 0 ETH | 0.00263402 | ||||
| Stake | 19950366 | 599 days ago | IN | 0 ETH | 0.00071436 | ||||
| Stake | 19950361 | 599 days ago | IN | 0 ETH | 0.00128679 | ||||
| Stake | 19950336 | 599 days ago | IN | 0 ETH | 0.00133675 | ||||
| Stake | 19943270 | 600 days ago | IN | 0 ETH | 0.00079737 |
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
StakingHelper
Compiler Version
v0.7.5+commit.eb77ed08
Optimization Enabled:
Yes with 200 runs
Other Settings:
istanbul EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.7.5;
import "./lib/IERC20.sol";
import "./lib/IStaking.sol";
contract StakingHelper {
address public immutable staking;
address public immutable Sync;
constructor(address _staking, address _Sync) {
require(_staking != address(0));
staking = _staking;
require(_Sync != address(0));
Sync = _Sync;
}
function stake(uint _amount, address recipient) external {
IERC20(Sync).transferFrom(msg.sender, address(this), _amount);
IERC20(Sync).approve(staking, _amount);
IStaking(staking).stake(_amount, recipient);
IStaking(staking).claim(recipient);
}
}// 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
);
}// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.7.5;
interface IStaking {
function stake(uint _amount, address _recipient) external returns (bool);
function claim(address _recipient) external;
struct Epoch {
uint number;
uint distribute;
uint32 length;
uint32 endTime;
}
function setEpochDistribution(uint _amount) external;
}{
"remappings": [
"ds-test/=lib/forge-std/lib/ds-test/src/",
"erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
"forge-std/=lib/forge-std/src/",
"openzeppelin-contracts/=lib/openzeppelin-contracts/",
"openzeppelin/=lib/openzeppelin-contracts/contracts/"
],
"optimizer": {
"enabled": true,
"runs": 200
},
"metadata": {
"useLiteralContent": false,
"bytecodeHash": "ipfs"
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"evmVersion": "istanbul",
"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":"_Sync","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"Sync","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
60c060405234801561001057600080fd5b506040516104713803806104718339818101604052604081101561003357600080fd5b5080516020909101516001600160a01b03821661004f57600080fd5b6001600160601b0319606083901b166080526001600160a01b03811661007457600080fd5b606081811b6001600160601b03191660a052608051901c91506001600160a01b03166103a76100ca6000398060f152806101ae528061034f52508060a2528061017d528061024e52806102e752506103a76000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80634cf088d9146100465780637acb77571461006a578063da35e06c14610098575b600080fd5b61004e6100a0565b604080516001600160a01b039092168252519081900360200190f35b6100966004803603604081101561008057600080fd5b50803590602001356001600160a01b03166100c4565b005b61004e61034d565b7f000000000000000000000000000000000000000000000000000000000000000081565b604080516323b872dd60e01b81523360048201523060248201526044810184905290516001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916323b872dd9160648083019260209291908290030181600087803b15801561013957600080fd5b505af115801561014d573d6000803e3d6000fd5b505050506040513d602081101561016357600080fd5b50506040805163095ea7b360e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301526024820185905291517f00000000000000000000000000000000000000000000000000000000000000009092169163095ea7b3916044808201926020929091908290030181600087803b1580156101f957600080fd5b505af115801561020d573d6000803e3d6000fd5b505050506040513d602081101561022357600080fd5b505060408051637acb775760e01b8152600481018490526001600160a01b03838116602483015291517f000000000000000000000000000000000000000000000000000000000000000090921691637acb7757916044808201926020929091908290030181600087803b15801561029957600080fd5b505af11580156102ad573d6000803e3d6000fd5b505050506040513d60208110156102c357600080fd5b505060408051630f41a04d60e11b81526001600160a01b03838116600483015291517f000000000000000000000000000000000000000000000000000000000000000090921691631e83409a9160248082019260009290919082900301818387803b15801561033157600080fd5b505af1158015610345573d6000803e3d6000fd5b505050505050565b7f00000000000000000000000000000000000000000000000000000000000000008156fea264697066735822122078f7e82516867d4e394d0a6441157e68d0514cbd8cd92c626beda781693593c664736f6c63430007050033000000000000000000000000c738cdb5140d6b7f688ba05a25c8a51568622d96000000000000000000000000a41d2f8ee4f47d3b860a149765a7df8c3287b7f0
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100415760003560e01c80634cf088d9146100465780637acb77571461006a578063da35e06c14610098575b600080fd5b61004e6100a0565b604080516001600160a01b039092168252519081900360200190f35b6100966004803603604081101561008057600080fd5b50803590602001356001600160a01b03166100c4565b005b61004e61034d565b7f000000000000000000000000c738cdb5140d6b7f688ba05a25c8a51568622d9681565b604080516323b872dd60e01b81523360048201523060248201526044810184905290516001600160a01b037f000000000000000000000000a41d2f8ee4f47d3b860a149765a7df8c3287b7f016916323b872dd9160648083019260209291908290030181600087803b15801561013957600080fd5b505af115801561014d573d6000803e3d6000fd5b505050506040513d602081101561016357600080fd5b50506040805163095ea7b360e01b81526001600160a01b037f000000000000000000000000c738cdb5140d6b7f688ba05a25c8a51568622d96811660048301526024820185905291517f000000000000000000000000a41d2f8ee4f47d3b860a149765a7df8c3287b7f09092169163095ea7b3916044808201926020929091908290030181600087803b1580156101f957600080fd5b505af115801561020d573d6000803e3d6000fd5b505050506040513d602081101561022357600080fd5b505060408051637acb775760e01b8152600481018490526001600160a01b03838116602483015291517f000000000000000000000000c738cdb5140d6b7f688ba05a25c8a51568622d9690921691637acb7757916044808201926020929091908290030181600087803b15801561029957600080fd5b505af11580156102ad573d6000803e3d6000fd5b505050506040513d60208110156102c357600080fd5b505060408051630f41a04d60e11b81526001600160a01b03838116600483015291517f000000000000000000000000c738cdb5140d6b7f688ba05a25c8a51568622d9690921691631e83409a9160248082019260009290919082900301818387803b15801561033157600080fd5b505af1158015610345573d6000803e3d6000fd5b505050505050565b7f000000000000000000000000a41d2f8ee4f47d3b860a149765a7df8c3287b7f08156fea264697066735822122078f7e82516867d4e394d0a6441157e68d0514cbd8cd92c626beda781693593c664736f6c63430007050033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c738cdb5140d6b7f688ba05a25c8a51568622d96000000000000000000000000a41d2f8ee4f47d3b860a149765a7df8c3287b7f0
-----Decoded View---------------
Arg [0] : _staking (address): 0xc738CDb5140d6b7F688ba05a25c8a51568622D96
Arg [1] : _Sync (address): 0xa41d2f8Ee4F47D3B860A149765A7dF8c3287b7F0
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000c738cdb5140d6b7f688ba05a25c8a51568622d96
Arg [1] : 000000000000000000000000a41d2f8ee4f47d3b860a149765a7df8c3287b7f0
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ 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.