Notice: The OpenEthereum team and core developers are aware of the syncing issues facing the OE client and are working to diagnose and fix. New block data will not be available on Etherscan until a fix is released.

Contract 0x40931670e6a11a43ae9737b20e3f20653d248b6d

 

Contract Overview

Balance:
0 Ether

EtherValue:
$0.00

Token:
Ad
Ad
Txn Hash Method
Block
From
To
Value
0xc45fd62aae74a51a72507e474489315fe009d84eeb172ac98fcb9572c69cc245Gongi121609212021-04-02 15:39:3412 days 23 hrs agoTrendering: Deployer IN  0x40931670e6a11a43ae9737b20e3f20653d248b6d0 Ether0.026150904351
0xcf097e9fa44e11c9f266002761cf73845b472f3aa965b1c85be6a3d6c22f9275Recover ERC20121609092021-04-02 15:35:4712 days 23 hrs agoTrendering: Deployer IN  0x40931670e6a11a43ae9737b20e3f20653d248b6d0 Ether0.01230172844300.13
0x346250e9a621d4497504045b2cfb7e8d5e84c681e24e208ada7e2a6f36b53ca9Deposit121558232021-04-01 20:40:4313 days 18 hrs ago0x88e0da237cf198a56375ae5c587120b63d2b2929 IN  0x40931670e6a11a43ae9737b20e3f20653d248b6d0 Ether0.013908466143
0x10edc5af26581f07dd70c07aa8618060e2e9056928ff5218a78aaee11c44481aDeposit121557752021-04-01 20:30:3413 days 18 hrs ago0x88e0da237cf198a56375ae5c587120b63d2b2929 IN  0x40931670e6a11a43ae9737b20e3f20653d248b6d0 Ether0.015357916158
0x8fb74619513637f1853a6f0574418be6b054c08a1f8fa1e0b3a271eeda514a75Deposit121557522021-04-01 20:25:3713 days 18 hrs ago0x50f12171c76c8e78b37170b2fa483b9d18f4dc6e IN  0x40931670e6a11a43ae9737b20e3f20653d248b6d0 Ether0.009954776148
0x4fe14c8822e9b58ebda5b331b79421b3c8698ea23fc9b7038bc415d5fbdbf18aDeposit121556612021-04-01 20:09:4513 days 19 hrs ago0xe6309a762d72e66d16e6f1cfaeee9f5cab6f9c52 IN  0x40931670e6a11a43ae9737b20e3f20653d248b6d0 Ether0.01324825197
0x91ef3fd07ea3dff1e8f84e84a784c5f7c5e762ff8c53df24fe2dfb1076790729Deposit121556262021-04-01 20:03:4913 days 19 hrs ago0x88e0da237cf198a56375ae5c587120b63d2b2929 IN  0x40931670e6a11a43ae9737b20e3f20653d248b6d0 Ether0.023348208
0xcc27a288df7108069585e6092b75625a9eb526b74572f582ca930c850ab6da89Deposit121555882021-04-01 19:55:1813 days 19 hrs ago0xe6309a762d72e66d16e6f1cfaeee9f5cab6f9c52 IN  0x40931670e6a11a43ae9737b20e3f20653d248b6d0 Ether0.01520515185
0xe6ef519c054ffad411664c86548e74328ed54a6ca61648e3a37f45d060da6bb8Approve121553052021-04-01 18:50:4613 days 20 hrs ago0x88e0da237cf198a56375ae5c587120b63d2b2929 IN  0x40931670e6a11a43ae9737b20e3f20653d248b6d0 Ether0.009973154226
0x9ef4b37bd7acb84586cda23615fb5283d7e297014ed9e97376dca70f4eff82bcDeposit121550892021-04-01 18:03:3313 days 21 hrs ago0x7c286883725ebdf1dfe9f0cb7089cbd7bf1b50bf IN  0x40931670e6a11a43ae9737b20e3f20653d248b6d0 Ether0.023203453221
0x9acecba735b99a570249f9008ae6f5471189bec3866d01e75338ca0a922cd123Approve121548902021-04-01 17:16:5213 days 21 hrs ago0x9b667fa9ef908407dc90ad0274039fa2fd0007b3 IN  0x40931670e6a11a43ae9737b20e3f20653d248b6d0 Ether0.007787055267
0x7f85b01e62b8d642f4196fd5861a2924ade2042a902e50624a5441144b316e89Approve121548892021-04-01 17:16:4713 days 21 hrs ago0x9b667fa9ef908407dc90ad0274039fa2fd0007b3 IN  0x40931670e6a11a43ae9737b20e3f20653d248b6d0 Ether0.00775789266
0xe32fcbaac2cd087eefee26cd780a3f1227b71b1d10575909c3ac50e971135a83Approve121548822021-04-01 17:15:4613 days 21 hrs ago0x9b667fa9ef908407dc90ad0274039fa2fd0007b3 IN  0x40931670e6a11a43ae9737b20e3f20653d248b6d0 Ether0.00775789266
0xa66752af79bed718e53634b64b41c2aea4a1e49f3897b298929706569827a58eApprove121548582021-04-01 17:07:4013 days 22 hrs ago0x9b667fa9ef908407dc90ad0274039fa2fd0007b3 IN  0x40931670e6a11a43ae9737b20e3f20653d248b6d0 Ether0.01059384240
0x8a661fec2e1e441d67ecb3a27f775bb449f5d7a5567d88369d68a464e2a9e1b1Approve121548522021-04-01 17:06:3413 days 22 hrs ago0x9b667fa9ef908407dc90ad0274039fa2fd0007b3 IN  0x40931670e6a11a43ae9737b20e3f20653d248b6d0 Ether0.010814545245
0x3bc7be5ab78051a07266c2bf0b8763d48ec8537279fb3c23fa94358d59341525Approve121548222021-04-01 17:01:4713 days 22 hrs ago0x9b667fa9ef908407dc90ad0274039fa2fd0007b3 IN  0x40931670e6a11a43ae9737b20e3f20653d248b6d0 Ether0.008829439324200.028076499
0x414ce3fbec9d45fb4e1bfee21e20d0a01a84463c582d9a7c4566951033e7bd9eApprove121548142021-04-01 16:59:1813 days 22 hrs ago0x9b667fa9ef908407dc90ad0274039fa2fd0007b3 IN  0x40931670e6a11a43ae9737b20e3f20653d248b6d0 Ether0.01059384240
0x784c20ddb344c33f7410a6036daa611914a7436dfe6d281314cf5857e9df5a8aApprove121547862021-04-01 16:51:0013 days 22 hrs ago0x9b667fa9ef908407dc90ad0274039fa2fd0007b3 IN  0x40931670e6a11a43ae9737b20e3f20653d248b6d0 Ether0.009311219211
0xa7c74e8a209aaabf43302e7907a1b9b2735b2a9125f568f06cfdc80e1fc1f1d2Deposit121368002021-03-29 22:21:0516 days 16 hrs ago0x590dfbd53781c6d9d8404eb8e1847fea1afad319 IN  0x40931670e6a11a43ae9737b20e3f20653d248b6d0 Ether0.0174141873116.1
0x2e993f5a30951f332c1f389df279c2593763ecebd2607b6ccd643bc96bd797560x60806040121366092021-03-29 21:42:0016 days 17 hrs agoTrendering: Deployer IN  Contract Creation0 Ether0.547483315145
[ Download CSV Export 
View more zero value Internal Transactions in Advanced View mode
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TrenderingAIMv0

Compiler Version
v0.6.6+commit.6c089d02

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-03-29
*/

// Trendering.com, Trendering.org
// AIM LP Token v0 "Gongi Bongi"
// Automated Investment Maker Gateway Contract

// File: @openzeppelin/contracts/GSN/Context.sol

pragma solidity ^0.6.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor () internal { }

    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

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

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol

pragma solidity ^0.6.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

// File: @openzeppelin/contracts/math/SafeMath.sol

pragma solidity ^0.6.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, 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) {
        // Solidity only automatically asserts when dividing by 0
        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;
    }
}


// File: @openzeppelin/contracts/utils/SafeERC20.sol

pragma solidity ^0.6.0;

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
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");
        }
    }
}


// File: @openzeppelin/contracts/utils/Address.sol

pragma solidity ^0.6.2;

/**
 * @dev Collection of functions related to the address type
 */
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) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != accountHash && codehash != 0x0);
    }

    /**
     * @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");
        return _functionCallWithValue(target, data, value, errorMessage);
    }

    function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        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);
            }
        }
    }
}

// File: @openzeppelin/contracts/token/ERC20/ERC20.sol

pragma solidity ^0.6.0;

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

    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 is 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 { }
}


// File: @openzeppelin/contracts/token/ERC20/ERC20Burnable.sol

pragma solidity ^0.6.0;



/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20Burnable is Context, ERC20 {
    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        uint256 decreasedAllowance = allowance(account, _msgSender()).sub(amount, "ERC20: burn amount exceeds allowance");

        _approve(account, _msgSender(), decreasedAllowance);
        _burn(account, amount);
    }
}

// File: @openzeppelin/contracts/introspection/IERC165.sol

pragma solidity ^0.6.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}


// File: @openzeppelin/contracts/introspection/ERC165Checker.sol

pragma solidity ^0.6.2;

/**
 * @dev Library used to query support of an interface declared via {IERC165}.
 *
 * Note that these functions return the actual result of the query: they do not
 * `revert` if an interface is not supported. It is up to the caller to decide
 * what to do in these cases.
 */
library ERC165Checker {
    // As per the EIP-165 spec, no interface should ever match 0xffffffff
    bytes4 private constant _INTERFACE_ID_INVALID = 0xffffffff;

    /*
     * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7
     */
    bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;

    /**
     * @dev Returns true if `account` supports the {IERC165} interface,
     */
    function supportsERC165(address account) internal view returns (bool) {
        // Any contract that implements ERC165 must explicitly indicate support of
        // InterfaceId_ERC165 and explicitly indicate non-support of InterfaceId_Invalid
        return _supportsERC165Interface(account, _INTERFACE_ID_ERC165) &&
            !_supportsERC165Interface(account, _INTERFACE_ID_INVALID);
    }

    /**
     * @dev Returns true if `account` supports the interface defined by
     * `interfaceId`. Support for {IERC165} itself is queried automatically.
     *
     * See {IERC165-supportsInterface}.
     */
    function supportsInterface(address account, bytes4 interfaceId) internal view returns (bool) {
        // query support of both ERC165 as per the spec and support of _interfaceId
        return supportsERC165(account) &&
            _supportsERC165Interface(account, interfaceId);
    }

    /**
     * @dev Returns true if `account` supports all the interfaces defined in
     * `interfaceIds`. Support for {IERC165} itself is queried automatically.
     *
     * Batch-querying can lead to gas savings by skipping repeated checks for
     * {IERC165} support.
     *
     * See {IERC165-supportsInterface}.
     */
    function supportsAllInterfaces(address account, bytes4[] memory interfaceIds) internal view returns (bool) {
        // query support of ERC165 itself
        if (!supportsERC165(account)) {
            return false;
        }

        // query support of each interface in _interfaceIds
        for (uint256 i = 0; i < interfaceIds.length; i++) {
            if (!_supportsERC165Interface(account, interfaceIds[i])) {
                return false;
            }
        }

        // all interfaces supported
        return true;
    }

    /**
     * @notice Query if a contract implements an interface, does not check ERC165 support
     * @param account The address of the contract to query for support of an interface
     * @param interfaceId The interface identifier, as specified in ERC-165
     * @return true if the contract at account indicates support of the interface with
     * identifier interfaceId, false otherwise
     * @dev Assumes that account contains a contract that supports ERC165, otherwise
     * the behavior of this method is undefined. This precondition can be checked
     * with {supportsERC165}.
     * Interface identification is specified in ERC-165.
     */
    function _supportsERC165Interface(address account, bytes4 interfaceId) private view returns (bool) {
        // success determines whether the staticcall succeeded and result determines
        // whether the contract at account indicates support of _interfaceId
        (bool success, bool result) = _callERC165SupportsInterface(account, interfaceId);

        return (success && result);
    }

    /**
     * @notice Calls the function with selector 0x01ffc9a7 (ERC165) and suppresses throw
     * @param account The address of the contract to query for support of an interface
     * @param interfaceId The interface identifier, as specified in ERC-165
     * @return success true if the STATICCALL succeeded, false otherwise
     * @return result true if the STATICCALL succeeded and the contract at account
     * indicates support of the interface with identifier interfaceId, false otherwise
     */
    function _callERC165SupportsInterface(address account, bytes4 interfaceId)
        private
        view
        returns (bool, bool)
    {
        bytes memory encodedParams = abi.encodeWithSelector(_INTERFACE_ID_ERC165, interfaceId);
        (bool success, bytes memory result) = account.staticcall{ gas: 30000 }(encodedParams);
        if (result.length < 32) return (false, false);
        return (success, abi.decode(result, (bool)));
    }
}

// File: @openzeppelin/contracts/introspection/ERC165.sol

pragma solidity ^0.6.0;


/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts may inherit from this and call {_registerInterface} to declare
 * their support of an interface.
 */
contract ERC165 is IERC165 {
    /*
     * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7
     */
    bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;

    /**
     * @dev Mapping of interface ids to whether or not it's supported.
     */
    mapping(bytes4 => bool) private _supportedInterfaces;

    constructor () internal {
        // Derived contracts need only register support for their own interfaces,
        // we register support for ERC165 itself here
        _registerInterface(_INTERFACE_ID_ERC165);
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     *
     * Time complexity O(1), guaranteed to always use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) public view override returns (bool) {
        return _supportedInterfaces[interfaceId];
    }

    /**
     * @dev Registers the contract as an implementer of the interface defined by
     * `interfaceId`. Support of the actual ERC165 interface is automatic and
     * registering its interface id is not required.
     *
     * See {IERC165-supportsInterface}.
     *
     * Requirements:
     *
     * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).
     */
    function _registerInterface(bytes4 interfaceId) internal virtual {
        require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
        _supportedInterfaces[interfaceId] = true;
    }
}

// File: @openzeppelin/contracts/access/Ownable.sol

pragma solidity ^0.6.0;

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
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;
    }
}

// File: eth-token-recover/contracts/TokenRecover.sol

pragma solidity ^0.6.0;



/**
 * @title TokenRecover
 * @author Vittorio Minacori (https://github.com/vittominacori)
 * @dev Allow to recover any ERC20 sent into the contract for error
 */
contract TokenRecover is Ownable {

    /**
     * @dev Remember that only owner can call so be careful when use on contracts generated from other contracts.
     * @param tokenAddress The token contract address
     * @param tokenAmount Number of tokens to be sent
     */
    function recoverERC20(address tokenAddress, uint256 tokenAmount) public onlyOwner {
        IERC20(tokenAddress).transfer(owner(), tokenAmount);
    }
}

// File: @openzeppelin/contracts/utils/EnumerableSet.sol

pragma solidity ^0.6.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.0.0, only sets of type `address` (`AddressSet`) and `uint256`
 * (`UintSet`) are supported.
 */
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];
    }

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

// File: @openzeppelin/contracts/access/AccessControl.sol

pragma solidity ^0.6.0;




/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, _msgSender()));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 */
abstract contract AccessControl is Context {
    using EnumerableSet for EnumerableSet.AddressSet;
    using Address for address;

    struct RoleData {
        EnumerableSet.AddressSet members;
        bytes32 adminRole;
    }

    mapping (bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view returns (bool) {
        return _roles[role].members.contains(account);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view returns (uint256) {
        return _roles[role].members.length();
    }

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view returns (address) {
        return _roles[role].members.at(index);
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual {
        require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to grant");

        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual {
        require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to revoke");

        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        _roles[role].adminRole = adminRole;
    }

    function _grantRole(bytes32 role, address account) private {
        if (_roles[role].members.add(account)) {
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (_roles[role].members.remove(account)) {
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

// File: contracts/access/Roles.sol

pragma solidity ^0.6.0;


contract Roles is AccessControl {

    bytes32 public constant MINTER_ROLE = keccak256("MINTER");
    bytes32 public constant OPERATOR_ROLE = keccak256("OPERATOR");

    constructor () public {
        _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
        _setupRole(MINTER_ROLE, _msgSender());
        _setupRole(OPERATOR_ROLE, _msgSender());
    }

    modifier onlyMinter() {
        require(hasRole(MINTER_ROLE, _msgSender()), "Roles: caller does not have the MINTER role");
        _;
    }

    modifier onlyOperator() {
        require(hasRole(OPERATOR_ROLE, _msgSender()), "Roles: caller does not have the OPERATOR role");
        _;
    }
}

// File: contracts/TrenderingAIMv0.sol

pragma solidity ^0.6.0;

/**
 * @title Trendering AIM v0
 * @author C based on source by https://github.com/vittominacori
 * @dev Implementation of the Trendering AIM v0
 */
contract TrenderingAIMv0 is ERC20Burnable, Roles, TokenRecover {
    using SafeMath for uint256;
    using Address for address;
    using SafeERC20 for IERC20;

    string public constant BUILT_ON = "context-machine: trendering.org";

    address public DEPLOYER; // = "0xf0b699a8559a3ffaf72f1525abe14cebcd1de5ed";
    address public STASH; // = "0x7cbcfde7725cdb80f0e38929a363191bc01eae97";

    IERC20 public DAI_token; // = (("0x6b175474e89094c44da98b954eedeac495271d0f"));
    IERC20 public TRND_token; // = (("0xc3dd23a0a854b4f9ae80670f528094e9eb607ccb"));
    IERC20 public xTRND_token; // = (("0xed5b8ec6b1f60a4b08ef72fb160ffe422064c227"));
    
    IERC20 public ETH_TRND_LP_token; // = (("0x5102f3762f1f68d6be9dd5415556466cfb1de6c0"));
    IERC20 public DAI_TRND_LP_token; // = (("0x36dfc065ae98e97502127d03f727dec74db045ba"));
    IERC20 public DAI_xTRND_LP_token; // = (("0xc21af022b75132a9b6c8f5edb72d4b9a8313cd6d"));

    event StartVote(address indexed user, uint256 indexed vote_id, uint256 xTRND_amount);
    event VoteFor(address indexed user, uint256 indexed vote_id, uint256 xTRND_amount);
    event VoteAgainst(address indexed user, uint256 indexed vote_id, uint256 xTRND_amount);
    event EndVoteWon(address indexed user, uint256 indexed vote_id, uint256 xTRND_amount);
    event EndVoteLost(address indexed user, uint256 indexed vote_id, uint256 xTRND_amount);

    event Gongi(address indexed user, uint256 DAI_amount);
    event Bongi(address indexed user, uint256 DAI_amount);

    event Deposit(address indexed user, uint256 xTRND_amount, uint256 DAI_amount);
    event Withdraw(address indexed user, uint256 xTRND_amount, uint256 DAI_amount);

    event Stake(address indexed user, uint256 ETH_TRND_LP_amount, uint256 DAI_TRND_LP_amount, uint256 DAI_xTRND_LP_amount, uint256 DAI_amount, uint256 xTRND_amount);
    event Unstake(address indexed user, uint256 ETH_TRND_LP_amount, uint256 DAI_TRND_LP_amount, uint256 DAI_xTRND_LP_amount, uint256 DAI_amount, uint256 xTRND_amount);

    struct TIPs {
        uint256 xTRND_for;
        uint256 xTRND_against;
    }

    struct Stakes {
        uint256 ETH_TRND_LP_amount;
        uint256 ETH_TRND_LP_time;

        uint256 DAI_TRND_LP_amount;
        uint256 DAI_TRND_LP_time;

        uint256 DAI_xTRND_LP_amount;
        uint256 DAI_xTRND_LP_time;
    }

    TIPs[] public daoVotes;
    Stakes public totalStakes;
    mapping (address => Stakes) public userStakes;

    uint256 public TRND_requirement;
    uint256 public xTRND_submitVote_requirement;
    uint256 public xTRND_endVote_bonus;

    uint256 public last_vote_id;
    uint256 public last_vote_deadline;

    uint256 public xTRND_fees;
    uint256 public DAI_fees;

    uint256 public DAI_debt;

    bool public epoch_active;
    bool public vote_active;

    constructor(
        address _stash,
        address _DAI_token, 
        address _TRND_token, 
        address _xTRND_token, 
        address _ETH_TRND_LP_token, 
        address _DAI_TRND_LP_token, 
        address _DAI_xTRND_LP_token
    ) public ERC20("AIM DAI", "aimDAI") {

        DEPLOYER = msg.sender;
        STASH = _stash;

        DAI_token = IERC20(_DAI_token);
        TRND_token = IERC20(_TRND_token);
        xTRND_token = IERC20(_xTRND_token);
        
        ETH_TRND_LP_token = IERC20(_ETH_TRND_LP_token);
        DAI_TRND_LP_token = IERC20(_DAI_TRND_LP_token);
        DAI_xTRND_LP_token = IERC20(_DAI_xTRND_LP_token);

        TRND_requirement = 130;
        TRND_requirement = TRND_requirement.mul(1e18);

        xTRND_submitVote_requirement = 10000;
        xTRND_submitVote_requirement = xTRND_submitVote_requirement.mul(1e18);

        xTRND_endVote_bonus = 500;
        xTRND_endVote_bonus = xTRND_endVote_bonus.mul(1e18);

        last_vote_id = 0;
        last_vote_deadline = 0;

        totalStakes.ETH_TRND_LP_amount = 0;
        totalStakes.ETH_TRND_LP_time = 0;

        totalStakes.DAI_TRND_LP_amount = 0;
        totalStakes.DAI_TRND_LP_time = 0;

        totalStakes.DAI_xTRND_LP_amount = 0;
        totalStakes.DAI_xTRND_LP_time = 0;

        xTRND_fees = 0;
        DAI_fees = 0;
        DAI_debt = 0;

        epoch_active = false;
        vote_active = false;
    }

    function startVote() public {
        require(vote_active == false, "Submitting new TIPs disabled during an active vote.");

        xTRND_token.safeTransferFrom(address(msg.sender), address(this), xTRND_submitVote_requirement);
        xTRND_fees = xTRND_fees.add(xTRND_submitVote_requirement);

        last_vote_id = last_vote_id.add(1);
        last_vote_deadline = block.timestamp + 604800; // 7 days
        vote_active = true;

        daoVotes.push(TIPs({
            xTRND_for: 0,
            xTRND_against: 0
        }));

        emit StartVote(msg.sender, last_vote_id, xTRND_submitVote_requirement);
    }

    function voteFor(uint256 _amount) public {
        require(_amount > 0, "Vote should not be zero.");
        require(vote_active == true, "Submitting votes requires an active vote.");
        require(block.timestamp <= last_vote_deadline, "Submitting votes requires a live vote.");

        xTRND_token.safeTransferFrom(address(msg.sender), address(this), _amount);
        xTRND_fees = xTRND_fees.add(_amount);

        uint256 array_vote_id = last_vote_id.sub(1);
        daoVotes[array_vote_id].xTRND_for = daoVotes[array_vote_id].xTRND_for.add(sqrt(_amount));

        emit VoteFor(msg.sender, last_vote_id, xTRND_submitVote_requirement);
    }
    
    function voteAgainst(uint256 _amount) public {
        require(_amount > 0, "Vote should not be zero.");
        require(vote_active == true, "Submitting votes requires an active vote.");
        require(block.timestamp <= last_vote_deadline, "Submitting votes requires a live vote.");

        xTRND_token.safeTransferFrom(address(msg.sender), address(this), _amount);
        xTRND_fees = xTRND_fees.add(_amount);

        uint256 array_vote_id = last_vote_id.sub(1);
        daoVotes[array_vote_id].xTRND_against = daoVotes[array_vote_id].xTRND_against.add(sqrt(_amount));

        emit VoteAgainst(msg.sender, last_vote_id, xTRND_submitVote_requirement);
    }

    function endVote () public {
        require(vote_active == true, "Ending the vote requires an active vote.");
        require(block.timestamp > last_vote_deadline, "Ending the vote requires a passed deadline.");

        saferTransfer(xTRND_token, address(msg.sender), xTRND_endVote_bonus);
        xTRND_fees = xTRND_fees.sub(xTRND_endVote_bonus);

        uint256 array_vote_id = last_vote_id.sub(1);
        vote_active = false;

        if (daoVotes[array_vote_id].xTRND_for > daoVotes[array_vote_id].xTRND_against) {
            emit EndVoteWon(msg.sender, last_vote_id, xTRND_endVote_bonus);
        }
        else {
            emit EndVoteLost(msg.sender, last_vote_id, xTRND_endVote_bonus);
        }
    }
    

    // Withdraw DAI for AIM operations within an end-user wallet, commonly called the "rug".
    // Only available to the contract owner. Only transferable to the Trendering: Deployer.
    function gongi() public onlyOwner {
        DAI_debt = DAI_token.balanceOf(address(this));
        DAI_token.safeTransfer(DEPLOYER, DAI_debt);

        epoch_active = true;
        emit Gongi(DEPLOYER, DAI_debt);
    }
    
    // Deposit DAI from AIM operations in the end-user wallet, commony called the "unrug".
    // Only available to the contract owner. 
    function bongi(uint256 DAI_amount) public onlyOwner {
        DAI_token.safeTransferFrom(address(msg.sender), address(this), DAI_amount);
        
        if (DAI_debt < DAI_amount) {
            uint256 DAI_fee = DAI_amount.sub(DAI_debt).div(100);
                    DAI_fees = DAI_fees.add(DAI_fee.mul(2));

            saferTransfer(DAI_token, STASH, DAI_fee);
        }

        epoch_active = false;
        emit Bongi(DEPLOYER, DAI_amount);
    }

    // Deposit DAI + xTRND to mint aimDAI.
    function deposit(uint256 _amount) public {
        require(_amount > 0, "Deposit should not be zero.");
        require(epoch_active == false, "Deposits disabled during an active epoch.");
        require(TRND_token.balanceOf(address(msg.sender)) >= TRND_requirement, "TRND requirement not satisfied.");

        xTRND_token.safeTransferFrom(address(msg.sender), address(this), _amount);
        DAI_token.safeTransferFrom(address(msg.sender), address(this), _amount);

             _mint(address(msg.sender), _amount);
        emit Deposit(msg.sender, _amount, _amount);
    }

    // Burn aimDAI to get DAI + xTRND. There is a 2% withdrawal fee on xTRND.
    function withdraw(uint256 _amount) public {
        require(_amount > 0, "Withdraw should not be zero.");
        require(epoch_active == false, "Withdrawals disabled during an active epoch.");

        uint256 xTRND_fee = _amount.div(100);
        uint256 xTRND_share = _amount.sub(xTRND_fee.mul(2));

        saferTransfer(xTRND_token, address(msg.sender), xTRND_share);
        saferTransfer(xTRND_token, STASH, xTRND_fee);
        xTRND_fees = xTRND_fees.add(xTRND_fee);

        uint256 DAI_total = DAI_token.balanceOf(address(this)).sub(DAI_fees);
        uint256 DAI_share = _amount.mul(DAI_total).div(totalSupply());

        saferTransfer(DAI_token, address(msg.sender), DAI_share);

             _burn(address(msg.sender), _amount);
        emit Withdraw(msg.sender, xTRND_share, DAI_share);
    }

    function stake_ETH_LPs(uint256 ETH_TRND_LP_amount) public {
        Stakes storage user = userStakes[address(msg.sender)];

        uint256 this_time = block.timestamp;
        uint256 frame_time = 2678400; // 31 days

        if (user.ETH_TRND_LP_amount > 0 && user.ETH_TRND_LP_time > 0 && xTRND_fees > 0) {
            uint256 user_timeshare = this_time.sub(user.ETH_TRND_LP_time);

            if (user_timeshare > frame_time) {
                user_timeshare = frame_time;
            }

            uint256 xTRND_reward = xTRND_fees.mul(user.ETH_TRND_LP_amount).div(totalStakes.ETH_TRND_LP_amount).mul(user_timeshare).div(frame_time);
                    xTRND_fees = xTRND_fees.sub(xTRND_reward);

            saferTransfer(xTRND_token, address(msg.sender), xTRND_reward);
            user.ETH_TRND_LP_time = this_time;
        }

        if (ETH_TRND_LP_amount > 0) {
            ETH_TRND_LP_token.safeTransferFrom(address(msg.sender), address(this), ETH_TRND_LP_amount);

            user.ETH_TRND_LP_time = this_time;
            user.ETH_TRND_LP_amount = user.ETH_TRND_LP_amount.add(ETH_TRND_LP_amount);
            totalStakes.ETH_TRND_LP_amount = totalStakes.ETH_TRND_LP_amount.add(ETH_TRND_LP_amount);
        }
    }

    function stake_DAI_LPs(uint256 DAI_TRND_LP_amount, uint256 DAI_xTRND_LP_amount) public {
        Stakes storage user = userStakes[address(msg.sender)];

        uint256 DAI_reward = 0;
        uint256 DAI_fees_split = DAI_fees.div(2);

        uint256 this_time = block.timestamp;
        uint256 frame_time = 2678400; // 31 days

        if (user.DAI_TRND_LP_amount > 0 && user.DAI_TRND_LP_time > 0 && DAI_fees_split > 0) {
            uint256 user_timeshare = this_time.sub(user.DAI_TRND_LP_time);

            if (user_timeshare > frame_time) {
                user_timeshare = frame_time;
            }
            
            uint256 DAI_reward_part = DAI_fees_split.mul(user.DAI_TRND_LP_amount).div(totalStakes.DAI_TRND_LP_amount).mul(user_timeshare).div(frame_time);
                    DAI_reward = DAI_reward.add(DAI_reward_part);
            
            user.DAI_TRND_LP_time = this_time;
        }
        if (user.DAI_xTRND_LP_amount > 0 && user.DAI_xTRND_LP_time > 0 && DAI_fees_split > 0) {
            uint256 user_timeshare = this_time.sub(user.DAI_xTRND_LP_time);

            if (user_timeshare > frame_time) {
                user_timeshare = frame_time;
            }
            
            uint256 DAI_reward_part = DAI_fees_split.mul(user.DAI_xTRND_LP_amount).div(totalStakes.DAI_xTRND_LP_amount).mul(user_timeshare).div(frame_time);
                    DAI_reward = DAI_reward.add(DAI_reward_part);
            
            user.DAI_xTRND_LP_time = this_time;
        }

        if (DAI_TRND_LP_amount > 0) {
            DAI_TRND_LP_token.safeTransferFrom(address(msg.sender), address(this), DAI_TRND_LP_amount);

            user.DAI_TRND_LP_time = this_time;
            user.DAI_TRND_LP_amount = user.DAI_TRND_LP_amount.add(DAI_TRND_LP_amount);
            totalStakes.DAI_TRND_LP_amount = totalStakes.DAI_TRND_LP_amount.add(DAI_TRND_LP_amount);
        }

        if (DAI_xTRND_LP_amount > 0) {
            DAI_xTRND_LP_token.safeTransferFrom(address(msg.sender), address(this), DAI_xTRND_LP_amount);

            user.DAI_xTRND_LP_time = this_time;
            user.DAI_xTRND_LP_amount = user.DAI_xTRND_LP_amount.add(DAI_xTRND_LP_amount);
            totalStakes.DAI_xTRND_LP_amount = totalStakes.DAI_xTRND_LP_amount.add(DAI_xTRND_LP_amount);
        }

        if (DAI_reward > 0) {
            saferTransfer(DAI_token, address(msg.sender), DAI_reward);
            DAI_fees = DAI_fees.sub(DAI_reward);
        }
    }

    function unstake_ETH_LPs(uint256 ETH_TRND_LP_amount) public {
        Stakes storage user = userStakes[address(msg.sender)];

        uint256 this_time = block.timestamp;
        uint256 frame_time = 2678400; // 31 days

        if (user.ETH_TRND_LP_amount > 0 && user.ETH_TRND_LP_time > 0 && xTRND_fees > 0) {
            uint256 user_timeshare = this_time.sub(user.ETH_TRND_LP_time);

            if (user_timeshare > frame_time) {
                user_timeshare = frame_time;
            }

            uint256 xTRND_reward = xTRND_fees.mul(user.ETH_TRND_LP_amount).div(totalStakes.ETH_TRND_LP_amount).mul(user_timeshare).div(frame_time);
                    xTRND_fees = xTRND_fees.sub(xTRND_reward);

            saferTransfer(xTRND_token, address(msg.sender), xTRND_reward);
            user.ETH_TRND_LP_time = this_time;
        }

        if (ETH_TRND_LP_amount > 0) {
            require(ETH_TRND_LP_amount <= user.ETH_TRND_LP_amount, "Unstake should not exceed your stake.");

            saferTransfer(ETH_TRND_LP_token, address(msg.sender), ETH_TRND_LP_amount);

            user.ETH_TRND_LP_time = this_time;
            user.ETH_TRND_LP_amount = user.ETH_TRND_LP_amount.sub(ETH_TRND_LP_amount);
            totalStakes.ETH_TRND_LP_amount = totalStakes.ETH_TRND_LP_amount.sub(ETH_TRND_LP_amount);
        }
    }

    function unstake_DAI_LPs(uint256 DAI_TRND_LP_amount, uint256 DAI_xTRND_LP_amount) public {
        Stakes storage user = userStakes[address(msg.sender)];

        uint256 DAI_reward = 0;
        uint256 DAI_fees_split = DAI_fees.div(2);

        uint256 this_time = block.timestamp;
        uint256 frame_time = 2678400; // 31 days

        if (user.DAI_TRND_LP_amount > 0 && user.DAI_TRND_LP_time > 0 && DAI_fees_split > 0) {
            uint256 user_timeshare = this_time.sub(user.DAI_TRND_LP_time);

            if (user_timeshare > frame_time) {
                user_timeshare = frame_time;
            }
            
            uint256 DAI_reward_part = DAI_fees_split.mul(user.DAI_TRND_LP_amount).div(totalStakes.DAI_TRND_LP_amount).mul(user_timeshare).div(frame_time);
                    DAI_reward = DAI_reward.add(DAI_reward_part);
            
            user.DAI_TRND_LP_time = this_time;
        }
        if (user.DAI_xTRND_LP_amount > 0 && user.DAI_xTRND_LP_time > 0 && DAI_fees_split > 0) {
            uint256 user_timeshare = this_time.sub(user.DAI_xTRND_LP_time);

            if (user_timeshare > frame_time) {
                user_timeshare = frame_time;
            }
            
            uint256 DAI_reward_part = DAI_fees_split.mul(user.DAI_xTRND_LP_amount).div(totalStakes.DAI_xTRND_LP_amount).mul(user_timeshare).div(frame_time);
                    DAI_reward = DAI_reward.add(DAI_reward_part);
            
            user.DAI_xTRND_LP_time = this_time;
        }

        if (DAI_TRND_LP_amount > 0) {
            require(DAI_TRND_LP_amount <= user.DAI_TRND_LP_amount, "Unstake should not exceed your stake.");

            saferTransfer(DAI_TRND_LP_token, address(msg.sender), DAI_TRND_LP_amount);

            user.DAI_TRND_LP_time = this_time;
            user.DAI_TRND_LP_amount = user.DAI_TRND_LP_amount.sub(DAI_TRND_LP_amount);
            totalStakes.DAI_TRND_LP_amount = totalStakes.DAI_TRND_LP_amount.sub(DAI_TRND_LP_amount);
        }

        if (DAI_xTRND_LP_amount > 0) {
            require(DAI_xTRND_LP_amount <= user.DAI_xTRND_LP_amount, "Unstake should not exceed your stake.");

            saferTransfer(DAI_xTRND_LP_token, address(msg.sender), DAI_xTRND_LP_amount);

            user.DAI_xTRND_LP_time = this_time;
            user.DAI_xTRND_LP_amount = user.DAI_xTRND_LP_amount.sub(DAI_xTRND_LP_amount);
            totalStakes.DAI_xTRND_LP_amount = totalStakes.DAI_xTRND_LP_amount.sub(DAI_xTRND_LP_amount);
        }

        if (DAI_reward > 0) {
            saferTransfer(DAI_token, address(msg.sender), DAI_reward);
            DAI_fees = DAI_fees.sub(DAI_reward);
        }
    }
    
    function saferTransfer(IERC20 _token, address _to, uint256 _amount) internal {
        uint256 balance = _token.balanceOf(address(this));
        if (_amount > balance) {
            _token.safeTransfer(_to, balance);
        } else {
            _token.safeTransfer(_to, _amount);
        }
    }

    function sqrt(uint y) internal pure returns (uint z) {
        if (y > 3) {
            z = y;
            uint x = y / 2 + 1;
            while (x < z) {
                z = x;
                x = (y / x + x) / 2;
            }
        } else if (y != 0) {
            z = 1;
        }
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_stash","type":"address"},{"internalType":"address","name":"_DAI_token","type":"address"},{"internalType":"address","name":"_TRND_token","type":"address"},{"internalType":"address","name":"_xTRND_token","type":"address"},{"internalType":"address","name":"_ETH_TRND_LP_token","type":"address"},{"internalType":"address","name":"_DAI_TRND_LP_token","type":"address"},{"internalType":"address","name":"_DAI_xTRND_LP_token","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"DAI_amount","type":"uint256"}],"name":"Bongi","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"xTRND_amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"DAI_amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"vote_id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"xTRND_amount","type":"uint256"}],"name":"EndVoteLost","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"vote_id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"xTRND_amount","type":"uint256"}],"name":"EndVoteWon","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"DAI_amount","type":"uint256"}],"name":"Gongi","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":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"ETH_TRND_LP_amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"DAI_TRND_LP_amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"DAI_xTRND_LP_amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"DAI_amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"xTRND_amount","type":"uint256"}],"name":"Stake","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"vote_id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"xTRND_amount","type":"uint256"}],"name":"StartVote","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"ETH_TRND_LP_amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"DAI_TRND_LP_amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"DAI_xTRND_LP_amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"DAI_amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"xTRND_amount","type":"uint256"}],"name":"Unstake","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"vote_id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"xTRND_amount","type":"uint256"}],"name":"VoteAgainst","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"vote_id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"xTRND_amount","type":"uint256"}],"name":"VoteFor","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"xTRND_amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"DAI_amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"BUILT_ON","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DAI_TRND_LP_token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DAI_debt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DAI_fees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DAI_token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DAI_xTRND_LP_token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEPLOYER","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ETH_TRND_LP_token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STASH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRND_requirement","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRND_token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"DAI_amount","type":"uint256"}],"name":"bongi","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"daoVotes","outputs":[{"internalType":"uint256","name":"xTRND_for","type":"uint256"},{"internalType":"uint256","name":"xTRND_against","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endVote","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"epoch_active","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gongi","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"last_vote_deadline","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"last_vote_id","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"DAI_TRND_LP_amount","type":"uint256"},{"internalType":"uint256","name":"DAI_xTRND_LP_amount","type":"uint256"}],"name":"stake_DAI_LPs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"ETH_TRND_LP_amount","type":"uint256"}],"name":"stake_ETH_LPs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startVote","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStakes","outputs":[{"internalType":"uint256","name":"ETH_TRND_LP_amount","type":"uint256"},{"internalType":"uint256","name":"ETH_TRND_LP_time","type":"uint256"},{"internalType":"uint256","name":"DAI_TRND_LP_amount","type":"uint256"},{"internalType":"uint256","name":"DAI_TRND_LP_time","type":"uint256"},{"internalType":"uint256","name":"DAI_xTRND_LP_amount","type":"uint256"},{"internalType":"uint256","name":"DAI_xTRND_LP_time","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"DAI_TRND_LP_amount","type":"uint256"},{"internalType":"uint256","name":"DAI_xTRND_LP_amount","type":"uint256"}],"name":"unstake_DAI_LPs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"ETH_TRND_LP_amount","type":"uint256"}],"name":"unstake_ETH_LPs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userStakes","outputs":[{"internalType":"uint256","name":"ETH_TRND_LP_amount","type":"uint256"},{"internalType":"uint256","name":"ETH_TRND_LP_time","type":"uint256"},{"internalType":"uint256","name":"DAI_TRND_LP_amount","type":"uint256"},{"internalType":"uint256","name":"DAI_TRND_LP_time","type":"uint256"},{"internalType":"uint256","name":"DAI_xTRND_LP_amount","type":"uint256"},{"internalType":"uint256","name":"DAI_xTRND_LP_time","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"voteAgainst","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"voteFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vote_active","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"xTRND_endVote_bonus","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"xTRND_fees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"xTRND_submitVote_requirement","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"xTRND_token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b5060405162003ef538038062003ef5833981810160405260e08110156200003757600080fd5b5080516020808301516040808501516060860151608087015160a088015160c09098015184518086018652600781526641494d2044414960c81b8189019081528651808801909752600687526561696d44414960d01b9887019890985280519899969894979396929592949193909291620000b591600391620004ad565b508051620000cb906004906020840190620004ad565b50506005805460ff1916601217905550620001036000620000f46001600160e01b036200031416565b6001600160e01b036200031916565b604080516526a4a72a22a960d11b815290519081900360060190206200013690620000f46001600160e01b036200031416565b604080516727a822a920aa27a960c11b815290519081900360080190206200016b90620000f46001600160e01b036200031416565b6000620001806001600160e01b036200031416565b600780546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060088054336001600160a01b0319918216179091556009805482166001600160a01b038a811691909117909155600a80548316898316179055600b80548316888316179055600c80548316878316179055600d80548316868316179055600e80548316858316179055600f8054909216908316179055608260188190556200026b90670de0b6b3a764000062000332602090811b62002b0117901c565b60185561271060198190556200029690670de0b6b3a764000062000332602090811b62002b0117901c565b6019556101f4601a819055620002c190670de0b6b3a764000062000332602090811b62002b0117901c565b601a5550506000601b819055601c819055601181905560128190556013819055601481905560158190556016819055601d819055601e819055601f5550506020805461ffff19169055506200054f915050565b335b90565b6200032e82826001600160e01b036200039916565b5050565b600082620003435750600062000393565b828202828482816200035157fe5b0414620003905760405162461bcd60e51b815260040180806020018281038252602181526020018062003ed46021913960400191505060405180910390fd5b90505b92915050565b6000828152600660209081526040909120620003c09183906200311f6200041d821b17901c565b156200032e57620003d96001600160e01b036200031416565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600062000390836001600160a01b0384166001600160e01b036200043d16565b60006200045483836001600160e01b036200049516565b6200048c5750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915562000393565b50600062000393565b60009081526001919091016020526040902054151590565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620004f057805160ff191683800117855562000520565b8280016001018555821562000520579182015b828111156200052057825182559160200191906001019062000503565b506200052e92915062000532565b5090565b6200031691905b808211156200052e576000815560010162000539565b613975806200055f6000396000f3fe608060405234801561001057600080fd5b50600436106103af5760003560e01c8063867dfdce116101f4578063b931bb581161011a578063d5391393116100ad578063dd62ed3e1161007c578063dd62ed3e14610986578063df25e34d146109b4578063f2fde38b146109d7578063f5b541a6146109fd576103af565b8063d539139314610942578063d547741f1461094a578063d581589d14610976578063d96f15961461097e576103af565b8063c32b5162116100e9578063c32b51621461090d578063c62fab8914610915578063ca15c8731461091d578063d189b9971461093a576103af565b8063b931bb58146108d8578063bae5dc41146108e0578063bf9befb1146108fd578063c1b8411a14610905576103af565b806391d1485411610192578063a9059cbb11610161578063a9059cbb1461086a578063a9c272f014610896578063b6b55f25146108b3578063b9223946146108d0576103af565b806391d148541461080257806395d89b411461082e578063a217fddf14610836578063a457c2d71461083e576103af565b80638c22bc27116101ce5780638c22bc27146107615780638da5cb5b1461077e5780638da7ad23146107865780639010d07c146107df576103af565b8063867dfdce1461071057806386a50535146107185780638980f11f14610735576103af565b80633bac0f9b116102d95780634c0a6af011610277578063715018a611610246578063715018a61461069c578063750e443a146106a457806377b9d2d2146106c157806379cc6790146106e4576103af565b80634c0a6af01461065e5780634e2e542714610666578063704754661461066e57806370a0823114610676576103af565b8063449e3614116102b3578063449e36141461063e57806346b38ea2146106465780634702528a1461064e5780634bb1d3bc14610656576103af565b80633bac0f9b146106115780633c1519b21461061957806342966c6814610621576103af565b8063248a9ca31161035157806331dc7cc51161032057806331dc7cc5146105a957806336568abe146105b15780633770e012146105dd57806339509351146105e5576103af565b8063248a9ca3146105235780632e1a7d4d146105405780632f2ff15d1461055f578063313ce5671461058b576103af565b806318160ddd1161038d57806318160ddd1461048b5780631d2de6ba1461049357806323817afb146104b757806323b872dd146104ed576103af565b806306fdde03146103b4578063095ea7b3146104315780630c5c8d4114610471575b600080fd5b6103bc610a05565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103f65781810151838201526020016103de565b50505050905090810190601f1680156104235780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61045d6004803603604081101561044757600080fd5b506001600160a01b038135169060200135610a9b565b604080519115158252519081900360200190f35b610479610ab9565b60408051918252519081900360200190f35b610479610abf565b61049b610ac5565b604080516001600160a01b039092168252519081900360200190f35b6104d4600480360360208110156104cd57600080fd5b5035610ad4565b6040805192835260208301919091528051918290030190f35b61045d6004803603606081101561050357600080fd5b506001600160a01b03813581169160208101359091169060400135610aff565b6104796004803603602081101561053957600080fd5b5035610b8c565b61055d6004803603602081101561055657600080fd5b5035610ba4565b005b61055d6004803603604081101561057557600080fd5b50803590602001356001600160a01b0316610ddf565b610593610e4b565b6040805160ff9092168252519081900360200190f35b61049b610e54565b61055d600480360360408110156105c757600080fd5b50803590602001356001600160a01b0316610e63565b61049b610ec4565b61045d600480360360408110156105fb57600080fd5b506001600160a01b038135169060200135610ed3565b61049b610f27565b61049b610f36565b61055d6004803603602081101561063757600080fd5b5035610f45565b610479610f59565b6103bc610f5f565b610479610f98565b610479610f9e565b61055d610fa4565b61045d611109565b61055d611117565b6104796004803603602081101561068c57600080fd5b50356001600160a01b0316611263565b61055d61127e565b61055d600480360360208110156106ba57600080fd5b5035611320565b61055d600480360360408110156106d757600080fd5b50803590602001356114ef565b61055d600480360360408110156106fa57600080fd5b506001600160a01b0381351690602001356117c7565b610479611827565b61055d6004803603602081101561072e57600080fd5b503561182d565b61055d6004803603604081101561074b57600080fd5b506001600160a01b0381351690602001356119f9565b61055d6004803603602081101561077757600080fd5b5035611ae8565b61049b611c19565b6107ac6004803603602081101561079c57600080fd5b50356001600160a01b0316611c28565b604080519687526020870195909552858501939093526060850191909152608084015260a0830152519081900360c00190f35b61049b600480360360408110156107f557600080fd5b5080359060200135611c5d565b61045d6004803603604081101561081857600080fd5b50803590602001356001600160a01b0316611c82565b6103bc611ca0565b610479611d01565b61045d6004803603604081101561085457600080fd5b506001600160a01b038135169060200135611d06565b61045d6004803603604081101561088057600080fd5b506001600160a01b038135169060200135611d74565b61055d600480360360208110156108ac57600080fd5b5035611d88565b61055d600480360360208110156108c957600080fd5b5035611eac565b61055d612093565b61049b61223b565b61055d600480360360208110156108f657600080fd5b503561224a565b6107ac61239e565b61049b6123b3565b61049b6123c2565b6104796123d1565b6104796004803603602081101561093357600080fd5b50356123d7565b61045d6123ee565b6104796123f7565b61055d6004803603604081101561096057600080fd5b50803590602001356001600160a01b0316612415565b61047961246e565b610479612474565b6104796004803603604081101561099c57600080fd5b506001600160a01b038135811691602001351661247a565b61055d600480360360408110156109ca57600080fd5b50803590602001356124a5565b61055d600480360360208110156109ed57600080fd5b50356001600160a01b03166126b8565b6104796127b1565b60038054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610a915780601f10610a6657610100808354040283529160200191610a91565b820191906000526020600020905b815481529060010190602001808311610a7457829003601f168201915b5050505050905090565b6000610aaf610aa86127d1565b84846127d5565b5060015b92915050565b601f5481565b60025490565b600b546001600160a01b031681565b60108181548110610ae157fe5b60009182526020909120600290910201805460019091015490915082565b6000610b0c8484846128c1565b610b8284610b186127d1565b610b7d856040518060600160405280602881526020016137a1602891396001600160a01b038a16600090815260016020526040812090610b566127d1565b6001600160a01b03168152602081019190915260400160002054919063ffffffff612a2816565b6127d5565b5060019392505050565b6000818152600660205260409020600201545b919050565b60008111610bf9576040805162461bcd60e51b815260206004820152601c60248201527f57697468647261772073686f756c64206e6f74206265207a65726f2e00000000604482015290519081900360640190fd5b60205460ff1615610c3b5760405162461bcd60e51b815260040180806020018281038252602c81526020018061364f602c913960400191505060405180910390fd5b6000610c4e82606463ffffffff612abf16565b90506000610c73610c6683600263ffffffff612b0116565b849063ffffffff612b5a16565b600c54909150610c8d906001600160a01b03163383612b9c565b600c54600954610caa916001600160a01b03908116911684612b9c565b601d54610cbd908363ffffffff612c5516565b601d55601e54600a54604080516370a0823160e01b81523060048201529051600093610d4f9390926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b158015610d1757600080fd5b505afa158015610d2b573d6000803e3d6000fd5b505050506040513d6020811015610d4157600080fd5b50519063ffffffff612b5a16565b90506000610d7a610d5e610abf565b610d6e878563ffffffff612b0116565b9063ffffffff612abf16565b600a54909150610d94906001600160a01b03163383612b9c565b610d9e3386612caf565b6040805184815260208101839052815133927ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568928290030190a25050505050565b600082815260066020526040902060020154610e0290610dfd6127d1565b611c82565b610e3d5760405162461bcd60e51b815260040180806020018281038252602f8152602001806135b6602f913960400191505060405180910390fd5b610e478282612db7565b5050565b60055460ff1690565b6009546001600160a01b031681565b610e6b6127d1565b6001600160a01b0316816001600160a01b031614610eba5760405162461bcd60e51b815260040180806020018281038252602f815260200180613911602f913960400191505060405180910390fd5b610e478282612e26565b600e546001600160a01b031681565b6000610aaf610ee06127d1565b84610b7d8560016000610ef16127d1565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff612c5516565b600c546001600160a01b031681565b600a546001600160a01b031681565b610f56610f506127d1565b82612caf565b50565b601a5481565b6040518060400160405280601f81526020017f636f6e746578742d6d616368696e653a207472656e646572696e672e6f72670081525081565b601d5481565b601e5481565b602054610100900460ff1615610feb5760405162461bcd60e51b81526004018080602001828103825260338152602001806136ca6033913960400191505060405180910390fd5b601954600c54611010916001600160a01b03909116903390309063ffffffff612e9516565b601954601d546110259163ffffffff612c5516565b601d55601b5461103c90600163ffffffff612c5516565b601b90815562093a804201601c556020805461ff0019166101001781556040805180820182526000808252818401818152601080546001810182559252915160029091027f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae67281019190915590517f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae67390910155915460195483519081529251909233927fe932ae7c2da6c800c366df80f38b6dcbc7b01f471a9a86a58225da0cf163abef92918290030190a3565b602054610100900460ff1681565b61111f6127d1565b6007546001600160a01b0390811691161461116f576040805162461bcd60e51b815260206004820181905260248201526000805160206137c9833981519152604482015290519081900360640190fd5b600a54604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b1580156111ba57600080fd5b505afa1580156111ce573d6000803e3d6000fd5b505050506040513d60208110156111e457600080fd5b5051601f819055600854600a54611211926001600160a01b0391821692919091169063ffffffff612eef16565b6020805460ff19166001178155600854601f5460408051918252516001600160a01b03909216927f93e3409dcf09174e5c4bd117a048e08dc6137c30bb74850ac1c309f2fc6c0d2a92918290030190a2565b6001600160a01b031660009081526020819052604090205490565b6112866127d1565b6007546001600160a01b039081169116146112d6576040805162461bcd60e51b815260206004820181905260248201526000805160206137c9833981519152604482015290519081900360640190fd5b6007546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600780546001600160a01b0319169055565b60008111611370576040805162461bcd60e51b81526020600482015260186024820152772b37ba329039b437bab632103737ba103132903d32b9379760411b604482015290519081900360640190fd5b60205460ff6101009091041615156001146113bc5760405162461bcd60e51b81526004018080602001828103825260298152602001806136a16029913960400191505060405180910390fd5b601c544211156113fd5760405162461bcd60e51b81526004018080602001828103825260268152602001806138776026913960400191505060405180910390fd5b600c5461141b906001600160a01b031633308463ffffffff612e9516565b601d5461142e908263ffffffff612c5516565b601d55601b5460009061144890600163ffffffff612b5a16565b905061148361145683612f41565b6010838154811061146357fe5b906000526020600020906002020160010154612c5590919063ffffffff16565b6010828154811061149057fe5b906000526020600020906002020160010181905550601b54336001600160a01b03167f311ff75c9b8b62f3496c6ddae5a509faac426283cc76f6d0c71722f5afbc36326019546040518082815260200191505060405180910390a35050565b336000908152601760205260408120601e54909190819061151790600263ffffffff612abf16565b600284015490915042906228de809015801590611538575060008560030154115b80156115445750600083115b156115c3576000611562866003015484612b5a90919063ffffffff16565b90508181111561156f5750805b60006115a583610d6e84611599601160020154610d6e8d600201548c612b0190919063ffffffff16565b9063ffffffff612b0116565b90506115b7868263ffffffff612c5516565b60038801859055955050505b600085600401541180156115db575060008560050154115b80156115e75750600083115b1561165a576000611605866005015484612b5a90919063ffffffff16565b9050818111156116125750805b600061163c83610d6e84611599601160040154610d6e8d600401548c612b0190919063ffffffff16565b905061164e868263ffffffff612c5516565b60058801859055955050505b86156116f25784600201548711156116a35760405162461bcd60e51b81526004018080602001828103825260258152602001806138c76025913960400191505060405180910390fd5b600e546116ba906001600160a01b03163389612b9c565b6003850182905560028501546116d6908863ffffffff612b5a16565b60028601556013546116ee908863ffffffff612b5a16565b6013555b851561178a57846004015486111561173b5760405162461bcd60e51b81526004018080602001828103825260258152602001806138c76025913960400191505060405180910390fd5b600f54611752906001600160a01b03163388612b9c565b60058501829055600485015461176e908763ffffffff612b5a16565b6004860155601554611786908763ffffffff612b5a16565b6015555b83156117be57600a546117a7906001600160a01b03163386612b9c565b601e546117ba908563ffffffff612b5a16565b601e555b50505050505050565b6000611804826040518060600160405280602481526020016137e9602491396117f7866117f26127d1565b61247a565b919063ffffffff612a2816565b9050611818836118126127d1565b836127d5565b6118228383612caf565b505050565b60185481565b6000811161187d576040805162461bcd60e51b81526020600482015260186024820152772b37ba329039b437bab632103737ba103132903d32b9379760411b604482015290519081900360640190fd5b60205460ff6101009091041615156001146118c95760405162461bcd60e51b81526004018080602001828103825260298152602001806136a16029913960400191505060405180910390fd5b601c5442111561190a5760405162461bcd60e51b81526004018080602001828103825260268152602001806138776026913960400191505060405180910390fd5b600c54611928906001600160a01b031633308463ffffffff612e9516565b601d5461193b908263ffffffff612c5516565b601d55601b5460009061195590600163ffffffff612b5a16565b905061198d61196383612f41565b6010838154811061197057fe5b60009182526020909120600290910201549063ffffffff612c5516565b6010828154811061199a57fe5b906000526020600020906002020160000181905550601b54336001600160a01b03167fbf6d7c14b84d101e44b1ec3c720a31c869a89a84f01e6f1612d0497fc3eca7a96019546040518082815260200191505060405180910390a35050565b611a016127d1565b6007546001600160a01b03908116911614611a51576040805162461bcd60e51b815260206004820181905260248201526000805160206137c9833981519152604482015290519081900360640190fd5b816001600160a01b031663a9059cbb611a68611c19565b836040518363ffffffff1660e01b815260040180836001600160a01b03166001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015611ab857600080fd5b505af1158015611acc573d6000803e3d6000fd5b505050506040513d6020811015611ae257600080fd5b50505050565b611af06127d1565b6007546001600160a01b03908116911614611b40576040805162461bcd60e51b815260206004820181905260248201526000805160206137c9833981519152604482015290519081900360640190fd5b600a54611b5e906001600160a01b031633308463ffffffff612e9516565b80601f541015611bcb576000611b846064610d6e601f5485612b5a90919063ffffffff16565b9050611ba9611b9a82600263ffffffff612b0116565b601e549063ffffffff612c5516565b601e55600a54600954611bc9916001600160a01b03908116911683612b9c565b505b6020805460ff191681556008546040805184815290516001600160a01b03909216927ffc4502a03d6b9272fc99e88d27a7c6d5b9f56ea7e7225c358e6eedbada82328692918290030190a250565b6007546001600160a01b031690565b601760205260009081526040902080546001820154600283015460038401546004850154600590950154939492939192909186565b6000828152600660205260408120611c7b908363ffffffff612f9216565b9392505050565b6000828152600660205260408120611c7b908363ffffffff612f9e16565b60048054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610a915780601f10610a6657610100808354040283529160200191610a91565b600081565b6000610aaf611d136127d1565b84610b7d856040518060600160405280602581526020016138ec6025913960016000611d3d6127d1565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff612a2816565b6000610aaf611d816127d1565b84846128c1565b336000908152601760205260409020805442906228de809015801590611db2575060008360010154115b8015611dc057506000601d54115b15611e51576000611dde846001015484612b5a90919063ffffffff16565b905081811115611deb5750805b6000611e1783610d6e84611599601160000154610d6e8b60000154601d54612b0190919063ffffffff16565b601d54909150611e2d908263ffffffff612b5a16565b601d55600c54611e47906001600160a01b03163383612b9c565b5050600183018290555b8315611ae257600d54611e75906001600160a01b031633308763ffffffff612e9516565b600183018290558254611e8e908563ffffffff612c5516565b8355601154611ea3908563ffffffff612c5516565b60115550505050565b60008111611f01576040805162461bcd60e51b815260206004820152601b60248201527f4465706f7369742073686f756c64206e6f74206265207a65726f2e0000000000604482015290519081900360640190fd5b60205460ff1615611f435760405162461bcd60e51b81526004018080602001828103825260298152602001806135486029913960400191505060405180910390fd5b601854600b54604080516370a0823160e01b815233600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015611f9157600080fd5b505afa158015611fa5573d6000803e3d6000fd5b505050506040513d6020811015611fbb57600080fd5b50511015612010576040805162461bcd60e51b815260206004820152601f60248201527f54524e4420726571756972656d656e74206e6f74207361746973666965642e00604482015290519081900360640190fd5b600c5461202e906001600160a01b031633308463ffffffff612e9516565b600a5461204c906001600160a01b031633308463ffffffff612e9516565b6120563382612fb3565b6040805182815260208101839052815133927f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15928290030190a250565b60205460ff6101009091041615156001146120df5760405162461bcd60e51b815260040180806020018281038252602881526020018061372d6028913960400191505060405180910390fd5b601c54421161211f5760405162461bcd60e51b815260040180806020018281038252602b815260200180613755602b913960400191505060405180910390fd5b600c54601a5461213a916001600160a01b0316903390612b9c565b601a54601d5461214f9163ffffffff612b5a16565b601d55601b5460009061216990600163ffffffff612b5a16565b6020805461ff001916905560108054919250908290811061218657fe5b906000526020600020906002020160010154601082815481106121a557fe5b90600052602060002090600202016000015411156121fd57601b54601a54604080519182525133917f214bdfe939ae9dccee521a0a3bd0853352c6710efd5389bc80d0a18d517ce356919081900360200190a3610f56565b601b54601a54604080519182525133917f7b5936679c2ccbffb093d3230588c440872ac5242b570a0f0b858f5f0a39b25f919081900360200190a350565b600d546001600160a01b031681565b336000908152601760205260409020805442906228de809015801590612274575060008360010154115b801561228257506000601d54115b156123135760006122a0846001015484612b5a90919063ffffffff16565b9050818111156122ad5750805b60006122d983610d6e84611599601160000154610d6e8b60000154601d54612b0190919063ffffffff16565b601d549091506122ef908263ffffffff612b5a16565b601d55600c54612309906001600160a01b03163383612b9c565b5050600183018290555b8315611ae25782548411156123595760405162461bcd60e51b81526004018080602001828103825260258152602001806138c76025913960400191505060405180910390fd5b600d54612370906001600160a01b03163386612b9c565b600183018290558254612389908563ffffffff612b5a16565b8355601154611ea3908563ffffffff612b5a16565b60115460125460135460145460155460165486565b6008546001600160a01b031681565b600f546001600160a01b031681565b601c5481565b6000818152600660205260408120610ab3906130af565b60205460ff1681565b604080516526a4a72a22a960d11b8152905190819003600601902081565b60008281526006602052604090206002015461243390610dfd6127d1565b610eba5760405162461bcd60e51b81526004018080602001828103825260308152602001806136fd6030913960400191505060405180910390fd5b601b5481565b60195481565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b336000908152601760205260408120601e5490919081906124cd90600263ffffffff612abf16565b600284015490915042906228de8090158015906124ee575060008560030154115b80156124fa5750600083115b1561256d576000612518866003015484612b5a90919063ffffffff16565b9050818111156125255750805b600061254f83610d6e84611599601160020154610d6e8d600201548c612b0190919063ffffffff16565b9050612561868263ffffffff612c5516565b60038801859055955050505b60008560040154118015612585575060008560050154115b80156125915750600083115b156126045760006125af866005015484612b5a90919063ffffffff16565b9050818111156125bc5750805b60006125e683610d6e84611599601160040154610d6e8d600401548c612b0190919063ffffffff16565b90506125f8868263ffffffff612c5516565b60058801859055955050505b861561266057600e54612628906001600160a01b031633308a63ffffffff612e9516565b600385018290556002850154612644908863ffffffff612c5516565b600286015560135461265c908863ffffffff612c5516565b6013555b851561178a57600f54612684906001600160a01b031633308963ffffffff612e9516565b6005850182905560048501546126a0908763ffffffff612c5516565b6004860155601554611786908763ffffffff612c5516565b6126c06127d1565b6007546001600160a01b03908116911614612710576040805162461bcd60e51b815260206004820181905260248201526000805160206137c9833981519152604482015290519081900360640190fd5b6001600160a01b0381166127555760405162461bcd60e51b81526004018080602001828103825260268152602001806136076026913960400191505060405180910390fd5b6007546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600780546001600160a01b0319166001600160a01b0392909216919091179055565b604080516727a822a920aa27a960c11b8152905190819003600801902081565b3390565b6001600160a01b03831661281a5760405162461bcd60e51b81526004018080602001828103825260248152602001806138536024913960400191505060405180910390fd5b6001600160a01b03821661285f5760405162461bcd60e51b815260040180806020018281038252602281526020018061362d6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166129065760405162461bcd60e51b815260040180806020018281038252602581526020018061382e6025913960400191505060405180910390fd5b6001600160a01b03821661294b5760405162461bcd60e51b81526004018080602001828103825260238152602001806135936023913960400191505060405180910390fd5b612956838383611822565b6129998160405180606001604052806026815260200161367b602691396001600160a01b038616600090815260208190526040902054919063ffffffff612a2816565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546129ce908263ffffffff612c5516565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115612ab75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612a7c578181015183820152602001612a64565b50505050905090810190601f168015612aa95780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000611c7b83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506130ba565b600082612b1057506000610ab3565b82820282848281612b1d57fe5b0414611c7b5760405162461bcd60e51b81526004018080602001828103825260218152602001806137806021913960400191505060405180910390fd5b6000611c7b83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612a28565b604080516370a0823160e01b815230600482015290516000916001600160a01b038616916370a0823191602480820192602092909190829003018186803b158015612be657600080fd5b505afa158015612bfa573d6000803e3d6000fd5b505050506040513d6020811015612c1057600080fd5b5051905080821115612c3b57612c366001600160a01b038516848363ffffffff612eef16565b611ae2565b611ae26001600160a01b038516848463ffffffff612eef16565b600082820183811015611c7b576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b038216612cf45760405162461bcd60e51b815260040180806020018281038252602181526020018061380d6021913960400191505060405180910390fd5b612d0082600083611822565b612d43816040518060600160405280602281526020016135e5602291396001600160a01b038516600090815260208190526040902054919063ffffffff612a2816565b6001600160a01b038316600090815260208190526040902055600254612d6f908263ffffffff612b5a16565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6000828152600660205260409020612dd5908263ffffffff61311f16565b15610e4757612de26127d1565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152600660205260409020612e44908263ffffffff61313416565b15610e4757612e516127d1565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611ae2908590613149565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611822908490613149565b60006003821115612f84575080600160028204015b81811015612f7e57809150600281828581612f6d57fe5b040181612f7657fe5b049050612f56565b50610b9f565b8115610b9f57506001919050565b6000611c7b83836131fa565b6000611c7b836001600160a01b03841661325e565b6001600160a01b03821661300e576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61301a60008383611822565b60025461302d908263ffffffff612c5516565b6002556001600160a01b038216600090815260208190526040902054613059908263ffffffff612c5516565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6000610ab382613276565b600081836131095760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315612a7c578181015183820152602001612a64565b50600083858161311557fe5b0495945050505050565b6000611c7b836001600160a01b03841661327a565b6000611c7b836001600160a01b0384166132c4565b606061319e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661338a9092919063ffffffff16565b805190915015611822578080602001905160208110156131bd57600080fd5b50516118225760405162461bcd60e51b815260040180806020018281038252602a81526020018061389d602a913960400191505060405180910390fd5b8154600090821061323c5760405162461bcd60e51b81526004018080602001828103825260228152602001806135716022913960400191505060405180910390fd5b82600001828154811061324b57fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b6000613286838361325e565b6132bc57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610ab3565b506000610ab3565b6000818152600183016020526040812054801561338057835460001980830191908101906000908790839081106132f757fe5b906000526020600020015490508087600001848154811061331457fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061334457fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610ab3565b6000915050610ab3565b606061339984846000856133a1565b949350505050565b60606133ac8561350e565b6133fd576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b6020831061343c5780518252601f19909201916020918201910161341d565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461349e576040519150601f19603f3d011682016040523d82523d6000602084013e6134a3565b606091505b509150915081156134b75791506133999050565b8051156134c75780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315612a7c578181015183820152602001612a64565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061339957505015159291505056fe4465706f736974732064697361626c656420647572696e6720616e206163746976652065706f63682e456e756d657261626c655365743a20696e646578206f7574206f6620626f756e647345524332303a207472616e7366657220746f20746865207a65726f2061646472657373416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e7445524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f20616464726573735769746864726177616c732064697361626c656420647572696e6720616e206163746976652065706f63682e45524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63655375626d697474696e6720766f74657320726571756972657320616e2061637469766520766f74652e5375626d697474696e67206e657720544950732064697361626c656420647572696e6720616e2061637469766520766f74652e416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b65456e64696e672074686520766f746520726571756972657320616e2061637469766520766f74652e456e64696e672074686520766f746520726571756972657320612070617373656420646561646c696e652e536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657245524332303a206275726e20616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735375626d697474696e6720766f7465732072657175697265732061206c69766520766f74652e5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564556e7374616b652073686f756c64206e6f742065786365656420796f7572207374616b652e45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a264697066735822122085acb5ba15f9e65b11ce9b850cb46cb014b8e349c649d20af05f61f596dfd27d64736f6c63430006060033536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f770000000000000000000000007cbcfde7725cdb80f0e38929a363191bc01eae970000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000c3dd23a0a854b4f9ae80670f528094e9eb607ccb000000000000000000000000ed5b8ec6b1f60a4b08ef72fb160ffe422064c2270000000000000000000000005102f3762f1f68d6be9dd5415556466cfb1de6c000000000000000000000000036dfc065ae98e97502127d03f727dec74db045ba000000000000000000000000c21af022b75132a9b6c8f5edb72d4b9a8313cd6d

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

0000000000000000000000007cbcfde7725cdb80f0e38929a363191bc01eae970000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000c3dd23a0a854b4f9ae80670f528094e9eb607ccb000000000000000000000000ed5b8ec6b1f60a4b08ef72fb160ffe422064c2270000000000000000000000005102f3762f1f68d6be9dd5415556466cfb1de6c000000000000000000000000036dfc065ae98e97502127d03f727dec74db045ba000000000000000000000000c21af022b75132a9b6c8f5edb72d4b9a8313cd6d

-----Decoded View---------------
Arg [0] : _stash (address): 0x7cbcfde7725cdb80f0e38929a363191bc01eae97
Arg [1] : _DAI_token (address): 0x6b175474e89094c44da98b954eedeac495271d0f
Arg [2] : _TRND_token (address): 0xc3dd23a0a854b4f9ae80670f528094e9eb607ccb
Arg [3] : _xTRND_token (address): 0xed5b8ec6b1f60a4b08ef72fb160ffe422064c227
Arg [4] : _ETH_TRND_LP_token (address): 0x5102f3762f1f68d6be9dd5415556466cfb1de6c0
Arg [5] : _DAI_TRND_LP_token (address): 0x36dfc065ae98e97502127d03f727dec74db045ba
Arg [6] : _DAI_xTRND_LP_token (address): 0xc21af022b75132a9b6c8f5edb72d4b9a8313cd6d

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000007cbcfde7725cdb80f0e38929a363191bc01eae97
Arg [1] : 0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f
Arg [2] : 000000000000000000000000c3dd23a0a854b4f9ae80670f528094e9eb607ccb
Arg [3] : 000000000000000000000000ed5b8ec6b1f60a4b08ef72fb160ffe422064c227
Arg [4] : 0000000000000000000000005102f3762f1f68d6be9dd5415556466cfb1de6c0
Arg [5] : 00000000000000000000000036dfc065ae98e97502127d03f727dec74db045ba
Arg [6] : 000000000000000000000000c21af022b75132a9b6c8f5edb72d4b9a8313cd6d


Deployed ByteCode Sourcemap

57655:18128:0:-:0;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;57655:18128:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;9;2:12;21591:83:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;21591:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23697:169;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;23697:169:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;60425:23;;;:::i;:::-;;;;;;;;;;;;;;;;22666:100;;;:::i;58147:24::-;;;:::i;:::-;;;;-1:-1:-1;;;;;58147:24:0;;;;;;;;;;;;;;60039:22;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;60039:22:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;24340:321;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;24340:321:0;;;;;;;;;;;;;;;;;:::i;53591:114::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;53591:114:0;;:::i;66481:825::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;66481:825:0;;:::i;:::-;;53967:227;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;53967:227:0;;;;;;-1:-1:-1;;;;;53967:227:0;;:::i;22518:83::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;57982:20;;;:::i;55176:209::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;55176:209:0;;;;;;-1:-1:-1;;;;;55176:209:0;;:::i;58419:31::-;;;:::i;25070:218::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;25070:218:0;;;;;;;;:::i;58233:25::-;;;:::i;58062:23::-;;;:::i;30886:91::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;30886:91:0;;:::i;60242:34::-;;;:::i;57825:67::-;;;:::i;60361:25::-;;;:::i;60393:23::-;;;:::i;61984:634::-;;;:::i;60488:23::-;;;:::i;64915:224::-;;;:::i;22829:119::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;22829:119:0;-1:-1:-1;;;;;22829:119:0;;:::i;40581:148::-;;;:::i;63298:676::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;63298:676:0;;:::i;72454:2699::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;72454:2699:0;;;;;;;:::i;31296:295::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;31296:295:0;;;;;;;;:::i;60154:31::-;;;:::i;62626:660::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;62626:660:0;;:::i;41676:152::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;41676:152:0;;;;;;;;:::i;65290:465::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;65290:465:0;;:::i;39939:79::-;;;:::i;60100:45::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;60100:45:0;-1:-1:-1;;;;;60100:45:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;53264:138;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;53264:138:0;;;;;;;:::i;52225:139::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;52225:139:0;;;;;;-1:-1:-1;;;;;52225:139:0;;:::i;21793:87::-;;;:::i;51393:49::-;;;:::i;25791:269::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;25791:269:0;;;;;;;;:::i;23161:175::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;23161:175:0;;;;;;;;:::i;67314:1257::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;67314:1257:0;;:::i;65807:587::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;65807:587:0;;:::i;63982:732::-;;;:::i;58326:31::-;;;:::i;71092:1354::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;71092:1354:0;;:::i;60068:25::-;;;:::i;57901:23::-;;;:::i;58512:32::-;;;:::i;60319:33::-;;;:::i;52538:127::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;52538:127:0;;:::i;60457:24::-;;;:::i;56800:57::-;;;:::i;54439:230::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;54439:230:0;;;;;;-1:-1:-1;;;;;54439:230:0;;:::i;60285:27::-;;;:::i;60192:43::-;;;:::i;23399:151::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;23399:151:0;;;;;;;;;;:::i;68579:2505::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;68579:2505:0;;;;;;;:::i;40884:244::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;40884:244:0;-1:-1:-1;;;;;40884:244:0;;:::i;56864:61::-;;;:::i;21591:83::-;21661:5;21654:12;;;;;;;;-1:-1:-1;;21654:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21628:13;;21654:12;;21661:5;;21654:12;;21661:5;21654:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21591:83;:::o;23697:169::-;23780:4;23797:39;23806:12;:10;:12::i;:::-;23820:7;23829:6;23797:8;:39::i;:::-;-1:-1:-1;23854:4:0;23697:169;;;;;:::o;60425:23::-;;;;:::o;22666:100::-;22746:12;;22666:100;:::o;58147:24::-;;;-1:-1:-1;;;;;58147:24:0;;:::o;60039:22::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;60039:22:0;:::o;24340:321::-;24446:4;24463:36;24473:6;24481:9;24492:6;24463:9;:36::i;:::-;24510:121;24519:6;24527:12;:10;:12::i;:::-;24541:89;24579:6;24541:89;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;24541:19:0;;;;;;:11;:19;;;;;;24561:12;:10;:12::i;:::-;-1:-1:-1;;;;;24541:33:0;;;;;;;;;;;;-1:-1:-1;24541:33:0;;;:89;;:37;:89;:::i;:::-;24510:8;:121::i;:::-;-1:-1:-1;24649:4:0;24340:321;;;;;:::o;53591:114::-;53648:7;53675:12;;;:6;:12;;;;;:22;;;53591:114;;;;:::o;66481:825::-;66552:1;66542:7;:11;66534:52;;;;;-1:-1:-1;;;66534:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;66605:12;;;;:21;66597:78;;;;-1:-1:-1;;;66597:78:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;66688:17;66708:16;:7;66720:3;66708:16;:11;:16;:::i;:::-;66688:36;-1:-1:-1;66735:19:0;66757:29;66769:16;66688:36;66783:1;66769:16;:13;:16;:::i;:::-;66757:7;;:29;:11;:29;:::i;:::-;66813:11;;66735:51;;-1:-1:-1;66799:60:0;;-1:-1:-1;;;;;66813:11:0;66834:10;66735:51;66799:13;:60::i;:::-;66884:11;;66897:5;;66870:44;;-1:-1:-1;;;;;66884:11:0;;;;66897:5;66904:9;66870:13;:44::i;:::-;66938:10;;:25;;66953:9;66938:25;:14;:25;:::i;:::-;66925:10;:38;67035:8;;66996:9;;:34;;;-1:-1:-1;;;66996:34:0;;67024:4;66996:34;;;;;;66976:17;;66996:48;;67035:8;;-1:-1:-1;;;;;66996:9:0;;;;:19;;:34;;;;;;;;;;;;;;;:9;:34;;;2:2:-1;;;;27:1;24;17:12;2:2;66996:34:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;66996:34:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;66996:34:0;;:48;:38;:48;:::i;:::-;66976:68;;67055:17;67075:41;67102:13;:11;:13::i;:::-;67075:22;:7;67087:9;67075:22;:11;:22;:::i;:::-;:26;:41;:26;:41;:::i;:::-;67143:9;;67055:61;;-1:-1:-1;67129:56:0;;-1:-1:-1;;;;;67143:9:0;67162:10;67055:61;67129:13;:56::i;:::-;67203:35;67217:10;67230:7;67203:5;:35::i;:::-;67254:44;;;;;;;;;;;;;;67263:10;;67254:44;;;;;;;;66481:825;;;;;:::o;53967:227::-;54059:12;;;;:6;:12;;;;;:22;;;54051:45;;54083:12;:10;:12::i;:::-;54051:7;:45::i;:::-;54043:105;;;;-1:-1:-1;;;54043:105:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54161:25;54172:4;54178:7;54161:10;:25::i;:::-;53967:227;;:::o;22518:83::-;22584:9;;;;22518:83;:::o;57982:20::-;;;-1:-1:-1;;;;;57982:20:0;;:::o;55176:209::-;55274:12;:10;:12::i;:::-;-1:-1:-1;;;;;55263:23:0;:7;-1:-1:-1;;;;;55263:23:0;;55255:83;;;;-1:-1:-1;;;55255:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;55351:26;55363:4;55369:7;55351:11;:26::i;58419:31::-;;;-1:-1:-1;;;;;58419:31:0;;:::o;25070:218::-;25158:4;25175:83;25184:12;:10;:12::i;:::-;25198:7;25207:50;25246:10;25207:11;:25;25219:12;:10;:12::i;:::-;-1:-1:-1;;;;;25207:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;25207:25:0;;;:34;;;;;;;;;;;:50;:38;:50;:::i;58233:25::-;;;-1:-1:-1;;;;;58233:25:0;;:::o;58062:23::-;;;-1:-1:-1;;;;;58062:23:0;;:::o;30886:91::-;30942:27;30948:12;:10;:12::i;:::-;30962:6;30942:5;:27::i;:::-;30886:91;:::o;60242:34::-;;;;:::o;57825:67::-;;;;;;;;;;;;;;;;;;;:::o;60361:25::-;;;;:::o;60393:23::-;;;;:::o;61984:634::-;62031:11;;;;;;;:20;62023:84;;;;-1:-1:-1;;;62023:84:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;62185:28;;62120:11;;:94;;-1:-1:-1;;;;;62120:11:0;;;;62157:10;;62178:4;;62120:94;:28;:94;:::i;:::-;62253:28;;62238:10;;:44;;;:14;:44;:::i;:::-;62225:10;:57;62310:12;;:19;;62327:1;62310:19;:16;:19;:::i;:::-;62295:12;:34;;;62379:6;62361:15;:24;62340:18;:45;62406:11;:18;;-1:-1:-1;;62406:18:0;;;;;62451:75;;;;;;;;-1:-1:-1;62451:75:0;;;;;;;;;62437:8;27:10:-1;;62420:4:0;23:18:-1;;45:23;;62437:90:0;;;;;;;;;;;;;;;;;;;;;;62567:12;;62581:28;;62545:65;;;;;;;62567:12;;62555:10;;62545:65;;;;;;;;;61984:634::o;60488:23::-;;;;;;;;;:::o;64915:224::-;40161:12;:10;:12::i;:::-;40151:6;;-1:-1:-1;;;;;40151:6:0;;;:22;;;40143:67;;;;;-1:-1:-1;;;40143:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;40143:67:0;;;;;;;;;;;;;;;64971:9:::1;::::0;:34:::1;::::0;;-1:-1:-1;;;64971:34:0;;64999:4:::1;64971:34;::::0;::::1;::::0;;;-1:-1:-1;;;;;64971:9:0;;::::1;::::0;:19:::1;::::0;:34;;;;;::::1;::::0;;;;;;;;;:9;:34;::::1;;2:2:-1::0;::::1;;;27:1;24::::0;17:12:::1;2:2;64971:34:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::1;77:16;74:1;67:27;5:2;64971:34:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28::::0;21:12:::1;4:2;-1:-1:::0;64971:34:0;64960:8:::1;:45:::0;;;65039:8:::1;::::0;65016:9:::1;::::0;:42:::1;::::0;-1:-1:-1;;;;;65016:9:0;;::::1;::::0;65039:8;;;::::1;::::0;65016:42:::1;:22;:42;:::i;:::-;65071:12;:19:::0;;-1:-1:-1;;65071:19:0::1;65086:4;65071:19;::::0;;65112:8:::1;::::0;65122::::1;::::0;65106:25:::1;::::0;;;;;;-1:-1:-1;;;;;65112:8:0;;::::1;::::0;65106:25:::1;::::0;;;;;;;::::1;64915:224::o:0;22829:119::-;-1:-1:-1;;;;;22922:18:0;22895:7;22922:18;;;;;;;;;;;;22829:119::o;40581:148::-;40161:12;:10;:12::i;:::-;40151:6;;-1:-1:-1;;;;;40151:6:0;;;:22;;;40143:67;;;;;-1:-1:-1;;;40143:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;40143:67:0;;;;;;;;;;;;;;;40672:6:::1;::::0;40651:40:::1;::::0;40688:1:::1;::::0;-1:-1:-1;;;;;40672:6:0::1;::::0;40651:40:::1;::::0;40688:1;;40651:40:::1;40702:6;:19:::0;;-1:-1:-1;;;;;;40702:19:0::1;::::0;;40581:148::o;63298:676::-;63372:1;63362:7;:11;63354:48;;;;;-1:-1:-1;;;63354:48:0;;;;;;;;;;;;-1:-1:-1;;;63354:48:0;;;;;;;;;;;;;;;63421:11;;;;;;;;:19;;:11;:19;63413:73;;;;-1:-1:-1;;;63413:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63524:18;;63505:15;:37;;63497:88;;;;-1:-1:-1;;;63497:88:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63598:11;;:73;;-1:-1:-1;;;;;63598:11:0;63635:10;63656:4;63663:7;63598:73;:28;:73;:::i;:::-;63695:10;;:23;;63710:7;63695:23;:14;:23;:::i;:::-;63682:10;:36;63755:12;;63731:21;;63755:19;;63772:1;63755:19;:16;:19;:::i;:::-;63731:43;;63825:56;63867:13;63872:7;63867:4;:13::i;:::-;63825:8;63834:13;63825:23;;;;;;;;;;;;;;;;;;:37;;;:41;;:56;;;;:::i;:::-;63785:8;63794:13;63785:23;;;;;;;;;;;;;;;;;;:37;;:96;;;;63923:12;;63911:10;-1:-1:-1;;;;;63899:67:0;;63937:28;;63899:67;;;;;;;;;;;;;;;;;;63298:676;;:::o;72454:2699::-;72595:10;72554:19;72576:31;;;:10;:31;;;;;72678:8;;72576:31;;72554:19;;;72678:15;;72691:1;72678:15;:12;:15;:::i;:::-;72808:23;;;;72653:40;;-1:-1:-1;72726:15:0;;72773:7;;72808:27;;;;:56;;;72863:1;72839:4;:21;;;:25;72808:56;:78;;;;;72885:1;72868:14;:18;72808:78;72804:582;;;72903:22;72928:36;72942:4;:21;;;72928:9;:13;;:36;;;;:::i;:::-;72903:61;;73002:10;72985:14;:27;72981:95;;;-1:-1:-1;73050:10:0;72981:95;73104:23;73130:115;73234:10;73130:99;73214:14;73130:79;73178:11;:30;;;73130:43;73149:4;:23;;;73130:14;:18;;:43;;;;:::i;:79::-;:83;:99;:83;:99;:::i;:115::-;73104:141;-1:-1:-1;73281:31:0;:10;73104:141;73281:31;:14;:31;:::i;:::-;73341:21;;;:33;;;73268:44;-1:-1:-1;;;72804:582:0;73427:1;73400:4;:24;;;:28;:58;;;;;73457:1;73432:4;:22;;;:26;73400:58;:80;;;;;73479:1;73462:14;:18;73400:80;73396:588;;;73497:22;73522:37;73536:4;:22;;;73522:9;:13;;:37;;;;:::i;:::-;73497:62;;73597:10;73580:14;:27;73576:95;;;-1:-1:-1;73645:10:0;73576:95;73699:23;73725:117;73831:10;73725:101;73811:14;73725:81;73774:11;:31;;;73725:44;73744:4;:24;;;73725:14;:18;;:44;;;;:::i;:117::-;73699:143;-1:-1:-1;73878:31:0;:10;73699:143;73878:31;:14;:31;:::i;:::-;73938:22;;;:34;;;73865:44;-1:-1:-1;;;73396:588:0;74000:22;;73996:480;;74069:4;:23;;;74047:18;:45;;74039:95;;;;-1:-1:-1;;;74039:95:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;74165:17;;74151:73;;-1:-1:-1;;;;;74165:17:0;74192:10;74205:18;74151:13;:73::i;:::-;74241:21;;;:33;;;74315:23;;;;:47;;74343:18;74315:47;:27;:47;:::i;:::-;74289:23;;;:73;74410:30;;:54;;74445:18;74410:54;:34;:54;:::i;:::-;74377:30;:87;73996:480;74492:23;;74488:492;;74563:4;:24;;;74540:19;:47;;74532:97;;;;-1:-1:-1;;;74532:97:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;74660:18;;74646:75;;-1:-1:-1;;;;;74660:18:0;74688:10;74701:19;74646:13;:75::i;:::-;74738:22;;;:34;;;74814:24;;;;:49;;74843:19;74814:49;:28;:49;:::i;:::-;74787:24;;;:76;74912:31;;:56;;74948:19;74912:56;:35;:56;:::i;:::-;74878:31;:90;74488:492;74996:14;;74992:154;;75041:9;;75027:57;;-1:-1:-1;;;;;75041:9:0;75060:10;75073;75027:13;:57::i;:::-;75110:8;;:24;;75123:10;75110:24;:12;:24;:::i;:::-;75099:8;:35;74992:154;72454:2699;;;;;;;:::o;31296:295::-;31373:26;31402:84;31439:6;31402:84;;;;;;;;;;;;;;;;;:32;31412:7;31421:12;:10;:12::i;:::-;31402:9;:32::i;:::-;:36;:84;;:36;:84;:::i;:::-;31373:113;;31499:51;31508:7;31517:12;:10;:12::i;:::-;31531:18;31499:8;:51::i;:::-;31561:22;31567:7;31576:6;31561:5;:22::i;:::-;31296:295;;;:::o;60154:31::-;;;;:::o;62626:660::-;62696:1;62686:7;:11;62678:48;;;;;-1:-1:-1;;;62678:48:0;;;;;;;;;;;;-1:-1:-1;;;62678:48:0;;;;;;;;;;;;;;;62745:11;;;;;;;;:19;;:11;:19;62737:73;;;;-1:-1:-1;;;62737:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;62848:18;;62829:15;:37;;62821:88;;;;-1:-1:-1;;;62821:88:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;62922:11;;:73;;-1:-1:-1;;;;;62922:11:0;62959:10;62980:4;62987:7;62922:73;:28;:73;:::i;:::-;63019:10;;:23;;63034:7;63019:23;:14;:23;:::i;:::-;63006:10;:36;63079:12;;63055:21;;63079:19;;63096:1;63079:19;:16;:19;:::i;:::-;63055:43;;63145:52;63183:13;63188:7;63183:4;:13::i;:::-;63145:8;63154:13;63145:23;;;;;;;;;;;;;;;;;;;;;:33;;:52;:37;:52;:::i;:::-;63109:8;63118:13;63109:23;;;;;;;;;;;;;;;;;;:33;;:88;;;;63235:12;;63223:10;-1:-1:-1;;;;;63215:63:0;;63249:28;;63215:63;;;;;;;;;;;;;;;;;;62626:660;;:::o;41676:152::-;40161:12;:10;:12::i;:::-;40151:6;;-1:-1:-1;;;;;40151:6:0;;;:22;;;40143:67;;;;;-1:-1:-1;;;40143:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;40143:67:0;;;;;;;;;;;;;;;41776:12:::1;-1:-1:-1::0;;;;;41769:29:0::1;;41799:7;:5;:7::i;:::-;41808:11;41769:51;;;;;;;;;;;;;-1:-1:-1::0;;;;;41769:51:0::1;-1:-1:-1::0;;;;;41769:51:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24::::0;17:12:::1;2:2;41769:51:0;;;;8:9:-1;5:2;;;45:16;42:1;39::::0;24:38:::1;77:16;74:1;67:27;5:2;41769:51:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28::::0;21:12:::1;4:2;-1:-1:::0;;;;41676:152:0:o;65290:465::-;40161:12;:10;:12::i;:::-;40151:6;;-1:-1:-1;;;;;40151:6:0;;;:22;;;40143:67;;;;;-1:-1:-1;;;40143:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;40143:67:0;;;;;;;;;;;;;;;65353:9:::1;::::0;:74:::1;::::0;-1:-1:-1;;;;;65353:9:0::1;65388:10;65409:4;65416:10:::0;65353:74:::1;:26;:74;:::i;:::-;65463:10;65452:8;;:21;65448:224;;;65490:15;65508:33;65537:3;65508:24;65523:8;;65508:10;:14;;:24;;;;:::i;:33::-;65490:51:::0;-1:-1:-1;65575:28:0::1;65588:14;65490:51:::0;65600:1:::1;65588:14;:11;:14;:::i;:::-;65575:8;::::0;;:28:::1;:12;:28;:::i;:::-;65564:8;:39:::0;65634:9:::1;::::0;65645:5:::1;::::0;65620:40:::1;::::0;-1:-1:-1;;;;;65634:9:0;;::::1;::::0;65645:5:::1;65652:7:::0;65620:13:::1;:40::i;:::-;65448:224;;65684:12;:20:::0;;-1:-1:-1;;65684:20:0::1;::::0;;65726:8:::1;::::0;65720:27:::1;::::0;;;;;;;-1:-1:-1;;;;;65726:8:0;;::::1;::::0;65720:27:::1;::::0;;;;;;;::::1;65290:465:::0;:::o;39939:79::-;40004:6;;-1:-1:-1;;;;;40004:6:0;39939:79;:::o;60100:45::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;53264:138::-;53337:7;53364:12;;;:6;:12;;;;;:30;;53388:5;53364:30;:23;:30;:::i;:::-;53357:37;53264:138;-1:-1:-1;;;53264:138:0:o;52225:139::-;52294:4;52318:12;;;:6;:12;;;;;:38;;52348:7;52318:38;:29;:38;:::i;21793:87::-;21865:7;21858:14;;;;;;;;-1:-1:-1;;21858:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21832:13;;21858:14;;21865:7;;21858:14;;21865:7;21858:14;;;;;;;;;;;;;;;;;;;;;;;;51393:49;51438:4;51393:49;:::o;25791:269::-;25884:4;25901:129;25910:12;:10;:12::i;:::-;25924:7;25933:96;25972:15;25933:96;;;;;;;;;;;;;;;;;:11;:25;25945:12;:10;:12::i;:::-;-1:-1:-1;;;;;25933:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;25933:25:0;;;:34;;;;;;;;;;;:96;;:38;:96;:::i;23161:175::-;23247:4;23264:42;23274:12;:10;:12::i;:::-;23288:9;23299:6;23264:9;:42::i;67314:1257::-;67424:10;67383:19;67405:31;;;:10;:31;;;;;67551:23;;67469:15;;67516:7;;67551:27;;;;:56;;;67606:1;67582:4;:21;;;:25;67551:56;:74;;;;;67624:1;67611:10;;:14;67551:74;67547:620;;;67642:22;67667:36;67681:4;:21;;;67667:9;:13;;:36;;;;:::i;:::-;67642:61;;67741:10;67724:14;:27;67720:95;;;-1:-1:-1;67789:10:0;67720:95;67831:20;67854:111;67954:10;67854:95;67934:14;67854:75;67898:11;:30;;;67854:39;67869:4;:23;;;67854:10;;:14;;:39;;;;:::i;:111::-;68001:10;;67831:134;;-1:-1:-1;68001:28:0;;67831:134;68001:28;:14;:28;:::i;:::-;67988:10;:41;68060:11;;68046:61;;-1:-1:-1;;;;;68060:11:0;68081:10;68094:12;68046:13;:61::i;:::-;-1:-1:-1;;68122:21:0;;;:33;;;67547:620;68183:22;;68179:385;;68222:17;;:90;;-1:-1:-1;;;;;68222:17:0;68265:10;68286:4;68293:18;68222:90;:34;:90;:::i;:::-;68329:21;;;:33;;;68403:23;;:47;;68431:18;68403:47;:27;:47;:::i;:::-;68377:73;;68498:11;:30;:54;;68533:18;68498:54;:34;:54;:::i;:::-;68465:11;:87;67314:1257;;;;:::o;65807:587::-;65877:1;65867:7;:11;65859:51;;;;;-1:-1:-1;;;65859:51:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;65929:12;;;;:21;65921:75;;;;-1:-1:-1;;;65921:75:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;66060:16;;66015:10;;:41;;;-1:-1:-1;;;66015:41:0;;66044:10;66015:41;;;;;;-1:-1:-1;;;;;66015:10:0;;;;:20;;:41;;;;;;;;;;;;;;;:10;:41;;;2:2:-1;;;;27:1;24;17:12;2:2;66015:41:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;66015:41:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;66015:41:0;:61;;66007:105;;;;;-1:-1:-1;;;66007:105:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;66125:11;;:73;;-1:-1:-1;;;;;66125:11:0;66162:10;66183:4;66190:7;66125:73;:28;:73;:::i;:::-;66209:9;;:71;;-1:-1:-1;;;;;66209:9:0;66244:10;66265:4;66272:7;66209:71;:26;:71;:::i;:::-;66298:35;66312:10;66325:7;66298:5;:35::i;:::-;66349:37;;;;;;;;;;;;;;66357:10;;66349:37;;;;;;;;65807:587;:::o;63982:732::-;64028:11;;;;;;;;:19;;:11;:19;64020:72;;;;-1:-1:-1;;;64020:72:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;64129:18;;64111:15;:36;64103:92;;;;-1:-1:-1;;;64103:92:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;64222:11;;64256:19;;64208:68;;-1:-1:-1;;;;;64222:11:0;;64243:10;;64208:13;:68::i;:::-;64315:19;;64300:10;;:35;;;:14;:35;:::i;:::-;64287:10;:48;64372:12;;64348:21;;64372:19;;64389:1;64372:19;:16;:19;:::i;:::-;64402:11;:19;;-1:-1:-1;;64402:19:0;;;64474:8;:23;;64348:43;;-1:-1:-1;64474:8:0;64348:43;;64474:23;;;;;;;;;;;;;;;;:37;;;64438:8;64447:13;64438:23;;;;;;;;;;;;;;;;;;:33;;;:73;64434:273;;;64556:12;;64570:19;;64533:57;;;;;;;64544:10;;64533:57;;;;;;;;;;64434:273;;;64661:12;;64675:19;;64637:58;;;;;;;64649:10;;64637:58;;;;;;;;;;63982:732;:::o;58326:31::-;;;-1:-1:-1;;;;;58326:31:0;;:::o;71092:1354::-;71204:10;71163:19;71185:31;;;:10;:31;;;;;71331:23;;71249:15;;71296:7;;71331:27;;;;:56;;;71386:1;71362:4;:21;;;:25;71331:56;:74;;;;;71404:1;71391:10;;:14;71331:74;71327:620;;;71422:22;71447:36;71461:4;:21;;;71447:9;:13;;:36;;;;:::i;:::-;71422:61;;71521:10;71504:14;:27;71500:95;;;-1:-1:-1;71569:10:0;71500:95;71611:20;71634:111;71734:10;71634:95;71714:14;71634:75;71678:11;:30;;;71634:39;71649:4;:23;;;71634:10;;:14;;:39;;;;:::i;:111::-;71781:10;;71611:134;;-1:-1:-1;71781:28:0;;71611:134;71781:28;:14;:28;:::i;:::-;71768:10;:41;71840:11;;71826:61;;-1:-1:-1;;;;;71840:11:0;71861:10;71874:12;71826:13;:61::i;:::-;-1:-1:-1;;71902:21:0;;;:33;;;71327:620;71963:22;;71959:480;;72032:23;;72010:45;;;72002:95;;;;-1:-1:-1;;;72002:95:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;72128:17;;72114:73;;-1:-1:-1;;;;;72128:17:0;72155:10;72168:18;72114:13;:73::i;:::-;72204:21;;;:33;;;72278:23;;:47;;72306:18;72278:47;:27;:47;:::i;:::-;72252:73;;72373:11;:30;:54;;72408:18;72373:54;:34;:54;:::i;60068:25::-;;;;;;;;;;;;;;:::o;57901:23::-;;;-1:-1:-1;;;;;57901:23:0;;:::o;58512:32::-;;;-1:-1:-1;;;;;58512:32:0;;:::o;60319:33::-;;;;:::o;52538:127::-;52601:7;52628:12;;;:6;:12;;;;;:29;;:27;:29::i;60457:24::-;;;;;;:::o;56800:57::-;56838:19;;;-1:-1:-1;;;56838:19:0;;;;;;;;;;;;56800:57;:::o;54439:230::-;54532:12;;;;:6;:12;;;;;:22;;;54524:45;;54556:12;:10;:12::i;54524:45::-;54516:106;;;;-1:-1:-1;;;54516:106:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60285:27;;;;:::o;60192:43::-;;;;:::o;23399:151::-;-1:-1:-1;;;;;23515:18:0;;;23488:7;23515:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;23399:151::o;68579:2505::-;68718:10;68677:19;68699:31;;;:10;:31;;;;;68801:8;;68699:31;;68677:19;;;68801:15;;68814:1;68801:15;:12;:15;:::i;:::-;68931:23;;;;68776:40;;-1:-1:-1;68849:15:0;;68896:7;;68931:27;;;;:56;;;68986:1;68962:4;:21;;;:25;68931:56;:78;;;;;69008:1;68991:14;:18;68931:78;68927:582;;;69026:22;69051:36;69065:4;:21;;;69051:9;:13;;:36;;;;:::i;:::-;69026:61;;69125:10;69108:14;:27;69104:95;;;-1:-1:-1;69173:10:0;69104:95;69227:23;69253:115;69357:10;69253:99;69337:14;69253:79;69301:11;:30;;;69253:43;69272:4;:23;;;69253:14;:18;;:43;;;;:::i;:115::-;69227:141;-1:-1:-1;69404:31:0;:10;69227:141;69404:31;:14;:31;:::i;:::-;69464:21;;;:33;;;69391:44;-1:-1:-1;;;68927:582:0;69550:1;69523:4;:24;;;:28;:58;;;;;69580:1;69555:4;:22;;;:26;69523:58;:80;;;;;69602:1;69585:14;:18;69523:80;69519:588;;;69620:22;69645:37;69659:4;:22;;;69645:9;:13;;:37;;;;:::i;:::-;69620:62;;69720:10;69703:14;:27;69699:95;;;-1:-1:-1;69768:10:0;69699:95;69822:23;69848:117;69954:10;69848:101;69934:14;69848:81;69897:11;:31;;;69848:44;69867:4;:24;;;69848:14;:18;;:44;;;;:::i;:117::-;69822:143;-1:-1:-1;70001:31:0;:10;69822:143;70001:31;:14;:31;:::i;:::-;70061:22;;;:34;;;69988:44;-1:-1:-1;;;69519:588:0;70123:22;;70119:385;;70162:17;;:90;;-1:-1:-1;;;;;70162:17:0;70205:10;70226:4;70233:18;70162:90;:34;:90;:::i;:::-;70269:21;;;:33;;;70343:23;;;;:47;;70371:18;70343:47;:27;:47;:::i;:::-;70317:23;;;:73;70438:30;;:54;;70473:18;70438:54;:34;:54;:::i;:::-;70405:30;:87;70119:385;70520:23;;70516:395;;70560:18;;:92;;-1:-1:-1;;;;;70560:18:0;70604:10;70625:4;70632:19;70560:92;:35;:92;:::i;:::-;70669:22;;;:34;;;70745:24;;;;:49;;70774:19;70745:49;:28;:49;:::i;:::-;70718:24;;;:76;70843:31;;:56;;70879:19;70843:56;:35;:56;:::i;40884:244::-;40161:12;:10;:12::i;:::-;40151:6;;-1:-1:-1;;;;;40151:6:0;;;:22;;;40143:67;;;;;-1:-1:-1;;;40143:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;40143:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;40973:22:0;::::1;40965:73;;;;-1:-1:-1::0;;;40965:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41075:6;::::0;41054:38:::1;::::0;-1:-1:-1;;;;;41054:38:0;;::::1;::::0;41075:6:::1;::::0;41054:38:::1;::::0;41075:6:::1;::::0;41054:38:::1;41103:6;:17:::0;;-1:-1:-1;;;;;;41103:17:0::1;-1:-1:-1::0;;;;;41103:17:0;;;::::1;::::0;;;::::1;::::0;;40884:244::o;56864:61::-;56904:21;;;-1:-1:-1;;;56904:21:0;;;;;;;;;;;;56864:61;:::o;923:106::-;1011:10;923:106;:::o;28938:346::-;-1:-1:-1;;;;;29040:19:0;;29032:68;;;;-1:-1:-1;;;29032:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;29119:21:0;;29111:68;;;;-1:-1:-1;;;29111:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;29192:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;29244:32;;;;;;;;;;;;;;;;;28938:346;;;:::o;26550:539::-;-1:-1:-1;;;;;26656:20:0;;26648:70;;;;-1:-1:-1;;;26648:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;26737:23:0;;26729:71;;;;-1:-1:-1;;;26729:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26813:47;26834:6;26842:9;26853:6;26813:20;:47::i;:::-;26893:71;26915:6;26893:71;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;26893:17:0;;:9;:17;;;;;;;;;;;;:71;;:21;:71;:::i;:::-;-1:-1:-1;;;;;26873:17:0;;;:9;:17;;;;;;;;;;;:91;;;;26998:20;;;;;;;:32;;27023:6;26998:32;:24;:32;:::i;:::-;-1:-1:-1;;;;;26975:20:0;;;:9;:20;;;;;;;;;;;;:55;;;;27046:35;;;;;;;26975:20;;27046:35;;;;;;;;;;;;;26550:539;;;:::o;5876:192::-;5962:7;5998:12;5990:6;;;;5982:29;;;;-1:-1:-1;;;5982:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;5982:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;6034:5:0;;;5876:192::o;7258:132::-;7316:7;7343:39;7347:1;7350;7343:39;;;;;;;;;;;;;;;;;:3;:39::i;6319:471::-;6377:7;6622:6;6618:47;;-1:-1:-1;6652:1:0;6645:8;;6618:47;6689:5;;;6693:1;6689;:5;:1;6713:5;;;;;:10;6705:56;;;;-1:-1:-1;;;6705:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5445:136;5503:7;5530:43;5534:1;5537;5530:43;;;;;;;;;;;;;;;;;:3;:43::i;75165:304::-;75271:31;;;-1:-1:-1;;;75271:31:0;;75296:4;75271:31;;;;;;75253:15;;-1:-1:-1;;;;;75271:16:0;;;;;:31;;;;;;;;;;;;;;;:16;:31;;;2:2:-1;;;;27:1;24;17:12;2:2;75271:31:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;75271:31:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;75271:31:0;;-1:-1:-1;75317:17:0;;;75313:149;;;75351:33;-1:-1:-1;;;;;75351:19:0;;75371:3;75376:7;75351:33;:19;:33;:::i;:::-;75313:149;;;75417:33;-1:-1:-1;;;;;75417:19:0;;75437:3;75442:7;75417:33;:19;:33;:::i;4989:181::-;5047:7;5079:5;;;5103:6;;;;5095:46;;;;;-1:-1:-1;;;5095:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;28080:418;-1:-1:-1;;;;;28164:21:0;;28156:67;;;;-1:-1:-1;;;28156:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28236:49;28257:7;28274:1;28278:6;28236:20;:49::i;:::-;28319:68;28342:6;28319:68;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;28319:18:0;;:9;:18;;;;;;;;;;;;:68;;:22;:68;:::i;:::-;-1:-1:-1;;;;;28298:18:0;;:9;:18;;;;;;;;;;:89;28413:12;;:24;;28430:6;28413:24;:16;:24;:::i;:::-;28398:12;:39;28453:37;;;;;;;;28479:1;;-1:-1:-1;;;;;28453:37:0;;;;;;;;;;;;28080:418;;:::o;56296:188::-;56370:12;;;;:6;:12;;;;;:33;;56395:7;56370:33;:24;:33;:::i;:::-;56366:111;;;56452:12;:10;:12::i;:::-;-1:-1:-1;;;;;56425:40:0;56443:7;-1:-1:-1;;;;;56425:40:0;56437:4;56425:40;;;;;;;;;;56296:188;;:::o;56492:192::-;56567:12;;;;:6;:12;;;;;:36;;56595:7;56567:36;:27;:36;:::i;:::-;56563:114;;;56652:12;:10;:12::i;:::-;-1:-1:-1;;;;;56625:40:0;56643:7;-1:-1:-1;;;;;56625:40:0;56637:4;56625:40;;;;;;;;;;56492:192;;:::o;10289:205::-;10417:68;;;-1:-1:-1;;;;;10417:68:0;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;10417:68:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;10390:96:0;;10410:5;;10390:19;:96::i;10104:177::-;10214:58;;;-1:-1:-1;;;;;10214:58:0;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;10214:58:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;10187:86:0;;10207:5;;10187:19;:86::i;75477:303::-;75522:6;75549:1;75545;:5;75541:232;;;-1:-1:-1;75571:1:0;75604;75600;75596:5;;:9;75620:92;75631:1;75627;:5;75620:92;;;75657:1;75653:5;;75695:1;75690;75686;75682;:5;;;;;;:9;75681:15;;;;;;75677:19;;75620:92;;;75541:232;;;;75733:6;;75729:44;;-1:-1:-1;75760:1:0;75477:303;;;:::o;48129:149::-;48203:7;48246:22;48250:3;48262:5;48246:3;:22::i;47424:158::-;47504:4;47528:46;47538:3;-1:-1:-1;;;;;47558:14:0;;47528:9;:46::i;27370:378::-;-1:-1:-1;;;;;27454:21:0;;27446:65;;;;;-1:-1:-1;;;27446:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;27524:49;27553:1;27557:7;27566:6;27524:20;:49::i;:::-;27601:12;;:24;;27618:6;27601:24;:16;:24;:::i;:::-;27586:12;:39;-1:-1:-1;;;;;27657:18:0;;:9;:18;;;;;;;;;;;:30;;27680:6;27657:30;:22;:30;:::i;:::-;-1:-1:-1;;;;;27636:18:0;;:9;:18;;;;;;;;;;;:51;;;;27703:37;;;;;;;27636:18;;:9;;27703:37;;;;;;;;;;27370:378;;:::o;47668:117::-;47731:7;47758:19;47766:3;47758:7;:19::i;7878:345::-;7964:7;8066:12;8059:5;8051:28;;;;-1:-1:-1;;;8051:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;8051:28:0;;8090:9;8106:1;8102;:5;;;;;;;7878:345;-1:-1:-1;;;;;7878:345:0:o;46870:143::-;46940:4;46964:41;46969:3;-1:-1:-1;;;;;46989:14:0;;46964:4;:41::i;47189:149::-;47262:4;47286:44;47294:3;-1:-1:-1;;;;;47314:14:0;;47286:7;:44::i;12409:761::-;12833:23;12859:69;12887:4;12859:69;;;;;;;;;;;;;;;;;12867:5;-1:-1:-1;;;;;12859:27:0;;;:69;;;;;:::i;:::-;12943:17;;12833:95;;-1:-1:-1;12943:21:0;12939:224;;13085:10;13074:30;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;13074:30:0;13066:85;;;;-1:-1:-1;;;13066:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46412:204;46507:18;;46479:7;;46507:26;-1:-1:-1;46499:73:0;;;;-1:-1:-1;;;46499:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46590:3;:11;;46602:5;46590:18;;;;;;;;;;;;;;;;46583:25;;46412:204;;;;:::o;45744:129::-;45817:4;45841:19;;;:12;;;;;:19;;;;;;:24;;;45744:129::o;45959:109::-;46042:18;;45959:109::o;43524:414::-;43587:4;43609:21;43619:3;43624:5;43609:9;:21::i;:::-;43604:327;;-1:-1:-1;27:10;;39:1;23:18;;;45:23;;43647:11:0;:23;;;;;;;;;;;;;43830:18;;43808:19;;;:12;;;:19;;;;;;:40;;;;43863:11;;43604:327;-1:-1:-1;43914:5:0;43907:12;;44114:1544;44180:4;44319:19;;;:12;;;:19;;;;;;44355:15;;44351:1300;;44790:18;;-1:-1:-1;;44741:14:0;;;;44790:22;;;;44717:21;;44790:3;;:22;;45077;;;;;;;;;;;;;;45057:42;;45223:9;45194:3;:11;;45206:13;45194:26;;;;;;;;;;;;;;;;;;;:38;;;;45300:23;;;45342:1;45300:12;;;:23;;;;;;45326:17;;;45300:43;;45452:17;;45300:3;;45452:17;;;;;;;;;;;;;;;;;;;;;;45547:3;:12;;:19;45560:5;45547:19;;;;;;;;;;;45540:26;;;45590:4;45583:11;;;;;;;;44351:1300;45634:5;45627:12;;;;;17056:196;17159:12;17191:53;17214:6;17222:4;17228:1;17231:12;17191:22;:53::i;:::-;17184:60;17056:196;-1:-1:-1;;;;17056:196:0:o;18433:979::-;18563:12;18596:18;18607:6;18596:10;:18::i;:::-;18588:60;;;;;-1:-1:-1;;;18588:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;18722:12;18736:23;18763:6;-1:-1:-1;;;;;18763:11:0;18783:8;18794:4;18763:36;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;18763:36:0;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;19;14:27;;;;67:4;61:11;56:16;;134:4;130:9;123:4;105:16;101:27;97:43;94:1;90:51;84:4;77:65;157:16;154:1;147:27;211:16;208:1;201:4;198:1;194:12;179:49;5:228;;14:27;32:4;27:9;;5:228;;18721:78:0;;;;18814:7;18810:595;;;18845:10;-1:-1:-1;18838:17:0;;-1:-1:-1;18838:17:0;18810:595;18959:17;;:21;18955:439;;19222:10;19216:17;19283:15;19270:10;19266:2;19262:19;19255:44;19170:148;19358:20;;-1:-1:-1;;;19358:20:0;;;;;;;;;;;;;;;;;19365:12;;19358:20;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;13941:619:0;14001:4;14469:20;;14312:66;14509:23;;;;;;:42;;-1:-1:-1;;14536:15:0;;;14501:51;-1:-1:-1;;13941:619:0:o

Swarm Source

ipfs://85acb5ba15f9e65b11ce9b850cb46cb014b8e349c649d20af05f61f596dfd27d
Block Transaction Difficulty Gas Used Reward
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.