Contract 0x4d70a031fc76da6a9bc0c922101a05fa95c3a227 5

 
 
Txn Hash
Method
Block
From
To
Value [Txn Fee]
0xc541af32d2583e2300bf5b982e33127f1d8781d44dfc1b6cd2ba14abb9bde379Stake407905842023-03-26 12:59:3612 mins ago0xe6b532e63f228087e26a5897131f2e1d043e27f2 IN  KlimaDAO: Staking0 MATIC0.03792087272 212.600272024
0x56bfaddf7218889d17344e5d4adad83867e192d4489082fc9fcd08a02a16b1bdStake407905042023-03-26 12:56:1815 mins ago solanarip.blockchain  IN  KlimaDAO: Staking0 MATIC0.04894583264 297.205199197
0x9ef2413ae0f174d080e2ebf6a4b9006128a28c47445e1cc4d364034f991b586dStake407901612023-03-26 12:40:5430 mins ago0x1b08f5bed79e82280378e9e629f7dedd7df10842 IN  KlimaDAO: Staking0 MATIC0.059130580189 331.529349503
0x5258472fbdd87f0d808b4c13b1db91b1f976026627db304ab2a3b3c933a29a34Stake407900272023-03-26 12:33:2838 mins ago0x9782a4680497be7d294a22dd094da4230ee0a50b IN  KlimaDAO: Staking0 MATIC0.029266164262 164.078356772
0xd716c9b00a6a25c7c1cb70810123bf1266412e1782b894c7c8c3ebad1aeea974Stake407896902023-03-26 12:18:2053 mins ago0x547dac27e4f171e19d89ca76ff5ec430131c5e2a IN  KlimaDAO: Staking0 MATIC0.040263440255 225.746341637
0xd16bdfe1504e665a7b62260cf491bc667c20c2ba392c2cbace401dd23c48f27cStake407896882023-03-26 12:18:1653 mins ago0x375c1dc69f05ff526498c8aca48805eec52861d5 IN  KlimaDAO: Staking0 MATIC0.038700456792 234.993999479
0x8e342d8a2d8cdaeb18f884cd8c714b1943e1063517325c371b3f5e28e4f354f2Stake407893382023-03-26 12:02:301 hr 9 mins ago anafb2000.wallet  IN  KlimaDAO: Staking0 MATIC0.05787750618 351.439434688
0x3f3f12c5dc0e483a75b8c37343f7bc4ce83d4f30a215c4344b9eee86e66d4af0Stake407891912023-03-26 11:54:481 hr 16 mins ago0x1fcff6175db7f0dc3996e0826545ec91210cceef IN  KlimaDAO: Staking0 MATIC0.026222294962 147.021395082
0xcc4d718db2ea2b4c8b2ffb4730c077b2d9b457668224d5670ff7a8a60fc0fc5cStake407889062023-03-26 11:42:141 hr 29 mins ago0x076e64804a02bc5336b930b46260baa617a80082 IN  KlimaDAO: Staking0 MATIC0.041355941768 231.871705445
0x94b87abc24a9730b788fb19bb4c331baba13fa498e082c4eac9b17a0dd5953faStake407887212023-03-26 11:33:221 hr 38 mins ago0xb7336e7faca6d1c4b143961018a8e025733eef87 IN  KlimaDAO: Staking0 MATIC0.027929342214 156.5923525
0x539789d707e70abedd84b11208d97fbd059b9d020aaeb09d4ed123dd3788b996Stake407887132023-03-26 11:33:041 hr 38 mins ago0xe291f31162aa140e1c0e36db15ea40d74550ee5d IN  KlimaDAO: Staking0 MATIC0.028980208245 162.484277293
0x304654fda53deabae96cd7b0e54f3217c48ebdb32d03061f484141bfc46e95cbStake407886102023-03-26 11:27:561 hr 43 mins ago0xb463f841388bacb96293037dda3b1e0dcad968c5 IN  KlimaDAO: Staking0 MATIC0.025691687553 144.038345396
0x3143c80e93a8135a223e804aac6e37e77eb6ac7a447767fbd06a16c492af6ea6Stake407885802023-03-26 11:26:461 hr 44 mins ago 5555555555555555555555555555555555.crypto  IN  KlimaDAO: Staking0 MATIC0.029544357652 179.397023765
0x86a9cff85bc360320c26ef8f671621ee3de93f37ef74c9ab69125c6d2c839163Stake407885372023-03-26 11:25:021 hr 46 mins ago0xc3e357a84b29670f5a0c066a61d1658b4a70c800 IN  KlimaDAO: Staking0 MATIC0.031047647404 174.07585575
0x490630bd05e65d991f854a20025035e8a6db99e65da8ba1795d0522f4df2e3a1Stake407885042023-03-26 11:23:001 hr 48 mins ago0x5f0c93b26413084099ac7fef84e1b2d101104172 IN  KlimaDAO: Staking0 MATIC0.02687768907 150.687565921
0xbe8901ade905caa58c5de050009b9382982052cc072894e6bac3cf00a5df4729Stake407884002023-03-26 11:17:441 hr 54 mins ago 88005553535.crypto  IN  KlimaDAO: Staking0 MATIC0.013510153131 82.040316082
0xf9bcdab04ea8ca043be9eab8392b1e88f65c069af70e6a35b2c44bae4c647431Stake407883842023-03-26 11:17:101 hr 54 mins ago0x690209120387be0fb7ae644592657c9bbeb15bb3 IN  KlimaDAO: Staking0 MATIC0.013524230162 82.125798761
0x330e0d5ec016f49e71978153a49a50b9001023b7c5b18e4ac5fbd2674b96f25dStake407883742023-03-26 11:16:481 hr 54 mins ago sonia--gh.nft  IN  KlimaDAO: Staking0 MATIC0.01374783873 83.483660321
0x0dfd33752256c9da3e6d3f620e1a09e23699758e520b1e4ef3cf50dd6c1ef62dStake407882582023-03-26 11:12:421 hr 59 mins ago0x14d573f6bd17495bed82c9f465887d5e7763f694 IN  KlimaDAO: Staking0 MATIC0.014664986717 82.218048839
0x8afdcf5d4f042faac60f3529014be9a76c17ab9c75aa1990dce7163c19678191Stake407882372023-03-26 11:11:561 hr 59 mins ago0x6cf7e573e6bfc8140b4202f3972d7f3d51c9638b IN  KlimaDAO: Staking0 MATIC0.014570412007 81.68782346
0x7902fa1d91b024367f585ffe46195ce7d3e0c25395bafe96b72c374b642b8817Stake407881452023-03-26 11:08:422 hrs 3 mins ago 0xnasim.crypto  IN  KlimaDAO: Staking0 MATIC0.029215474494 76.65105902
0xcb8194e1ae8d64b128eb172945ab088987b78ff2937624a29964b617e301bd47Stake407878032023-03-26 10:56:342 hrs 15 mins ago0xdeedf49f5aab894788b24e9393ab744d026103ee IN  KlimaDAO: Staking0 MATIC0.016617723446 93.165907631
0x40362273a9af4dd9de976b97f659d32ff440531d4f7c17546cede2332d55a89bStake407877732023-03-26 10:55:302 hrs 16 mins ago0xac25030ea08250a6195230ae550f5bbf53c8a168 IN  KlimaDAO: Staking0 MATIC0.012878749851 72.207706184
0xffdc4ce3816aec8251d5772883b18b8c2a2a67f8af8daa7e245bd8a56cb6f0c8Stake407876652023-03-26 10:51:422 hrs 20 mins ago0xfa53b8cca72c61794ebac3d54b54554aa0f4229d IN  KlimaDAO: Staking0 MATIC0.015563590773 94.509802664
0x74326f5e18fdbd6311ae4f0e2b47619348ec83269aa4736d2d7dc9ce452da4a1Stake407876232023-03-26 10:50:122 hrs 21 mins ago0x92f2fddd75fc847b9796ab355dae69b131edda82 IN  KlimaDAO: Staking0 MATIC0.017376513758105.512358341
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0x74f7607d9fdf1fdb375060a2dd035edd0ae52ba3d55cd0fdfa0c5f72d8698c92372374922022-12-24 23:53:2991 days 13 hrs ago 0x121330fa1e71cd3053e4c5f675feb4182c934514 KlimaDAO: Staking0.01 MATIC
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
StakingHelper

