Contract 0x4d70a031fc76da6a9bc0c922101a05fa95c3a227 4

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x96ed4d012b3789238f3583695cc159f941c14061ca0a7e17d7c7618849b83781Stake243014842022-01-29 11:14:401 min ago0x7a51922d021a0cfff6d86839fce99a58f5a71930 IN  0x4d70a031fc76da6a9bc0c922101a05fa95c3a2270 MATIC0.005219743267 31.693199999
0x7637bce81a8149e3cdd3f7667c8e044f9154af07a8c652ebf605af207c81f48cStake243014742022-01-29 11:14:202 mins ago0x9136efd3de43c95fd17391da0b7d6980781dd277 IN  0x4d70a031fc76da6a9bc0c922101a05fa95c3a2270 MATIC0.005271918959 32.009999997
0x150758ee8da8a760e4bc996bd505ccd05e7648aae0e78c087911432186275a8aStake243014552022-01-29 11:13:422 mins ago0xf3de6aee6b864937e8cf5f1c5219d2c0e28c5557 IN  0x4d70a031fc76da6a9bc0c922101a05fa95c3a2270 MATIC0.004951837387 30.069999987
0xb7e8ffd836588fbe9f21822be950e4d469911d66a766c8bdfc98430ff6be6cf2Stake243013872022-01-29 11:11:225 mins ago0x96e7a726f6bf6b757990ebba7d090c32962b2719 IN  0x4d70a031fc76da6a9bc0c922101a05fa95c3a2270 MATIC0.005820356642 35.340000015
0x93cd7186f60c63ecc8bf3f17ccd1ca5fa62012d764ed18bfff2e90f521f4a60fStake243013852022-01-29 11:11:185 mins ago0x7a51922d021a0cfff6d86839fce99a58f5a71930 IN  0x4d70a031fc76da6a9bc0c922101a05fa95c3a2270 MATIC0.005013041434 30.438149284
0xcd2d73bd3cf340388cd9a55b2922c4e36c898a557f9ba7c40113434fab355419Stake243013802022-01-29 11:11:085 mins ago0x508d494ac5d2169ab2315032521a5409be370111 IN  0x4d70a031fc76da6a9bc0c922101a05fa95c3a2270 MATIC0.004910689858 29.820131888
0x6dbba3ac8c1198156aac5de04565352f9b79a8dc4765d0e883a1ff667d6acb54Stake243013542022-01-29 11:10:126 mins ago0x163951127dac407e66cfd36e4e2f1367cafa65f1 IN  0x4d70a031fc76da6a9bc0c922101a05fa95c3a2270 MATIC0.00496188795 30.127555926
0xa8c2e00a578ec5550986e6b6303a2450d4f67ce8616e3f5ba528bf6a82b863bfStake243013252022-01-29 11:09:147 mins ago0x23b11ff67c2193b97cb37771d15a537b977d2278 IN  0x4d70a031fc76da6a9bc0c922101a05fa95c3a2270 MATIC0.005269984 32
0x18cbb99eabaad0796b0977b940c5c2a36b728a47eb4da04241bfbe05f648d4baStake243013132022-01-29 11:08:507 mins ago0xf6d52a320bdbc5a1c812e4f646a40de94b48ccd5 IN  0x4d70a031fc76da6a9bc0c922101a05fa95c3a2270 MATIC0.005113761391 31.0497
0xf277912a9a4d053bbac49ce3d36d09de67e0444763a04c0e785851329e175d2bStake243013102022-01-29 11:08:407 mins ago0x4c103137e74639436d17c2ec863fbc57002122e8 IN  0x4d70a031fc76da6a9bc0c922101a05fa95c3a2270 MATIC0.005216036618 31.670693995
0x8045ebfc9a984f0ffb377ef4303f593aeb1a3125d4c4832540cc31ba928114aeStake243012832022-01-29 11:07:468 mins ago0xdb008072832c71bee5f8598b2d796ec55673bd7a IN  0x4d70a031fc76da6a9bc0c922101a05fa95c3a2270 MATIC0.005377063487 32.650199999
0x0ab2fdcc35c661895fb30cbeaa2cc8490aa4e81a25914573c2a07bbd843fa843Stake243011582022-01-29 11:03:2812 mins ago0x476551e292547c70bb27307d87df54baeb0f644b IN  0x4d70a031fc76da6a9bc0c922101a05fa95c3a2270 MATIC0.004946446962 30.033801441
0xe8484df90286e53f512191ce0a396b092ee848cc35e4cc8e2eaef631c8f2a3baStake243010382022-01-29 10:59:2017 mins ago0xa8e57f534b5275de867e79567bba3c0d30144d9c IN  0x4d70a031fc76da6a9bc0c922101a05fa95c3a2270 MATIC0.000399366 2.425000152
0xc535792d8f394973d27488a27fb00c956a2b25b51d7e9fd7aea3f8c9447ee491Stake243009052022-01-29 10:54:4621 mins ago0x508d494ac5d2169ab2315032521a5409be370111 IN  0x4d70a031fc76da6a9bc0c922101a05fa95c3a2270 MATIC0.000335648392 1.881785263
0xded6a91a41bfa3ac7364159ef20fda691a1944b3d0991a39d767a5c76c3c8d24Stake243008622022-01-29 10:53:1223 mins ago0x8da77f6a994be5a5d459763bdd246ad2e1ebdc5b IN  0x4d70a031fc76da6a9bc0c922101a05fa95c3a2270 MATIC0.000274374607 1.665945786
0x6f60ae31b0ba9016817a774cee6ad2cfc2b11260aa1df9f873003fb3fa002cddStake243008612022-01-29 10:53:0623 mins ago0x66156e428165b3e9dc5548fa0326238ed690a8be IN  0x4d70a031fc76da6a9bc0c922101a05fa95c3a2270 MATIC0.000288249763 1.615967189
0x7067af73ec358307fd355d3eb16b7b7ce1a0c257a8584a9de3675a241bbcf576Stake243008212022-01-29 10:49:0627 mins ago0x55805b3a1b4ef554af16346dd3bd3431b86064c2 IN  0x4d70a031fc76da6a9bc0c922101a05fa95c3a2270 MATIC0.00494061000530.000000034
0xeeac87e80037a6ec64e57d01527ef74e996fb9e3f4fa52b8a801cf3ec2c706feStake243008082022-01-29 10:47:4828 mins ago0x9be82cd40bffdce2336ba286abc7afca42dbabc7 IN  0x4d70a031fc76da6a9bc0c922101a05fa95c3a2270 MATIC0.004792391701 29.100000008
0x52571a81c9e66c601c839239d2d6e7d45ff9c60bd146aa534a4d73b4fadb228bStake243007152022-01-29 10:43:5832 mins ago0x73ec0154e30bbc8cb07f919716507ec10cbd113a IN  0x4d70a031fc76da6a9bc0c922101a05fa95c3a2270 MATIC0.000254635746 1.546180008
0x36966de947a75b03c01324b97b4f5b4f1062a31026dc4832e0437336075a27b9Stake243006792022-01-29 10:42:4633 mins ago0x9cdbddf646a86ec987394c807defed498dbc7df4 IN  0x4d70a031fc76da6a9bc0c922101a05fa95c3a2270 MATIC0.004555896511 27.662459998
0x5c8837f946d595a5002411910176dcaf0b5445f1ba1afdf5e5e7eca9e48425a8Stake243006752022-01-29 10:42:3833 mins ago0x2b5b488c766586f0b170333694bf1fe2b703748f IN  0x4d70a031fc76da6a9bc0c922101a05fa95c3a2270 MATIC0.004888239534 29.682000002
0xcd3f86df6e100c5da1e9d39d6496fa8580c6df77c73d2b2e6b3ab87534458067Stake243006402022-01-29 10:41:2435 mins ago0xb160fa6ec28fbc01ff792a636e43e05225ff0a82 IN  0x4d70a031fc76da6a9bc0c922101a05fa95c3a2270 MATIC0.005270272001 32.00000001
0x06adb083b3fa2b025fbccb00cdabdbc104f3b9732a46752b25465e6688bb7d36Stake243005812022-01-29 10:39:2237 mins ago0x85f5eebbef1104c75a22663ba14ed36a36e4f3b3 IN  0x4d70a031fc76da6a9bc0c922101a05fa95c3a2270 MATIC0.004741851472 28.791540001
0xcadca45c533bc1bc9d2a02013e00731b5cfc5522d4dfdb1196fb4568b5eda765Stake243005462022-01-29 10:38:1238 mins ago0xdf857449c7a8d373b89f5bf6b929ca605329fc76 IN  0x4d70a031fc76da6a9bc0c922101a05fa95c3a2270 MATIC0.00570952767 32.010000004
0x5c670b86f9ef3df07be4f0a5015511d3f68632e543fb526958f07cfe063ca125Stake243004752022-01-29 10:35:4240 mins ago0x50f7c016141598cd27236e1f4efdfbc5dacade91 IN  0x4d70a031fc76da6a9bc0c922101a05fa95c3a2270 MATIC0.00720176081 43.727600003
[ 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.