Contract 0x4D70a031Fc76DA6a9bC0C922101A05FA95c3A227 5

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x17dc38ecb48a866f454dcaf7c3c44cd742f1e8ddf00106368d3b58b031e6fea7Stake300791452022-06-28 1:16:341 hr 1 min ago0x2147f878acc0af392f97aa82d55cffda1393b630 IN  KlimaDAO: Staking0 MATIC0.006645447395 40.351985255
0x351afd06377ba26d2e3fc9a5adb9ef22662c873645dfd3b0861c4b9ab3bf0bb7Stake300746822022-06-27 22:19:383 hrs 58 mins ago0xad46ca855958ac6b301f605e4abf356c517be060 IN  KlimaDAO: Staking0 MATIC0.012494208245 33.872402464
0xbe7b157b5bd753315fcf064255c55a67813400d1d379fa269ee953d36108403cStake300736562022-06-27 21:42:144 hrs 36 mins ago0xa8a389d3f820046a162a8bf0bcc266c8340d1aba IN  KlimaDAO: Staking0 MATIC0.005166480585 31.369800031
0xa8bc9f1ec36d181f75da805b69f03df855cba7c50c54771b134bcd2b5fd7ac1dStake300736352022-06-27 21:41:324 hrs 36 mins ago0xa669d9a37ceff65114666aebd0108405e2457c18 IN  KlimaDAO: Staking0 MATIC0.004958798924 30.108799998
0x72651bfe5ede352d4bc257efb8aeeae3bef809a862f0d3ab5c9734e67fc634e2Stake300722702022-06-27 20:48:145 hrs 30 mins ago0x337844866ce1f51be8eb9f3a4882b5cb891edba5 IN  KlimaDAO: Staking0 MATIC0.005110662141 31.030881999
0x7aa1c68df2f588b5590fe0be06add9fa76e775b247550b454c1780327abcc6abStake300719942022-06-27 20:38:425 hrs 39 mins ago0xc0f9e8de7ce5ad40979de08b6b746ba47ca608cc IN  KlimaDAO: Staking0 MATIC0.005888573722 35.754199998
0xba63ac98b51459114bee326ccb09843ba0f3adc53dfce5a5e191acf20d8221deStake300707422022-06-27 19:53:346 hrs 24 mins ago0x72b8334457f5834f1c237ba3a27c2243fc2914d0 IN  KlimaDAO: Staking0 MATIC0.004942952661 30.01258477
0x0183fc28b51f8b36c160d1784d08aac8d69e7e900c3f2761c4a02a5449280236Transfer300702942022-06-27 19:38:106 hrs 40 mins ago0x9ac5637d295fea4f51e086c329d791cc157b1c84 IN  KlimaDAO: Staking3 MATIC0.001055800705 50.168719676
0xc072a4b91cb4c0b4d89502f3eb93de05dbfad695626ef226bd87343e7bacb7e5Stake300696312022-06-27 19:11:047 hrs 7 mins ago0x704e6c2d1b4ec81d6a58723cd5c765f2428f4b85 IN  KlimaDAO: Staking0 MATIC0.007024011607 39.379546705
0x68de0a858cd506ac6d469afde6a303539cd7a287edac799ff9cf6bd4e652ea3eStake300668852022-06-27 17:24:248 hrs 53 mins ago0x8d303d79513fc11b1132869b6ef96e4691aafb12 IN  KlimaDAO: Staking0 MATIC0.001485931211 46.144065944
0xfcf3a68408d415eff6a798f329306815d55bde6c382371483c2a06f52562bc4aStake300668852022-06-27 17:24:248 hrs 53 mins ago0x8d303d79513fc11b1132869b6ef96e4691aafb12 IN  KlimaDAO: Staking0 MATIC0.006962982303 42.277786366
0xf381fe9574a2a3d2d75e924ac7294db4d08267d24983099a8ba567a57312e4ccStake300639872022-06-27 15:31:2610 hrs 46 mins ago0xb9542f9e7ab332346c818483bb8f3292a0653ab7 IN  KlimaDAO: Staking0 MATIC0.013425474374 81.521154521
0xfe7920612f46d71ea5a8e850d00a03f6a4a204684f7d93d826348d6fb6566452Stake300626992022-06-27 14:42:5411 hrs 35 mins ago0xd4a17ad38d5264d165db58e72a8cbe715d7dbcf7 IN  KlimaDAO: Staking0 MATIC0.017551649456 106.563509869
0x77950db412f9d88f96bc2ad0febcdcc9d8e7b753d9e8eb8f6289a31e2f2e8c1fStake300595202022-06-27 12:45:0813 hrs 33 mins ago0x2feb9529d615b0ab3a9017d16c9becbf0945f37a IN  KlimaDAO: Staking0 MATIC0.014408621294 87.486164173
0x7cfa39f814d0734780885c999e4d76d1979778c3f277bf0790604eb7e1cbbcdfStake300588012022-06-27 12:17:0414 hrs 1 min ago0x084ad65c4b04e7ae4a3ddedd3f7dca59a15419da IN  KlimaDAO: Staking0 MATIC0.010397003406 63.128451248
0xc7ca3903a4479fccfe7cec29572ccef11845db6f3ed5def7ca2295e97781c5fdStake300573842022-06-27 11:24:0414 hrs 54 mins ago0x04f5953bc4b386b172c7ae0127b6b856edb6b348 IN  KlimaDAO: Staking0 MATIC0.006324359604 35.457004967
0x73da46a52b4cdd525dda64e5e6d7d6e17e3c6ae9a6611660a65a72a968358b34Stake300567002022-06-27 10:58:2415 hrs 19 mins ago0x6f8c406f56bdeae48e678ac1cb8cc14c40e41c14 IN  KlimaDAO: Staking0 MATIC0.00501520678 30.451296817
0x2bb53c7e5b8cf92b3fee981fe57ff2f6eee1a00d54872e0e78d84e9008e45024Stake300561712022-06-27 10:38:0615 hrs 40 mins ago0xcb80e331440e6a4d75e3028babb7cdac8d0e8a47 IN  KlimaDAO: Staking0 MATIC0.005462039293 30.622476657
0x37c151c232b23b4cc5e8db54b3ad5163396ab5d56017134470b2bff1537ef8ffStake300561042022-06-27 10:35:4815 hrs 42 mins ago0x7503d98ad8056e5c6854ba4e6db4121ac802d62d IN  KlimaDAO: Staking0 MATIC0.005319021762 32.295998458
0x5c5c545013f4f648c62aa4cca78a2a655762d6671e61ade59ec77d7f7c56b3a8Stake300552782022-06-27 10:07:0216 hrs 11 mins ago0xad2eec3664357467eb36aba5173c67ad7611dacc IN  KlimaDAO: Staking0 MATIC0.005437527816 33.015542678
0x8e2d0a6bfab18ac5d8faa801797f1e87c2df39abf1e30a2a4c6babfc080f8763Stake300547572022-06-27 9:49:0816 hrs 29 mins ago0x376bc2a1a3da0c04b381ee18349956a558c742c8 IN  KlimaDAO: Staking0 MATIC0.014513543843 88.123232157
0x111d0261c1182d73ee8bc147570dd8dbf1d50becc1e3d0d382a8cb4a085e4c41Stake300528592022-06-27 8:41:4417 hrs 36 mins ago0x7983c67d0d0c8742e1b60de04c880fc450a0a495 IN  KlimaDAO: Staking0 MATIC0.00823435 50
0xce5a331f980d1d0457cfb59c1c1860758a12a76771df4911f5781c032bf7fd01Stake300483802022-06-27 6:03:2520 hrs 14 mins ago0x2a6e85890fe6bd893299b7e8234bacc0bf69bd1a IN  KlimaDAO: Staking0 MATIC0.009932560193 60.311744059
0xfa1a6eb896b6ef09f7c3904b3dece01485fd1c13fc378d9d75ecb32db92f9b7aStake300473772022-06-27 5:24:4320 hrs 53 mins ago0xad2eec3664357467eb36aba5173c67ad7611dacc IN  KlimaDAO: Staking0 MATIC0.005225464958 31.727940925
0x1348ee0144b2716c09e85637162bb8e557bbdf91991624708a20a5e5347a539aStake300454502022-06-27 4:12:0522 hrs 6 mins ago0x5b314fe84520049649c0ca4a0b219e587d01eadb IN  KlimaDAO: Staking0 MATIC0.004940975175 30.000577884
[ Download CSV Export 
Parent Txn Hash Block From To Value
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.