Contract 0x82C2Fb7410dcfFEd4e9147413BD5005a0a6F58aA 1

 
 
Txn Hash
Method
Block
From
To
Value [Txn Fee]
0x9452f95dabe2cee29b05693ae613f84936c3bf79e82c9cf3e961ecc0352145dfEnter432768692023-05-29 5:33:399 days 9 hrs ago0x646f07e04bba81ca08d9443e916bdc1155efa1a7 IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.011577562193 158.30831763
0x8fbf2816bcbb9f83bee11c10fc2c968f6ef2e5a9a2d7235e402b2d2ec8ec8e0dLeave423792372023-05-06 15:38:0731 days 23 hrs ago0x86d8fe0a99c11cc7cb05c722c455101fc5d7f41f IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.011703399991 219.761524581
0x1c5d2efc96644142e95feafc864f0808a7ab873424d30eeb6ac5ffeb7510d822Enter422789602023-05-04 2:36:4734 days 12 hrs ago0x0a9c4f72b1340732ee881e262788912e765d4ca5 IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.014778250456 242.883564079
0x171baac5466d582a4d2c89fa8eab377cab64338eda23067d61b8d7eab1c2eeccEnter422789322023-05-04 2:35:4734 days 12 hrs ago0x0a9c4f72b1340732ee881e262788912e765d4ca5 IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.015920540949 261.657341592
0xa938991f5fbb10051475346f6a8bd6246176569ddb266355465b0414083e90f2Enter422032472023-05-02 4:58:4336 days 10 hrs ago0x86d8fe0a99c11cc7cb05c722c455101fc5d7f41f IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.017223705047 208.214420133
0x1a5b0479a7186c61ae6bd7b810297f1e55d103b6925808c6a7b206aa61fdb057Enter417870352023-04-21 13:09:0347 days 1 hr ago0x34fd51d8a633ba934d44fd4a55d6d4ef959c8ad4 IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.018200290742 233.501709446
0xe6eb2d646eb8cb1d8fe8ab2dc0dc6e5d9b9b672d9cae3caad63a2ebd926c6c93Enter415799052023-04-16 1:13:3652 days 13 hrs ago0xac2dec28183f956ad3008a24027c0017fd9129e8 IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.026430449674 319.513178938
0xd5202f7fa71691f6a380517bc5f6f3953b96f65c94f69acf554aa6a45344c88aEnter415153842023-04-14 8:33:1154 days 6 hrs ago0x0a9c4f72b1340732ee881e262788912e765d4ca5 IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.017467521754 224.100606249
0xa5031b50e6eabab225802c52c21882d26e4e9b2c87873e6e8ee06b39f22ceefdEnter410207802023-04-01 14:17:2467 days 44 mins ago0x69c6f2e807025b45467cf429e83f1ae83932e22b IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.006720132144 91.889190164
0xfd67d297e2dcf77a366cb0da05d1fc3243253d55e8a604e9d64048392050a94cEnter408112682023-03-27 3:49:2572 days 11 hrs ago0x256ef7d10a5de0a31cb0e2bfb26c684376fd1330 IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.007920717555 130.178610499
0x404ce4f5011df3dab447f2192bac4649dc30fa2624cac54cf561458fa0f0ae01Enter404874642023-03-18 11:17:3381 days 3 hrs ago0x08f327f15c18e29fa28c8f624827d4cbec4cc544 IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.009331815538 119.741515639
0x0ed0b1c8e0bdd57b1159aad263bdadb769775b718de5815d5fe63d207268dad9Leave398847292023-03-02 15:41:1496 days 23 hrs ago0x3e1da5eeb6eaf9c94f64118298736e4f45552e7f IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.01129006212
0x8198d22de96e1fb5e819b2e8028ca28d322e79e6529e85d1c8a048226272ae0bLeave393821212023-02-17 4:15:21110 days 10 hrs ago0x0a9c4f72b1340732ee881e262788912e765d4ca5 IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.00899118485 127.797382568
0x8966b9be29c9f2dab669ab335cff50905430ecd384050115021b1658e156be14Enter393819582023-02-17 4:09:35110 days 10 hrs ago0x0a9c4f72b1340732ee881e262788912e765d4ca5 IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.009007609181 148.071099256
0x330bbbd918f389b47f640740c14fd404f12b5ae314eefae6b44ac2189b6a35f1Leave393672702023-02-16 18:27:10110 days 20 hrs ago0x352ca9fc41cf793d17656716be1891498c7b0acf IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.013473890129 253.007044018
0x16d4407267987055c28724bb2d15a72cf9837f342f690e2a5821e2d206f19162Enter392934472023-02-14 19:31:18112 days 19 hrs ago0x95006f5f2dad5af7d5cf125b0ce7f7f952475e3e IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.036246401997 465.025364005
0x84d7e4a14e96609d63a9885399e59c5b6bbc045c6830825d2e169c8462e140cbLeave392933122023-02-14 19:26:30112 days 19 hrs ago0x95006f5f2dad5af7d5cf125b0ce7f7f952475e3e IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.032864308009 467.121142913
0x006945a2964ac82b0316e643d5de6adf0448f1ad32231a27d16005a5beac26b5Leave391372172023-02-10 14:01:52117 days 59 mins ago0x638ecf631cbec94ba8e5134a232fc80d5a0749ac IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.031731962287 546.923633416
0x8b29da2efa984b0f3d7b932650283aaa71592df2d3da9f17116d8049c214223fEnter388133402023-02-02 6:53:18125 days 8 hrs ago0x256ef7d10a5de0a31cb0e2bfb26c684376fd1330 IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.01574497874 202.094478696
0x3b98939dc9494dc7c7bb1f8e8f0b49bd2a9dbd93e5d8aea243192389ff218e15Leave386548712023-01-29 6:34:52129 days 8 hrs ago0x34fd51d8a633ba934d44fd4a55d6d4ef959c8ad4 IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.003539541202 50.318314573
0x3a13226fb66b69c8ec8d6c0965906922b6977637a9c88f8dcf4457d1802774d5Enter383299092023-01-21 0:54:55137 days 14 hrs ago0x003873fc1ea728a8553f46b1f516effa6336f61f IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.002918054894 47.958828083
0xda216f64015b4e9edab861bca3adfa7284754d0de7c07dd9e317b2e4d8f3bfd0Leave382982882023-01-20 5:52:16138 days 9 hrs ago0x964b2c3df9f29ded421ab05974306255f20a1f98 IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.002417806698 45.400557674
0x7fd7bbd3f2b618354b34b0c6170bc0f92a65b07d25046d79eb62e419320a796aLeave382747382023-01-19 15:08:32138 days 23 hrs ago0x3e1da5eeb6eaf9c94f64118298736e4f45552e7f IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.008180679141
0x1ee78ccb775c8dd6edcca4f82a3878e2a0a894e354ead1247479410b49ed3e44Leave382742852023-01-19 14:52:28139 days 9 mins ago0x55daeebc4b20c9fd6f91966b11be8bad04a111d8 IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.006861232083 128.837331397
0x74a5a3c50fda0df802cef32ccd53d2daa6db1e80e0d37f9f7df53476f9967a96Leave382742512023-01-19 14:51:16139 days 10 mins ago0x3e1da5eeb6eaf9c94f64118298736e4f45552e7f IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.011344781151
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CNTStaker

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 9 : CNTStaker.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.7.0;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "./libraries/NativeMetaTransaction.sol";
import "./libraries/ContextMixin.sol";

