Contract 0x82C2Fb7410dcfFEd4e9147413BD5005a0a6F58aA

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xca80c3fd43c2b8a57a57a19f084a9850333dfd5bcfe6f0452c7db08bb0f675d3Enter221658552021-12-05 13:33:105 hrs 54 mins ago0x860ba28573a77c08635022d45f91db3dd541c70e IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.002167072
0x04158a823ed6f63c0299a2757e22da288cdeb0c68940631a754ce7c0de49dafbEnter221658492021-12-05 13:32:585 hrs 54 mins ago0x43e3b2a65764af941c66d1b937813a4b89fb306d IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.002167072
0x12704c71f5c33031275ac6ff52c36cb0e69f9b70e90705c568f6c0ff65d9e3a2Enter221658372021-12-05 13:32:345 hrs 55 mins ago0x11ca3b7036c174d067b907cae9cbc43cd17e4981 IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.002167072
0x82c459838b9639d5bda843f6a1ccd29dff8af2e172e6ac03e8ab621f60e97eefEnter221582982021-12-05 8:29:5710 hrs 57 mins ago0xb4f51dcda97503c9da5cbfeb942ef9d961db42f5 IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.002167072
0xbf9ec9b0daec7ec736d82294a871a29f968e33971ee3a5451896edd7000cea98Enter221582902021-12-05 8:29:4110 hrs 58 mins ago0x4cd4508031279c6b7997fd3cb98f485557aae828 IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.002167072
0xfa59e54651a5bf4c7d80b56fd5ff92e3babde02ff6c13bbf8faf0f6403f5d03bEnter221582842021-12-05 8:29:2910 hrs 58 mins ago0xedcfa2d2bcd4de527c15d8aa89ae52da409a2068 IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.002167072
0x8aa1d70181fd6af9c41eb8296f527f981dd3daf288c7681d398fb5e467ca2386Enter221562982021-12-05 7:14:4912 hrs 12 mins ago0x0a9c4f72b1340732ee881e262788912e765d4ca5 IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.001620256
0x99edbe20490aca0b3d9b27a253c512f97c31b4f139ae1710acb1b5bcf5ef4080Enter221521062021-12-05 4:46:2514 hrs 41 mins ago0x3806d94e6efe04cc1eea13f262126dc04e4ba3f2 IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.002167072
0x89e49084f15c5e824c7eb25cb942d6a2a64948c27a44229ebf4067806499cd1eEnter221520402021-12-05 4:44:0914 hrs 43 mins ago0xea2f643ac8a9a3b046bcd7b5ba87c1a46e8e41f0 IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.002167072
0x649c85e24aa3cafcf6efe00afd67ddcdf1faf022da12a86e663f9724275b338dEnter221520332021-12-05 4:43:5514 hrs 43 mins ago0xbd111ac1728f3ad82e9fd6022652bf61dc84df9c IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.002167072
0xc4c70cf56de8f03a451fdebaca75e623328b8b49250b63d7b1f28adde3b30e79Enter221506452021-12-05 3:56:0115 hrs 31 mins ago0x964b2c3df9f29ded421ab05974306255f20a1f98 IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.002099872
0xc5edb228447ba4b308da0c7e937c000f2e6ea30595c26199a3093d0a50e530f7Enter221480222021-12-05 2:20:5717 hrs 6 mins ago0xdd3c7daf175266eec1b830544bd5e40f1649cc61 IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.001620256
0xfa03a28ac321730d12dda8ca405f9d6d32c2102dc03a305b515727add3b6d57dEnter221476092021-12-05 2:06:4717 hrs 20 mins ago0xeda687a18d49fdcddfae38475cc4f3ce979ac133 IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.002099872
0xd737d804f7ca8a5494d8475f8cd50ff253ca7e8ce2451636c6a77d485d69febbEnter221372162021-12-04 19:56:4023 hrs 31 mins ago0x5872b1d08c76497dd8b10c40c77d23815e599982 IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.001619488
0x89b3643afdaa904ac0a39c601db78cd2a50cb1988602027ecc40cd3929cf6030Enter221370062021-12-04 19:49:2423 hrs 38 mins ago0xdb317bffa167d04805becbbcb857ec6bd14e1c93 IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.002167072
0x9af4cf7450f584b74ce2226c38f1508d0dd912d55dfe2e06131998b489f5b758Enter221297172021-12-04 15:23:481 day 4 hrs ago0x8323d8331337e55b5caf35d6e884f5f9236a5205 IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.002646688
0x397861ad4174a3324e07d0b1534b5f191be86a4ef3a0efc586dcfc5263231f0bEnter221240342021-12-04 11:42:141 day 7 hrs ago0x9b2e05bd31c4d6817d937a80ec7e5b423a2d88e3 IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.001620256
0x4147c234d25a79019affeb915b87a231e14952e3a01ce83368308dc98766d933Enter221205092021-12-04 9:26:571 day 10 hrs ago0x137eb3280581db88c36acdd8e494be289bca11bb IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.002167072
0x05949394761179e4c36391c686d3944c042b110965f413cf5116ca6abb645534Enter221204122021-12-04 9:23:391 day 10 hrs ago0xb14a841778034f9c8a12e5b84578b99fdf24677c IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.002167072
0x0f5712d6707080566bb10cb46151932b22d650cb404b588d65db76f41a4dbb84Enter221203592021-12-04 9:21:491 day 10 hrs ago0x5a42b5ba101bc169887f111caaf273efacb9d4a4 IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.002167072
0x0780282965996326b4786f640bb58a56b9e58c7f4bc5695010b52b313a065bf9Enter221076192021-12-04 1:05:021 day 18 hrs ago0x8fe8e86755247b7c9cf787f435849efdadb18745 IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.00216784
0x7ed49a0f89123ecf81dc003e607fd4e07a26604d9f86a0238b093b819215a1daEnter220968352021-12-03 18:10:592 days 1 hr ago0x84803ef94a27cc1f0a68c4bc357cb555dbf57261 IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.002646688
0x4c77ddd758f0d9c86f60de87031868f2ffc3bac180854d6deb6b64862b785789Enter220782292021-12-03 6:14:172 days 13 hrs ago0x0a9c4f72b1340732ee881e262788912e765d4ca5 IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.001620256
0x4f757f30783c64a2cfeff86745d2d482c2f04f7ea3fd79b2f63ad151312d864aEnter220665642021-12-02 23:08:432 days 20 hrs ago0xe0908d2020a0b31ec281818c53846959891b074f IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.00338725
0x9638b2a05986b80548d89d21fdd48d13b7f9efe7c4971c6c1c8b9f2729106146Leave220664592021-12-02 23:05:052 days 20 hrs ago0xe0908d2020a0b31ec281818c53846959891b074f IN  0x82c2fb7410dcffed4e9147413bd5005a0a6f58aa0 MATIC0.00300775
[ 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

Contract Source Code (Solidity Standard Json-Input format)

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.