Contract 0x96a29c4bce3126266983f535b41c30dba80d5d99 1

Txn Hash Method
Block
From
To
Value [Txn Fee]
0xd30d660683030db343d960170940bb7e3807f7a3ec2aa06223a362e9e51c382dWithdraw93311702021-10-22 7:24:315 mins ago0xfa71253a2badc977e90c062a8c4cd429d22633dc IN  0x96a29c4bce3126266983f535b41c30dba80d5d990 HT0.00061974225 2.25
0xf6fd2c196430d8560177b16211acbfddc91ef3cbe26c19b997ba832abaaddc58Withdraw93281262021-10-22 4:52:192 hrs 37 mins ago0x8f27fa136ff4da1796368380019029d81d12d06d IN  0x96a29c4bce3126266983f535b41c30dba80d5d990 HT0.00052076025 2.25
0x5077fc9958b7e76f2b8cf37ab2813c0f22cb3ceb7f59e42d0b776f88d9a62507Withdraw93280832021-10-22 4:50:102 hrs 39 mins ago0x8f27fa136ff4da1796368380019029d81d12d06d IN  0x96a29c4bce3126266983f535b41c30dba80d5d990 HT0.00048819375 2.25
0x5a775ba0314d8931b29a4df29345cec31c69c78366c66d0cc871956b194bd424Deposit93269932021-10-22 3:55:403 hrs 34 mins ago0xf2a254e020bd29b68920aaf5519679e832ec888f IN  0x96a29c4bce3126266983f535b41c30dba80d5d990 HT0.000637373252.25
0x7685ff07e7d10fb11b04b86c9e32e9ecdaadb28dce164367c778ebbaf64ee5ceWithdraw93269832021-10-22 3:55:103 hrs 34 mins ago0xf2a254e020bd29b68920aaf5519679e832ec888f IN  0x96a29c4bce3126266983f535b41c30dba80d5d990 HT0.0003810512.25
0x9ad81ad8156cd34f9bd471f6c2c056adc50030969050eb730ea77f8a4f0df0c9Deposit93249682021-10-22 2:14:255 hrs 15 mins ago0xa105d61feebedd7a7b9f5e6eb50fcbb460f7193a IN  0x96a29c4bce3126266983f535b41c30dba80d5d990 HT0.00077790782.7
0xc54932a14c6b91f69f4d2e6b4ccaab5b8e50bcf0557d7a16e66f0806c72c4c8fDeposit93228522021-10-22 0:28:367 hrs 1 min ago0x49e2dabfd7da2afeba994ab80e8a4c970a2eef15 IN  0x96a29c4bce3126266983f535b41c30dba80d5d990 HT0.00072195525 2.25
0xf92f0aa3f9d7c7aa78a3094825bac01d86f544c9e1c5e0879be2263c267cb69fDeposit93225092021-10-22 0:11:277 hrs 18 mins ago0xabb0299cf4f5b2817e8ed482fcb4ce7a515d9460 IN  0x96a29c4bce3126266983f535b41c30dba80d5d990 HT0.0006121352.25
0x920788eeb80e2a1719a8927eaf98a0c8e6eac33e52f777811162df708828fbe3Withdraw93222592021-10-21 23:58:577 hrs 31 mins ago0x0f075df1274b1215798a869f81dfae66a7abd335 IN  0x96a29c4bce3126266983f535b41c30dba80d5d990 HT0.00048223125 2.25
0xcc866da077f2855bf5c58253a46b9e2133f0e16a57abe3fe5d0972e670b58c4dWithdraw93222432021-10-21 23:58:097 hrs 31 mins ago0x0f075df1274b1215798a869f81dfae66a7abd335 IN  0x96a29c4bce3126266983f535b41c30dba80d5d990 HT0.000381051 2.25
0x343e075811c14958d36ca36401126797aa5f3c3e1ba9cb4137e429daf8cabf0cWithdraw93209422021-10-21 22:53:068 hrs 36 mins ago0xb057ff9c59a08b99536ccd2f0696d62cbcdaa7ff IN  0x96a29c4bce3126266983f535b41c30dba80d5d990 HT0.0006196995 2.25
0x2367790dd6b2e039e906b30324fa649c80114a756d25a59b4019c39915d2e34cWithdraw93193892021-10-21 21:35:279 hrs 54 mins ago0x29b7d07ad238aa8b912b7efc01b1c8988ae7cc7b IN  0x96a29c4bce3126266983f535b41c30dba80d5d990 HT0.00048223125 2.25
0x793d480f8cfacba8d90414d1c8ebd9ca76a0b6222801786a5f5d483f40297d18Deposit93179552021-10-21 20:23:4511 hrs 6 mins ago0x737284cfc66fd5989f2ac866989d70ae134227cb IN  0x96a29c4bce3126266983f535b41c30dba80d5d990 HT0.000684612 2.25
0xb8e20b429a5c0c42a695136d687cc5ca7f14e35efd27b9ac2ec3d975a8c182f1Withdraw93113672021-10-21 14:54:2116 hrs 35 mins ago0x682b4e890c5e3136811a8daeb9f03beb6e7a2547 IN  0x96a29c4bce3126266983f535b41c30dba80d5d990 HT0.00059090625 2.25
0x97d065f8777cbe3adc724a54dbb0619efe4f7c497e1b4fa6fd36307e523c1c63Withdraw93098552021-10-21 13:38:4517 hrs 51 mins ago0xf9f01719d75eb25e6223b5e3cd28e22b092465df IN  0x96a29c4bce3126266983f535b41c30dba80d5d990 HT0.000565278752.25
0xd85c393608db4ff03d4edd931b4f3f57baf40e8e007b1c884676952f0181831eWithdraw93098272021-10-21 13:37:2117 hrs 52 mins ago0xf9f01719d75eb25e6223b5e3cd28e22b092465df IN  0x96a29c4bce3126266983f535b41c30dba80d5d990 HT0.0005908862.25
0xd0b3c4ab0847c63538d8163b772155f4bcbde8956d6fc757bca43e22f45bf911Deposit93054912021-10-21 10:00:3321 hrs 29 mins ago0x6f80335de8aa34cdbf4aaf9c53c783783f12ed3a IN  0x96a29c4bce3126266983f535b41c30dba80d5d990 HT0.000637353 2.25
0x843f4e982ee0724fa63c1bbccf0f6ff71978e595344902ef3db5a7ddb293e769Withdraw93054742021-10-21 9:59:4221 hrs 30 mins ago0x6f80335de8aa34cdbf4aaf9c53c783783f12ed3a IN  0x96a29c4bce3126266983f535b41c30dba80d5d990 HT0.00035025075 2.25
0x77b2e25f8be72ce8274d03c306b9d0200fb3243d27b93593080fd64cf05519e8Withdraw93032592021-10-21 8:08:5723 hrs 21 mins ago0xfcf521775a0772539f3c7f5ead01f38beeeff5b6 IN  0x96a29c4bce3126266983f535b41c30dba80d5d990 HT0.0005158125 2.25
0x1344b67c1c7ce965690d8b8797f866396719354d4d0e71a55597a232c87d529dWithdraw93004332021-10-21 5:47:391 day 1 hr ago0xefc40bb4eb17990939732f16f4d6ef75d4d43586 IN  0x96a29c4bce3126266983f535b41c30dba80d5d990 HT0.0005543415 2.25
0xd2fb78e358aae00c68d59a621abe3424bb57f9348ed10241901ee1098efc09f2Deposit92975192021-10-21 3:21:571 day 4 hrs ago0xe7c47d4de4ebb16716ab37b99160501a37d32782 IN  0x96a29c4bce3126266983f535b41c30dba80d5d990 HT0.00062863425 2.25
0x7bb46067debff4603f24ce021574ff23fa9f82ceacd53144ce249f9da820d525Withdraw92971562021-10-21 3:03:481 day 4 hrs ago0xe7c47d4de4ebb16716ab37b99160501a37d32782 IN  0x96a29c4bce3126266983f535b41c30dba80d5d990 HT0.00059090625 2.25
0xe41de34870189948e56f91f9a125157826ddbccc8d8304e1b8b853f500d266acDeposit92962962021-10-21 2:20:481 day 5 hrs ago0x62b1e0ac9c4f021b21a616357ab0d94ae86223cc IN  0x96a29c4bce3126266983f535b41c30dba80d5d990 HT0.000602937 2.25
0x15f5e6d9fdb55815603692b4eacdc170fd45f410dfc04f4c2c0f08bc00a7e35dDeposit92953252021-10-21 1:32:151 day 5 hrs ago0x85845c52a89999f2a7665c3cacb927a3273fd145 IN  0x96a29c4bce3126266983f535b41c30dba80d5d990 HT0.000602937 2.25
0x3ca82d6d052d50e4375b0919d7252b16ba9aaf2a6b40fea9d4d9aa21f60f2a4aWithdraw92950952021-10-21 1:20:451 day 6 hrs ago0x0dc0c9a3f07cf7409d6eae37f9473959a8c09aa1 IN  0x96a29c4bce3126266983f535b41c30dba80d5d990 HT0.000619764752.25
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AutoFarmV2_CrossChain

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at hecoinfo.com on 2021-04-16
*/

// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

// import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol";
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;
    }
}

library SafeMath {
    /**
     * @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) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * 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);
        uint256 c = a - b;

        return c;
    }

    /**
     * @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) {
        // 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 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts 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) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message 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,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts 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) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message 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,
        string memory errorMessage
    ) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

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
    );
}

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 returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view 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 returns (uint8) {
        return _decimals;
    }

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view 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 {
        _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 {}
}

// import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/SafeERC20.sol";
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(
            address(this).balance >= amount,
            "Address: insufficient balance"
        );

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{value: amount}("");
        require(
            success,
            "Address: unable to send value, recipient may have reverted"
        );
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data)
        internal
        returns (bytes memory)
    {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return
            functionCallWithValue(
                target,
                data,
                value,
                "Address: low-level call with value failed"
            );
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(
            address(this).balance >= value,
            "Address: insufficient balance for call"
        );
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) =
            target.call{value: value}(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data)
        internal
        view
        returns (bytes memory)
    {
        return
            functionStaticCall(
                target,
                data,
                "Address: low-level static call failed"
            );
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.3._
     */
    function functionDelegateCall(address target, bytes memory data)
        internal
        returns (bytes memory)
    {
        return
            functionDelegateCall(
                target,
                data,
                "Address: low-level delegate call failed"
            );
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.3._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) private pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(
            token,
            abi.encodeWithSelector(token.transfer.selector, to, value)
        );
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(
            token,
            abi.encodeWithSelector(token.transferFrom.selector, from, to, value)
        );
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(
            token,
            abi.encodeWithSelector(token.approve.selector, spender, value)
        );
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance =
            token.allowance(address(this), spender).add(value);
        _callOptionalReturn(
            token,
            abi.encodeWithSelector(
                token.approve.selector,
                spender,
                newAllowance
            )
        );
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance =
            token.allowance(address(this), spender).sub(
                value,
                "SafeERC20: decreased allowance below zero"
            );
        _callOptionalReturn(
            token,
            abi.encodeWithSelector(
                token.approve.selector,
                spender,
                newAllowance
            )
        );
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata =
            address(token).functionCall(
                data,
                "SafeERC20: low-level call failed"
            );
        if (returndata.length > 0) {
            // Return data is optional
            // solhint-disable-next-line max-line-length
            require(
                abi.decode(returndata, (bool)),
                "SafeERC20: ERC20 operation did not succeed"
            );
        }
    }
}