// CNTStaker is the coolest staker in defi space. You come in with some CNT, and leave with more! The longer you stay, the more CNT you get.

// This contract handles swapping to and from xCNT, PolyDEX's staking token.
contract CNTStaker is
    ERC20("CNTStaker", "xCNT"),
    ContextMixin,
    NativeMetaTransaction
{
    using SafeMath for uint256;
    IERC20 public cnt;

    // Define the CNT token contract
    constructor(IERC20 _cnt) {
        _initializeEIP712("CNTStaker");
        cnt = _cnt;
    }

    function _msgSender()
        internal
        view
        override
        returns (address payable sender)
    {
        return ContextMixin.msgSender();
    }

    // Enter the bar. Pay some CNTs. Earn some shares.
    // Locks CNT and mints xCNT
    function enter(uint256 _amount) external {
        // Gets the amount of CNT locked in the contract
        uint256 totalCNT = cnt.balanceOf(address(this));
        // Gets the amount of xCNT in existence
        uint256 totalShares = totalSupply();
        // If no xCNT exists, mint it 1:1 to the amount put in
        if (totalShares == 0 || totalCNT == 0) {
            _mint(_msgSender(), _amount);
        }
        // Calculate and mint the amount of xCNT the CNT is worth. The ratio will change overtime, as xCNT is burned/minted and CNT deposited + gained from fees / withdrawn.
        else {
            uint256 what = _amount.mul(totalShares).div(totalCNT);
            _mint(_msgSender(), what);
        }
        // Lock the CNT in the contract
        require(
            cnt.transferFrom(_msgSender(), address(this), _amount),
            "Transfer of CNT failed"
        );
    }

    // Leave the staker. Claim back your CNTs.
    // Unlocks the staked + gained CNT and burns xCNT
    function leave(uint256 _share) external {
        // Gets the amount of xCNT in existence
        uint256 totalShares = totalSupply();
        // Calculates the amount of CNT the xCNT is worth
        uint256 what = _share.mul(cnt.balanceOf(address(this))).div(
            totalShares
        );
        _burn(_msgSender(), _share);
        require(cnt.transfer(_msgSender(), what), "Transfer of CNT failed");
    }
}

