Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00Latest 25 from a total of 2,170 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Stake | 13091523 | 1541 days ago | IN | 0 ETH | 0.01748841 | ||||
| Stake | 13087938 | 1542 days ago | IN | 0 ETH | 0.01316717 | ||||
| Stake | 13087158 | 1542 days ago | IN | 0 ETH | 0.00855994 | ||||
| Stake | 13082807 | 1543 days ago | IN | 0 ETH | 0.01856437 | ||||
| Stake | 13081050 | 1543 days ago | IN | 0 ETH | 0.00859463 | ||||
| Stake | 13081025 | 1543 days ago | IN | 0 ETH | 0.00169749 | ||||
| Stake | 13080296 | 1543 days ago | IN | 0 ETH | 0.00756834 | ||||
| Stake | 13079372 | 1543 days ago | IN | 0 ETH | 0.0113484 | ||||
| Stake | 13077923 | 1544 days ago | IN | 0 ETH | 0.00680015 | ||||
| Stake | 13077748 | 1544 days ago | IN | 0 ETH | 0.00797277 | ||||
| Stake | 13077241 | 1544 days ago | IN | 0 ETH | 0.00872616 | ||||
| Stake | 13076937 | 1544 days ago | IN | 0 ETH | 0.01063679 | ||||
| Stake | 13075859 | 1544 days ago | IN | 0 ETH | 0.01227776 | ||||
| Stake | 13075731 | 1544 days ago | IN | 0 ETH | 0.01076603 | ||||
| Stake | 13075708 | 1544 days ago | IN | 0 ETH | 0.00181509 | ||||
| Stake | 13074519 | 1544 days ago | IN | 0 ETH | 0.00444041 | ||||
| Stake | 13074287 | 1544 days ago | IN | 0 ETH | 0.00541302 | ||||
| Stake | 13073647 | 1544 days ago | IN | 0 ETH | 0.00446418 | ||||
| Stake | 13073534 | 1544 days ago | IN | 0 ETH | 0.00423136 | ||||
| Stake | 13073529 | 1544 days ago | IN | 0 ETH | 0.00492405 | ||||
| Stake | 13073455 | 1544 days ago | IN | 0 ETH | 0.00402507 | ||||
| Stake | 13073329 | 1544 days ago | IN | 0 ETH | 0.00293428 | ||||
| Stake | 13073052 | 1544 days ago | IN | 0 ETH | 0.00468019 | ||||
| Stake | 13073033 | 1544 days ago | IN | 0 ETH | 0.00582496 | ||||
| Stake | 13073019 | 1544 days ago | IN | 0 ETH | 0.00424398 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
StakingHelper
Compiler Version
v0.7.5+commit.eb77ed08
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2021-08-12
*/
/**
*Submitted for verification at Etherscan.io on 2021-06-12
*/
// 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`.stakingHelper_address
*/
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 ASG;
constructor(address _staking, address _ASG) {
require(_staking != address(0));
staking = _staking;
require(_ASG != address(0));
ASG = _ASG;
}
function stake(uint256 _amount, address _recipient) external {
IERC20(ASG).transferFrom(msg.sender, address(this), _amount);
IERC20(ASG).approve(staking, _amount);
IStaking(staking).stake(_amount, _recipient);
IStaking(staking).claim(_recipient);
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_staking","type":"address"},{"internalType":"address","name":"_ASG","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ASG","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
60c060405234801561001057600080fd5b506040516106373803806106378339818101604052604081101561003357600080fd5b810190808051906020019092919080519060200190929190505050600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561008857600080fd5b8173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b81525050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156100f957600080fd5b8073ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b81525050505060805160601c60a05160601c6104c46101736000398060fe52806101465280610231525080610122528061026d528061031e52806103eb52506104c46000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80631405ce27146100465780634cf088d91461007a5780637acb7757146100ae575b600080fd5b61004e6100fc565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610082610120565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100fa600480360360408110156100c457600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610144565b005b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166323b872dd3330856040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1580156101f357600080fd5b505af1158015610207573d6000803e3d6000fd5b505050506040513d602081101561021d57600080fd5b8101908080519060200190929190505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f0000000000000000000000000000000000000000000000000000000000000000846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156102e057600080fd5b505af11580156102f4573d6000803e3d6000fd5b505050506040513d602081101561030a57600080fd5b8101908080519060200190929190505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16637acb775783836040518363ffffffff1660e01b8152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff16815260200192505050602060405180830381600087803b1580156103ad57600080fd5b505af11580156103c1573d6000803e3d6000fd5b505050506040513d60208110156103d757600080fd5b8101908080519060200190929190505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16631e83409a826040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b15801561047257600080fd5b505af1158015610486573d6000803e3d6000fd5b50505050505056fea264697066735822122015551768bfecd6ef5eaf04c4d3a173a93921c6ac2047f1c9041378d737597b6664736f6c634300070500330000000000000000000000004ea2bb6df87f66cbea70818ae92f3a48f98ebc930000000000000000000000000dc5189ec8cde5732a01f0f592e927b304370551
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100415760003560e01c80631405ce27146100465780634cf088d91461007a5780637acb7757146100ae575b600080fd5b61004e6100fc565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610082610120565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100fa600480360360408110156100c457600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610144565b005b7f0000000000000000000000000dc5189ec8cde5732a01f0f592e927b30437055181565b7f0000000000000000000000004ea2bb6df87f66cbea70818ae92f3a48f98ebc9381565b7f0000000000000000000000000dc5189ec8cde5732a01f0f592e927b30437055173ffffffffffffffffffffffffffffffffffffffff166323b872dd3330856040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1580156101f357600080fd5b505af1158015610207573d6000803e3d6000fd5b505050506040513d602081101561021d57600080fd5b8101908080519060200190929190505050507f0000000000000000000000000dc5189ec8cde5732a01f0f592e927b30437055173ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f0000000000000000000000004ea2bb6df87f66cbea70818ae92f3a48f98ebc93846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156102e057600080fd5b505af11580156102f4573d6000803e3d6000fd5b505050506040513d602081101561030a57600080fd5b8101908080519060200190929190505050507f0000000000000000000000004ea2bb6df87f66cbea70818ae92f3a48f98ebc9373ffffffffffffffffffffffffffffffffffffffff16637acb775783836040518363ffffffff1660e01b8152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff16815260200192505050602060405180830381600087803b1580156103ad57600080fd5b505af11580156103c1573d6000803e3d6000fd5b505050506040513d60208110156103d757600080fd5b8101908080519060200190929190505050507f0000000000000000000000004ea2bb6df87f66cbea70818ae92f3a48f98ebc9373ffffffffffffffffffffffffffffffffffffffff16631e83409a826040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b15801561047257600080fd5b505af1158015610486573d6000803e3d6000fd5b50505050505056fea264697066735822122015551768bfecd6ef5eaf04c4d3a173a93921c6ac2047f1c9041378d737597b6664736f6c63430007050033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000004ea2bb6df87f66cbea70818ae92f3a48f98ebc930000000000000000000000000dc5189ec8cde5732a01f0f592e927b304370551
-----Decoded View---------------
Arg [0] : _staking (address): 0x4EA2bb6Df87F66cbea70818aE92f3A48F98EBC93
Arg [1] : _ASG (address): 0x0DC5189Ec8CDe5732a01F0F592e927B304370551
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000004ea2bb6df87f66cbea70818ae92f3a48f98ebc93
Arg [1] : 0000000000000000000000000dc5189ec8cde5732a01f0f592e927b304370551
Deployed Bytecode Sourcemap
3137:588:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3206:28;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;3167:32;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;3433:289;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;3206:28;;;:::o;3167:32::-;;;:::o;3433:289::-;3512:3;3505:24;;;3530:10;3550:4;3557:7;3505:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3583:3;3576:19;;;3596:7;3605;3576:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3633:7;3624:23;;;3648:7;3657:10;3624:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3688:7;3679:23;;;3703:10;3679:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3433:289;;:::o
Swarm Source
ipfs://15551768bfecd6ef5eaf04c4d3a173a93921c6ac2047f1c9041378d737597b66
Loading...
Loading
Loading...
Loading
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.