// import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/EnumerableSet.sol";
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value)
        private
        view
        returns (bool)
    {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index)
        private
        view
        returns (bytes32)
    {
        require(
            set._values.length > index,
            "EnumerableSet: index out of bounds"
        );
        return set._values[index];
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value)
        internal
        returns (bool)
    {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value)
        internal
        returns (bool)
    {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value)
        internal
        view
        returns (bool)
    {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index)
        internal
        view
        returns (bytes32)
    {
        return _at(set._inner, index);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value)
        internal
        returns (bool)
    {
        return _add(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value)
        internal
        returns (bool)
    {
        return _remove(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value)
        internal
        view
        returns (bool)
    {
        return _contains(set._inner, bytes32(uint256(value)));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index)
        internal
        view
        returns (address)
    {
        return address(uint256(_at(set._inner, index)));
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value)
        internal
        returns (bool)
    {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value)
        internal
        view
        returns (bool)
    {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index)
        internal
        view
        returns (uint256)
    {
        return uint256(_at(set._inner, index));
    }
}

// import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol";
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(
        address indexed previousOwner,
        address indexed newOwner
    );

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(_owner == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(
            newOwner != address(0),
            "Ownable: new owner is the zero address"
        );
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

// "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/ReentrancyGuard.sol";
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() internal {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

// For interacting with our own strategy
interface IStrategy {
    // Total want tokens managed by stratfegy
    function wantLockedTotal() external view returns (uint256);

    // Sum of all shares of users to wantLockedTotal
    function sharesTotal() external view returns (uint256);

    // Main want token compounding function
    function earn() external;

    // Transfer want tokens autoFarm -> strategy
    function deposit(address _userAddress, uint256 _wantAmt)
        external
        returns (uint256);

    // Transfer want tokens strategy -> autoFarm
    function withdraw(address _userAddress, uint256 _wantAmt)
        external
        returns (uint256);

    function inCaseTokensGetStuck(
        address _token,
        uint256 _amount,
        address _to
    ) external;
}

contract AutoFarmV2_CrossChain is Ownable, ReentrancyGuard {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    // Info of each user.
    struct UserInfo {
        uint256 shares; // How many LP tokens the user has provided.
    }

    struct PoolInfo {
        IERC20 want; // Address of the want token.
        uint256 allocPoint; // How many allocation points assigned to this pool. AUTO to distribute per block.
        uint256 lastRewardBlock; // Last block number that AUTO distribution occurs.
        uint256 accAUTOPerShare; // Accumulated AUTO per share, times 1e12. See below.
        address strat; // Strategy address that will auto compound want tokens
    }

    PoolInfo[] public poolInfo; // Info of each pool.
    mapping(uint256 => mapping(address => UserInfo)) public userInfo; // Info of each user that stakes LP tokens.
    uint256 public totalAllocPoint = 1; // Total allocation points. Must be the sum of all allocation points in all pools.

    event Add(
        uint256 _allocPoint,
        IERC20 _want,
        bool _withUpdate,
        address _strat
    );
    event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
    event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);

    function poolLength() external view returns (uint256) {
        return poolInfo.length;
    }

    // Add a new lp to the pool. Can only be called by the owner.
    // XXX DO NOT add the same LP token more than once. Rewards will be messed up if you do. (Only if want tokens are stored here.)

    function add(
        uint256 _allocPoint,
        IERC20 _want,
        bool _withUpdate,
        address _strat
    ) public onlyOwner {
        totalAllocPoint = totalAllocPoint.add(_allocPoint);
        poolInfo.push(
            PoolInfo({
                want: _want,
                allocPoint: _allocPoint,
                lastRewardBlock: 0,
                accAUTOPerShare: 0,
                strat: _strat
            })
        );

        emit Add(_allocPoint, _want, _withUpdate, _strat);
    }

    // View function to see staked Want tokens on frontend.
    function stakedWantTokens(uint256 _pid, address _user)
        external
        view
        returns (uint256)
    {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];

        uint256 sharesTotal = IStrategy(pool.strat).sharesTotal();
        uint256 wantLockedTotal =
            IStrategy(poolInfo[_pid].strat).wantLockedTotal();
        if (sharesTotal == 0) {
            return 0;
        }
        return user.shares.mul(wantLockedTotal).div(sharesTotal);
    }

    // Want tokens moved from user -> AUTOFarm (AUTO allocation) -> Strat (compounding)
    function deposit(uint256 _pid, uint256 _wantAmt) public nonReentrant {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];

        if (_wantAmt > 0) {
            pool.want.safeTransferFrom(
                address(msg.sender),
                address(this),
                _wantAmt
            );

            pool.want.safeIncreaseAllowance(pool.strat, _wantAmt);
            uint256 sharesAdded =
                IStrategy(poolInfo[_pid].strat).deposit(msg.sender, _wantAmt);
            user.shares = user.shares.add(sharesAdded);
        }

        emit Deposit(msg.sender, _pid, _wantAmt);
    }

    // Withdraw LP tokens from MasterChef.
    function withdraw(uint256 _pid, uint256 _wantAmt) public nonReentrant {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];

        uint256 wantLockedTotal =
            IStrategy(poolInfo[_pid].strat).wantLockedTotal();
        uint256 sharesTotal = IStrategy(poolInfo[_pid].strat).sharesTotal();

        require(user.shares > 0, "user.shares is 0");
        require(sharesTotal > 0, "sharesTotal is 0");

        // Withdraw want tokens
        uint256 amount = user.shares.mul(wantLockedTotal).div(sharesTotal);
        if (_wantAmt > amount) {
            _wantAmt = amount;
        }
        if (_wantAmt > 0) {
            uint256 sharesRemoved =
                IStrategy(poolInfo[_pid].strat).withdraw(msg.sender, _wantAmt);

            if (sharesRemoved > user.shares) {
                user.shares = 0;
            } else {
                user.shares = user.shares.sub(sharesRemoved);
            }

            uint256 wantBal = IERC20(pool.want).balanceOf(address(this));
            if (wantBal < _wantAmt) {
                _wantAmt = wantBal;
            }
            pool.want.safeTransfer(address(msg.sender), _wantAmt);
        }
        emit Withdraw(msg.sender, _pid, _wantAmt);
    }

    function inCaseTokensGetStuck(address _token, uint256 _amount)
        public
        onlyOwner
    {
        IERC20(_token).safeTransfer(msg.sender, _amount);
    }
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"indexed":false,"internalType":"contract IERC20","name":"_want","type":"address"},{"indexed":false,"internalType":"bool","name":"_withUpdate","type":"bool"},{"indexed":false,"internalType":"address","name":"_strat","type":"address"}],"name":"Add","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_want","type":"address"},{"internalType":"bool","name":"_withUpdate","type":"bool"},{"internalType":"address","name":"_strat","type":"address"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_wantAmt","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"inCaseTokensGetStuck","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"want","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accAUTOPerShare","type":"uint256"},{"internalType":"address","name":"strat","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"stakedWantTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_wantAmt","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600160045534801561001557600080fd5b506000610020610073565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060018055610077565b3390565b6115d8806100866000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c80637b84daec116100715780637b84daec146101a75780638da5cb5b146101d357806393f1a40b146101f7578063c6d758cb14610223578063e2bbb1581461024f578063f2fde38b14610272576100b4565b8063081e3eda146100b95780631526fe27146100d357806317caf6f114610134578063441a3e701461013c5780635f70edcf14610161578063715018a61461019f575b600080fd5b6100c1610298565b60408051918252519081900360200190f35b6100f0600480360360208110156100e957600080fd5b503561029e565b60405180866001600160a01b03168152602001858152602001848152602001838152602001826001600160a01b031681526020019550505050505060405180910390f35b6100c16102e9565b61015f6004803603604081101561015257600080fd5b50803590602001356102ef565b005b61015f6004803603608081101561017757600080fd5b508035906001600160a01b036020820135811691604081013515159160609091013516610721565b61015f610903565b6100c1600480360360408110156101bd57600080fd5b50803590602001356001600160a01b03166109a5565b6101db610b22565b604080516001600160a01b039092168252519081900360200190f35b6100c16004803603604081101561020d57600080fd5b50803590602001356001600160a01b0316610b31565b61015f6004803603604081101561023957600080fd5b506001600160a01b038135169060200135610b4e565b61015f6004803603604081101561026557600080fd5b5080359060200135610bbe565b61015f6004803603602081101561028857600080fd5b50356001600160a01b0316610d83565b60025490565b600281815481106102ab57fe5b6000918252602090912060059091020180546001820154600283015460038401546004909401546001600160a01b0393841695509193909290911685565b60045481565b60026001541415610347576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260018190555060006002838154811061035e57fe5b60009182526020808320868452600382526040808520338652909252908320600280546005909402909201945092918690811061039757fe5b906000526020600020906005020160040160009054906101000a90046001600160a01b03166001600160a01b03166342da4eb36040518163ffffffff1660e01b815260040160206040518083038186803b1580156103f457600080fd5b505afa158015610408573d6000803e3d6000fd5b505050506040513d602081101561041e57600080fd5b5051600280549192506000918790811061043457fe5b906000526020600020906005020160040160009054906101000a90046001600160a01b03166001600160a01b03166344a3955e6040518163ffffffff1660e01b815260040160206040518083038186803b15801561049157600080fd5b505afa1580156104a5573d6000803e3d6000fd5b505050506040513d60208110156104bb57600080fd5b50518354909150610506576040805162461bcd60e51b815260206004820152601060248201526f0757365722e73686172657320697320360841b604482015290519081900360640190fd5b6000811161054e576040805162461bcd60e51b815260206004820152601060248201526f0736861726573546f74616c20697320360841b604482015290519081900360640190fd5b82546000906105699083906105639086610e7b565b90610edb565b905080861115610577578095505b85156106dd5760006002888154811061058c57fe5b6000918252602080832060046005909302018201546040805163f3fef3a360e01b81523394810194909452602484018c9052516001600160a01b039091169363f3fef3a3936044808201949392918390030190829087803b1580156105f057600080fd5b505af1158015610604573d6000803e3d6000fd5b505050506040513d602081101561061a57600080fd5b505185549091508111156106315760008555610640565b845461063d9082610f1d565b85555b8554604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561068a57600080fd5b505afa15801561069e573d6000803e3d6000fd5b505050506040513d60208110156106b457600080fd5b50519050878110156106c4578097505b86546106da906001600160a01b0316338a610f5f565b50505b604080518781529051889133917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a35050600180555050505050565b610729610fb6565b6000546001600160a01b03908116911614610779576040805162461bcd60e51b81526020600482018190526024820152600080516020611559833981519152604482015290519081900360640190fd5b6004546107869085610fba565b6004556040805160a0810182526001600160a01b038086168083526020808401898152600085870181815260608088018381528a88166080808b018281526002805460018101825597529a5160059096027f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace81018054978c166001600160a01b031998891617905596517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5acf88015593517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad087015590517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad186015597517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad2909401805494909716939092169290921790945585518a815291820192909252861515818601529182019290925291517f7ac3b3d636ea03a286c25edba9e75801c02c65437a5fc04d2160a9693f7d31b39281900390910190a150505050565b61090b610fb6565b6000546001600160a01b0390811691161461095b576040805162461bcd60e51b81526020600482018190526024820152600080516020611559833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b600080600284815481106109b557fe5b600091825260208083208784526003825260408085206001600160a01b03808a16875290845281862060046005909602909301858101548351632251caaf60e11b8152935191985093969593909116936344a3955e9383810193919291829003018186803b158015610a2657600080fd5b505afa158015610a3a573d6000803e3d6000fd5b505050506040513d6020811015610a5057600080fd5b50516002805491925060009188908110610a6657fe5b906000526020600020906005020160040160009054906101000a90046001600160a01b03166001600160a01b03166342da4eb36040518163ffffffff1660e01b815260040160206040518083038186803b158015610ac357600080fd5b505afa158015610ad7573d6000803e3d6000fd5b505050506040513d6020811015610aed57600080fd5b5051905081610b03576000945050505050610b1c565b8254610b159083906105639084610e7b565b9450505050505b92915050565b6000546001600160a01b031690565b600360209081526000928352604080842090915290825290205481565b610b56610fb6565b6000546001600160a01b03908116911614610ba6576040805162461bcd60e51b81526020600482018190526024820152600080516020611559833981519152604482015290519081900360640190fd5b610bba6001600160a01b0383163383610f5f565b5050565b60026001541415610c16576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600181905550600060028381548110610c2d57fe5b600091825260208083208684526003825260408085203386529092529220600590910290910191508215610d42578154610c72906001600160a01b0316333086611014565b60048201548254610c90916001600160a01b03918216911685611074565b600060028581548110610c9f57fe5b600091825260208083206004600590930201820154604080516311f9fbc960e21b8152339481019490945260248401899052516001600160a01b03909116936347e7ef24936044808201949392918390030190829087803b158015610d0357600080fd5b505af1158015610d17573d6000803e3d6000fd5b505050506040513d6020811015610d2d57600080fd5b50518254909150610d3e9082610fba565b8255505b604080518481529051859133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a35050600180555050565b610d8b610fb6565b6000546001600160a01b03908116911614610ddb576040805162461bcd60e51b81526020600482018190526024820152600080516020611559833981519152604482015290519081900360640190fd5b6001600160a01b038116610e205760405162461bcd60e51b81526004018080602001828103825260268152602001806114ec6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600082610e8a57506000610b1c565b82820282848281610e9757fe5b0414610ed45760405162461bcd60e51b81526004018080602001828103825260218152602001806115386021913960400191505060405180910390fd5b9392505050565b6000610ed483836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061115f565b6000610ed483836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611201565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610fb190849061125b565b505050565b3390565b600082820183811015610ed4576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261106e90859061125b565b50505050565b600061110a82856001600160a01b031663dd62ed3e30876040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160a01b031681526020019250505060206040518083038186803b1580156110d857600080fd5b505afa1580156110ec573d6000803e3d6000fd5b505050506040513d602081101561110257600080fd5b505190610fba565b604080516001600160a01b038616602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b17905290915061106e90859061125b565b600081836111eb5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156111b0578181015183820152602001611198565b50505050905090810190601f1680156111dd5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816111f757fe5b0495945050505050565b600081848411156112535760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156111b0578181015183820152602001611198565b505050900390565b60606112b0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661130c9092919063ffffffff16565b805190915015610fb1578080602001905160208110156112cf57600080fd5b5051610fb15760405162461bcd60e51b815260040180806020018281038252602a815260200180611579602a913960400191505060405180910390fd5b606061131b8484600085611323565b949350505050565b6060824710156113645760405162461bcd60e51b81526004018080602001828103825260268152602001806115126026913960400191505060405180910390fd5b61136d8561147f565b6113be576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106113fd5780518252601f1990920191602091820191016113de565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461145f576040519150601f19603f3d011682016040523d82523d6000602084013e611464565b606091505b5091509150611474828286611485565b979650505050505050565b3b151590565b60608315611494575081610ed4565b8251156114a45782518084602001fd5b60405162461bcd60e51b81526020600482018181528451602484015284518593919283926044019190850190808383600083156111b057818101518382015260200161119856fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212204ae99af6d7f9ea6339a5ee53abb7ca741ca2a600f36078c80738cf32ffd969fe64736f6c634300060c0033

Deployed ByteCode Sourcemap

45132:5038:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46430:95;;;:::i;:::-;;;;;;;;;;;;;;;;45845:26;;;;;;;;;;;;;;;;-1:-1:-1;45845:26:0;;:::i;:::-;;;;;-1:-1:-1;;;;;45845:26:0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;45845:26:0;;;;;;;;;;;;;;;;;;;46015:34;;;:::i;48691:1298::-;;;;;;;;;;;;;;;;-1:-1:-1;48691:1298:0;;;;;;;:::i;:::-;;46735:526;;;;;;;;;;;;;;;;-1:-1:-1;46735:526:0;;;-1:-1:-1;;;;;46735:526:0;;;;;;;;;;;;;;;;;;;;;:::i;41768:148::-;;;:::i;47330:535::-;;;;;;;;;;;;;;;;-1:-1:-1;47330:535:0;;;;;;-1:-1:-1;;;;;47330:535:0;;:::i;41126:79::-;;;:::i;:::-;;;;-1:-1:-1;;;;;41126:79:0;;;;;;;;;;;;;;45900:64;;;;;;;;;;;;;;;;-1:-1:-1;45900:64:0;;;;;;-1:-1:-1;;;;;45900:64:0;;:::i;49997:170::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;49997:170:0;;;;;;;;:::i;47962:677::-;;;;;;;;;;;;;;;;-1:-1:-1;47962:677:0;;;;;;;:::i;42071:281::-;;;;;;;;;;;;;;;;-1:-1:-1;42071:281:0;-1:-1:-1;;;;;42071:281:0;;:::i;46430:95::-;46502:8;:15;46430:95;:::o;45845:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;45845:26:0;;;;-1:-1:-1;45845:26:0;;;;;;;;:::o;46015:34::-;;;;:::o;48691:1298::-;43353:1;43958:7;;:19;;43950:63;;;;;-1:-1:-1;;;43950:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;43353:1;44091:7;:18;;;;48772:21:::1;48796:8;48805:4;48796:14;;;;;;;;;::::0;;;::::1;::::0;;;48845;;;:8:::1;:14:::0;;;;;;48860:10:::1;48845:26:::0;;;;;;;;48933:8:::1;:14:::0;;48796::::1;::::0;;::::1;::::0;;::::1;::::0;-1:-1:-1;48845:26:0;48796:14;48854:4;;48933:14;::::1;;;;;;;;;;;;;;;:20;;;;;;;;;;-1:-1:-1::0;;;;;48933:20:0::1;-1:-1:-1::0;;;;;48923:47:0::1;;:49;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;48923:49:0;49015:8:::1;:14:::0;;48923:49;;-1:-1:-1;48983:19:0::1;::::0;49024:4;;49015:14;::::1;;;;;;;;;;;;;;;:20;;;;;;;;;;-1:-1:-1::0;;;;;49015:20:0::1;-1:-1:-1::0;;;;;49005:43:0::1;;:45;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;49005:45:0;49071:11;;49005:45;;-1:-1:-1;49063:44:0::1;;;::::0;;-1:-1:-1;;;49063:44:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;49063:44:0;;;;;;;;;;;;;::::1;;49140:1;49126:11;:15;49118:44;;;::::0;;-1:-1:-1;;;49118:44:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;49118:44:0;;;;;;;;;;;;;::::1;;49225:11:::0;;49208:14:::1;::::0;49225:49:::1;::::0;49262:11;;49225:32:::1;::::0;49241:15;49225::::1;:32::i;:::-;:36:::0;::::1;:49::i;:::-;49208:66;;49300:6;49289:8;:17;49285:67;;;49334:6;49323:17;;49285:67;49366:12:::0;;49362:568:::1;;49395:21;49446:8;49455:4;49446:14;;;;;;;;;::::0;;;::::1;::::0;;;:20:::1;:14;::::0;;::::1;;:20:::0;::::1;::::0;49436:62:::1;::::0;;-1:-1:-1;;;49436:62:0;;49477:10:::1;49436:62:::0;;::::1;::::0;;;;;;;;;;;-1:-1:-1;;;;;49446:20:0;;::::1;::::0;49436:40:::1;::::0;:62;;;;;49446:14;49436:62;;;;;;;;;49446:20;49436:62;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;49436:62:0;49535:11;;49436:62;;-1:-1:-1;49519:27:0;::::1;49515:168;;;49581:1;49567:15:::0;;49515:168:::1;;;49637:11:::0;;:30:::1;::::0;49653:13;49637:15:::1;:30::i;:::-;49623:44:::0;;49515:168:::1;49724:9:::0;;49717:42:::1;::::0;;-1:-1:-1;;;49717:42:0;;49753:4:::1;49717:42;::::0;::::1;::::0;;;49699:15:::1;::::0;-1:-1:-1;;;;;49724:9:0::1;::::0;49717:27:::1;::::0;:42;;;;;::::1;::::0;;;;;;;;49724:9;49717:42;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;49717:42:0;;-1:-1:-1;49778:18:0;;::::1;49774:77;;;49828:7;49817:18;;49774:77;49865:9:::0;;:53:::1;::::0;-1:-1:-1;;;;;49865:9:0::1;49896:10;49909:8:::0;49865:22:::1;:53::i;:::-;49362:568;;;49945:36;::::0;;;;;;;49966:4;;49954:10:::1;::::0;49945:36:::1;::::0;;;;::::1;::::0;;::::1;-1:-1:-1::0;;43309:1:0;44270:22;;-1:-1:-1;;;;;48691:1298:0:o;46735:526::-;41348:12;:10;:12::i;:::-;41338:6;;-1:-1:-1;;;;;41338:6:0;;;:22;;;41330:67;;;;;-1:-1:-1;;;41330:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;41330:67:0;;;;;;;;;;;;;;;46906:15:::1;::::0;:32:::1;::::0;46926:11;46906:19:::1;:32::i;:::-;46888:15;:50:::0;46977:203:::1;::::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;46977:203:0;;::::1;::::0;;;::::1;::::0;;::::1;::::0;;;-1:-1:-1;46977:203:0;;;;;;;;;;;;;;;::::1;::::0;;;;;;;46949:8:::1;:242:::0;;::::1;::::0;::::1;::::0;;;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;;;::::1;-1:-1:-1::0;;;;;;46949:242:0;;::::1;;::::0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::1;::::0;;;::::1;::::0;;;::::1;::::0;;;47209:44;;;;;;;::::1;::::0;;;;;::::1;;::::0;;;;;;;;;;;;;::::1;::::0;;;;;;;;::::1;46735:526:::0;;;;:::o;41768:148::-;41348:12;:10;:12::i;:::-;41338:6;;-1:-1:-1;;;;;41338:6:0;;;:22;;;41330:67;;;;;-1:-1:-1;;;41330:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;41330:67:0;;;;;;;;;;;;;;;41875:1:::1;41859:6:::0;;41838:40:::1;::::0;-1:-1:-1;;;;;41859:6:0;;::::1;::::0;41838:40:::1;::::0;41875:1;;41838:40:::1;41906:1;41889:19:::0;;-1:-1:-1;;;;;;41889:19:0::1;::::0;;41768:148::o;47330:535::-;47435:7;47460:21;47484:8;47493:4;47484:14;;;;;;;;;;;;;;;;47533;;;:8;:14;;;;;;-1:-1:-1;;;;;47533:21:0;;;;;;;;;;;47599:10;47484:14;;;;;;;47599:10;;;;47589:35;;-1:-1:-1;;;47589:35:0;;;;47484:14;;-1:-1:-1;47533:21:0;;47484:14;47599:10;;;;;47589:33;;:35;;;;47484:14;;47589:35;;;;;;47599:10;47589:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;47589:35:0;47684:8;:14;;47589:35;;-1:-1:-1;47635:23:0;;47693:4;;47684:14;;;;;;;;;;;;;;;;:20;;;;;;;;;;-1:-1:-1;;;;;47684:20:0;-1:-1:-1;;;;;47674:47:0;;:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;47674:49:0;;-1:-1:-1;47738:16:0;47734:57;;47778:1;47771:8;;;;;;;;47734:57;47808:11;;:49;;47845:11;;47808:32;;47824:15;47808;:32::i;:49::-;47801:56;;;;;;47330:535;;;;;:::o;41126:79::-;41164:7;41191:6;-1:-1:-1;;;;;41191:6:0;41126:79;:::o;45900:64::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;49997:170::-;41348:12;:10;:12::i;:::-;41338:6;;-1:-1:-1;;;;;41338:6:0;;;:22;;;41330:67;;;;;-1:-1:-1;;;41330:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;41330:67:0;;;;;;;;;;;;;;;50111:48:::1;-1:-1:-1::0;;;;;50111:27:0;::::1;50139:10;50151:7:::0;50111:27:::1;:48::i;:::-;49997:170:::0;;:::o;47962:677::-;43353:1;43958:7;;:19;;43950:63;;;;;-1:-1:-1;;;43950:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;43353:1;44091:7;:18;;;;48042:21:::1;48066:8;48075:4;48066:14;;;;;;;;;::::0;;;::::1;::::0;;;48115;;;:8:::1;:14:::0;;;;;;48130:10:::1;48115:26:::0;;;;;;;48066:14:::1;::::0;;::::1;::::0;;::::1;::::0;-1:-1:-1;48158:12:0;;48154:425:::1;;48187:9:::0;;:138:::1;::::0;-1:-1:-1;;;;;48187:9:0::1;48240:10;48278:4;48302:8:::0;48187:26:::1;:138::i;:::-;48374:10;::::0;::::1;::::0;48342:9;;:53:::1;::::0;-1:-1:-1;;;;;48342:9:0;;::::1;::::0;48374:10:::1;48386:8:::0;48342:31:::1;:53::i;:::-;48410:19;48459:8;48468:4;48459:14;;;;;;;;;::::0;;;::::1;::::0;;;:20:::1;:14;::::0;;::::1;;:20:::0;::::1;::::0;48449:61:::1;::::0;;-1:-1:-1;;;48449:61:0;;48489:10:::1;48449:61:::0;;::::1;::::0;;;;;;;;;;;-1:-1:-1;;;;;48459:20:0;;::::1;::::0;48449:39:::1;::::0;:61;;;;;48459:14;48449:61;;;;;;;;;48459:20;48449:61;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;48449:61:0;48539:11;;48449:61;;-1:-1:-1;48539:28:0::1;::::0;48449:61;48539:15:::1;:28::i;:::-;48525:42:::0;;-1:-1:-1;48154:425:0::1;48596:35;::::0;;;;;;;48616:4;;48604:10:::1;::::0;48596:35:::1;::::0;;;;::::1;::::0;;::::1;-1:-1:-1::0;;43309:1:0;44270:22;;-1:-1:-1;;47962:677:0:o;42071:281::-;41348:12;:10;:12::i;:::-;41338:6;;-1:-1:-1;;;;;41338:6:0;;;:22;;;41330:67;;;;;-1:-1:-1;;;41330:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;41330:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;42174:22:0;::::1;42152:110;;;;-1:-1:-1::0;;;42152:110:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42299:6;::::0;;42278:38:::1;::::0;-1:-1:-1;;;;;42278:38:0;;::::1;::::0;42299:6;::::1;::::0;42278:38:::1;::::0;::::1;42327:6;:17:::0;;-1:-1:-1;;;;;;42327:17:0::1;-1:-1:-1::0;;;;;42327:17:0;;;::::1;::::0;;;::::1;::::0;;42071:281::o;2213:471::-;2271:7;2516:6;2512:47;;-1:-1:-1;2546:1:0;2539:8;;2512:47;2583:5;;;2587:1;2583;:5;:1;2607:5;;;;;:10;2599:56;;;;-1:-1:-1;;;2599:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2675:1;2213:471;-1:-1:-1;;;2213:471:0:o;3160:132::-;3218:7;3245:39;3249:1;3252;3245:39;;;;;;;;;;;;;;;;;:3;:39::i;1289:136::-;1347:7;1374:43;1378:1;1381;1374:43;;;;;;;;;;;;;;;;;:3;:43::i;27259:248::-;27430:58;;;-1:-1:-1;;;;;27430:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;27430:58:0;-1:-1:-1;;;27430:58:0;;;27376:123;;27410:5;;27376:19;:123::i;:::-;27259:248;;;:::o;208:106::-;296:10;208:106;:::o;825:181::-;883:7;915:5;;;939:6;;;;931:46;;;;;-1:-1:-1;;;931:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;27515:285;27713:68;;;-1:-1:-1;;;;;27713:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;27713:68:0;-1:-1:-1;;;27713:68:0;;;27659:133;;27693:5;;27659:19;:133::i;:::-;27515:285;;;;:::o;28784:436::-;28915:20;28951:50;28995:5;28951;-1:-1:-1;;;;;28951:15:0;;28975:4;28982:7;28951:39;;;;;;;;;;;;;-1:-1:-1;;;;;28951:39:0;;;;;;-1:-1:-1;;;;;28951:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;28951:39:0;;:43;:50::i;:::-;29066:135;;;-1:-1:-1;;;;;29066:135:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;29066:135:0;-1:-1:-1;;;29066:135:0;;;28915:86;;-1:-1:-1;29012:200:0;;29046:5;;29012:19;:200::i;3788:312::-;3908:7;3943:12;3936:5;3928:28;;;;-1:-1:-1;;;3928:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3967:9;3983:1;3979;:5;;;;;;;3788:312;-1:-1:-1;;;;;3788:312:0:o;1728:226::-;1848:7;1884:12;1876:6;;;;1868:29;;;;-1:-1:-1;;;1868:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;1920:5:0;;;1728:226::o;30149:885::-;30573:23;30612:118;30658:4;30612:118;;;;;;;;;;;;;;;;;30620:5;-1:-1:-1;;;;;30612:27:0;;;:118;;;;;:::i;:::-;30745:17;;30573:157;;-1:-1:-1;30745:21:0;30741:286;;30918:10;30907:30;;;;;;;;;;;;;;;-1:-1:-1;30907:30:0;30881:134;;;;-1:-1:-1;;;30881:134:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22255:229;22392:12;22424:52;22446:6;22454:4;22460:1;22463:12;22424:21;:52::i;:::-;22417:59;22255:229;-1:-1:-1;;;;22255:229:0:o;23471:621::-;23641:12;23713:5;23688:21;:30;;23666:118;;;;-1:-1:-1;;;23666:118:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23803:18;23814:6;23803:10;:18::i;:::-;23795:60;;;;;-1:-1:-1;;;23795:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;23929:12;23943:23;23983:6;-1:-1:-1;;;;;23983:11:0;24002:5;24009:4;23983:31;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;23983:31:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23928:86;;;;24032:52;24050:7;24059:10;24071:12;24032:17;:52::i;:::-;24025:59;23471:621;-1:-1:-1;;;;;;;23471:621:0:o;19218:444::-;19598:20;19646:8;;;19218:444::o;26383:777::-;26533:12;26562:7;26558:595;;;-1:-1:-1;26593:10:0;26586:17;;26558:595;26707:17;;:21;26703:439;;26970:10;26964:17;27031:15;27018:10;27014:2;27010:19;27003:44;26918:148;27106:20;;-1:-1:-1;;;27106:20:0;;;;;;;;;;;;;;;;;27113:12;;27106:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Swarm Source

ipfs://4ae99af6d7f9ea6339a5ee53abb7ca741ca2a600f36078c80738cf32ffd969fe
Block Transaction Gas Used Reward
Age Block Fee Address Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading