ETH Price: $3,066.52 (-8.14%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Unstake210205482024-10-22 10:33:3597 days ago1729593215IN
0x6fB74E4E...401EF514b
0 ETH0.0008241510.1461092
Claim Reward209503082024-10-12 15:06:59107 days ago1728745619IN
0x6fB74E4E...401EF514b
0 ETH0.0016525429.25581537
Unstake207999492024-09-21 15:48:47128 days ago1726933727IN
0x6fB74E4E...401EF514b
0 ETH0.0010790313.28384428
Unstake200970292024-06-15 11:55:23226 days ago1718452523IN
0x6fB74E4E...401EF514b
0 ETH0.000391696.10799495
Unstake199396932024-05-24 12:18:11248 days ago1716553091IN
0x6fB74E4E...401EF514b
0 ETH0.0006811310.6213951
Claim Reward199394202024-05-24 11:23:35248 days ago1716549815IN
0x6fB74E4E...401EF514b
0 ETH0.000463588.20710966
Claim Reward198852412024-05-16 21:32:35255 days ago1715895155IN
0x6fB74E4E...401EF514b
0 ETH0.000380076.72863718
Unstake198852392024-05-16 21:32:11255 days ago1715895131IN
0x6fB74E4E...401EF514b
0 ETH0.000525666.47142085
Unstake198830962024-05-16 14:20:59256 days ago1715869259IN
0x6fB74E4E...401EF514b
0 ETH0.000564358.80034114
Claim Reward198521992024-05-12 6:36:59260 days ago1715495819IN
0x6fB74E4E...401EF514b
0 ETH0.000348556.17057127
Unstake198521962024-05-12 6:36:23260 days ago1715495783IN
0x6fB74E4E...401EF514b
0 ETH0.000421765.1923402
Claim Reward198478322024-05-11 15:58:23261 days ago1715443103IN
0x6fB74E4E...401EF514b
0 ETH0.000467218.27126287
Claim Reward198417882024-05-10 19:40:59261 days ago1715370059IN
0x6fB74E4E...401EF514b
0 ETH0.0005952110.5374053
Claim Reward198417852024-05-10 19:40:23261 days ago1715370023IN
0x6fB74E4E...401EF514b
0 ETH0.000564759.99819683
Claim Reward198279262024-05-08 21:10:11263 days ago1715202611IN
0x6fB74E4E...401EF514b
0 ETH0.000252314.46685873
Unstake198279252024-05-08 21:09:59263 days ago1715202599IN
0x6fB74E4E...401EF514b
0 ETH0.00025583.98894917
Unstake198270572024-05-08 18:14:23264 days ago1715192063IN
0x6fB74E4E...401EF514b
0 ETH0.001524927.54235231
Claim Reward198269822024-05-08 17:59:23264 days ago1715191163IN
0x6fB74E4E...401EF514b
0 ETH0.000287557.30101473
Claim Reward197367092024-04-26 2:58:47276 days ago1714100327IN
0x6fB74E4E...401EF514b
0 ETH0.000317878.07067343
Distribute Rewar...197115072024-04-22 14:22:35280 days ago1713795755IN
0x6fB74E4E...401EF514b
0 ETH0.0109349124.62102622
Claim Reward197112652024-04-22 13:33:47280 days ago1713792827IN
0x6fB74E4E...401EF514b
0 ETH0.0009334416.52528404
Unstake196803942024-04-18 5:56:11284 days ago1713419771IN
0x6fB74E4E...401EF514b
0 ETH0.0002496110.57351417
Unstake196724102024-04-17 3:08:47285 days ago1713323327IN
0x6fB74E4E...401EF514b
0 ETH0.000235669.98243064
Claim Reward196700042024-04-16 19:03:47286 days ago1713294227IN
0x6fB74E4E...401EF514b
0 ETH0.0008311214.71390724
Unstake196652632024-04-16 3:07:23286 days ago1713236843IN
0x6fB74E4E...401EF514b
0 ETH0.0007578511.8176092
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MiningStakeContract

Compiler Version
v0.8.24+commit.e11b9ed9

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2024-03-01
*/

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IERC20 {
    function transfer(address to, uint256 amount) external returns (bool);
    function transferFrom(address from, address to, uint256 amount) external returns (bool);
    function balanceOf(address account) external view returns (uint256);
}

contract MiningStakeContract {
    IERC20 public stakingToken;
    IERC20 public rewardToken;

    address public owner;
    uint256 public maxUsers = 50;
    uint256 public STAKE_LIMIT = 500*10**18;
    
    struct Stake {
        uint256 amount;
        bool staked;
        uint256 reward;
    }

    mapping(address => Stake) public stakes;
    address[] public stakers;

    constructor(address _stakingToken, address _rewardToken) {
        stakingToken = IERC20(_stakingToken);
        rewardToken = IERC20(_rewardToken);
        owner = msg.sender;
    }

    function stake(uint256 _amount) external {
        require(stakes[msg.sender].staked == false, "You have already staked");
        require(_amount == STAKE_LIMIT, "Invalid staking amount");
        require(stakers.length < maxUsers, "Maximum number of users reached");

        stakingToken.transferFrom(msg.sender, address(this), _amount);
        stakes[msg.sender] = Stake(_amount, true, 0);
        stakers.push(msg.sender);
    }

    function unstake() external {
        require(stakes[msg.sender].staked, "You have not staked");

        stakingToken.transfer(msg.sender, stakes[msg.sender].amount);
        stakes[msg.sender].staked = false;
    }

    function distributeRewards(uint256 _rewardAmount) external {
        require(msg.sender == owner, "Only the owner can distribute rewards");
        require(rewardToken.transferFrom(msg.sender, address(this), _rewardAmount), "Transfer failed");
        uint256 rewardPerUser = _rewardAmount / stakers.length;
        for (uint i = 0; i < stakers.length; i++) {
            if (stakes[stakers[i]].staked) {
                stakes[stakers[i]].reward += rewardPerUser;
            }
        }
    }

    function claimReward() external {
        uint256 reward = stakes[msg.sender].reward;
        require(reward > 0, "No rewards to claim");
        stakes[msg.sender].reward = 0;
        rewardToken.transfer(msg.sender, reward);
    }

    function claimStuckTokens(address _token) external {
        require(msg.sender == owner, "Only the owner can claim stuck tokens");
        uint256 amount = IERC20(_token).balanceOf(address(this));
        IERC20(_token).transfer(owner, amount);
    }

    function setMaxUsers(uint256 _maxUsers) external {
        require(msg.sender == owner, "Only the owner can set the maximum number of users");
        maxUsers = _maxUsers;
    }

    function setStakeLimit(uint256 _newLimit) external {
        require(msg.sender == owner, "Only the owner can set the maximum number of users");
        STAKE_LIMIT = _newLimit;
    }

    function setStakingToken(address _newStakingToken) external {
        require(msg.sender == owner, "Only the owner can update the staking token");
        stakingToken = IERC20(_newStakingToken);
    }

    function setRewardToken(address _newRewardToken) external {
        require(msg.sender == owner, "Only the owner can update the reward token");
        rewardToken = IERC20(_newRewardToken);
    }

    function getStakeInfo(address _user) external view returns (uint256 stakedAmount, bool isStaked, uint256 rewardAmount) {
        Stake storage stakeInfo = stakes[_user];
        return (stakeInfo.amount, stakeInfo.staked, stakeInfo.reward);
    }

    function getStakersCount() external view returns (uint256) {
        return stakers.length;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_stakingToken","type":"address"},{"internalType":"address","name":"_rewardToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"STAKE_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"claimStuckTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardAmount","type":"uint256"}],"name":"distributeRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getStakeInfo","outputs":[{"internalType":"uint256","name":"stakedAmount","type":"uint256"},{"internalType":"bool","name":"isStaked","type":"bool"},{"internalType":"uint256","name":"rewardAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getStakersCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxUsers","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxUsers","type":"uint256"}],"name":"setMaxUsers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newRewardToken","type":"address"}],"name":"setRewardToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newLimit","type":"uint256"}],"name":"setStakeLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newStakingToken","type":"address"}],"name":"setStakingToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"stakers","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"stakes","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bool","name":"staked","type":"bool"},{"internalType":"uint256","name":"reward","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526032600355681b1ae4d6e2ef50000060045534801561002257600080fd5b50604051610de3380380610de38339810160408190526100419161009e565b600080546001600160a01b039384166001600160a01b03199182161790915560018054929093169181169190911790915560028054909116331790556100d1565b80516001600160a01b038116811461009957600080fd5b919050565b600080604083850312156100b157600080fd5b6100ba83610082565b91506100c860208401610082565b90509250929050565b610d03806100e06000396000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c80638da5cb5b116100a2578063c345315311610071578063c34531531461024e578063e1b0e8021461028a578063f7c618c114610293578063f9d0831a146102a6578063fd5e6dd1146102b957600080fd5b80638da5cb5b1461020d578063a1c9b21314610220578063a694fc3a14610233578063b88a802f1461024657600080fd5b8063416f4267116100e9578063416f4267146101a157806348284789146101b457806359974e38146101bc57806372f702f3146101cf5780638aee8127146101fa57600080fd5b806316934fc41461011b5780631e9b12ef1461016d57806320ca5184146101825780632def662014610199575b600080fd5b61014d610129366004610b98565b600560205260009081526040902080546001820154600290920154909160ff169083565b604080519384529115156020840152908201526060015b60405180910390f35b61018061017b366004610b98565b6102cc565b005b61018b60045481565b604051908152602001610164565b610180610361565b6101806101af366004610bc8565b61045c565b60065461018b565b6101806101ca366004610bc8565b61048b565b6000546101e2906001600160a01b031681565b6040516001600160a01b039091168152602001610164565b610180610208366004610b98565b610674565b6002546101e2906001600160a01b031681565b61018061022e366004610bc8565b610703565b610180610241366004610bc8565b610732565b61018061093d565b61014d61025c366004610b98565b6001600160a01b0316600090815260056020526040902080546001820154600290920154909260ff90921691565b61018b60035481565b6001546101e2906001600160a01b031681565b6101806102b4366004610b98565b610a22565b6101e26102c7366004610bc8565b610b6e565b6002546001600160a01b0316331461033f5760405162461bcd60e51b815260206004820152602b60248201527f4f6e6c7920746865206f776e65722063616e207570646174652074686520737460448201526a30b5b4b733903a37b5b2b760a91b60648201526084015b60405180910390fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b3360009081526005602052604090206001015460ff166103b95760405162461bcd60e51b8152602060048201526013602482015272165bdd481a185d99481b9bdd081cdd185ad959606a1b6044820152606401610336565b6000805433808352600560205260409283902054925163a9059cbb60e01b8152600481019190915260248101929092526001600160a01b03169063a9059cbb906044016020604051808303816000875af115801561041b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061043f9190610be1565b50336000908152600560205260409020600101805460ff19169055565b6002546001600160a01b031633146104865760405162461bcd60e51b815260040161033690610c03565b600355565b6002546001600160a01b031633146104f35760405162461bcd60e51b815260206004820152602560248201527f4f6e6c7920746865206f776e65722063616e2064697374726962757465207265604482015264776172647360d81b6064820152608401610336565b6001546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd906064016020604051808303816000875af115801561054a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061056e9190610be1565b6105ac5760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b6044820152606401610336565b6006546000906105bc9083610c55565b905060005b60065481101561066f5760056000600683815481106105e2576105e2610c77565b60009182526020808320909101546001600160a01b0316835282019290925260400190206001015460ff16156106675781600560006006848154811061062a5761062a610c77565b60009182526020808320909101546001600160a01b0316835282019290925260400181206002018054909190610661908490610c8d565b90915550505b6001016105c1565b505050565b6002546001600160a01b031633146106e15760405162461bcd60e51b815260206004820152602a60248201527f4f6e6c7920746865206f776e65722063616e20757064617465207468652072656044820152693bb0b932103a37b5b2b760b11b6064820152608401610336565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6002546001600160a01b0316331461072d5760405162461bcd60e51b815260040161033690610c03565b600455565b3360009081526005602052604090206001015460ff16156107955760405162461bcd60e51b815260206004820152601760248201527f596f75206861766520616c7265616479207374616b65640000000000000000006044820152606401610336565b60045481146107df5760405162461bcd60e51b8152602060048201526016602482015275125b9d985b1a59081cdd185ada5b99c8185b5bdd5b9d60521b6044820152606401610336565b600354600654106108325760405162461bcd60e51b815260206004820152601f60248201527f4d6178696d756d206e756d626572206f662075736572732072656163686564006044820152606401610336565b6000546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd906064016020604051808303816000875af1158015610889573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ad9190610be1565b5060408051606081018252918252600160208084018281526000858501818152338083526005909452948120955186559051858401805460ff191691151591909117905592516002909401939093556006805491820181559091527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f0180546001600160a01b0319169091179055565b33600090815260056020526040902060020154806109935760405162461bcd60e51b81526020600482015260136024820152724e6f207265776172647320746f20636c61696d60681b6044820152606401610336565b3360008181526005602052604080822060020191909155600154905163a9059cbb60e01b81526004810192909252602482018390526001600160a01b03169063a9059cbb906044016020604051808303816000875af11580156109fa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a1e9190610be1565b5050565b6002546001600160a01b03163314610a8a5760405162461bcd60e51b815260206004820152602560248201527f4f6e6c7920746865206f776e65722063616e20636c61696d20737475636b20746044820152646f6b656e7360d81b6064820152608401610336565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610ad1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610af59190610cb4565b60025460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810183905291925083169063a9059cbb906044016020604051808303816000875af1158015610b4a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061066f9190610be1565b60068181548110610b7e57600080fd5b6000918252602090912001546001600160a01b0316905081565b600060208284031215610baa57600080fd5b81356001600160a01b0381168114610bc157600080fd5b9392505050565b600060208284031215610bda57600080fd5b5035919050565b600060208284031215610bf357600080fd5b81518015158114610bc157600080fd5b60208082526032908201527f4f6e6c7920746865206f776e65722063616e2073657420746865206d6178696d604082015271756d206e756d626572206f6620757365727360701b606082015260800190565b600082610c7257634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b80820180821115610cae57634e487b7160e01b600052601160045260246000fd5b92915050565b600060208284031215610cc657600080fd5b505191905056fea26469706673582212205dfb2a746f7dc95b742e2e9af58f9c52a317e97ded71b5fbbdc13ff70227b18564736f6c63430008180033000000000000000000000000a849cd6239906f23b63ba34441b73a5c6eba8a000000000000000000000000008afe4055ebc86bd2afb3940c0095c9aca511d852

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101165760003560e01c80638da5cb5b116100a2578063c345315311610071578063c34531531461024e578063e1b0e8021461028a578063f7c618c114610293578063f9d0831a146102a6578063fd5e6dd1146102b957600080fd5b80638da5cb5b1461020d578063a1c9b21314610220578063a694fc3a14610233578063b88a802f1461024657600080fd5b8063416f4267116100e9578063416f4267146101a157806348284789146101b457806359974e38146101bc57806372f702f3146101cf5780638aee8127146101fa57600080fd5b806316934fc41461011b5780631e9b12ef1461016d57806320ca5184146101825780632def662014610199575b600080fd5b61014d610129366004610b98565b600560205260009081526040902080546001820154600290920154909160ff169083565b604080519384529115156020840152908201526060015b60405180910390f35b61018061017b366004610b98565b6102cc565b005b61018b60045481565b604051908152602001610164565b610180610361565b6101806101af366004610bc8565b61045c565b60065461018b565b6101806101ca366004610bc8565b61048b565b6000546101e2906001600160a01b031681565b6040516001600160a01b039091168152602001610164565b610180610208366004610b98565b610674565b6002546101e2906001600160a01b031681565b61018061022e366004610bc8565b610703565b610180610241366004610bc8565b610732565b61018061093d565b61014d61025c366004610b98565b6001600160a01b0316600090815260056020526040902080546001820154600290920154909260ff90921691565b61018b60035481565b6001546101e2906001600160a01b031681565b6101806102b4366004610b98565b610a22565b6101e26102c7366004610bc8565b610b6e565b6002546001600160a01b0316331461033f5760405162461bcd60e51b815260206004820152602b60248201527f4f6e6c7920746865206f776e65722063616e207570646174652074686520737460448201526a30b5b4b733903a37b5b2b760a91b60648201526084015b60405180910390fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b3360009081526005602052604090206001015460ff166103b95760405162461bcd60e51b8152602060048201526013602482015272165bdd481a185d99481b9bdd081cdd185ad959606a1b6044820152606401610336565b6000805433808352600560205260409283902054925163a9059cbb60e01b8152600481019190915260248101929092526001600160a01b03169063a9059cbb906044016020604051808303816000875af115801561041b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061043f9190610be1565b50336000908152600560205260409020600101805460ff19169055565b6002546001600160a01b031633146104865760405162461bcd60e51b815260040161033690610c03565b600355565b6002546001600160a01b031633146104f35760405162461bcd60e51b815260206004820152602560248201527f4f6e6c7920746865206f776e65722063616e2064697374726962757465207265604482015264776172647360d81b6064820152608401610336565b6001546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd906064016020604051808303816000875af115801561054a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061056e9190610be1565b6105ac5760405162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b6044820152606401610336565b6006546000906105bc9083610c55565b905060005b60065481101561066f5760056000600683815481106105e2576105e2610c77565b60009182526020808320909101546001600160a01b0316835282019290925260400190206001015460ff16156106675781600560006006848154811061062a5761062a610c77565b60009182526020808320909101546001600160a01b0316835282019290925260400181206002018054909190610661908490610c8d565b90915550505b6001016105c1565b505050565b6002546001600160a01b031633146106e15760405162461bcd60e51b815260206004820152602a60248201527f4f6e6c7920746865206f776e65722063616e20757064617465207468652072656044820152693bb0b932103a37b5b2b760b11b6064820152608401610336565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6002546001600160a01b0316331461072d5760405162461bcd60e51b815260040161033690610c03565b600455565b3360009081526005602052604090206001015460ff16156107955760405162461bcd60e51b815260206004820152601760248201527f596f75206861766520616c7265616479207374616b65640000000000000000006044820152606401610336565b60045481146107df5760405162461bcd60e51b8152602060048201526016602482015275125b9d985b1a59081cdd185ada5b99c8185b5bdd5b9d60521b6044820152606401610336565b600354600654106108325760405162461bcd60e51b815260206004820152601f60248201527f4d6178696d756d206e756d626572206f662075736572732072656163686564006044820152606401610336565b6000546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd906064016020604051808303816000875af1158015610889573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ad9190610be1565b5060408051606081018252918252600160208084018281526000858501818152338083526005909452948120955186559051858401805460ff191691151591909117905592516002909401939093556006805491820181559091527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f0180546001600160a01b0319169091179055565b33600090815260056020526040902060020154806109935760405162461bcd60e51b81526020600482015260136024820152724e6f207265776172647320746f20636c61696d60681b6044820152606401610336565b3360008181526005602052604080822060020191909155600154905163a9059cbb60e01b81526004810192909252602482018390526001600160a01b03169063a9059cbb906044016020604051808303816000875af11580156109fa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a1e9190610be1565b5050565b6002546001600160a01b03163314610a8a5760405162461bcd60e51b815260206004820152602560248201527f4f6e6c7920746865206f776e65722063616e20636c61696d20737475636b20746044820152646f6b656e7360d81b6064820152608401610336565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610ad1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610af59190610cb4565b60025460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810183905291925083169063a9059cbb906044016020604051808303816000875af1158015610b4a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061066f9190610be1565b60068181548110610b7e57600080fd5b6000918252602090912001546001600160a01b0316905081565b600060208284031215610baa57600080fd5b81356001600160a01b0381168114610bc157600080fd5b9392505050565b600060208284031215610bda57600080fd5b5035919050565b600060208284031215610bf357600080fd5b81518015158114610bc157600080fd5b60208082526032908201527f4f6e6c7920746865206f776e65722063616e2073657420746865206d6178696d604082015271756d206e756d626572206f6620757365727360701b606082015260800190565b600082610c7257634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b80820180821115610cae57634e487b7160e01b600052601160045260246000fd5b92915050565b600060208284031215610cc657600080fd5b505191905056fea26469706673582212205dfb2a746f7dc95b742e2e9af58f9c52a317e97ded71b5fbbdc13ff70227b18564736f6c63430008180033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000a849cd6239906f23b63ba34441b73a5c6eba8a000000000000000000000000008afe4055ebc86bd2afb3940c0095c9aca511d852

-----Decoded View---------------
Arg [0] : _stakingToken (address): 0xA849cd6239906F23b63BA34441b73a5C6EbA8A00
Arg [1] : _rewardToken (address): 0x8AFE4055Ebc86Bd2AFB3940c0095C9aca511d852

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000a849cd6239906f23b63ba34441b73a5c6eba8a00
Arg [1] : 0000000000000000000000008afe4055ebc86bd2afb3940c0095c9aca511d852


Deployed Bytecode Sourcemap

329:3450:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;647:39;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;501:25:1;;;569:14;;562:22;557:2;542:18;;535:50;601:18;;;594:34;489:2;474:18;647:39:0;;;;;;;;3001:204;;;;;;:::i;:::-;;:::i;:::-;;494:39;;;;;;;;;785:25:1;;;773:2;758:18;494:39:0;639:177:1;1370:221:0;;;:::i;2618:181::-;;;;;;:::i;:::-;;:::i;3677:99::-;3754:7;:14;3677:99;;1599:503;;;;;;:::i;:::-;;:::i;365:26::-;;;;;-1:-1:-1;;;;;365:26:0;;;;;;-1:-1:-1;;;;;1183:32:1;;;1165:51;;1153:2;1138:18;365:26:0;1006:216:1;3213:199:0;;;;;;:::i;:::-;;:::i;432:20::-;;;;;-1:-1:-1;;;;;432:20:0;;;2807:186;;;;;;:::i;:::-;;:::i;920:442::-;;;;;;:::i;:::-;;:::i;2110:237::-;;;:::i;3420:249::-;;;;;;:::i;:::-;-1:-1:-1;;;;;3576:13:0;3480:20;3576:13;;;:6;:13;;;;;3608:16;;3626;;;;3644;;;;;3608;;3626;;;;;3420:249;459:28;;;;;;398:25;;;;;-1:-1:-1;;;;;398:25:0;;;2355:255;;;;;;:::i;:::-;;:::i;693:24::-;;;;;;:::i;:::-;;:::i;3001:204::-;3094:5;;-1:-1:-1;;;;;3094:5:0;3080:10;:19;3072:75;;;;-1:-1:-1;;;3072:75:0;;1637:2:1;3072:75:0;;;1619:21:1;1676:2;1656:18;;;1649:30;1715:34;1695:18;;;1688:62;-1:-1:-1;;;1766:18:1;;;1759:41;1817:19;;3072:75:0;;;;;;;;;3158:12;:39;;-1:-1:-1;;;;;;3158:39:0;-1:-1:-1;;;;;3158:39:0;;;;;;;;;;3001:204::o;1370:221::-;1424:10;1417:18;;;;:6;:18;;;;;:25;;;;;1409:57;;;;-1:-1:-1;;;1409:57:0;;2049:2:1;1409:57:0;;;2031:21:1;2088:2;2068:18;;;2061:30;-1:-1:-1;;;2107:18:1;;;2100:49;2166:18;;1409:57:0;1847:343:1;1409:57:0;1479:12;;;1501:10;1513:18;;;:6;:18;;;;;;;:25;1479:60;;-1:-1:-1;;;1479:60:0;;;;;2369:51:1;;;;2436:18;;;2429:34;;;;-1:-1:-1;;;;;1479:12:0;;:21;;2342:18:1;;1479:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;1557:10:0;1578:5;1550:18;;;:6;:18;;;;;:25;;:33;;-1:-1:-1;;1550:33:0;;;1370:221::o;2618:181::-;2700:5;;-1:-1:-1;;;;;2700:5:0;2686:10;:19;2678:82;;;;-1:-1:-1;;;2678:82:0;;;;;;;:::i;:::-;2771:8;:20;2618:181::o;1599:503::-;1691:5;;-1:-1:-1;;;;;1691:5:0;1677:10;:19;1669:69;;;;-1:-1:-1;;;1669:69:0;;3377:2:1;1669:69:0;;;3359:21:1;3416:2;3396:18;;;3389:30;3455:34;3435:18;;;3428:62;-1:-1:-1;;;3506:18:1;;;3499:35;3551:19;;1669:69:0;3175:401:1;1669:69:0;1757:11;;:66;;-1:-1:-1;;;1757:66:0;;1782:10;1757:66;;;3821:34:1;1802:4:0;3871:18:1;;;3864:43;3923:18;;;3916:34;;;-1:-1:-1;;;;;1757:11:0;;;;:24;;3756:18:1;;1757:66:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1749:94;;;;-1:-1:-1;;;1749:94:0;;4163:2:1;1749:94:0;;;4145:21:1;4202:2;4182:18;;;4175:30;-1:-1:-1;;;4221:18:1;;;4214:45;4276:18;;1749:94:0;3961:339:1;1749:94:0;1894:7;:14;1854:21;;1878:30;;:13;:30;:::i;:::-;1854:54;;1924:6;1919:176;1940:7;:14;1936:18;;1919:176;;;1980:6;:18;1987:7;1995:1;1987:10;;;;;;;;:::i;:::-;;;;;;;;;;;;;-1:-1:-1;;;;;1987:10:0;1980:18;;;;;;;;;;;;1987:10;1980:25;;;;1976:108;;;2055:13;2026:6;:18;2033:7;2041:1;2033:10;;;;;;;;:::i;:::-;;;;;;;;;;;;;-1:-1:-1;;;;;2033:10:0;2026:18;;;;;;;;;;;;:25;;:42;;:25;;2033:10;2026:42;;;;;:::i;:::-;;;;-1:-1:-1;;1976:108:0;1956:3;;1919:176;;;;1658:444;1599:503;:::o;3213:199::-;3304:5;;-1:-1:-1;;;;;3304:5:0;3290:10;:19;3282:74;;;;-1:-1:-1;;;3282:74:0;;5088:2:1;3282:74:0;;;5070:21:1;5127:2;5107:18;;;5100:30;5166:34;5146:18;;;5139:62;-1:-1:-1;;;5217:18:1;;;5210:40;5267:19;;3282:74:0;4886:406:1;3282:74:0;3367:11;:37;;-1:-1:-1;;;;;;3367:37:0;-1:-1:-1;;;;;3367:37:0;;;;;;;;;;3213:199::o;2807:186::-;2891:5;;-1:-1:-1;;;;;2891:5:0;2877:10;:19;2869:82;;;;-1:-1:-1;;;2869:82:0;;;;;;;:::i;:::-;2962:11;:23;2807:186::o;920:442::-;987:10;980:18;;;;:6;:18;;;;;:25;;;;;:34;972:70;;;;-1:-1:-1;;;972:70:0;;5499:2:1;972:70:0;;;5481:21:1;5538:2;5518:18;;;5511:30;5577:25;5557:18;;;5550:53;5620:18;;972:70:0;5297:347:1;972:70:0;1072:11;;1061:7;:22;1053:57;;;;-1:-1:-1;;;1053:57:0;;5851:2:1;1053:57:0;;;5833:21:1;5890:2;5870:18;;;5863:30;-1:-1:-1;;;5909:18:1;;;5902:52;5971:18;;1053:57:0;5649:346:1;1053:57:0;1146:8;;1129:7;:14;:25;1121:69;;;;-1:-1:-1;;;1121:69:0;;6202:2:1;1121:69:0;;;6184:21:1;6241:2;6221:18;;;6214:30;6280:33;6260:18;;;6253:61;6331:18;;1121:69:0;6000:355:1;1121:69:0;1203:12;;:61;;-1:-1:-1;;;1203:61:0;;1229:10;1203:61;;;3821:34:1;1249:4:0;3871:18:1;;;3864:43;3923:18;;;3916:34;;;-1:-1:-1;;;;;1203:12:0;;;;:25;;3756:18:1;;1203:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;1296:23:0;;;;;;;;;;;1311:4;1296:23;;;;;;;-1:-1:-1;1296:23:0;;;;;;1282:10;1275:18;;;:6;:18;;;;;;:44;;;;;;;;;;;-1:-1:-1;;1275:44:0;;;;;;;;;;;;;;;;;;;;1330:7;:24;;;;;;;;;;;;;;-1:-1:-1;;;;;;1330:24:0;;;;;;920:442::o;2110:237::-;2177:10;2153:14;2170:18;;;:6;:18;;;;;:25;;;2214:10;2206:42;;;;-1:-1:-1;;;2206:42:0;;6562:2:1;2206:42:0;;;6544:21:1;6601:2;6581:18;;;6574:30;-1:-1:-1;;;6620:18:1;;;6613:49;6679:18;;2206:42:0;6360:343:1;2206:42:0;2266:10;2287:1;2259:18;;;:6;:18;;;;;;:25;;:29;;;;2299:11;;:40;;-1:-1:-1;;;2299:40:0;;;;;2369:51:1;;;;2436:18;;;2429:34;;;-1:-1:-1;;;;;2299:11:0;;:20;;2342:18:1;;2299:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;2142:205;2110:237::o;2355:255::-;2439:5;;-1:-1:-1;;;;;2439:5:0;2425:10;:19;2417:69;;;;-1:-1:-1;;;2417:69:0;;6910:2:1;2417:69:0;;;6892:21:1;6949:2;6929:18;;;6922:30;6988:34;6968:18;;;6961:62;-1:-1:-1;;;7039:18:1;;;7032:35;7084:19;;2417:69:0;6708:401:1;2417:69:0;2514:39;;-1:-1:-1;;;2514:39:0;;2547:4;2514:39;;;1165:51:1;2497:14:0;;-1:-1:-1;;;;;2514:24:0;;;;;1138:18:1;;2514:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2588:5;;2564:38;;-1:-1:-1;;;2564:38:0;;-1:-1:-1;;;;;2588:5:0;;;2564:38;;;2369:51:1;2436:18;;;2429:34;;;2497:56:0;;-1:-1:-1;2564:23:0;;;;;2342:18:1;;2564:38:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;693:24::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;693:24:0;;-1:-1:-1;693:24:0;:::o;14:286:1:-;73:6;126:2;114:9;105:7;101:23;97:32;94:52;;;142:1;139;132:12;94:52;168:23;;-1:-1:-1;;;;;220:31:1;;210:42;;200:70;;266:1;263;256:12;200:70;289:5;14:286;-1:-1:-1;;;14:286:1:o;821:180::-;880:6;933:2;921:9;912:7;908:23;904:32;901:52;;;949:1;946;939:12;901:52;-1:-1:-1;972:23:1;;821:180;-1:-1:-1;821:180:1:o;2474:277::-;2541:6;2594:2;2582:9;2573:7;2569:23;2565:32;2562:52;;;2610:1;2607;2600:12;2562:52;2642:9;2636:16;2695:5;2688:13;2681:21;2674:5;2671:32;2661:60;;2717:1;2714;2707:12;2756:414;2958:2;2940:21;;;2997:2;2977:18;;;2970:30;3036:34;3031:2;3016:18;;3009:62;-1:-1:-1;;;3102:2:1;3087:18;;3080:48;3160:3;3145:19;;2756:414::o;4305:217::-;4345:1;4371;4361:132;;4415:10;4410:3;4406:20;4403:1;4396:31;4450:4;4447:1;4440:15;4478:4;4475:1;4468:15;4361:132;-1:-1:-1;4507:9:1;;4305:217::o;4527:127::-;4588:10;4583:3;4579:20;4576:1;4569:31;4619:4;4616:1;4609:15;4643:4;4640:1;4633:15;4659:222;4724:9;;;4745:10;;;4742:133;;;4797:10;4792:3;4788:20;4785:1;4778:31;4832:4;4829:1;4822:15;4860:4;4857:1;4850:15;4742:133;4659:222;;;;:::o;7114:184::-;7184:6;7237:2;7225:9;7216:7;7212:23;7208:32;7205:52;;;7253:1;7250;7243:12;7205:52;-1:-1:-1;7276:16:1;;7114:184;-1:-1:-1;7114:184:1:o

Swarm Source

ipfs://5dfb2a746f7dc95b742e2e9af58f9c52a317e97ded71b5fbbdc13ff70227b185

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.