Contract 0x0ac58fd25f334975b1b61732cf79564b6200a933 5

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x87b91f4a2a787bb27f2e998956a9cff1cc5907f82289e9f94337e638e9b7df1eDeposit130111152021-11-28 1:20:1525 mins ago0x39d6ca8dcdb8508d28e23311e00f6bc6700045bd IN  0x0ac58fd25f334975b1b61732cf79564b6200a9330 BNB0.000574365
0x34c5c50ef22e48f2356ec06fcd82de3a4247cbdad2eb7f00efc4857d282d6de4Withdraw130110282021-11-28 1:15:3130 mins ago0xf22ca71045d644116814a333f65b61d847c66d50 IN  0x0ac58fd25f334975b1b61732cf79564b6200a9330 BNB0.000614785
0xa0a28cbb09809a46406456461554351a378383fe832ad483b0736ab5a520651eWithdraw130110032021-11-28 1:14:0931 mins ago0xf22ca71045d644116814a333f65b61d847c66d50 IN  0x0ac58fd25f334975b1b61732cf79564b6200a9330 BNB0.00085799
0xe92a0bcf193aca5e31f82b6ba97452209de1051fb36db283d28dbcf2eca29bb3Withdraw130109792021-11-28 1:12:5732 mins ago0xf22ca71045d644116814a333f65b61d847c66d50 IN  0x0ac58fd25f334975b1b61732cf79564b6200a9330 BNB0.000398445
0xf2a2d574359523af3f9e5421b7a2247561d90af95280cdf5dac22abf6fc224a1Withdraw130108262021-11-28 1:04:2141 mins ago0x7b2710b1750f7d3862ba62aa335f2f14e1cf3477 IN  0x0ac58fd25f334975b1b61732cf79564b6200a9330 BNB0.00085799
0x71534735da320b92bf00b5dbc50d4dcadb0a9c613d7ecf3d0ca67af3aba4a957Withdraw130104592021-11-28 0:43:101 hr 2 mins ago0xc0515b10d5eddc1f57c066cb474eee2fcbacb1c1 IN  0x0ac58fd25f334975b1b61732cf79564b6200a9330 BNB0.001092275
0x5f44a7e067744bf51e7f8cd60617ccf0ce90fc43851953bc4f7280d435b2de78Deposit130103782021-11-28 0:38:241 hr 7 mins ago0x1290a075ee4eb0164908d13d0392e7f2a725f1fb IN  0x0ac58fd25f334975b1b61732cf79564b6200a9330 BNB0.000574365
0x128efe801ff0f04bb47765e0e662c3a96313d195303d8f609468938ed531c5f3Withdraw130101782021-11-28 0:27:321 hr 18 mins ago0x1290a075ee4eb0164908d13d0392e7f2a725f1fb IN  0x0ac58fd25f334975b1b61732cf79564b6200a9330 BNB0.00085799
0x7ce79390e557fca5e18ff0959323105bed1a73297ee70e88f90baee6fb553871Withdraw130101302021-11-28 0:25:021 hr 20 mins ago0x1290a075ee4eb0164908d13d0392e7f2a725f1fb IN  0x0ac58fd25f334975b1b61732cf79564b6200a9330 BNB0.000473445
0x06d3c12ce03d92945ab91268d4d7cb0058c5e3616640102bee21d983be2ef888Withdraw130100302021-11-28 0:19:131 hr 26 mins ago0xda24033f25a96e495631176385416d6bebf42c0a IN  0x0ac58fd25f334975b1b61732cf79564b6200a9330 BNB0.00088751
0x765f5987cc33e7a3f559b43d43d5f9faf706fb8ce744b267e84ceb34db8a39aaWithdraw130098772021-11-28 0:10:451 hr 34 mins ago0x38b02f307910465fbd3a2506f085f689694f39f5 IN  0x0ac58fd25f334975b1b61732cf79564b6200a9330 BNB0.00158118
0xf8a397c8761386732c1fc739ebd81dcdec2435ab5d762cd387ae13e5a02a0209Withdraw130096662021-11-27 23:59:061 hr 46 mins ago0xc5a3710cf65bb0eb34f21dab45dc18a31d2b00d5 IN  0x0ac58fd25f334975b1b61732cf79564b6200a9330 BNB0.00103733
0x931afe9b363e4c29e696fefe3e07b2b42d7000404c1c0d5a81aac8eff6a692d3Withdraw130095622021-11-27 23:53:521 hr 51 mins ago0xde6af368cca6948804e368f42f00b514115a8d0b IN  0x0ac58fd25f334975b1b61732cf79564b6200a9330 BNB0.00134476
0x103392d7a00d27433f3fed835c0373a8f3a9c2f5bc9f20d7251663d7a2ac6df5Withdraw130095282021-11-27 23:52:101 hr 53 mins ago0xde6af368cca6948804e368f42f00b514115a8d0b IN  0x0ac58fd25f334975b1b61732cf79564b6200a9330 BNB0.00140772
0x36612b10d729f3ce502551ec334a203ae067b2933b857c75e15400894dbd99fbWithdraw130095062021-11-27 23:51:041 hr 54 mins ago0xde6af368cca6948804e368f42f00b514115a8d0b IN  0x0ac58fd25f334975b1b61732cf79564b6200a9330 BNB0.000398445
0x8b99a5ad8f59d6f3e835556b207b0c2f1440147365f4a3f30e585d6ee56ceaf8Withdraw130093312021-11-27 23:42:032 hrs 3 mins ago0xde6af368cca6948804e368f42f00b514115a8d0b IN  0x0ac58fd25f334975b1b61732cf79564b6200a9330 BNB0.00078305
0xb72d75d958c2cc5bae915bda599340101b574dd6577786c4d6a21679ce3d18b9Withdraw130092782021-11-27 23:39:242 hrs 6 mins ago0xde6af368cca6948804e368f42f00b514115a8d0b IN  0x0ac58fd25f334975b1b61732cf79564b6200a9330 BNB0.000614845
0x9ea52d6b97ab51c6e432b7277ed2c56176f87d1d368cd976d83043c46d6a56d5Withdraw130092472021-11-27 23:37:502 hrs 7 mins ago0xde6af368cca6948804e368f42f00b514115a8d0b IN  0x0ac58fd25f334975b1b61732cf79564b6200a9330 BNB0.00078305
0xe8f2dc8d352f1002d0cd6648a31c49f27cf1eaa17609bd5add02fba2c14b0edaWithdraw130092322021-11-27 23:37:052 hrs 8 mins ago0xde6af368cca6948804e368f42f00b514115a8d0b IN  0x0ac58fd25f334975b1b61732cf79564b6200a9330 BNB0.000398445
0x801e8db8a630d784b1362693a3e14e2451fe2f4007d7f62848430034bb4b35baWithdraw130092282021-11-27 23:36:532 hrs 8 mins ago0xde6af368cca6948804e368f42f00b514115a8d0b IN  0x0ac58fd25f334975b1b61732cf79564b6200a9330 BNB0.000473445
0xba7abbdeb1be65efd3d78a4aa520e757f0bc2398caf6866739618866dfa56fcaWithdraw130089102021-11-27 23:20:412 hrs 25 mins ago0x1be92cd0837ffd843ef8ee9ea57613858831fdb4 IN  0x0ac58fd25f334975b1b61732cf79564b6200a9330 BNB0.00085799
0xf8f8cbb840fd106d3d93845f6c4ef6330766e39602707b6c54714d94dce994b3Withdraw130088982021-11-27 23:20:032 hrs 25 mins ago0x1be92cd0837ffd843ef8ee9ea57613858831fdb4 IN  0x0ac58fd25f334975b1b61732cf79564b6200a9330 BNB0.000473445
0x4f142fc5085dfd8d557428941f02e46511685581a0280c1bc447c5bdf3cdbdabWithdraw130086612021-11-27 23:08:002 hrs 37 mins ago0x4daaf49a83fc97279f33049611b0d42916680b30 IN  0x0ac58fd25f334975b1b61732cf79564b6200a9330 BNB0.000273045
0xd6245894c28a473e996454caea925877e203c3a7bc4856f18ef16415015f2257Withdraw130081372021-11-27 22:40:373 hrs 5 mins ago0x315ee1bf3198dc92c2a70be0be50e3c61eeee763 IN  0x0ac58fd25f334975b1b61732cf79564b6200a9330 BNB0.00096233
0x753dd1960c49783a4931d1005d055e1dd4812269f41f8a91835bcb46f52cfb0eWithdraw130080822021-11-27 22:37:483 hrs 7 mins ago0x315ee1bf3198dc92c2a70be0be50e3c61eeee763 IN  0x0ac58fd25f334975b1b61732cf79564b6200a9330 BNB0.00158712
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PlanetFinance

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at BscScan.com on 2021-05-02
*/

// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

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

// import "./AquaToken.sol";
abstract contract AquaToken is ERC20 {
    function mint(address _to, uint256 _amount) public virtual;
}

// 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 aquaFarm -> strategy
    function deposit(address _userAddress, uint256 _wantAmt)
        external
        returns (uint256);

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

    function inCaseTokensGetStuck(
        address _token,
        uint256 _amount,
        address _to
    ) external;
}
contract PlanetFinance 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.
        uint256 rewardDebt; // Reward debt. See explanation below.

        // We do some fancy math here. Basically, any point in time, the amount of AQUA
        // entitled to a user but is pending to be distributed is:
        //
        //   amount = user.shares / sharesTotal * wantLockedTotal
        //   pending reward = (amount * pool.accAQUAPerShare) - user.rewardDebt
        //
        // Whenever a user deposits or withdraws want tokens to a pool. Here's what happens:
        //   1. The pool's `accAQUAPerShare` (and `lastRewardBlock`) gets updated.
        //   2. User receives the pending reward sent to his/her address.
        //   3. User's `amount` gets updated.
        //   4. User's `rewardDebt` gets updated.
    }

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

    address public AQUA = 0x72B7D61E8fC8cF971960DD9cfA59B8C829D91991;

    address public burnAddress = 0x000000000000000000000000000000000000dEaD;
    uint256 public AQUAMaxSupply = 100000e18;
    uint256 public AQUAPerBlock = 17361100000000000; // AQUA tokens created per block
    uint256 public startBlock = 0; 

    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 = 0; // Total allocation points. Must be the sum of all allocation points in all pools.

    event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
    event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event EmergencyWithdraw(
        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 {
        if (_withUpdate) {
            massUpdatePools();
        }
        uint256 lastRewardBlock =
            block.number > startBlock ? block.number : startBlock;
        totalAllocPoint = totalAllocPoint.add(_allocPoint);
        poolInfo.push(
            PoolInfo({
                want: _want,
                allocPoint: _allocPoint,
                lastRewardBlock: lastRewardBlock,
                accAQUAPerShare: 0,
                strat: _strat
            })
        );
    }

    // Update the given pool's AQUA allocation point. Can only be called by the owner.
    function set(
        uint256 _pid,
        uint256 _allocPoint,
        bool _withUpdate
    ) public onlyOwner {
        if (_withUpdate) {
            massUpdatePools();
        }
        totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(
            _allocPoint
        );
        poolInfo[_pid].allocPoint = _allocPoint;
    }

    // Return reward multiplier over the given _from to _to block.
    function getMultiplier(uint256 _from, uint256 _to)
        public
        view
        returns (uint256)
    {
        if (IERC20(AQUA).totalSupply() >= AQUAMaxSupply) {
            return 0;
        }
        return _to.sub(_from);
    }

    // View function to see pending AQUA on frontend.
    function pendingAQUA(uint256 _pid, address _user)
        external
        view
        returns (uint256)
    {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accAQUAPerShare = pool.accAQUAPerShare;
        uint256 sharesTotal = IStrategy(pool.strat).sharesTotal();
        if (block.number > pool.lastRewardBlock && sharesTotal != 0) {
            uint256 multiplier =
                getMultiplier(pool.lastRewardBlock, block.number);
            uint256 AQUAReward =
                multiplier.mul(AQUAPerBlock).mul(pool.allocPoint).div(
                    totalAllocPoint
                );
            accAQUAPerShare = accAQUAPerShare.add(
                AQUAReward.mul(1e12).div(sharesTotal)
            );
        }
        return user.shares.mul(accAQUAPerShare).div(1e12).sub(user.rewardDebt);
    }

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

    // Update reward variables for all pools. Be careful of gas spending!
    function massUpdatePools() public {
        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            updatePool(pid);
        }
    }

    // Update reward variables of the given pool to be up-to-date.
    function updatePool(uint256 _pid) public {
        PoolInfo storage pool = poolInfo[_pid];
        if (block.number <= pool.lastRewardBlock) {
            return;
        }
        uint256 sharesTotal = IStrategy(pool.strat).sharesTotal();
        if (sharesTotal == 0) {
            pool.lastRewardBlock = block.number;
            return;
        }
        uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
        if (multiplier <= 0) {
            return;
        }
        uint256 AQUAReward =
            multiplier.mul(AQUAPerBlock).mul(pool.allocPoint).div(
                totalAllocPoint
            );

        AquaToken(AQUA).mint(address(this), AQUAReward);

        pool.accAQUAPerShare = pool.accAQUAPerShare.add(
            AQUAReward.mul(1e12).div(sharesTotal)
        );
        pool.lastRewardBlock = block.number;
    }

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

        if (user.shares > 0) {
            uint256 pending =
                user.shares.mul(pool.accAQUAPerShare).div(1e12).sub(
                    user.rewardDebt
                );
            if (pending > 0) {
                safeAQUATransfer(msg.sender, pending);
            }
        }
        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);
        }
        user.rewardDebt = user.shares.mul(pool.accAQUAPerShare).div(1e12);
        emit Deposit(msg.sender, _pid, _wantAmt);
    }

    // Withdraw LP tokens from MasterChef.
    function withdraw(uint256 _pid, uint256 _wantAmt) public nonReentrant {
        updatePool(_pid);

        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 pending AQUA
        uint256 pending =
            user.shares.mul(pool.accAQUAPerShare).div(1e12).sub(
                user.rewardDebt
            );
        if (pending > 0) {
            safeAQUATransfer(msg.sender, pending);
        }

        // 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);
        }
        user.rewardDebt = user.shares.mul(pool.accAQUAPerShare).div(1e12);
        emit Withdraw(msg.sender, _pid, _wantAmt);
    }

    function withdrawAll(uint256 _pid) public nonReentrant {
        withdraw(_pid, uint256(-1));
    }

    // Withdraw without caring about rewards. EMERGENCY ONLY.
    function emergencyWithdraw(uint256 _pid) 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();
        uint256 amount = user.shares.mul(wantLockedTotal).div(sharesTotal);

        IStrategy(poolInfo[_pid].strat).withdraw(msg.sender, amount);

        pool.want.safeTransfer(address(msg.sender), amount);
        emit EmergencyWithdraw(msg.sender, _pid, amount);
        user.shares = 0;
        user.rewardDebt = 0;
    }

    // Safe AQUA transfer function, just in case if rounding error causes pool to not have enough
    function safeAQUATransfer(address _to, uint256 _AQUAAmt) internal {
        uint256 AQUABal = IERC20(AQUA).balanceOf(address(this));
        if (_AQUAAmt > AQUABal) {
            IERC20(AQUA).transfer(_to, AQUABal);
        } else {
            IERC20(AQUA).transfer(_to, _AQUAAmt);
        }
    }

    function inCaseTokensGetStuck(address _token, uint256 _amount)
        public
        onlyOwner
    {
        require(_token != AQUA, "!safe");
        IERC20(_token).safeTransfer(msg.sender, _amount);
    }
    
    function changeAQUAaddress(address _newAddress) public onlyOwner {
        AQUA = _newAddress;
    }
}