File 2 of 9 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);
}

File 3 of 9 : ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "../../utils/Context.sol";
import "./IERC20.sol";
import "../../math/SafeMath.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20 {
    using SafeMath for uint256;

    mapping (address => uint256) private _balances;

    mapping (address => mapping (address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name_, string memory symbol_) public {
        _name = name_;
        _symbol = symbol_;
        _decimals = 18;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is
     * called.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual returns (uint8) {
        return _decimals;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(address sender, address recipient, uint256 amount) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(address owner, address spender, uint256 amount) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal virtual {
        _decimals = decimals_;
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be to transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
}

File 4 of 9 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) return (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) return 0;
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: modulo by zero");
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a % b;
    }
}

File 5 of 9 : NativeMetaTransaction.sol
pragma solidity >= 0.6.6;

import './EIP712Base.sol';
import "@openzeppelin/contracts/math/SafeMath.sol";

contract NativeMetaTransaction is EIP712Base {
    using SafeMath for uint;
    bytes32 private constant META_TRANSACTION_TYPEHASH = keccak256(
        bytes(
            "MetaTransaction(uint256 nonce,address from,bytes functionSignature)"
        )
    );
    event MetaTransactionExecuted(
        address userAddress,
        address payable relayerAddress,
        bytes functionSignature
    );
    mapping(address => uint256) nonces;

    /*
     * Meta transaction structure.
     * No point of including value field here as if user is doing value transfer then he has the funds to pay for gas
     * He should call the desired function directly in that case.
     */
    struct MetaTransaction {
        uint256 nonce;
        address from;
        bytes functionSignature;
    }

    function executeMetaTransaction(
        address userAddress,
        bytes memory functionSignature,
        bytes32 sigR,
        bytes32 sigS,
        uint8 sigV
    ) public payable returns (bytes memory) {
        MetaTransaction memory metaTx = MetaTransaction({
            nonce: nonces[userAddress],
            from: userAddress,
            functionSignature: functionSignature
        });

        require(
            verify(userAddress, metaTx, sigR, sigS, sigV),
            "Signer and signature do not match"
        );

        // increase nonce for user (to avoid re-use)
        nonces[userAddress] = nonces[userAddress].add(1);

        emit MetaTransactionExecuted(
            userAddress,
            msg.sender,
            functionSignature
        );

        // Append userAddress and relayer address at the end to extract it from calling context
        (bool success, bytes memory returnData) = address(this).call(
            abi.encodePacked(functionSignature, userAddress)
        );
        require(success, "Function call not successful");

        return returnData;
    }

    function hashMetaTransaction(MetaTransaction memory metaTx)
        internal
        pure
        returns (bytes32)
    {
        return
            keccak256(
                abi.encode(
                    META_TRANSACTION_TYPEHASH,
                    metaTx.nonce,
                    metaTx.from,
                    keccak256(metaTx.functionSignature)
                )
            );
    }

    function getNonce(address user) public view returns (uint256 nonce) {
        nonce = nonces[user];
    }

    function verify(
        address signer,
        MetaTransaction memory metaTx,
        bytes32 sigR,
        bytes32 sigS,
        uint8 sigV
    ) internal view returns (bool) {
        require(signer != address(0), "NativeMetaTransaction: INVALID_SIGNER");
        return
            signer ==
            ecrecover(
                toTypedMessageHash(hashMetaTransaction(metaTx)),
                sigV,
                sigR,
                sigS
            );
    }

}

File 6 of 9 : ContextMixin.sol
pragma solidity >= 0.6.6;

abstract contract ContextMixin {
    function msgSender() internal view returns (address payable sender) {
        if (msg.sender == address(this)) {
            bytes memory array = msg.data;
            uint256 index = msg.data.length;
            assembly {
                // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those.
                sender := and(
                    mload(add(array, index)),
                    0xffffffffffffffffffffffffffffffffffffffff
                )
            }
        } else {
            sender = msg.sender;
        }
        return sender;
    }
}

File 7 of 9 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 8 of 9 : EIP712Base.sol
pragma solidity >= 0.6.6;

import './Initializable.sol';

contract EIP712Base is Initializable {
    struct EIP712Domain {
        string name;
        string version;
        address verifyingContract;
        uint256 chainId;
    }

    string constant public ERC712_VERSION = "1";

    bytes32 internal constant EIP712_DOMAIN_TYPEHASH = keccak256(
        bytes(
            "EIP712Domain(string name,string version,address verifyingContract,uint256 chainId)"
        )
    );
    bytes32 internal domainSeperator;

    // supposed to be called once while initializing.
    // one of the contractsa that inherits this contract follows proxy pattern
    // so it is not possible to do this in a constructor
    function _initializeEIP712(
        string memory name
    )
        internal
        initializer
    {
        _setDomainSeperator(name);
    }

    function _setDomainSeperator(string memory name) internal {
        domainSeperator = keccak256(
            abi.encode(
                EIP712_DOMAIN_TYPEHASH,
                keccak256(bytes(name)),
                keccak256(bytes(ERC712_VERSION)),
                address(this),
                getChainId()
            )
        );
    }

    function getDomainSeperator() public view returns (bytes32) {
        return domainSeperator;
    }

    function getChainId() public pure returns (uint256) {
        uint256 id;
        assembly {
            id := chainid()
        }
        return id;
    }

    /**
     * Accept message hash and returns hash message in EIP712 compatible form
     * So that it can be used to recover signer from signature signed using EIP712 formatted data
     * https://eips.ethereum.org/EIPS/eip-712
     * "\\x19" makes the encoding deterministic
     * "\\x01" is the version byte to make it compatible to EIP-191
     */
    function toTypedMessageHash(bytes32 messageHash)
        internal
        view
        returns (bytes32)
    {
        return
            keccak256(
                abi.encodePacked("\x19\x01", getDomainSeperator(), messageHash)
            );
    }
}

File 9 of 9 : Initializable.sol
pragma solidity >= 0.6.6;

contract Initializable {
    bool inited = false;

    modifier initializer() {
        require(!inited, "already inited");
        _;
        inited = true;
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IERC20","name":"_cnt","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"address payable","name":"relayerAddress","type":"address"},{"indexed":false,"internalType":"bytes","name":"functionSignature","type":"bytes"}],"name":"MetaTransactionExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"ERC712_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cnt","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"enter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"bytes","name":"functionSignature","type":"bytes"},{"internalType":"bytes32","name":"sigR","type":"bytes32"},{"internalType":"bytes32","name":"sigS","type":"bytes32"},{"internalType":"uint8","name":"sigV","type":"uint8"}],"name":"executeMetaTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"getChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"getDomainSeperator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_share","type":"uint256"}],"name":"leave","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

60806040526005805461ff00191690553480156200001c57600080fd5b5060405162001c1438038062001c14833981810160405260208110156200004257600080fd5b5051604080518082018252600981526821a72a29ba30b5b2b960b91b6020828101918252835180850190945260048452631e10d39560e21b90840152815191929162000091916003916200023a565b508051620000a79060049060208401906200023a565b50506005805460ff191660121790555060408051808201909152600981526821a72a29ba30b5b2b960b91b6020820152620000e29062000108565b600880546001600160a01b0319166001600160a01b0392909216919091179055620002e6565b600554610100900460ff161562000157576040805162461bcd60e51b815260206004820152600e60248201526d185b1c9958591e481a5b9a5d195960921b604482015290519081900360640190fd5b620001628162000174565b506005805461ff001916610100179055565b60405180608001604052806052815260200162001bc26052913980516020918201208251838301206040805180820190915260018152603160f81b930192909252907fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc630620001e262000236565b60405160200180868152602001858152602001848152602001836001600160a01b03168152602001828152602001955050505050506040516020818303038152906040528051906020012060068190555050565b4690565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282620002725760008555620002bd565b82601f106200028d57805160ff1916838001178555620002bd565b82800160010185558215620002bd579182015b82811115620002bd578251825591602001919060010190620002a0565b50620002cb929150620002cf565b5090565b5b80821115620002cb5760008155600101620002d0565b6118cc80620002f66000396000f3fe6080604052600436106101145760003560e01c80633408e470116100a0578063a457c2d711610064578063a457c2d714610468578063a59f3e0c146104a1578063a9059cbb146104cb578063d6d838ad14610504578063dd62ed3e1461053557610114565b80633408e470146103a657806339509351146103bb57806367dfd4c9146103f457806370a082311461042057806395d89b411461045357610114565b806318160ddd116100e757806318160ddd146102c957806320379ee5146102f057806323b872dd146103055780632d0335ab14610348578063313ce5671461037b57610114565b806306fdde0314610119578063095ea7b3146101a35780630c53c51c146101f05780630f7e5970146102b4575b600080fd5b34801561012557600080fd5b5061012e610570565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610168578181015183820152602001610150565b50505050905090810190601f1680156101955780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101af57600080fd5b506101dc600480360360408110156101c657600080fd5b506001600160a01b038135169060200135610607565b604080519115158252519081900360200190f35b61012e600480360360a081101561020657600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561023157600080fd5b82018360208201111561024357600080fd5b8035906020019184600183028401116401000000008311171561026557600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550508235935050506020810135906040013560ff16610625565b3480156102c057600080fd5b5061012e610927565b3480156102d557600080fd5b506102de610944565b60408051918252519081900360200190f35b3480156102fc57600080fd5b506102de61094a565b34801561031157600080fd5b506101dc6004803603606081101561032857600080fd5b506001600160a01b03813581169160208101359091169060400135610950565b34801561035457600080fd5b506102de6004803603602081101561036b57600080fd5b50356001600160a01b03166109d7565b34801561038757600080fd5b506103906109f2565b6040805160ff9092168252519081900360200190f35b3480156103b257600080fd5b506102de6109fb565b3480156103c757600080fd5b506101dc600480360360408110156103de57600080fd5b506001600160a01b0381351690602001356109ff565b34801561040057600080fd5b5061041e6004803603602081101561041757600080fd5b5035610a4d565b005b34801561042c57600080fd5b506102de6004803603602081101561044357600080fd5b50356001600160a01b0316610bd9565b34801561045f57600080fd5b5061012e610bf4565b34801561047457600080fd5b506101dc6004803603604081101561048b57600080fd5b506001600160a01b038135169060200135610c55565b3480156104ad57600080fd5b5061041e600480360360208110156104c457600080fd5b5035610cbd565b3480156104d757600080fd5b506101dc600480360360408110156104ee57600080fd5b506001600160a01b038135169060200135610dfe565b34801561051057600080fd5b50610519610e12565b604080516001600160a01b039092168252519081900360200190f35b34801561054157600080fd5b506102de6004803603604081101561055857600080fd5b506001600160a01b0381358116916020013516610e21565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105fc5780601f106105d1576101008083540402835291602001916105fc565b820191906000526020600020905b8154815290600101906020018083116105df57829003601f168201915b505050505090505b90565b600061061b610614610e4c565b8484610e5b565b5060015b92915050565b60408051606081810183526001600160a01b038816600081815260076020908152908590205484528301529181018690526106638782878787610f47565b61069e5760405162461bcd60e51b81526004018080602001828103825260218152602001806117e76021913960400191505060405180910390fd5b6001600160a01b0387166000908152600760205260409020546106c2906001611021565b60076000896001600160a01b03166001600160a01b03168152602001908152602001600020819055507f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b87338860405180846001600160a01b03168152602001836001600160a01b0316815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561076a578181015183820152602001610752565b50505050905090810190601f1680156107975780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a1600080306001600160a01b0316888a6040516020018083805190602001908083835b602083106107e75780518252601f1990920191602091820191016107c8565b6001836020036101000a038019825116818451168082178552505050505050905001826001600160a01b031660601b8152601401925050506040516020818303038152906040526040518082805190602001908083835b6020831061085d5780518252601f19909201916020918201910161083e565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146108bf576040519150601f19603f3d011682016040523d82523d6000602084013e6108c4565b606091505b50915091508161091b576040805162461bcd60e51b815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c00000000604482015290519081900360640190fd5b98975050505050505050565b604051806040016040528060018152602001603160f81b81525081565b60025490565b60065490565b600061095d848484611082565b6109cd84610969610e4c565b6109c8856040518060600160405280602881526020016117bf602891396001600160a01b038a166000908152600160205260408120906109a7610e4c565b6001600160a01b0316815260208101919091526040016000205491906111dd565b610e5b565b5060019392505050565b6001600160a01b031660009081526007602052604090205490565b60055460ff1690565b4690565b600061061b610a0c610e4c565b846109c88560016000610a1d610e4c565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490611021565b6000610a57610944565b600854604080516370a0823160e01b81523060048201529051929350600092610aeb928592610ae5926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015610ab257600080fd5b505afa158015610ac6573d6000803e3d6000fd5b505050506040513d6020811015610adc57600080fd5b50518690611274565b906112cd565b9050610afe610af8610e4c565b84611334565b6008546001600160a01b031663a9059cbb610b17610e4c565b836040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015610b5e57600080fd5b505af1158015610b72573d6000803e3d6000fd5b505050506040513d6020811015610b8857600080fd5b5051610bd4576040805162461bcd60e51b8152602060048201526016602482015275151c985b9cd9995c881bd98810d3950819985a5b195960521b604482015290519081900360640190fd5b505050565b6001600160a01b031660009081526020819052604090205490565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105fc5780601f106105d1576101008083540402835291602001916105fc565b600061061b610c62610e4c565b846109c8856040518060600160405280602581526020016118726025913960016000610c8c610e4c565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205491906111dd565b600854604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610d0857600080fd5b505afa158015610d1c573d6000803e3d6000fd5b505050506040513d6020811015610d3257600080fd5b505190506000610d40610944565b9050801580610d4d575081155b15610d6857610d63610d5d610e4c565b84611430565b610d8d565b6000610d7883610ae58685611274565b9050610d8b610d85610e4c565b82611430565b505b6008546001600160a01b03166323b872dd610da6610e4c565b30866040518463ffffffff1660e01b815260040180846001600160a01b03168152602001836001600160a01b031681526020018281526020019350505050602060405180830381600087803b158015610b5e57600080fd5b600061061b610e0b610e4c565b8484611082565b6008546001600160a01b031681565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6000610e56611520565b905090565b6001600160a01b038316610ea05760405162461bcd60e51b815260040180806020018281038252602481526020018061184e6024913960400191505060405180910390fd5b6001600160a01b038216610ee55760405162461bcd60e51b81526004018080602001828103825260228152602001806117316022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b60006001600160a01b038616610f8e5760405162461bcd60e51b81526004018080602001828103825260258152602001806117796025913960400191505060405180910390fd5b6001610fa1610f9c8761157c565b6115ff565b83868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa158015610ff8573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b60008282018381101561107b576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b0383166110c75760405162461bcd60e51b81526004018080602001828103825260258152602001806118296025913960400191505060405180910390fd5b6001600160a01b03821661110c5760405162461bcd60e51b81526004018080602001828103825260238152602001806116a96023913960400191505060405180910390fd5b611117838383610bd4565b61115481604051806060016040528060268152602001611753602691396001600160a01b03861660009081526020819052604090205491906111dd565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546111839082611021565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000818484111561126c5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611231578181015183820152602001611219565b50505050905090810190601f16801561125e5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000826112835750600061061f565b8282028284828161129057fe5b041461107b5760405162461bcd60e51b815260040180806020018281038252602181526020018061179e6021913960400191505060405180910390fd5b6000808211611323576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161132c57fe5b049392505050565b6001600160a01b0382166113795760405162461bcd60e51b81526004018080602001828103825260218152602001806118086021913960400191505060405180910390fd5b61138582600083610bd4565b6113c2816040518060600160405280602281526020016116cc602291396001600160a01b03851660009081526020819052604090205491906111dd565b6001600160a01b0383166000908152602081905260409020556002546113e8908261164b565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6001600160a01b03821661148b576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61149760008383610bd4565b6002546114a49082611021565b6002556001600160a01b0382166000908152602081905260409020546114ca9082611021565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b60003330141561157757600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506106049050565b503390565b60006040518060800160405280604381526020016116ee60439139805190602001208260000151836020015184604001518051906020012060405160200180858152602001848152602001836001600160a01b03168152602001828152602001945050505050604051602081830303815290604052805190602001209050919050565b600061160961094a565b82604051602001808061190160f01b81525060020183815260200182815260200192505050604051602081830303815290604052805190602001209050919050565b6000828211156116a2576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b5090039056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e61747572652945524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63654e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5349474e4552536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63655369676e657220616e64207369676e617475726520646f206e6f74206d6174636845524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220b6af6e60a33ba9ccb759ebbc033afdddb10d978b8fd36e3f06bb8e6ad1ca02e064736f6c63430007060033454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c6164647265737320766572696679696e67436f6e74726163742c75696e7432353620636861696e496429000000000000000000000000d1e6354fb05bf72a8909266203dab80947dceccf

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

000000000000000000000000d1e6354fb05bf72a8909266203dab80947dceccf

-----Decoded View---------------
Arg [0] : _cnt (address): 0xd1e6354fb05bf72a8909266203dab80947dceccf

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000d1e6354fb05bf72a8909266203dab80947dceccf


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.