Compiler Version
v0.7.5+commit.eb77ed08

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at polygonscan.com on 2021-10-17
*/

// 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 KLIMA;

    constructor ( address _staking, address _KLIMA ) {
        require( _staking != address(0) );
        staking = _staking;
        require( _KLIMA != address(0) );
        KLIMA = _KLIMA;
    }

    function stake( uint _amount ) external {
        IERC20( KLIMA ).transferFrom( msg.sender, address(this), _amount );
        IERC20( KLIMA ).approve( staking, _amount );
        IStaking( staking ).stake( _amount, msg.sender );
        IStaking( staking ).claim( msg.sender );
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_staking","type":"address"},{"internalType":"address","name":"_KLIMA","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"KLIMA","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"}]

60c060405234801561001057600080fd5b506040516104573803806104578339818101604052604081101561003357600080fd5b5080516020909101516001600160a01b03821661004f57600080fd5b6001600160601b0319606083901b166080526001600160a01b03811661007457600080fd5b606081811b6001600160601b03191660a052608051901c91506001600160a01b031661038d6100ca6000398060e2528061019f52806103355250806093528061016e528061023d52806102d1525061038d6000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80634cf088d914610046578063a694fc3a1461006a578063e3ed12a014610089575b600080fd5b61004e610091565b604080516001600160a01b039092168252519081900360200190f35b6100876004803603602081101561008057600080fd5b50356100b5565b005b61004e610333565b7f000000000000000000000000000000000000000000000000000000000000000081565b604080516323b872dd60e01b81523360048201523060248201526044810183905290516001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916323b872dd9160648083019260209291908290030181600087803b15801561012a57600080fd5b505af115801561013e573d6000803e3d6000fd5b505050506040513d602081101561015457600080fd5b50506040805163095ea7b360e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301526024820184905291517f00000000000000000000000000000000000000000000000000000000000000009092169163095ea7b3916044808201926020929091908290030181600087803b1580156101ea57600080fd5b505af11580156101fe573d6000803e3d6000fd5b505050506040513d602081101561021457600080fd5b505060408051637acb775760e01b81526004810183905233602482015290516001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001691637acb77579160448083019260209291908290030181600087803b15801561028557600080fd5b505af1158015610299573d6000803e3d6000fd5b505050506040513d60208110156102af57600080fd5b505060408051630f41a04d60e11b815233600482015290516001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001691631e83409a91602480830192600092919082900301818387803b15801561031857600080fd5b505af115801561032c573d6000803e3d6000fd5b5050505050565b7f00000000000000000000000000000000000000000000000000000000000000008156fea264697066735822122034b887c7bc93336984245defc5894e6f4f5a36ae04284de75cb8e3a6ac22b12764736f6c6343000705003300000000000000000000000025d28a24ceb6f81015bb0b2007d795acac411b4d0000000000000000000000004e78011ce80ee02d2c3e649fb657e45898257815

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

00000000000000000000000025d28a24ceb6f81015bb0b2007d795acac411b4d0000000000000000000000004e78011ce80ee02d2c3e649fb657e45898257815

-----Decoded View---------------
Arg [0] : _staking (address): 0x25d28a24ceb6f81015bb0b2007d795acac411b4d
Arg [1] : _KLIMA (address): 0x4e78011ce80ee02d2c3e649fb657e45898257815

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000025d28a24ceb6f81015bb0b2007d795acac411b4d
Arg [1] : 0000000000000000000000004e78011ce80ee02d2c3e649fb657e45898257815


Deployed ByteCode Sourcemap

2932:606:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2964:32;;;:::i;:::-;;;;-1:-1:-1;;;;;2964:32:0;;;;;;;;;;;;;;3247:288;;;;;;;;;;;;;;;;-1:-1:-1;3247:288:0;;:::i;:::-;;3003:30;;;:::i;2964:32::-;;;:::o;3247:288::-;3298:66;;;-1:-1:-1;;;3298:66:0;;3328:10;3298:66;;;;3348:4;3298:66;;;;;;;;;;;;-1:-1:-1;;;;;3306:5:0;3298:28;;;;:66;;;;;;;;;;;;;;-1:-1:-1;3298:28:0;:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3375:43:0;;;-1:-1:-1;;;3375:43:0;;-1:-1:-1;;;;;3400:7:0;3375:43;;;;;;;;;;;;;;3383:5;3375:23;;;;;;:43;;;;;3298:66;;3375:43;;;;;;;;-1:-1:-1;3375:23:0;:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3429:48:0;;;-1:-1:-1;;;3429:48:0;;;;;;;;3465:10;3429:48;;;;;;-1:-1:-1;;;;;3439:7:0;3429:25;;;;:48;;;;;3375:43;;3429:48;;;;;;;-1:-1:-1;3429:25:0;:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3488:39:0;;;-1:-1:-1;;;3488:39:0;;3515:10;3488:39;;;;;;-1:-1:-1;;;;;3498:7:0;3488:25;;;;:39;;;;;-1:-1:-1;;3488:39:0;;;;;;;-1:-1:-1;3488:25:0;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3247:288;:::o;3003:30::-;;;:::o

Swarm Source

ipfs://34b887c7bc93336984245defc5894e6f4f5a36ae04284de75cb8e3a6ac22b127
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.