Contract Security Audit

Contract ABI

[{"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":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","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":[],"name":"AQUA","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"AQUAMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"AQUAPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"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":[],"name":"burnAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newAddress","type":"address"}],"name":"changeAQUAaddress","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":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"inCaseTokensGetStuck","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingAQUA","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"accAQUAPerShare","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":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"set","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":"startBlock","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":"_pid","type":"uint256"}],"name":"updatePool","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"},{"internalType":"uint256","name":"rewardDebt","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"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040527372b7d61e8fc8cf971960dd9cfa59b8c829d91991600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061dead600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555069152d02c7e14af6800000600455663dadd41668f80060055560006006556000600955348015620000cc57600080fd5b506000620000df6200018a60201b60201c565b9050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3506001808190555062000192565b600033905090565b6136ee80620001a26000396000f3fe608060405234801561001057600080fd5b50600436106101735760003560e01c806370d5ae05116100de57806393f1a40b11610097578063c6d758cb11610071578063c6d758cb14610667578063e2bbb158146106b5578063f2fde38b146106ed578063f5def93f1461073157610173565b806393f1a40b1461058c578063958e2d31146105f5578063960e9bbd1461062357610173565b806370d5ae051461044e578063715018a6146104825780637b84daec1461048c5780638da5cb5b146104ee5780638dbb1e3a146105225780638f01db601461056e57610173565b806351eb05a61161013057806351eb05a6146102f65780635312ea8e146103245780635f70edcf14610352578063630b5ba1146103cc57806363fccba9146103d657806364482f791461040a57610173565b8063081e3eda146101785780631252715d146101965780631526fe27146101f857806317caf6f114610282578063441a3e70146102a057806348cd4cb1146102d8575b600080fd5b61018061074f565b6040518082815260200191505060405180910390f35b6101e2600480360360408110156101ac57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061075c565b6040518082815260200191505060405180910390f35b6102246004803603602081101561020e57600080fd5b8101908080359060200190929190505050610981565b604051808673ffffffffffffffffffffffffffffffffffffffff1681526020018581526020018481526020018381526020018273ffffffffffffffffffffffffffffffffffffffff1681526020019550505050505060405180910390f35b61028a610a04565b6040518082815260200191505060405180910390f35b6102d6600480360360408110156102b657600080fd5b810190808035906020019092919080359060200190929190505050610a0a565b005b6102e061110a565b6040518082815260200191505060405180910390f35b6103226004803603602081101561030c57600080fd5b8101908080359060200190929190505050611110565b005b6103506004803603602081101561033a57600080fd5b810190808035906020019092919050505061136b565b005b6103ca6004803603608081101561036857600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803515159060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506117be565b005b6103d46119fb565b005b6103de611a28565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61044c6004803603606081101561042057600080fd5b810190808035906020019092919080359060200190929190803515159060200190929190505050611a4e565b005b610456611b98565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61048a611bbe565b005b6104d8600480360360408110156104a257600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611d44565b6040518082815260200191505060405180910390f35b6104f6611f70565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6105586004803603604081101561053857600080fd5b810190808035906020019092919080359060200190929190505050611f99565b6040518082815260200191505060405180910390f35b61057661206b565b6040518082815260200191505060405180910390f35b6105d8600480360360408110156105a257600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612071565b604051808381526020018281526020019250505060405180910390f35b6106216004803603602081101561060b57600080fd5b81019080803590602001909291905050506120a2565b005b6106656004803603602081101561063957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612157565b005b6106b36004803603604081101561067d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050612263565b005b6106eb600480360360408110156106cb57600080fd5b81019080803590602001909291908035906020019092919050505061241e565b005b61072f6004803603602081101561070357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506127fc565b005b610739612a07565b6040518082815260200191505060405180910390f35b6000600780549050905090565b6000806007848154811061076c57fe5b9060005260206000209060050201905060006008600086815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008260030154905060008360040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166344a3955e6040518163ffffffff1660e01b815260040160206040518083038186803b15801561084557600080fd5b505afa158015610859573d6000803e3d6000fd5b505050506040513d602081101561086f57600080fd5b81019080805190602001909291905050509050836002015443118015610896575060008114155b156109315760006108ab856002015443611f99565b905060006108ee6009546108e088600101546108d260055487612a0d90919063ffffffff16565b612a0d90919063ffffffff16565b612a9390919063ffffffff16565b905061092c61091d8461090f64e8d4a5100085612a0d90919063ffffffff16565b612a9390919063ffffffff16565b85612add90919063ffffffff16565b935050505b610975836001015461096764e8d4a51000610959868860000154612a0d90919063ffffffff16565b612a9390919063ffffffff16565b612b6590919063ffffffff16565b94505050505092915050565b6007818154811061098e57fe5b90600052602060002090600502016000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060030154908060040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905085565b60095481565b60026001541415610a83576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b6002600181905550610a9482611110565b600060078381548110610aa357fe5b9060005260206000209060050201905060006008600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600060078581548110610b1657fe5b906000526020600020906005020160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342da4eb36040518163ffffffff1660e01b815260040160206040518083038186803b158015610b8d57600080fd5b505afa158015610ba1573d6000803e3d6000fd5b505050506040513d6020811015610bb757600080fd5b81019080805190602001909291905050509050600060078681548110610bd957fe5b906000526020600020906005020160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166344a3955e6040518163ffffffff1660e01b815260040160206040518083038186803b158015610c5057600080fd5b505afa158015610c64573d6000803e3d6000fd5b505050506040513d6020811015610c7a57600080fd5b810190808051906020019092919050505090506000836000015411610d07576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f757365722e73686172657320697320300000000000000000000000000000000081525060200191505060405180910390fd5b60008111610d7d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f736861726573546f74616c20697320300000000000000000000000000000000081525060200191505060405180910390fd5b6000610dc78460010154610db964e8d4a51000610dab89600301548960000154612a0d90919063ffffffff16565b612a9390919063ffffffff16565b612b6590919063ffffffff16565b90506000811115610ddd57610ddc3382612baf565b5b6000610e0883610dfa868860000154612a0d90919063ffffffff16565b612a9390919063ffffffff16565b905080871115610e16578096505b600087111561107057600060078981548110610e2e57fe5b906000526020600020906005020160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f3fef3a3338a6040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015610ed057600080fd5b505af1158015610ee4573d6000803e3d6000fd5b505050506040513d6020811015610efa57600080fd5b810190808051906020019092919050505090508560000154811115610f285760008660000181905550610f48565b610f3f818760000154612b6590919063ffffffff16565b86600001819055505b60008760000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610fd557600080fd5b505afa158015610fe9573d6000803e3d6000fd5b505050506040513d6020811015610fff57600080fd5b810190808051906020019092919050505090508881101561101e578098505b61106d338a8a60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612e289092919063ffffffff16565b50505b6110a264e8d4a5100061109488600301548860000154612a0d90919063ffffffff16565b612a9390919063ffffffff16565b8560010181905550873373ffffffffffffffffffffffffffffffffffffffff167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568896040518082815260200191505060405180910390a3505050505050600180819055505050565b60065481565b60006007828154811061111f57fe5b90600052602060002090600502019050806002015443116111405750611368565b60008160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166344a3955e6040518163ffffffff1660e01b815260040160206040518083038186803b1580156111ac57600080fd5b505afa1580156111c0573d6000803e3d6000fd5b505050506040513d60208110156111d657600080fd5b810190808051906020019092919050505090506000811415611202574382600201819055505050611368565b6000611212836002015443611f99565b90506000811161122457505050611368565b6000611265600954611257866001015461124960055487612a0d90919063ffffffff16565b612a0d90919063ffffffff16565b612a9390919063ffffffff16565b9050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1930836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b1580156112fa57600080fd5b505af115801561130e573d6000803e3d6000fd5b5050505061135261133f8461133164e8d4a5100085612a0d90919063ffffffff16565b612a9390919063ffffffff16565b8560030154612add90919063ffffffff16565b8460030181905550438460020181905550505050505b50565b600260015414156113e4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b60026001819055506000600782815481106113fb57fe5b9060005260206000209060050201905060006008600084815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060006007848154811061146e57fe5b906000526020600020906005020160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342da4eb36040518163ffffffff1660e01b815260040160206040518083038186803b1580156114e557600080fd5b505afa1580156114f9573d6000803e3d6000fd5b505050506040513d602081101561150f57600080fd5b8101908080519060200190929190505050905060006007858154811061153157fe5b906000526020600020906005020160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166344a3955e6040518163ffffffff1660e01b815260040160206040518083038186803b1580156115a857600080fd5b505afa1580156115bc573d6000803e3d6000fd5b505050506040513d60208110156115d257600080fd5b81019080805190602001909291905050509050600061161082611602858760000154612a0d90919063ffffffff16565b612a9390919063ffffffff16565b90506007868154811061161f57fe5b906000526020600020906005020160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f3fef3a333836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156116c157600080fd5b505af11580156116d5573d6000803e3d6000fd5b505050506040513d60208110156116eb57600080fd5b81019080805190602001909291905050505061174c33828760000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612e289092919063ffffffff16565b853373ffffffffffffffffffffffffffffffffffffffff167fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595836040518082815260200191505060405180910390a3600084600001819055506000846001018190555050505050506001808190555050565b6117c6612eca565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611886576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b8115611895576118946119fb565b5b600060065443116118a8576006546118aa565b435b90506118c185600954612add90919063ffffffff16565b60098190555060076040518060a001604052808673ffffffffffffffffffffffffffffffffffffffff168152602001878152602001838152602001600081526020018473ffffffffffffffffffffffffffffffffffffffff16815250908060018154018082558091505060019003906000526020600020906005020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010155604082015181600201556060820151816003015560808201518160040160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050505050565b6000600780549050905060005b81811015611a2457611a1981611110565b806001019050611a08565b5050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611a56612eca565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611b16576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b8015611b2557611b246119fb565b5b611b6a82611b5c60078681548110611b3957fe5b906000526020600020906005020160010154600954612b6590919063ffffffff16565b612add90919063ffffffff16565b6009819055508160078481548110611b7e57fe5b906000526020600020906005020160010181905550505050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611bc6612eca565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611c86576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60008060078481548110611d5457fe5b9060005260206000209060050201905060006008600086815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008260040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166344a3955e6040518163ffffffff1660e01b815260040160206040518083038186803b158015611e2457600080fd5b505afa158015611e38573d6000803e3d6000fd5b505050506040513d6020811015611e4e57600080fd5b81019080805190602001909291905050509050600060078781548110611e7057fe5b906000526020600020906005020160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342da4eb36040518163ffffffff1660e01b815260040160206040518083038186803b158015611ee757600080fd5b505afa158015611efb573d6000803e3d6000fd5b505050506040513d6020811015611f1157600080fd5b810190808051906020019092919050505090506000821415611f3a576000945050505050611f6a565b611f6382611f55838660000154612a0d90919063ffffffff16565b612a9390919063ffffffff16565b9450505050505b92915050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600454600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561200657600080fd5b505afa15801561201a573d6000803e3d6000fd5b505050506040513d602081101561203057600080fd5b81019080805190602001909291905050501061204f5760009050612065565b6120628383612b6590919063ffffffff16565b90505b92915050565b60045481565b6008602052816000526040600020602052806000526040600020600091509150508060000154908060010154905082565b6002600154141561211b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b600260018190555061214d817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610a0a565b6001808190555050565b61215f612eca565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461221f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61226b612eca565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461232b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156123ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260058152602001807f217361666500000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b61241a33828473ffffffffffffffffffffffffffffffffffffffff16612e289092919063ffffffff16565b5050565b60026001541415612497576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b60026001819055506124a882611110565b6000600783815481106124b757fe5b9060005260206000209060050201905060006008600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905060008160000154111561258a576000612572826001015461256464e8d4a5100061255687600301548760000154612a0d90919063ffffffff16565b612a9390919063ffffffff16565b612b6590919063ffffffff16565b90506000811115612588576125873382612baf565b5b505b6000831115612766576125e43330858560000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612ed2909392919063ffffffff16565b6126578260040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16848460000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16612f939092919063ffffffff16565b60006007858154811061266657fe5b906000526020600020906005020160040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166347e7ef2433866040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561270857600080fd5b505af115801561271c573d6000803e3d6000fd5b505050506040513d602081101561273257600080fd5b8101908080519060200190929190505050905061275c818360000154612add90919063ffffffff16565b8260000181905550505b61279864e8d4a5100061278a84600301548460000154612a0d90919063ffffffff16565b612a9390919063ffffffff16565b8160010181905550833373ffffffffffffffffffffffffffffffffffffffff167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15856040518082815260200191505060405180910390a35050600180819055505050565b612804612eca565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146128c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561294a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806136226026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60055481565b600080831415612a205760009050612a8d565b6000828402905082848281612a3157fe5b0414612a88576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018061366e6021913960400191505060405180910390fd5b809150505b92915050565b6000612ad583836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061310c565b905092915050565b600080828401905083811015612b5b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b6000612ba783836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506131d2565b905092915050565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015612c3a57600080fd5b505afa158015612c4e573d6000803e3d6000fd5b505050506040513d6020811015612c6457600080fd5b8101908080519060200190929190505050905080821115612d5357600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015612d1257600080fd5b505af1158015612d26573d6000803e3d6000fd5b505050506040513d6020811015612d3c57600080fd5b810190808051906020019092919050505050612e23565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015612de657600080fd5b505af1158015612dfa573d6000803e3d6000fd5b505050506040513d6020811015612e1057600080fd5b8101908080519060200190929190505050505b505050565b612ec58363a9059cbb60e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613292565b505050565b600033905090565b612f8d846323b872dd60e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613292565b50505050565b6000613067828573ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30876040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1681526020019250505060206040518083038186803b15801561301e57600080fd5b505afa158015613032573d6000803e3d6000fd5b505050506040513d602081101561304857600080fd5b8101908080519060200190929190505050612add90919063ffffffff16565b90506131068463095ea7b360e01b8584604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613292565b50505050565b600080831182906131b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561317d578082015181840152602081019050613162565b50505050905090810190601f1680156131aa5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816131c457fe5b049050809150509392505050565b600083831115829061327f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613244578082015181840152602081019050613229565b50505050905090810190601f1680156132715780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b60606132f4826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166133819092919063ffffffff16565b905060008151111561337c5780806020019051602081101561331557600080fd5b810190808051906020019092919050505061337b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a81526020018061368f602a913960400191505060405180910390fd5b5b505050565b60606133908484600085613399565b90509392505050565b6060824710156133f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806136486026913960400191505060405180910390fd5b6133fd85613542565b61346f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b602083106134bf578051825260208201915060208101905060208303925061349c565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114613521576040519150601f19603f3d011682016040523d82523d6000602084013e613526565b606091505b5091509150613536828286613555565b92505050949350505050565b600080823b905060008111915050919050565b606083156135655782905061361a565b6000835111156135785782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156135df5780820151818401526020810190506135c4565b50505050905090810190601f16801561360c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b939250505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220d9858370450f199c67cb68e91117e052291db40c8717106e25e8aa3b6be390db64736f6c634300060c0033

Deployed ByteCode Sourcemap

45162:11414:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47521:95;;;:::i;:::-;;;;;;;;;;;;;;;;;;;49322:904;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;46941:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47111:34;;;:::i;:::-;;;;;;;;;;;;;;;;;;;53287:1672;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;46902:29;;;:::i;:::-;;;;;;;;;;;;;;;;;;;51169:887;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;55139:687;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;47826:652;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;50913:180;;;:::i;:::-;;46617:64;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;48574:362;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;46690:71;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;41655:148;;;:::i;:::-;;50295:535;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;41013:79;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;49012:247;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;46768:40;;;:::i;:::-;;;;;;;;;;;;;;;;;;;46996:64;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;54967:101;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;56471:102;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;56246:213;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;52153:1082;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;41958:281;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;46815:47;;;:::i;:::-;;;;;;;;;;;;;;;;;;;47521:95;47566:7;47593:8;:15;;;;47586:22;;47521:95;:::o;49322:904::-;49422:7;49447:21;49471:8;49480:4;49471:14;;;;;;;;;;;;;;;;;;49447:38;;49496:21;49520:8;:14;49529:4;49520:14;;;;;;;;;;;:21;49535:5;49520:21;;;;;;;;;;;;;;;49496:45;;49552:23;49578:4;:20;;;49552:46;;49609:19;49641:4;:10;;;;;;;;;;;;49631:33;;;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49609:57;;49696:4;:20;;;49681:12;:35;:55;;;;;49735:1;49720:11;:16;;49681:55;49677:461;;;49753:18;49791:49;49805:4;:20;;;49827:12;49791:13;:49::i;:::-;49753:87;;49855:18;49893:110;49969:15;;49893:49;49926:4;:15;;;49893:28;49908:12;;49893:10;:14;;:28;;;;:::i;:::-;:32;;:49;;;;:::i;:::-;:53;;:110;;;;:::i;:::-;49855:148;;50036:90;50074:37;50099:11;50074:20;50089:4;50074:10;:14;;:20;;;;:::i;:::-;:24;;:37;;;;:::i;:::-;50036:15;:19;;:90;;;;:::i;:::-;50018:108;;49677:461;;;50155:63;50202:4;:15;;;50155:42;50192:4;50155:32;50171:15;50155:4;:11;;;:15;;:32;;;;:::i;:::-;:36;;:42;;;;:::i;:::-;:46;;:63;;;;:::i;:::-;50148:70;;;;;;49322:904;;;;:::o;46941:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;47111:34::-;;;;:::o;53287:1672::-;43240:1;43845:7;;:19;;43837:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43240:1;43978:7;:18;;;;53368:16:::1;53379:4;53368:10;:16::i;:::-;53397:21;53421:8;53430:4;53421:14;;;;;;;;;;;;;;;;;;53397:38;;53446:21;53470:8;:14;53479:4;53470:14;;;;;;;;;;;:26;53485:10;53470:26;;;;;;;;;;;;;;;53446:50;;53509:23;53558:8;53567:4;53558:14;;;;;;;;;;;;;;;;;;:20;;;;;;;;;;;;53548:47;;;:49;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;53509:88;;53608:19;53640:8;53649:4;53640:14;;;;;;;;;;;;;;;;;;:20;;;;;;;;;;;;53630:43;;;:45;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;53608:67;;53710:1;53696:4;:11;;;:15;53688:44;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;53765:1;53751:11;:15;53743:44;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;53834:15;53865:100;53935:4;:15;;;53865:47;53907:4;53865:37;53881:4;:20;;;53865:4;:11;;;:15;;:37;;;;:::i;:::-;:41;;:47;;;;:::i;:::-;:51;;:100;;;;:::i;:::-;53834:131;;53990:1;53980:7;:11;53976:81;;;54008:37;54025:10;54037:7;54008:16;:37::i;:::-;53976:81;54102:14;54119:49;54156:11;54119:32;54135:15;54119:4;:11;;;:15;;:32;;;;:::i;:::-;:36;;:49;;;;:::i;:::-;54102:66;;54194:6;54183:8;:17;54179:67;;;54228:6;54217:17;;54179:67;54271:1;54260:8;:12;54256:568;;;54289:21;54340:8;54349:4;54340:14;;;;;;;;;;;;;;;;;;:20;;;;;;;;;;;;54330:40;;;54371:10;54383:8;54330:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;54289:103;;54429:4;:11;;;54413:13;:27;54409:168;;;54475:1;54461:4;:11;;:15;;;;54409:168;;;54531:30;54547:13;54531:4;:11;;;:15;;:30;;;;:::i;:::-;54517:4;:11;;:44;;;;54409:168;54593:15;54618:4;:9;;;;;;;;;;;;54611:27;;;54647:4;54611:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;54593:60;;54682:8;54672:7;:18;54668:77;;;54722:7;54711:18;;54668:77;54759:53;54790:10;54803:8;54759:4;:9;;;;;;;;;;;;:22;;;;:53;;;;;:::i;:::-;54256:568;;;54852:47;54894:4;54852:37;54868:4;:20;;;54852:4;:11;;;:15;;:37;;;;:::i;:::-;:41;;:47;;;;:::i;:::-;54834:4;:15;;:65;;;;54936:4;54924:10;54915:36;;;54942:8;54915:36;;;;;;;;;;;;;;;;;;44009:1;;;;;;43196::::0;44157:7;:22;;;;53287:1672;;:::o;46902:29::-;;;;:::o;51169:887::-;51221:21;51245:8;51254:4;51245:14;;;;;;;;;;;;;;;;;;51221:38;;51290:4;:20;;;51274:12;:36;51270:75;;51327:7;;;51270:75;51355:19;51387:4;:10;;;;;;;;;;;;51377:33;;;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51355:57;;51442:1;51427:11;:16;51423:105;;;51483:12;51460:4;:20;;:35;;;;51510:7;;;;51423:105;51538:18;51559:49;51573:4;:20;;;51595:12;51559:13;:49::i;:::-;51538:70;;51637:1;51623:10;:15;51619:54;;51655:7;;;;;51619:54;51683:18;51717:102;51789:15;;51717:49;51750:4;:15;;;51717:28;51732:12;;51717:10;:14;;:28;;;;:::i;:::-;:32;;:49;;;;:::i;:::-;:53;;:102;;;;:::i;:::-;51683:136;;51842:4;;;;;;;;;;;51832:20;;;51861:4;51868:10;51832:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51915:87;51954:37;51979:11;51954:20;51969:4;51954:10;:14;;:20;;;;:::i;:::-;:24;;:37;;;;:::i;:::-;51915:4;:20;;;:24;;:87;;;;:::i;:::-;51892:4;:20;;:110;;;;52036:12;52013:4;:20;;:35;;;;51169:887;;;;;;:::o;55139:687::-;43240:1;43845:7;;:19;;43837:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43240:1;43978:7;:18;;;;55211:21:::1;55235:8;55244:4;55235:14;;;;;;;;;;;;;;;;;;55211:38;;55260:21;55284:8;:14;55293:4;55284:14;;;;;;;;;;;:26;55299:10;55284:26;;;;;;;;;;;;;;;55260:50;;55323:23;55372:8;55381:4;55372:14;;;;;;;;;;;;;;;;;;:20;;;;;;;;;;;;55362:47;;;:49;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;55323:88;;55422:19;55454:8;55463:4;55454:14;;;;;;;;;;;;;;;;;;:20;;;;;;;;;;;;55444:43;;;:45;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;55422:67;;55500:14;55517:49;55554:11;55517:32;55533:15;55517:4;:11;;;:15;;:32;;;;:::i;:::-;:36;;:49;;;;:::i;:::-;55500:66;;55589:8;55598:4;55589:14;;;;;;;;;;;;;;;;;;:20;;;;;;;;;;;;55579:40;;;55620:10;55632:6;55579:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;55652:51;55683:10;55696:6;55652:4;:9;;;;;;;;;;;;:22;;;;:51;;;;;:::i;:::-;55749:4;55737:10;55719:43;;;55755:6;55719:43;;;;;;;;;;;;;;;;;;55787:1;55773:4;:11;;:15;;;;55817:1;55799:4;:15;;:19;;;;44009:1;;;;;43196::::0;44157:7;:22;;;;55139:687;:::o;47826:652::-;41235:12;:10;:12::i;:::-;41225:22;;:6;;;;;;;;;;:22;;;41217:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47983:11:::1;47979:61;;;48011:17;:15;:17::i;:::-;47979:61;48050:23;48104:10;;48089:12;:25;:53;;48132:10;;48089:53;;;48117:12;48089:53;48050:92;;48171:32;48191:11;48171:15;;:19;;:32;;;;:::i;:::-;48153:15;:50;;;;48214:8;48242:217;;;;;;;;48276:5;48242:217;;;;;;48312:11;48242:217;;;;48359:15;48242:217;;;;48410:1;48242:217;;;;48437:6;48242:217;;;;::::0;48214:256:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41295:1;47826:652:::0;;;;:::o;50913:180::-;50958:14;50975:8;:15;;;;50958:32;;51006:11;51001:85;51029:6;51023:3;:12;51001:85;;;51059:15;51070:3;51059:10;:15::i;:::-;51037:5;;;;;51001:85;;;;50913:180;:::o;46617:64::-;;;;;;;;;;;;;:::o;48574:362::-;41235:12;:10;:12::i;:::-;41225:22;;:6;;;;;;;;;;:22;;;41217:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48706:11:::1;48702:61;;;48734:17;:15;:17::i;:::-;48702:61;48791:87;48856:11;48791:46;48811:8;48820:4;48811:14;;;;;;;;;;;;;;;;;;:25;;;48791:15;;:19;;:46;;;;:::i;:::-;:50;;:87;;;;:::i;:::-;48773:15;:105;;;;48917:11;48889:8;48898:4;48889:14;;;;;;;;;;;;;;;;;;:25;;:39;;;;48574:362:::0;;;:::o;46690:71::-;;;;;;;;;;;;;:::o;41655:148::-;41235:12;:10;:12::i;:::-;41225:22;;:6;;;;;;;;;;:22;;;41217:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41762:1:::1;41725:40;;41746:6;::::0;::::1;;;;;;;;41725:40;;;;;;;;;;;;41793:1;41776:6:::0;::::1;:19;;;;;;;;;;;;;;;;;;41655:148::o:0;50295:535::-;50400:7;50425:21;50449:8;50458:4;50449:14;;;;;;;;;;;;;;;;;;50425:38;;50474:21;50498:8;:14;50507:4;50498:14;;;;;;;;;;;:21;50513:5;50498:21;;;;;;;;;;;;;;;50474:45;;50532:19;50564:4;:10;;;;;;;;;;;;50554:33;;;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50532:57;;50600:23;50649:8;50658:4;50649:14;;;;;;;;;;;;;;;;;;:20;;;;;;;;;;;;50639:47;;;:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50600:88;;50718:1;50703:11;:16;50699:57;;;50743:1;50736:8;;;;;;;;50699:57;50773:49;50810:11;50773:32;50789:15;50773:4;:11;;;:15;;:32;;;;:::i;:::-;:36;;:49;;;;:::i;:::-;50766:56;;;;;;50295:535;;;;;:::o;41013:79::-;41051:7;41078:6;;;;;;;;;;;41071:13;;41013:79;:::o;49012:247::-;49111:7;49170:13;;49147:4;;;;;;;;;;;49140:24;;;:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:43;49136:84;;49207:1;49200:8;;;;49136:84;49237:14;49245:5;49237:3;:7;;:14;;;;:::i;:::-;49230:21;;49012:247;;;;;:::o;46768:40::-;;;;:::o;46996:64::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;54967:101::-;43240:1;43845:7;;:19;;43837:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43240:1;43978:7;:18;;;;55033:27:::1;55042:4;55056:2;55033:8;:27::i;:::-;43196:1:::0;44157:7;:22;;;;54967:101;:::o;56471:102::-;41235:12;:10;:12::i;:::-;41225:22;;:6;;;;;;;;;;:22;;;41217:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56554:11:::1;56547:4;;:18;;;;;;;;;;;;;;;;;;56471:102:::0;:::o;56246:213::-;41235:12;:10;:12::i;:::-;41225:22;;:6;;;;;;;;;;:22;;;41217:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56378:4:::1;;;;;;;;;;;56368:14;;:6;:14;;;;56360:32;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;56403:48;56431:10;56443:7;56410:6;56403:27;;;;:48;;;;;:::i;:::-;56246:213:::0;;:::o;52153:1082::-;43240:1;43845:7;;:19;;43837:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43240:1;43978:7;:18;;;;52233:16:::1;52244:4;52233:10;:16::i;:::-;52260:21;52284:8;52293:4;52284:14;;;;;;;;;;;;;;;;;;52260:38;;52309:21;52333:8;:14;52342:4;52333:14;;;;;;;;;;;:26;52348:10;52333:26;;;;;;;;;;;;;;;52309:50;;52390:1;52376:4;:11;;;:15;52372:294;;;52408:15;52443:108;52517:4;:15;;;52443:47;52485:4;52443:37;52459:4;:20;;;52443:4;:11;;;:15;;:37;;;;:::i;:::-;:41;;:47;;;;:::i;:::-;:51;;:108;;;;:::i;:::-;52408:143;;52580:1;52570:7;:11;52566:89;;;52602:37;52619:10;52631:7;52602:16;:37::i;:::-;52566:89;52372:294;;52691:1;52680:8;:12;52676:425;;;52709:138;52762:10;52800:4;52824:8;52709:4;:9;;;;;;;;;;;;:26;;;;:138;;;;;;:::i;:::-;52864:53;52896:4;:10;;;;;;;;;;;;52908:8;52864:4;:9;;;;;;;;;;;;:31;;;;:53;;;;;:::i;:::-;52932:19;52981:8;52990:4;52981:14;;;;;;;;;;;;;;;;;;:20;;;;;;;;;;;;52971:39;;;53011:10;53023:8;52971:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;52932:100;;53061:28;53077:11;53061:4;:11;;;:15;;:28;;;;:::i;:::-;53047:4;:11;;:42;;;;52676:425;;53129:47;53171:4;53129:37;53145:4;:20;;;53129:4;:11;;;:15;;:37;;;;:::i;:::-;:41;;:47;;;;:::i;:::-;53111:4;:15;;:65;;;;53212:4;53200:10;53192:35;;;53218:8;53192:35;;;;;;;;;;;;;;;;;;44009:1;;43196::::0;44157:7;:22;;;;52153:1082;;:::o;41958:281::-;41235:12;:10;:12::i;:::-;41225:22;;:6;;;;;;;;;;:22;;;41217:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42081:1:::1;42061:22;;:8;:22;;;;42039:110;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42194:8;42165:38;;42186:6;::::0;::::1;;;;;;;;42165:38;;;;;;;;;;;;42223:8;42214:6;::::0;:17:::1;;;;;;;;;;;;;;;;;;41958:281:::0;:::o;46815:47::-;;;;:::o;2100:471::-;2158:7;2408:1;2403;:6;2399:47;;;2433:1;2426:8;;;;2399:47;2458:9;2474:1;2470;:5;2458:17;;2503:1;2498;2494;:5;;;;;;:10;2486:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2562:1;2555:8;;;2100:471;;;;;:::o;3047:132::-;3105:7;3132:39;3136:1;3139;3132:39;;;;;;;;;;;;;;;;;:3;:39::i;:::-;3125:46;;3047:132;;;;:::o;712:181::-;770:7;790:9;806:1;802;:5;790:17;;831:1;826;:6;;818:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;884:1;877:8;;;712:181;;;;:::o;1176:136::-;1234:7;1261:43;1265:1;1268;1261:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;1254:50;;1176:136;;;;:::o;55933:305::-;56010:15;56035:4;;;;;;;;;;;56028:22;;;56059:4;56028:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56010:55;;56091:7;56080:8;:18;56076:155;;;56122:4;;;;;;;;;;;56115:21;;;56137:3;56142:7;56115:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56076:155;;;56190:4;;;;;;;;;;;56183:21;;;56205:3;56210:8;56183:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56076:155;55933:305;;;:::o;27146:248::-;27263:123;27297:5;27340:23;;;27365:2;27369:5;27317:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27263:19;:123::i;:::-;27146:248;;;:::o;95:106::-;148:15;183:10;176:17;;95:106;:::o;27402:285::-;27546:133;27580:5;27623:27;;;27652:4;27658:2;27662:5;27600:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27546:19;:133::i;:::-;27402:285;;;;:::o;28671:436::-;28802:20;28838:50;28882:5;28838;:15;;;28862:4;28869:7;28838:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:43;;:50;;;;:::i;:::-;28802:86;;28899:200;28933:5;28994:22;;;29035:7;29061:12;28953:135;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28899:19;:200::i;:::-;28671:436;;;;:::o;3675:312::-;3795:7;3827:1;3823;:5;3830:12;3815:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3854:9;3870:1;3866;:5;;;;;;3854:17;;3978:1;3971:8;;;3675:312;;;;;:::o;1615:226::-;1735:7;1768:1;1763;:6;;1771:12;1755:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1795:9;1811:1;1807;:5;1795:17;;1832:1;1825:8;;;1615:226;;;;;:::o;30036:885::-;30460:23;30499:118;30545:4;30499:118;;;;;;;;;;;;;;;;;30507:5;30499:27;;;;:118;;;;;:::i;:::-;30460:157;;30652:1;30632:10;:17;:21;30628:286;;;30805:10;30794:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30768:134;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30628:286;30036:885;;;:::o;22142:229::-;22279:12;22311:52;22333:6;22341:4;22347:1;22350:12;22311:21;:52::i;:::-;22304:59;;22142:229;;;;;:::o;23358:621::-;23528:12;23600:5;23575:21;:30;;23553:118;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23690:18;23701:6;23690:10;:18::i;:::-;23682:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23816:12;23830:23;23870:6;:11;;23889:5;23896:4;23870:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23815:86;;;;23919:52;23937:7;23946:10;23958:12;23919:17;:52::i;:::-;23912:59;;;;23358:621;;;;;;:::o;19105:444::-;19165:4;19373:12;19497:7;19485:20;19477:28;;19540:1;19533:4;:8;19526:15;;;19105:444;;;:::o;26270:777::-;26420:12;26449:7;26445:595;;;26480:10;26473:17;;;;26445:595;26614:1;26594:10;:17;:21;26590:439;;;26857:10;26851:17;26918:15;26905:10;26901:2;26897:19;26890:44;26805:148;27000:12;26993:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26270:777;;;;;;:::o

Swarm Source

ipfs://d9858370450f199c67cb68e91117e052291db40c8717106e25e8aa3b6be390db
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.