ETH Price: $3,451.87 (-1.02%)
Gas: 2 Gwei

Contract

0x06301057D77D54B6e14c7FafFB11Ffc7Cab4eaa7
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

More Info

Private Name Tags

TokenTracker

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Approve169514932023-04-01 3:00:11458 days ago1680318011IN
DMM: mDAI Token
0 ETH0.0009363821.81944896
Approve161084492022-12-04 2:25:23576 days ago1670120723IN
DMM: mDAI Token
0 ETH0.0006008114
Redeem152471052022-07-31 0:46:51702 days ago1659228411IN
DMM: mDAI Token
0 ETH0.000293444
Redeem152471052022-07-31 0:46:51702 days ago1659228411IN
DMM: mDAI Token
0 ETH0.000220083
Redeem128154142021-07-12 23:35:221085 days ago1626132922IN
DMM: mDAI Token
0 ETH0.001776719
Redeem127152512021-06-27 9:14:081100 days ago1624785248IN
DMM: mDAI Token
0 ETH0.000376763
Redeem125750912021-06-05 14:58:351122 days ago1622905115IN
DMM: mDAI Token
0 ETH0.0014600613.2
Redeem125373992021-05-30 18:48:161128 days ago1622400496IN
DMM: mDAI Token
0 ETH0.0022599827
Redeem125373972021-05-30 18:48:021128 days ago1622400482IN
DMM: mDAI Token
0 ETH0.0029861727
Redeem125217692021-05-28 8:30:391130 days ago1622190639IN
DMM: mDAI Token
0 ETH0.0022442624
Redeem124560372021-05-18 3:44:241141 days ago1621309464IN
DMM: mDAI Token
0 ETH0.0056411651
Redeem123391052021-04-30 2:18:201159 days ago1619749100IN
DMM: mDAI Token
0 ETH0.0039815636
Redeem123122632021-04-25 22:54:161163 days ago1619391256IN
DMM: mDAI Token
0 ETH0.0047557543
Approve122958752021-04-23 10:13:141165 days ago1619172794IN
DMM: mDAI Token
0 ETH0.0056071186
Redeem122147382021-04-10 21:57:201178 days ago1618091840IN
DMM: mDAI Token
0 ETH0.0108846587
Approve119549022021-03-01 21:57:261218 days ago1614635846IN
DMM: mDAI Token
0 ETH0.00348757105
Redeem119506392021-03-01 6:13:041218 days ago1614579184IN
DMM: mDAI Token
0 ETH0.0087577770.00000145
Redeem119454822021-02-28 11:17:271219 days ago1614511047IN
DMM: mDAI Token
0 ETH0.0088828871
Redeem119009892021-02-21 15:05:501226 days ago1613919950IN
DMM: mDAI Token
0 ETH0.01134143103
Redeem119009642021-02-21 15:02:071226 days ago1613919727IN
DMM: mDAI Token
0 ETH0.01541554140
Redeem118987232021-02-21 6:38:031226 days ago1613889483IN
DMM: mDAI Token
0 ETH0.00435145
Redeem118661722021-02-16 6:24:081231 days ago1613456648IN
DMM: mDAI Token
0 ETH0.00888752104
Redeem118661722021-02-16 6:24:081231 days ago1613456648IN
DMM: mDAI Token
0 ETH0.0138769299
Redeem118394482021-02-12 3:42:311236 days ago1613101351IN
DMM: mDAI Token
0 ETH0.01542013110
Redeem118205092021-02-09 6:05:531238 days ago1612850753IN
DMM: mDAI Token
0 ETH0.01790288143
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To Value
95816432020-02-29 23:26:001584 days ago1583018760  Contract Creation0 ETH
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x3564ad35...76098669B
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
DmmToken

Compiler Version
v0.5.13+commit.5b0b510c

Optimization Enabled:
Yes with 200 runs

Other Settings:
istanbul EvmVersion, Apache-2.0 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-02-29
*/

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

pragma solidity ^0.5.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP. Does not include
 * the optional functions; to access them see {ERC20Detailed}.
 */
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.5.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.
     *
     * _Available since v2.4.0._
     */
    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.
     *
     * _Available since v2.4.0._
     */
    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.
     *
     * _Available since v2.4.0._
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

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

pragma solidity ^0.5.5;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * This test is non-exhaustive, and there may be false-negatives: during the
     * execution of a contract's constructor, its address will be reported as
     * not containing 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.
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies in extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        // 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 != 0x0 && codehash != accountHash);
    }

    /**
     * @dev Converts an `address` into `address payable`. Note that this is
     * simply a type cast: the actual underlying value is not changed.
     *
     * _Available since v2.4.0._
     */
    function toPayable(address account) internal pure returns (address payable) {
        return address(uint160(account));
    }

    /**
     * @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].
     *
     * _Available since v2.4.0._
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

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

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

pragma solidity ^0.5.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 ERC20;` 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));
    }

    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.

        // A Solidity high level call has three parts:
        //  1. The target address is checked to verify it contains contract code
        //  2. The call itself is made, and success asserted
        //  3. The return value is decoded, which in turn checks the size of the returned data.
        // solhint-disable-next-line max-line-length
        require(address(token).isContract(), "SafeERC20: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = address(token).call(data);
        require(success, "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: contracts/constants/CommonConstants.sol

pragma solidity ^0.5.0;

contract CommonConstants {

    uint public constant EXCHANGE_RATE_BASE_RATE = 1e18;

}

// File: contracts/interfaces/InterestRateInterface.sol

pragma solidity ^0.5.0;

interface InterestRateInterface {

    /**
      * @dev Returns the current interest rate for the given DMMA and corresponding total supply & active supply
      *
      * @param dmmTokenId The DMMA whose interest should be retrieved
      * @param totalSupply The total supply fot he DMM token
      * @param activeSupply The supply that's currently being lent by users
      * @return The interest rate in APY, which is a number with 18 decimals
      */
    function getInterestRate(uint dmmTokenId, uint totalSupply, uint activeSupply) external view returns (uint);

}

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

pragma solidity ^0.5.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 { }
    // solhint-disable-previous-line no-empty-blocks

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

    function _msgData() internal view 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/ownership/Ownable.sol

pragma solidity ^0.5.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.
 *
 * 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 {
        _owner = _msgSender();
        emit OwnershipTransferred(address(0), _owner);
    }

    /**
     * @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(isOwner(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Returns true if the caller is the current owner.
     */
    function isOwner() public view returns (bool) {
        return _msgSender() == _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 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 onlyOwner {
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     */
    function _transferOwnership(address newOwner) internal {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

// File: contracts/utils/Blacklistable.sol

pragma solidity ^0.5.0;


/**
 * @dev Allows accounts to be blacklisted by the owner of the contract.
 *
 *  Taken from USDC's contract for blacklisting certain addresses from owning and interacting with the token.
 */
contract Blacklistable is Ownable {

    string public constant BLACKLISTED = "BLACKLISTED";

    mapping(address => bool) internal blacklisted;

    event Blacklisted(address indexed account);
    event UnBlacklisted(address indexed account);
    event BlacklisterChanged(address indexed newBlacklister);

    /**
     * @dev Throws if called by any account other than the creator of this contract
    */
    modifier onlyBlacklister() {
        require(msg.sender == owner(), "MUST_BE_BLACKLISTER");
        _;
    }

    /**
     * @dev Throws if `account` is blacklisted
     *
     * @param account The address to check
    */
    modifier notBlacklisted(address account) {
        require(blacklisted[account] == false, BLACKLISTED);
        _;
    }

    /**
     * @dev Checks if `account` is blacklisted. Reverts with `BLACKLISTED` if blacklisted.
    */
    function checkNotBlacklisted(address account) public view {
        require(!blacklisted[account], BLACKLISTED);
    }

    /**
     * @dev Checks if `account` is blacklisted
     *
     * @param account The address to check
    */
    function isBlacklisted(address account) public view returns (bool) {
        return blacklisted[account];
    }

    /**
     * @dev Adds `account` to blacklist
     *
     * @param account The address to blacklist
    */
    function blacklist(address account) public onlyBlacklister {
        blacklisted[account] = true;
        emit Blacklisted(account);
    }

    /**
     * @dev Removes account from blacklist
     *
     * @param account The address to remove from the blacklist
    */
    function unBlacklist(address account) public onlyBlacklister {
        blacklisted[account] = false;
        emit UnBlacklisted(account);
    }

}

// File: contracts/interfaces/IDmmController.sol

pragma solidity ^0.5.0;



interface IDmmController {

    event TotalSupplyIncreased(uint oldTotalSupply, uint newTotalSupply);
    event TotalSupplyDecreased(uint oldTotalSupply, uint newTotalSupply);

    event AdminDeposit(address indexed sender, uint amount);
    event AdminWithdraw(address indexed receiver, uint amount);

    function blacklistable() external view returns (Blacklistable);

    /**
     * @dev Creates a new mToken using the provided data.
     *
     * @param underlyingToken   The token that should be wrapped to create a new DMMA
     * @param symbol            The symbol of the new DMMA, IE mDAI or mUSDC
     * @param name              The name of this token, IE `DMM: DAI`
     * @param decimals          The number of decimals of the underlying token, and therefore the number for this DMMA
     * @param minMintAmount     The minimum amount that can be minted for any given transaction.
     * @param minRedeemAmount   The minimum amount that can be redeemed any given transaction.
     * @param totalSupply       The initial total supply for this market.
     */
    function addMarket(
        address underlyingToken,
        string calldata symbol,
        string calldata name,
        uint8 decimals,
        uint minMintAmount,
        uint minRedeemAmount,
        uint totalSupply
    ) external;

    /**
     * @dev Creates a new mToken using the already-existing token.
     *
     * @param dmmToken          The token that should be added to this controller.
     * @param underlyingToken   The token that should be wrapped to create a new DMMA.
     */
    function addMarketFromExistingDmmToken(
        address dmmToken,
        address underlyingToken
    ) external;

    /**
     * @param newController The new controller who should receive ownership of the provided DMM token IDs.
     */
    function transferOwnershipToNewController(
        address newController
    ) external;

    /**
     * @dev Enables the corresponding DMMA to allow minting new tokens.
     *
     * @param dmmTokenId  The DMMA that should be enabled.
     */
    function enableMarket(uint dmmTokenId) external;

    /**
     * @dev Disables the corresponding DMMA from minting new tokens. This allows the market to close over time, since
     *      users are only able to redeem tokens.
     *
     * @param dmmTokenId  The DMMA that should be disabled.
     */
    function disableMarket(uint dmmTokenId) external;

    /**
     * @dev Sets a new contract that implements the `InterestRateInterface` interface.
     *
     * @param newInterestRateInterface  The new contract that implements the `InterestRateInterface` interface.
     */
    function setInterestRateInterface(address newInterestRateInterface) external;

    /**
     * @dev Sets a new contract that implements the `IOffChainAssetValuator` interface.
     *
     * @param newOffChainAssetValuator The new contract that implements the `IOffChainAssetValuator` interface.
     */
    function setOffChainAssetValuator(address newOffChainAssetValuator) external;

    /**
     * @dev Sets a new contract that implements the `IOffChainAssetValuator` interface.
     *
     * @param newOffChainCurrencyValuator The new contract that implements the `IOffChainAssetValuator` interface.
     */
    function setOffChainCurrencyValuator(address newOffChainCurrencyValuator) external;

    /**
     * @dev Sets a new contract that implements the `UnderlyingTokenValuator` interface
     *
     * @param newUnderlyingTokenValuator The new contract that implements the `UnderlyingTokenValuator` interface
     */
    function setUnderlyingTokenValuator(address newUnderlyingTokenValuator) external;

    /**
     * @dev Allows the owners of the DMM Ecosystem to withdraw funds from a DMMA. These withdrawn funds are then
     *      allocated to real-world assets that will be used to pay interest into the DMMA.
     *
     * @param newMinCollateralization   The new min collateralization (with 18 decimals) at which the DMME must be in
     *                                  order to add to the total supply of DMM.
     */
    function setMinCollateralization(uint newMinCollateralization) external;

    /**
     * @dev Allows the owners of the DMM Ecosystem to withdraw funds from a DMMA. These withdrawn funds are then
     *      allocated to real-world assets that will be used to pay interest into the DMMA.
     *
     * @param newMinReserveRatio   The new ratio (with 18 decimals) that is used to enforce a certain percentage of assets
     *                          are kept in each DMMA.
     */
    function setMinReserveRatio(uint newMinReserveRatio) external;

    /**
     * @dev Increases the max supply for the provided `dmmTokenId` by `amount`. This call reverts with
     *      INSUFFICIENT_COLLATERAL if there isn't enough collateral in the Chainlink contract to cover the controller's
     *      requirements for minimum collateral.
     */
    function increaseTotalSupply(uint dmmTokenId, uint amount) external;

    /**
     * @dev Increases the max supply for the provided `dmmTokenId` by `amount`.
     */
    function decreaseTotalSupply(uint dmmTokenId, uint amount) external;

    /**
     * @dev Allows the owners of the DMM Ecosystem to withdraw funds from a DMMA. These withdrawn funds are then
     *      allocated to real-world assets that will be used to pay interest into the DMMA.
     *
     * @param dmmTokenId        The ID of the DMM token whose underlying will be funded.
     * @param underlyingAmount  The amount underlying the DMM token that will be deposited into the DMMA.
     */
    function adminWithdrawFunds(uint dmmTokenId, uint underlyingAmount) external;

    /**
     * @dev Allows the owners of the DMM Ecosystem to deposit funds into a DMMA. These funds are used to disburse
     *      interest payments and add more liquidity to the specific market.
     *
     * @param dmmTokenId        The ID of the DMM token whose underlying will be funded.
     * @param underlyingAmount  The amount underlying the DMM token that will be deposited into the DMMA.
     */
    function adminDepositFunds(uint dmmTokenId, uint underlyingAmount) external;

    /**
     * @dev Gets the collateralization of the system assuming 1-year's worth of interest payments are due by dividing
     *      the total value of all the collateralized assets plus the value of the underlying tokens in each DMMA by the
     *      aggregate interest owed (plus the principal), assuming each DMMA was at maximum usage.
     *
     * @return  The 1-year collateralization of the system, as a number with 18 decimals. For example
     *          `1010000000000000000` is 101% or 1.01.
     */
    function getTotalCollateralization() external view returns (uint);

    /**
     * @dev Gets the current collateralization of the system assuming by dividing the total value of all the
     *      collateralized assets plus the value of the underlying tokens in each DMMA by the aggregate interest owed
     *      (plus the principal), using the current usage of each DMMA.
     *
     * @return  The active collateralization of the system, as a number with 18 decimals. For example
     *          `1010000000000000000` is 101% or 1.01.
     */
    function getActiveCollateralization() external view returns (uint);

    /**
     * @dev Gets the interest rate from the underlying token, IE DAI or USDC.
     *
     * @return  The current interest rate, represented using 18 decimals. Meaning `65000000000000000` is 6.5% APY or
     *          0.065.
     */
    function getInterestRateByUnderlyingTokenAddress(address underlyingToken) external view returns (uint);

    /**
     * @dev Gets the interest rate from the DMM token, IE DMM: DAI or DMM: USDC.
     *
     * @return  The current interest rate, represented using 18 decimals. Meaning, `65000000000000000` is 6.5% APY or
     *          0.065.
     */
    function getInterestRateByDmmTokenId(uint dmmTokenId) external view returns (uint);

    /**
     * @dev Gets the interest rate from the DMM token, IE DMM: DAI or DMM: USDC.
     *
     * @return  The current interest rate, represented using 18 decimals. Meaning, `65000000000000000` is 6.5% APY or
     *          0.065.
     */
    function getInterestRateByDmmTokenAddress(address dmmToken) external view returns (uint);

    /**
     * @dev Gets the exchange rate from the underlying to the DMM token, such that
     *      `DMM: Token = underlying / exchangeRate`
     *
     * @return  The current exchange rate, represented using 18 decimals. Meaning, `200000000000000000` is 0.2.
     */
    function getExchangeRateByUnderlying(address underlyingToken) external view returns (uint);

    /**
     * @dev Gets the exchange rate from the underlying to the DMM token, such that
     *      `DMM: Token = underlying / exchangeRate`
     *
     * @return  The current exchange rate, represented using 18 decimals. Meaning, `200000000000000000` is 0.2.
     */
    function getExchangeRate(address dmmToken) external view returns (uint);

    /**
     * @dev Gets the DMM token for the provided underlying token. For example, sending DAI returns DMM: DAI.
     */
    function getDmmTokenForUnderlying(address underlyingToken) external view returns (address);

    /**
     * @dev Gets the underlying token for the provided DMM token. For example, sending DMM: DAI returns DAI.
     */
    function getUnderlyingTokenForDmm(address dmmToken) external view returns (address);

    /**
     * @return True if the market is enabled for this DMMA or false if it is not enabled.
     */
    function isMarketEnabledByDmmTokenId(uint dmmTokenId) external view returns (bool);

    /**
     * @return True if the market is enabled for this DMM token (IE DMM: DAI) or false if it is not enabled.
     */
    function isMarketEnabledByDmmTokenAddress(address dmmToken) external view returns (bool);

    /**
     * @return True if the market is enabled for this underlying token (IE DAI) or false if it is not enabled.
     */
    function getTokenIdFromDmmTokenAddress(address dmmTokenAddress) external view returns (uint);

}

// File: contracts/interfaces/IDmmToken.sol

pragma solidity ^0.5.0;


/**
 * Basically an interface except, contains the implementation of the type-hashes for offline signature generation.
 *
 * This contract contains the signatures and documentation for all publicly-implemented functions in the DMM token.
 */
interface IDmmToken {

    /*****************
     * Events
     */

    event Mint(address indexed minter, address indexed recipient, uint amount);
    event Redeem(address indexed redeemer, address indexed recipient, uint amount);
    event FeeTransfer(address indexed owner, address indexed recipient, uint amount);

    event TotalSupplyIncreased(uint oldTotalSupply, uint newTotalSupply);
    event TotalSupplyDecreased(uint oldTotalSupply, uint newTotalSupply);

    event OffChainRequestValidated(address indexed owner, address indexed feeRecipient, uint nonce, uint expiry, uint feeAmount);

    /*****************
     * Functions
     */

    /**
     * @dev The controller that deployed this parent
     */
    function controller() external view returns (IDmmController);

    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() external view returns (string memory);

    /**
     * @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.
     *
     * 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() external view returns (uint8);

    /**
     * @return  The min amount that can be minted in a single transaction. This amount corresponds with the number of
     *          decimals that this token has.
     */
    function minMintAmount() external view returns (uint);

    /**
     * @return  The min amount that can be redeemed from DMM to underlying in a single transaction. This amount
     *          corresponds with the number of decimals that this token has.
     */
    function minRedeemAmount() external view returns (uint);

    /**
      * @dev The amount of DMM that is in circulation (outside of this contract)
      */
    function activeSupply() external view returns (uint);

    /**
     * @dev Attempts to add `amount` to the total supply by issuing the tokens to this contract. This call fires a
     *      Transfer event from the 0x0 address to this contract.
     */
    function increaseTotalSupply(uint amount) external;

    /**
     * @dev Attempts to remove `amount` from the total supply by destroying those tokens that are held in this
     *      contract. This call reverts with TOO_MUCH_ACTIVE_SUPPLY if `amount` is not held in this contract.
     */
    function decreaseTotalSupply(uint amount) external;

    /**
     * @dev An admin function that lets the ecosystem's organizers deposit the underlying token around which this DMMA
     *      wraps to this contract. This is used to replenish liquidity and after interest payouts are made from the
     *      real-world assets.
     */
    function depositUnderlying(uint underlyingAmount) external returns (bool);

    /**
     * @dev An admin function that lets the ecosystem's organizers withdraw the underlying token around which this DMMA
     *      wraps from this contract. This is used to withdraw deposited tokens, to be allocated to real-world assets
     *      that produce income streams and can cover interest payments.
     */
    function withdrawUnderlying(uint underlyingAmount) external returns (bool);

    /**
      * @dev The timestamp at which the exchange rate was last updated.
      */
    function exchangeRateLastUpdatedTimestamp() external view returns (uint);

    /**
      * @dev The timestamp at which the exchange rate was last updated.
      */
    function exchangeRateLastUpdatedBlockNumber() external view returns (uint);

    /**
     * @dev The exchange rate from underlying to DMM. Invert this number to go from DMM to underlying. This number
     *      has 18 decimals.
     */
    function getCurrentExchangeRate() external view returns (uint);

    /**
     * @dev The current nonce of the provided `owner`. This `owner` should be the signer for any gasless transactions.
     */
    function nonceOf(address owner) external view returns (uint);

    /**
     * @dev Transfers the token around which this DMMA wraps from msg.sender to the DMMA contract. Then, sends the
     *      corresponding amount of DMM to the msg.sender. Note, this call reverts with INSUFFICIENT_DMM_LIQUIDITY if
     *      there is not enough DMM available to be minted.
     *
     * @param amount The amount of underlying to send to this DMMA for conversion to DMM.
     * @return The amount of DMM minted.
     */
    function mint(uint amount) external returns (uint);

    /**
     * @dev Transfers the token around which this DMMA wraps from sender to the DMMA contract. Then, sends the
     *      corresponding amount of DMM to recipient. Note, an allowance must be set for sender for the underlying
     *      token that is at least of size `amount` / `exchangeRate`. This call reverts with INSUFFICIENT_DMM_LIQUIDITY
     *      if there is not enough DMM available to be minted. See #MINT_TYPE_HASH. This function gives the `owner` the
     *      illusion of committing a gasless transaction, allowing a relayer to broadcast the transaction and
     *      potentially collect a fee for doing so.
     *
     * @param owner         The user that signed the off-chain message.
     * @param recipient     The address that will receive the newly-minted DMM tokens.
     * @param nonce         An auto-incrementing integer that prevents replay attacks. See #nonceOf(address) to get the
     *                      owner's current nonce.
     * @param expiry        The timestamp, in unix seconds, at which the signed off-chain message expires. A value of 0
     *                      means there is no expiration.
     * @param amount        The amount of underlying that should be minted by `owner` and sent to `recipient`.
     * @param feeAmount     The amount of DMM to be sent to feeRecipient for sending this transaction on behalf of
     *                      owner. Can be 0, which means the user won't be charged a fee. Must be <= `amount`.
     * @param feeRecipient  The address that should receive the fee. A value of 0x0 will send the fees to `msg.sender`.
     *                      Note, no fees are sent if the feeAmount is 0, regardless of what feeRecipient is.
     * @param v             The ECDSA V parameter.
     * @param r             The ECDSA R parameter.
     * @param s             The ECDSA S parameter.
     * @return  The amount of DMM minted, minus the fees paid. To get the total amount minted, add the `feeAmount` to
     *          the returned amount from this function call.
     */
    function mintFromGaslessRequest(
        address owner,
        address recipient,
        uint nonce,
        uint expiry,
        uint amount,
        uint feeAmount,
        address feeRecipient,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint);

    /**
     * @dev Transfers DMM from msg.sender to this DMMA contract. Then, sends the corresponding amount of token around
     *      which this DMMA wraps to the msg.sender. Note, this call reverts with INSUFFICIENT_UNDERLYING_LIQUIDITY if
     *      there is not enough DMM available to be redeemed.
     *
     * @param amount    The amount of DMM to be transferred from msg.sender to this DMMA.
     * @return          The amount of underlying redeemed.
     */
    function redeem(uint amount) external returns (uint);

    /**
     * @dev Transfers DMM from `owner` to the DMMA contract. Then, sends the corresponding amount of token around which
     *      this DMMA wraps to `recipient`. Note, an allowance must be set for sender for the underlying
     *      token that is at least of size `amount`. This call reverts with INSUFFICIENT_UNDERLYING_LIQUIDITY
     *      if there is not enough underlying available to be redeemed. See #REDEEM_TYPE_HASH. This function gives the
     *      `owner` the illusion of committing a gasless transaction, allowing a relayer to broadcast the transaction
     *      and potentially collect a fee for doing so.
     *
     * @param owner         The user that signed the off-chain message.
     * @param recipient     The address that will receive the newly-redeemed DMM tokens.
     * @param nonce         An auto-incrementing integer that prevents replay attacks. See #nonceOf(address) to get the
     *                      owner's current nonce.
     * @param expiry        The timestamp, in unix seconds, at which the signed off-chain message expires. A value of 0
     *                      means there is no expiration.
     * @param amount        The amount of DMM that should be redeemed for `owner` and sent to `recipient`.
     * @param feeAmount     The amount of DMM to be sent to feeRecipient for sending this transaction on behalf of
     *                      owner. Can be 0, which means the user won't be charged a fee. Must be <= `amount`
     * @param feeRecipient  The address that should receive the fee. A value of 0x0 will send the fees to `msg.sender`.
     *                      Note, no fees are sent if the feeAmount is 0, regardless of what feeRecipient is.
     * @param v             The ECDSA V parameter.
     * @param r             The ECDSA R parameter.
     * @param s             The ECDSA S parameter.
     * @return  The amount of underlying redeemed.
     */
    function redeemFromGaslessRequest(
        address owner,
        address recipient,
        uint nonce,
        uint expiry,
        uint amount,
        uint feeAmount,
        address feeRecipient,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint);

    /**
     * @dev Sets an allowance for owner with spender using an offline-generated signature. This function allows a
     *      relayer to send the transaction, giving the owner the illusion of committing a gasless transaction. See
     *      #PERMIT_TYPEHASH.
     *
     * @param owner         The user that signed the off-chain message.
     * @param spender       The contract/wallet that can spend DMM tokens on behalf of owner.
     * @param nonce         An auto-incrementing integer that prevents replay attacks. See #nonceOf(address) to get the
     *                      owner's current nonce.
     * @param expiry        The timestamp, in unix seconds, at which the signed off-chain message expires. A value of 0
     *                      means there is no expiration.
     * @param allowed       True if the spender can spend funds on behalf of owner or false to revoke this privilege.
     * @param feeAmount     The amount of DMM to be sent to feeRecipient for sending this transaction on behalf of
     *                      owner. Can be 0, which means the user won't be charged a fee.
     * @param feeRecipient  The address that should receive the fee. A value of 0x0 will send the fees to `msg.sender`.
     *                      Note, no fees are sent if the feeAmount is 0, regardless of what feeRecipient is.
     * @param v             The ECDSA V parameter.
     * @param r             The ECDSA R parameter.
     * @param s             The ECDSA S parameter.
     */
    function permit(
        address owner,
        address spender,
        uint nonce,
        uint expiry,
        bool allowed,
        uint feeAmount,
        address feeRecipient,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Transfers DMM from the `owner` to `recipient` using an offline-generated signature. This function allows a
     *      relayer to send the transaction, giving the owner the illusion of committing a gasless transaction. See
     *      #TRANSFER_TYPEHASH. This function gives the `owner` the illusion of committing a gasless transaction,
     *      allowing a relayer to broadcast the transaction and potentially collect a fee for doing so.
     *
     * @param owner         The user that signed the off-chain message and originator of the transfer.
     * @param recipient     The address that will receive the transferred DMM tokens.
     * @param nonce         An auto-incrementing integer that prevents replay attacks. See #nonceOf(address) to get the
     *                      owner's current nonce.
     * @param expiry        The timestamp, in unix seconds, at which the signed off-chain message expires. A value of 0
     *                      means there is no expiration.
     * @param amount        The amount of DMM that should be transferred from `owner` and sent to `recipient`.
     * @param feeAmount     The amount of DMM to be sent to feeRecipient for sending this transaction on behalf of
     *                      owner. Can be 0, which means the user won't be charged a fee.
     * @param feeRecipient  The address that should receive the fee. A value of 0x0 will send the fees to `msg.sender`.
     *                      Note, no fees are sent if the feeAmount is 0, regardless of what feeRecipient is.
     * @param v             The ECDSA V parameter.
     * @param r             The ECDSA R parameter.
     * @param s             The ECDSA S parameter.
     * @return              True if the transfer was successful or false if it failed.
     */
    function transferFromGaslessRequest(
        address owner,
        address recipient,
        uint nonce,
        uint expiry,
        uint amount,
        uint feeAmount,
        address feeRecipient,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

}

// File: contracts/libs/DmmTokenLibrary.sol

pragma solidity ^0.5.0;




library DmmTokenLibrary {

    using SafeERC20 for IERC20;
    using SafeMath for uint;

    /*****************
     * Structs
     */

    struct Storage {
        uint exchangeRate;
        uint exchangeRateLastUpdatedTimestamp;
        uint exchangeRateLastUpdatedBlockNumber;
        mapping(address => uint) nonces;
    }

    /*****************
     * Events
     */

    event Mint(address indexed minter, address indexed recipient, uint amount);
    event Redeem(address indexed redeemer, address indexed recipient, uint amount);
    event FeeTransfer(address indexed owner, address indexed recipient, uint amount);

    event OffChainRequestValidated(address indexed owner, address indexed feeRecipient, uint nonce, uint expiry, uint feeAmount);

    /*****************
     * Public Constants
     */

    uint public constant INTEREST_RATE_BASE = 1e18;
    uint public constant SECONDS_IN_YEAR = 31536000; // 60 * 60 * 24 * 365

    /**********************
     * Public Functions
     */

    function amountToUnderlying(uint amount, uint exchangeRate, uint exchangeRateBaseRate) internal pure returns (uint) {
        return (amount.mul(exchangeRate)).div(exchangeRateBaseRate);
    }

    function underlyingToAmount(uint underlyingAmount, uint exchangeRate, uint exchangeRateBaseRate) internal pure returns (uint) {
        return (underlyingAmount.mul(exchangeRateBaseRate)).div(exchangeRate);
    }

    function accrueInterest(uint exchangeRate, uint interestRate, uint _seconds) internal pure returns (uint) {
        uint interestAccrued = INTEREST_RATE_BASE.add(((interestRate.mul(_seconds)).div(SECONDS_IN_YEAR)));
        return (exchangeRate.mul(interestAccrued)).div(INTEREST_RATE_BASE);
    }

    /***************************
     * Internal User Functions
     */

    function getCurrentExchangeRate(Storage storage _storage, uint interestRate) internal view returns (uint) {
        if (_storage.exchangeRateLastUpdatedTimestamp >= block.timestamp) {
            // The exchange rate has not changed yet
            return _storage.exchangeRate;
        } else {
            uint diffInSeconds = block.timestamp.sub(_storage.exchangeRateLastUpdatedTimestamp, "INVALID_BLOCK_TIMESTAMP");
            return accrueInterest(_storage.exchangeRate, interestRate, diffInSeconds);
        }
    }

    function updateExchangeRateIfNecessaryAndGet(IDmmToken token, Storage storage _storage) internal returns (uint) {
        uint previousExchangeRate = _storage.exchangeRate;
        uint dmmTokenInterestRate = token.controller().getInterestRateByDmmTokenAddress(address(token));
        uint currentExchangeRate = getCurrentExchangeRate(_storage, dmmTokenInterestRate);
        if (currentExchangeRate != previousExchangeRate) {
            _storage.exchangeRateLastUpdatedTimestamp = block.timestamp;
            _storage.exchangeRateLastUpdatedBlockNumber = block.number;
            _storage.exchangeRate = currentExchangeRate;
            return currentExchangeRate;
        } else {
            return currentExchangeRate;
        }
    }

    function validateOffChainMint(
        Storage storage _storage,
        bytes32 domainSeparator,
        bytes32 typeHash,
        address owner,
        address recipient,
        uint nonce,
        uint expiry,
        uint amount,
        uint feeAmount,
        address feeRecipient,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        bytes32 digest = keccak256(
            abi.encodePacked(
                "\x19\x01",
                domainSeparator,
                keccak256(abi.encode(typeHash, owner, recipient, nonce, expiry, amount, feeAmount, feeRecipient))
            )
        );

        require(owner != address(0), "CANNOT_MINT_FROM_ZERO_ADDRESS");
        require(recipient != address(0), "CANNOT_MINT_TO_ZERO_ADDRESS");
        validateOffChainRequest(_storage, digest, owner, nonce, expiry, feeAmount, feeRecipient, v, r, s);
    }

    function validateOffChainRedeem(
        Storage storage _storage,
        bytes32 domainSeparator,
        bytes32 typeHash,
        address owner,
        address recipient,
        uint nonce,
        uint expiry,
        uint amount,
        uint feeAmount,
        address feeRecipient,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        bytes32 digest = keccak256(
            abi.encodePacked(
                "\x19\x01",
                domainSeparator,
                keccak256(abi.encode(typeHash, owner, recipient, nonce, expiry, amount, feeAmount, feeRecipient))
            )
        );

        require(owner != address(0), "CANNOT_REDEEM_FROM_ZERO_ADDRESS");
        require(recipient != address(0), "CANNOT_REDEEM_TO_ZERO_ADDRESS");
        validateOffChainRequest(_storage, digest, owner, nonce, expiry, feeAmount, feeRecipient, v, r, s);
    }

    function validateOffChainPermit(
        Storage storage _storage,
        bytes32 domainSeparator,
        bytes32 typeHash,
        address owner,
        address spender,
        uint nonce,
        uint expiry,
        bool allowed,
        uint feeAmount,
        address feeRecipient,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        bytes32 digest = keccak256(
            abi.encodePacked(
                "\x19\x01",
                domainSeparator,
                keccak256(abi.encode(typeHash, owner, spender, nonce, expiry, allowed, feeAmount, feeRecipient))
            )
        );

        require(owner != address(0), "CANNOT_APPROVE_FROM_ZERO_ADDRESS");
        require(spender != address(0), "CANNOT_APPROVE_TO_ZERO_ADDRESS");
        validateOffChainRequest(_storage, digest, owner, nonce, expiry, feeAmount, feeRecipient, v, r, s);
    }

    function validateOffChainTransfer(
        Storage storage _storage,
        bytes32 domainSeparator,
        bytes32 typeHash,
        address owner,
        address recipient,
        uint nonce,
        uint expiry,
        uint amount,
        uint feeAmount,
        address feeRecipient,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        bytes32 digest = keccak256(
            abi.encodePacked(
                "\x19\x01",
                domainSeparator,
                keccak256(abi.encode(typeHash, owner, recipient, nonce, expiry, amount, feeAmount, feeRecipient))
            )
        );

        require(owner != address(0x0), "CANNOT_TRANSFER_FROM_ZERO_ADDRESS");
        require(recipient != address(0x0), "CANNOT_TRANSFER_TO_ZERO_ADDRESS");
        validateOffChainRequest(_storage, digest, owner, nonce, expiry, feeAmount, feeRecipient, v, r, s);
    }

    /***************************
     * Internal Admin Functions
     */

    function _depositUnderlying(IDmmToken token, address sender, uint underlyingAmount) internal returns (bool) {
        IERC20 underlyingToken = IERC20(token.controller().getUnderlyingTokenForDmm(address(token)));
        underlyingToken.safeTransferFrom(sender, address(token), underlyingAmount);
        return true;
    }

    function _withdrawUnderlying(IDmmToken token, address sender, uint underlyingAmount) internal returns (bool) {
        IERC20 underlyingToken = IERC20(token.controller().getUnderlyingTokenForDmm(address(token)));
        underlyingToken.safeTransfer(sender, underlyingAmount);
        return true;
    }

    /***************************
     * Private Functions
     */

    /**
     * @dev throws if the validation fails
     */
    function validateOffChainRequest(
        Storage storage _storage,
        bytes32 digest,
        address owner,
        uint nonce,
        uint expiry,
        uint feeAmount,
        address feeRecipient,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) private {
        uint expectedNonce = _storage.nonces[owner];

        require(owner == ecrecover(digest, v, r, s), "INVALID_SIGNATURE");
        require(expiry == 0 || now <= expiry, "REQUEST_EXPIRED");
        require(nonce == expectedNonce, "INVALID_NONCE");
        if (feeAmount > 0) {
            require(feeRecipient != address(0x0), "INVALID_FEE_ADDRESS");
        }

        emit OffChainRequestValidated(
            owner,
            feeRecipient,
            expectedNonce,
            expiry,
            feeAmount
        );
        _storage.nonces[owner] += 1;
    }

}

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

pragma solidity ^0.5.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 */
contract ReentrancyGuard {
    // counter to allow mutex lock with only one SSTORE operation
    uint256 private _guardCounter;

    constructor () internal {
        // The counter starts at one to prevent changing it from zero to a non-zero
        // value, which is a more expensive operation.
        _guardCounter = 1;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _guardCounter += 1;
        uint256 localCounter = _guardCounter;
        _;
        require(localCounter == _guardCounter, "ReentrancyGuard: reentrant call");
    }
}

// File: contracts/interfaces/IOwnable.sol

pragma solidity ^0.5.0;

interface IOwnable {

    function owner() external view returns (address);

}

// File: contracts/interfaces/IPausable.sol

pragma solidity ^0.5.0;

interface IPausable {

    function paused() external view returns (bool);

}

// File: contracts/utils/ERC20.sol

pragma solidity ^0.5.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 {ERC20Mintable}.
 *
 * 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, ReentrancyGuard, Ownable {

    using SafeMath for uint256;

    mapping(address => uint256) internal _balances;

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

    uint256 internal _totalSupply;

    constructor() public {}

    /********************
     * Modifiers
     */

    modifier whenNotPaused() {
        require(!IPausable(pausable()).paused(), "ECOSYSTEM_PAUSED");
        _;
    }

    /**
     * @dev Throws if `account` is blacklisted
     *
     * @param account The address to check
    */
    modifier notBlacklisted(address account) {
        require(Blacklistable(blacklistable()).isBlacklisted(account) == false, "BLACKLISTED");
        _;
    }

    /********************
     * Public Functions
     */

    function pausable() public view returns (address);

    function blacklistable() public view returns (Blacklistable);

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view 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
    )
    nonReentrant
    public returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

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

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(
        address spender,
        uint256 amount
    )
    public 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
    )
    nonReentrant
    public returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "TRANSFER_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
    )
    notBlacklisted(_msgSender())
    notBlacklisted(spender)
    public 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
    )
    notBlacklisted(_msgSender())
    notBlacklisted(spender)
    public returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ALLOWANCE_BELOW_ZERO"));
        return true;
    }

    /**************************
     * Internal Functions
     */

    /**
     * @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 {
        require(sender != address(0), "CANNOT_TRANSFER_FROM_ZERO_ADDRESS");
        require(recipient != address(0), "CANNOT_TRANSFER_TO_ZERO_ADDRESS");

        blacklistable().checkNotBlacklisted(_msgSender());
        blacklistable().checkNotBlacklisted(sender);
        blacklistable().checkNotBlacklisted(recipient);

        _balances[sender] = _balances[sender].sub(amount, "TRANSFER_EXCEEDS_BALANCE");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, 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 {
        require(owner != address(0), "CANNOT_APPROVE_FROM_ZERO_ADDRESS");
        require(spender != address(0), "CANNOT_APPROVE_TO_ZERO_ADDRESS");

        blacklistable().checkNotBlacklisted(_msgSender());
        blacklistable().checkNotBlacklisted(owner);
        blacklistable().checkNotBlacklisted(spender);

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, 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.
     */
    function mintToThisContract(uint256 amount) internal {
        address account = address(this);
        _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
    *
    * - `address(this)` must have at least `amount` tokens.
    */
    function burnFromThisContract(uint256 amount) internal {
        address account = address(this);
        _balances[account] = _balances[account].sub(amount, "BURN_EXCEEDS_BALANCE");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

}

// File: contracts/impl/DmmToken.sol

pragma solidity ^0.5.12;







contract DmmToken is ERC20, IDmmToken, CommonConstants {

    using SafeERC20 for IERC20;
    using SafeMath for uint;
    using DmmTokenLibrary for *;

    /***************************
     * Public Constant Fields
     */

    // bytes32 public constant PERMIT_TYPE_HASH = keccak256("Permit(address holder,address spender,uint256 nonce,uint256 expiry,bool allowed,uint256 feeAmount,address feeRecipient)");
    bytes32 public constant PERMIT_TYPE_HASH = 0x22fa96956322098f6fd394e06f1b7e0f6930565923f9ad3d20802e9a2eb58fb1;

    // bytes32 public constant TRANSFER_TYPE_HASH = keccak256("Transfer(address owner,address recipient,uint256 nonce,uint256 expiry,uint amount,uint256 feeAmount,address feeRecipient)");
    bytes32 public constant TRANSFER_TYPE_HASH = 0x25166116e36b48414096856a22ea40032193e38f65136c76738e306be6abd587;

    // bytes32 public constant MINT_TYPE_HASH = keccak256("Mint(address owner,address recipient,uint256 nonce,uint256 expiry,uint256 amount,uint256 feeAmount,address feeRecipient)");
    bytes32 public constant MINT_TYPE_HASH = 0x82e81310e0eab12a427992778464769ef831d801011489bc90ed3ef82f2cb3d1;

    // bytes32 public constant REDEEM_TYPE_HASH = keccak256("Redeem(address owner,address recipient,uint256 nonce,uint256 expiry,uint256 amount,uint256 feeAmount,address feeRecipient)");
    bytes32 public constant REDEEM_TYPE_HASH = 0x24e7162538bf7f86bd3180c9ee9f60f06db3bd66eb344ea3b00f69b84af5ddcf;

    /*****************
     * Public Fields
     */

    string public symbol;
    string public name;
    uint8 public decimals;
    uint public minMintAmount;
    uint public minRedeemAmount;

    IDmmController public controller;
    bytes32 public domainSeparator;

    /*****************
     * Private Fields
     */

    DmmTokenLibrary.Storage private _storage;

    constructor(
        string memory _symbol,
        string memory _name,
        uint8 _decimals,
        uint _minMintAmount,
        uint _minRedeemAmount,
        uint _totalSupply,
        address _controller
    ) public {
        symbol = _symbol;
        name = _name;
        decimals = _decimals;
        minMintAmount = _minMintAmount;
        minRedeemAmount = _minRedeemAmount;
        controller = IDmmController(_controller);

        uint256 chainId;
        assembly {chainId := chainid()}

        domainSeparator = keccak256(abi.encode(
                keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"),
                keccak256(bytes(name)),
                keccak256(bytes(/* version */ "1")),
                chainId,
                address(this)
            ));

        _storage = DmmTokenLibrary.Storage({
            exchangeRate : EXCHANGE_RATE_BASE_RATE,
            exchangeRateLastUpdatedTimestamp : block.timestamp,
            exchangeRateLastUpdatedBlockNumber : block.number
            });

        mintToThisContract(_totalSupply);
    }

    /********************
     * Modifiers
     */

    modifier isNotDisabled {
        require(controller.isMarketEnabledByDmmTokenAddress(address(this)), "MARKET_DISABLED");
        _;
    }

    /********************
     * Public Functions
     */

    function() payable external {
        revert("NO_DEFAULT_FUNCTION");
    }

    function pausable() public view returns (address) {
        return address(controller);
    }

    function blacklistable() public view returns (Blacklistable) {
        return controller.blacklistable();
    }

    function activeSupply() public view returns (uint) {
        return totalSupply().sub(balanceOf(address(this)));
    }

    function increaseTotalSupply(uint amount) public onlyOwner whenNotPaused {
        uint oldTotalSupply = _totalSupply;
        mintToThisContract(amount);
        emit TotalSupplyIncreased(oldTotalSupply, _totalSupply);
    }

    function decreaseTotalSupply(uint amount) public onlyOwner whenNotPaused {
        // If there's underflow, throw the specified error
        require(balanceOf(address(this)) >= amount, "TOO_MUCH_ACTIVE_SUPPLY");
        uint oldTotalSupply = _totalSupply;
        burnFromThisContract(amount);
        emit TotalSupplyDecreased(oldTotalSupply, _totalSupply);
    }

    function depositUnderlying(uint underlyingAmount) onlyOwner whenNotPaused public returns (bool) {
        return this._depositUnderlying(_msgSender(), underlyingAmount);
    }

    function withdrawUnderlying(uint underlyingAmount) onlyOwner whenNotPaused public returns (bool) {
        return this._withdrawUnderlying(_msgSender(), underlyingAmount);
    }

    function getCurrentExchangeRate() public view returns (uint) {
        return _storage.getCurrentExchangeRate(controller.getInterestRateByDmmTokenAddress(address(this)));
    }

    function exchangeRateLastUpdatedTimestamp() public view returns (uint) {
        return _storage.exchangeRateLastUpdatedTimestamp;
    }

    function exchangeRateLastUpdatedBlockNumber() public view returns (uint) {
        return _storage.exchangeRateLastUpdatedBlockNumber;
    }

    function nonceOf(address owner) public view returns (uint) {
        return _storage.nonces[owner];
    }

    function mint(
        uint underlyingAmount
    )
    whenNotPaused
    nonReentrant
    isNotDisabled
    public returns (uint) {
        return _mint(_msgSender(), _msgSender(), underlyingAmount);
    }

    function transferUnderlyingIn(address owner, uint underlyingAmount) internal {
        address underlyingToken = controller.getUnderlyingTokenForDmm(address(this));
        IERC20(underlyingToken).safeTransferFrom(owner, address(this), underlyingAmount);
    }

    function transferUnderlyingOut(address recipient, uint underlyingAmount) internal {
        address underlyingToken = controller.getUnderlyingTokenForDmm(address(this));
        IERC20(underlyingToken).transfer(recipient, underlyingAmount);
    }

    function mintFromGaslessRequest(
        address owner,
        address recipient,
        uint nonce,
        uint expiry,
        uint underlyingAmount,
        uint feeAmount,
        address feeRecipient,
        uint8 v,
        bytes32 r,
        bytes32 s
    )
    whenNotPaused
    nonReentrant
    isNotDisabled
    public returns (uint) {
        return _mintFromGaslessRequest(
            owner,
            recipient,
            nonce,
            expiry,
            underlyingAmount,
            feeAmount,
            feeRecipient,
            v,
            r,
            s
        );
    }

    function redeem(
        uint amount
    )
    whenNotPaused
    nonReentrant
    public returns (uint) {
        return _redeem(_msgSender(), _msgSender(), amount, /* shouldUseAllowance */ false);
    }

    function redeemFromGaslessRequest(
        address owner,
        address recipient,
        uint nonce,
        uint expiry,
        uint amount,
        uint feeAmount,
        address feeRecipient,
        uint8 v,
        bytes32 r,
        bytes32 s
    )
    whenNotPaused
    nonReentrant
    public returns (uint) {
        return _redeemFromGaslessRequest(
            owner,
            recipient,
            nonce,
            expiry,
            amount,
            feeAmount,
            feeRecipient,
            v,
            r,
            s
        );
    }

    function permit(
        address owner,
        address spender,
        uint nonce,
        uint expiry,
        bool allowed,
        uint feeAmount,
        address feeRecipient,
        uint8 v,
        bytes32 r,
        bytes32 s
    )
    whenNotPaused
    nonReentrant
    public {
        checkGaslessBlacklist(feeRecipient);

        _storage.validateOffChainPermit(domainSeparator, PERMIT_TYPE_HASH, owner, spender, nonce, expiry, allowed, feeAmount, feeRecipient, v, r, s);

        uint wad = allowed ? uint(- 1) : 0;
        _approve(owner, spender, wad);

        doFeeTransferForDmmIfNecessary(owner, feeRecipient, feeAmount);
    }

    function transferFromGaslessRequest(
        address owner,
        address recipient,
        uint nonce,
        uint expiry,
        uint amount,
        uint feeAmount,
        address feeRecipient,
        uint8 v,
        bytes32 r,
        bytes32 s
    )
    whenNotPaused
    nonReentrant
    public {
        checkGaslessBlacklist(feeRecipient);

        _storage.validateOffChainTransfer(domainSeparator, TRANSFER_TYPE_HASH, owner, recipient, nonce, expiry, amount, feeAmount, feeRecipient, v, r, s);

        uint amountLessFee = amount.sub(feeAmount, "FEE_TOO_LARGE");
        _transfer(owner, recipient, amountLessFee);
        doFeeTransferForDmmIfNecessary(owner, feeRecipient, feeAmount);
    }

    /************************************
     * Private & Internal Functions
     */

    function _mint(address owner, address recipient, uint underlyingAmount) internal returns (uint) {
        // No need to check if recipient or msgSender are blacklisted because `_transfer` checks it.
        blacklistable().checkNotBlacklisted(owner);

        uint currentExchangeRate = this.updateExchangeRateIfNecessaryAndGet(_storage);
        uint amount = underlyingAmount.underlyingToAmount(currentExchangeRate, EXCHANGE_RATE_BASE_RATE);

        require(balanceOf(address(this)) >= amount, "INSUFFICIENT_DMM_LIQUIDITY");

        // Transfer underlying to this contract
        transferUnderlyingIn(owner, underlyingAmount);

        // Transfer DMM to the recipient
        _transfer(address(this), recipient, amount);

        emit Mint(owner, recipient, amount);

        require(amount >= minMintAmount, "INSUFFICIENT_MINT_AMOUNT");

        return amount;
    }

    /**
     * @dev Note, right now all invocations of this function set `shouldUseAllowance` to `false`. Reason being, all
     *      calls are either done via explicit off-chain signatures (and therefore the owner and recipient are explicit;
     *      anyone can call the function), OR the msgSender is both the owner and recipient, in which case no allowance
     *      should be needed to redeem funds if the user is the spender of the same user's funds.
     */
    function _redeem(address owner, address recipient, uint amount, bool shouldUseAllowance) internal returns (uint) {
        // No need to check owner or msgSender for blacklist because `_transfer` covers them.
        blacklistable().checkNotBlacklisted(recipient);

        uint currentExchangeRate = this.updateExchangeRateIfNecessaryAndGet(_storage);
        uint underlyingAmount = amount.amountToUnderlying(currentExchangeRate, EXCHANGE_RATE_BASE_RATE);

        IERC20 underlyingToken = IERC20(this.controller().getUnderlyingTokenForDmm(address(this)));
        require(underlyingToken.balanceOf(address(this)) >= underlyingAmount, "INSUFFICIENT_UNDERLYING_LIQUIDITY");

        if (shouldUseAllowance) {
            uint newAllowance = allowance(owner, _msgSender()).sub(amount, "INSUFFICIENT_ALLOWANCE");
            _approve(owner, _msgSender(), newAllowance);
        }
        _transfer(owner, address(this), amount);

        // Transfer underlying to the recipient from this contract
        transferUnderlyingOut(recipient, underlyingAmount);

        emit Redeem(owner, recipient, amount);

        require(amount >= minRedeemAmount, "INSUFFICIENT_REDEEM_AMOUNT");

        return underlyingAmount;
    }

    function _mintFromGaslessRequest(
        address owner,
        address recipient,
        uint nonce,
        uint expiry,
        uint underlyingAmount,
        uint feeAmount,
        address feeRecipient,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal returns (uint) {
        checkGaslessBlacklist(feeRecipient);

        // To avoid stack too deep issues, splitting the call into 2 parts is essential.
        _storage.validateOffChainMint(domainSeparator, MINT_TYPE_HASH, owner, recipient, nonce, expiry, underlyingAmount, feeAmount, feeRecipient, v, r, s);

        // Initially, we mint to this contract so we can send handle the fees.
        // We don't delegate the call for transferring the underlying in, because gasless requests are designed to
        // allow any relayer to broadcast the user's cryptographically-secure message.
        uint amount = _mint(owner, address(this), underlyingAmount);
        require(amount >= feeAmount, "FEE_TOO_LARGE");

        uint amountLessFee = amount.sub(feeAmount);
        require(amountLessFee >= minMintAmount, "INSUFFICIENT_MINT_AMOUNT");

        _transfer(address(this), recipient, amountLessFee);

        doFeeTransferForDmmIfNecessary(address(this), feeRecipient, feeAmount);

        return amountLessFee;
    }

    function _redeemFromGaslessRequest(
        address owner,
        address recipient,
        uint nonce,
        uint expiry,
        uint amount,
        uint feeAmount,
        address feeRecipient,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal returns (uint) {
        checkGaslessBlacklist(feeRecipient);

        // To avoid stack too deep issues, splitting the call into 2 parts is essential.
        _storage.validateOffChainRedeem(domainSeparator, REDEEM_TYPE_HASH, owner, recipient, nonce, expiry, amount, feeAmount, feeRecipient, v, r, s);

        uint amountLessFee = amount.sub(feeAmount, "FEE_TOO_LARGE");
        require(amountLessFee >= minRedeemAmount, "INSUFFICIENT_REDEEM_AMOUNT");

        uint underlyingAmount = _redeem(owner, recipient, amountLessFee, /* shouldUseAllowance */ false);
        doFeeTransferForDmmIfNecessary(owner, feeRecipient, feeAmount);

        return underlyingAmount;
    }

    function checkGaslessBlacklist(address feeRecipient) private view {
        if (feeRecipient != address(0x0)) {
            blacklistable().checkNotBlacklisted(feeRecipient);
        }
    }

    function doFeeTransferForDmmIfNecessary(address owner, address feeRecipient, uint feeAmount) private {
        if (feeAmount > 0) {
            require(balanceOf(owner) >= feeAmount, "INSUFFICIENT_BALANCE_FOR_FEE");
            _transfer(owner, feeRecipient, feeAmount);
            emit FeeTransfer(owner, feeRecipient, feeAmount);
        }
    }

}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"uint8","name":"_decimals","type":"uint8"},{"internalType":"uint256","name":"_minMintAmount","type":"uint256"},{"internalType":"uint256","name":"_minRedeemAmount","type":"uint256"},{"internalType":"uint256","name":"_totalSupply","type":"uint256"},{"internalType":"address","name":"_controller","type":"address"}],"payable":false,"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":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"FeeTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"minter","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"feeRecipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"nonce","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"expiry","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"feeAmount","type":"uint256"}],"name":"OffChainRequestValidated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"redeemer","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Redeem","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldTotalSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newTotalSupply","type":"uint256"}],"name":"TotalSupplyDecreased","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldTotalSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newTotalSupply","type":"uint256"}],"name":"TotalSupplyIncreased","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"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"constant":true,"inputs":[],"name":"EXCHANGE_RATE_BASE_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"MINT_TYPE_HASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"PERMIT_TYPE_HASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"REDEEM_TYPE_HASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"TRANSFER_TYPE_HASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"activeSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"blacklistable","outputs":[{"internalType":"contract Blacklistable","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"controller","outputs":[{"internalType":"contract IDmmController","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"decreaseTotalSupply","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"underlyingAmount","type":"uint256"}],"name":"depositUnderlying","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"domainSeparator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"exchangeRateLastUpdatedBlockNumber","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"exchangeRateLastUpdatedTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getCurrentExchangeRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"increaseTotalSupply","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"minMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"minRedeemAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"underlyingAmount","type":"uint256"}],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint256","name":"underlyingAmount","type":"uint256"},{"internalType":"uint256","name":"feeAmount","type":"uint256"},{"internalType":"address","name":"feeRecipient","type":"address"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"mintFromGaslessRequest","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"pausable","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"bool","name":"allowed","type":"bool"},{"internalType":"uint256","name":"feeAmount","type":"uint256"},{"internalType":"address","name":"feeRecipient","type":"address"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"redeem","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"feeAmount","type":"uint256"},{"internalType":"address","name":"feeRecipient","type":"address"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"redeemFromGaslessRequest","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"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"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"feeAmount","type":"uint256"},{"internalType":"address","name":"feeRecipient","type":"address"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"transferFromGaslessRequest","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"underlyingAmount","type":"uint256"}],"name":"withdrawUnderlying","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"}]

Deployed Bytecode

0x6080604052600436106102465760003560e01c80637b8d665e11610139578063b9f5be41116100b6578063e55296f11161007a578063e55296f1146108d1578063ed2a2d64146108e6578063f2fde38b14610919578063f698da251461094c578063f77c479114610961578063fcb32d3f1461097657610246565b8063b9f5be4114610818578063babd701214610842578063c6786e0414610857578063db006a751461086c578063dd62ed3e1461089657610246565b806395d89b41116100fd57806395d89b41146106f4578063a0712d6814610709578063a457c2d714610733578063a9059cbb1461076c578063aad393cb146107a557610246565b80637b8d665e1461068b57806380d9fde6146106a05780638aeb7e6a146106b55780638da5cb5b146106ca5780638f32d59b146106df57610246565b806336775847116101c75780634e6c463c1161018b5780634e6c463c146105915780636e114511146105a657806370a08231146105d0578063715018a614610603578063788483081461061857610246565b806336775847146104a657806339509351146104bb5780633b2eff34146104f45780633ca967f3146105675780634d4bb1971461057c57610246565b80631071a2901161020e5780631071a290146103cd57806318160ddd146103f75780631d43cc981461040c57806323b872dd14610438578063313ce5671461047b57610246565b80630107f15b1461028957806301e9d757146102ba57806306fdde03146102e15780630912ae6d1461036b578063095ea7b314610380575b6040805162461bcd60e51b81526020600482015260136024820152722727afa222a320aaa62a2fa32aa721aa24a7a760691b604482015290519081900360640190fd5b34801561029557600080fd5b5061029e6109eb565b604080516001600160a01b039092168252519081900360200190f35b3480156102c657600080fd5b506102cf610a61565b60408051918252519081900360200190f35b3480156102ed57600080fd5b506102f6610a67565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610330578181015183820152602001610318565b50505050905090810190601f16801561035d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561037757600080fd5b506102cf610af5565b34801561038c57600080fd5b506103b9600480360360408110156103a357600080fd5b506001600160a01b038135169060200135610afb565b604080519115158252519081900360200190f35b3480156103d957600080fd5b506103b9600480360360208110156103f057600080fd5b5035610b19565b34801561040357600080fd5b506102cf610c2c565b34801561041857600080fd5b506104366004803603602081101561042f57600080fd5b5035610c32565b005b34801561044457600080fd5b506103b96004803603606081101561045b57600080fd5b506001600160a01b03813581169160208101359091169060400135610d78565b34801561048757600080fd5b50610490610e7e565b6040805160ff9092168252519081900360200190f35b3480156104b257600080fd5b5061029e610e87565b3480156104c757600080fd5b506103b9600480360360408110156104de57600080fd5b506001600160a01b038135169060200135610e96565b34801561050057600080fd5b50610436600480360361014081101561051857600080fd5b506001600160a01b038135811691602081013582169160408201359160608101359160808201359160a08101359160c0820135169060ff60e08201351690610100810135906101200135611090565b34801561057357600080fd5b506102cf61123b565b34801561058857600080fd5b506102cf6112cc565b34801561059d57600080fd5b506102cf6112f0565b3480156105b257600080fd5b50610436600480360360208110156105c957600080fd5b50356112f6565b3480156105dc57600080fd5b506102cf600480360360208110156105f357600080fd5b50356001600160a01b0316611492565b34801561060f57600080fd5b506104366114ad565b34801561062457600080fd5b506102cf600480360361014081101561063c57600080fd5b506001600160a01b038135811691602081013582169160408201359160608101359160808201359160a08101359160c0820135169060ff60e0820135169061010081013590610120013561153e565b34801561069757600080fd5b506102cf61171d565b3480156106ac57600080fd5b506102cf611741565b3480156106c157600080fd5b506102cf61174d565b3480156106d657600080fd5b5061029e611753565b3480156106eb57600080fd5b506103b9611762565b34801561070057600080fd5b506102f6611788565b34801561071557600080fd5b506102cf6004803603602081101561072c57600080fd5b50356117e3565b34801561073f57600080fd5b506103b96004803603604081101561075657600080fd5b506001600160a01b0381351690602001356119c0565b34801561077857600080fd5b506103b96004803603604081101561078f57600080fd5b506001600160a01b038135169060200135611bdd565b3480156107b157600080fd5b506102cf60048036036101408110156107c957600080fd5b506001600160a01b038135811691602081013582169160408201359160608101359160808201359160a08101359160c0820135169060ff60e08201351690610100810135906101200135611c48565b34801561082457600080fd5b506103b96004803603602081101561083b57600080fd5b5035611d18565b34801561084e57600080fd5b506102cf611e2b565b34801561086357600080fd5b506102cf611e4d565b34801561087857600080fd5b506102cf6004803603602081101561088f57600080fd5b5035611e71565b3480156108a257600080fd5b506102cf600480360360408110156108b957600080fd5b506001600160a01b0381358116916020013516611f4a565b3480156108dd57600080fd5b506102cf611f75565b3480156108f257600080fd5b506102cf6004803603602081101561090957600080fd5b50356001600160a01b0316611f99565b34801561092557600080fd5b506104366004803603602081101561093c57600080fd5b50356001600160a01b0316611fb4565b34801561095857600080fd5b506102cf612007565b34801561096d57600080fd5b5061029e61200d565b34801561098257600080fd5b50610436600480360361014081101561099a57600080fd5b506001600160a01b0381358116916020810135821691604082013591606081013591608082013515159160a08101359160c0820135169060ff60e0820135169061010081013590610120013561201c565b600a5460408051630107f15b60e01b815290516000926001600160a01b031691630107f15b916004808301926020929190829003018186803b158015610a3057600080fd5b505afa158015610a44573d6000803e3d6000fd5b505050506040513d6020811015610a5a57600080fd5b5051905090565b60085481565b6006805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610aed5780601f10610ac257610100808354040283529160200191610aed565b820191906000526020600020905b815481529060010190602001808311610ad057829003601f168201915b505050505081565b60095481565b6000610b0f610b08612140565b8484612144565b5060015b92915050565b6000610b23611762565b610b62576040805162461bcd60e51b81526020600482018190526024820152600080516020614514833981519152604482015290519081900360640190fd5b610b6a610e87565b6001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b158015610ba257600080fd5b505afa158015610bb6573d6000803e3d6000fd5b505050506040513d6020811015610bcc57600080fd5b505115610c13576040805162461bcd60e51b815260206004820152601060248201526f1150d3d4d654d5115357d4105554d15160821b604482015290519081900360640190fd5b610b13610c1e612140565b30908463ffffffff6123c216565b60045490565b610c3a611762565b610c79576040805162461bcd60e51b81526020600482018190526024820152600080516020614514833981519152604482015290519081900360640190fd5b610c81610e87565b6001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b158015610cb957600080fd5b505afa158015610ccd573d6000803e3d6000fd5b505050506040513d6020811015610ce357600080fd5b505115610d2a576040805162461bcd60e51b815260206004820152601060248201526f1150d3d4d654d5115357d4105554d15160821b604482015290519081900360640190fd5b600454610d36826124bc565b60045460408051838152602081019290925280517fc1ac195e725f242f1134867e84d50ce67bb3e701a818a7d220f5908177be82669281900390910190a15050565b60008054600101808255610d8d858585612555565b610e2e85610d99612140565b610e29866040518060400160405280601a81526020017f5452414e534645525f455843454544535f414c4c4f57414e4345000000000000815250600360008c6001600160a01b03166001600160a01b031681526020019081526020016000206000610e02612140565b6001600160a01b03168152602081019190915260400160002054919063ffffffff61284e16565b612144565b600191506000548114610e76576040805162461bcd60e51b815260206004820152601f602482015260008051602061448c833981519152604482015290519081900360640190fd5b509392505050565b60075460ff1681565b600a546001600160a01b031690565b6000610ea0612140565b610ea86109eb565b6001600160a01b031663fe575a87826040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015610efd57600080fd5b505afa158015610f11573d6000803e3d6000fd5b505050506040513d6020811015610f2757600080fd5b505115610f69576040805162461bcd60e51b815260206004820152600b60248201526a10931050d2d31254d5115160aa1b604482015290519081900360640190fd5b83610f726109eb565b6001600160a01b031663fe575a87826040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015610fc757600080fd5b505afa158015610fdb573d6000803e3d6000fd5b505050506040513d6020811015610ff157600080fd5b505115611033576040805162461bcd60e51b815260206004820152600b60248201526a10931050d2d31254d5115160aa1b604482015290519081900360640190fd5b61108561103e612140565b86610e29876003600061104f612140565b6001600160a01b03908116825260208083019390935260409182016000908120918e16815292529020549063ffffffff6128e516565b506001949350505050565b611098610e87565b6001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b1580156110d057600080fd5b505afa1580156110e4573d6000803e3d6000fd5b505050506040513d60208110156110fa57600080fd5b505115611141576040805162461bcd60e51b815260206004820152601060248201526f1150d3d4d654d5115357d4105554d15160821b604482015290519081900360640190fd5b600080546001019081905561115585612946565b600b5461119590600c907f25166116e36b48414096856a22ea40032193e38f65136c76738e306be6abd5878e8e8e8e8e8e8e8e8e8e63ffffffff6129cd16565b60006111d1876040518060400160405280600d81526020016c4645455f544f4f5f4c4152474560981b8152508a61284e9092919063ffffffff16565b90506111de8c8c83612555565b6111e98c8789612b70565b50600054811461122e576040805162461bcd60e51b815260206004820152601f602482015260008051602061448c833981519152604482015290519081900360640190fd5b5050505050505050505050565b600a546040805163af4b4cc560e01b815230600482015290516000926112c7926001600160a01b039091169163af4b4cc591602480820192602092909190829003018186803b15801561128d57600080fd5b505afa1580156112a1573d6000803e3d6000fd5b505050506040513d60208110156112b757600080fd5b5051600c9063ffffffff612c2f16565b905090565b7f22fa96956322098f6fd394e06f1b7e0f6930565923f9ad3d20802e9a2eb58fb181565b600d5490565b6112fe611762565b61133d576040805162461bcd60e51b81526020600482018190526024820152600080516020614514833981519152604482015290519081900360640190fd5b611345610e87565b6001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b15801561137d57600080fd5b505afa158015611391573d6000803e3d6000fd5b505050506040513d60208110156113a757600080fd5b5051156113ee576040805162461bcd60e51b815260206004820152601060248201526f1150d3d4d654d5115357d4105554d15160821b604482015290519081900360640190fd5b806113f830611492565b1015611444576040805162461bcd60e51b8152602060048201526016602482015275544f4f5f4d5543485f4143544956455f535550504c5960501b604482015290519081900360640190fd5b60045461145082612cad565b60045460408051838152602081019290925280517f2f445bbeb0f991d70c61742a5bd2bc2181186c4143ddcc04734e934dc856b3e19281900390910190a15050565b6001600160a01b031660009081526002602052604090205490565b6114b5611762565b6114f4576040805162461bcd60e51b81526020600482018190526024820152600080516020614514833981519152604482015290519081900360640190fd5b6001546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600180546001600160a01b0319169055565b6000611548610e87565b6001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b15801561158057600080fd5b505afa158015611594573d6000803e3d6000fd5b505050506040513d60208110156115aa57600080fd5b5051156115f1576040805162461bcd60e51b815260206004820152601060248201526f1150d3d4d654d5115357d4105554d15160821b604482015290519081900360640190fd5b6000805460010190819055600a5460408051634d38f74760e01b815230600482015290516001600160a01b0390921691634d38f74791602480820192602092909190829003018186803b15801561164757600080fd5b505afa15801561165b573d6000803e3d6000fd5b505050506040513d602081101561167157600080fd5b50516116b6576040805162461bcd60e51b815260206004820152600f60248201526e13505492d15517d11254d050931151608a1b604482015290519081900360640190fd5b6116c88c8c8c8c8c8c8c8c8c8c612d6f565b9150600054811461170e576040805162461bcd60e51b815260206004820152601f602482015260008051602061448c833981519152604482015290519081900360640190fd5b509a9950505050505050505050565b7f25166116e36b48414096856a22ea40032193e38f65136c76738e306be6abd58781565b670de0b6b3a764000081565b600e5490565b6001546001600160a01b031690565b6001546000906001600160a01b0316611779612140565b6001600160a01b031614905090565b6005805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610aed5780601f10610ac257610100808354040283529160200191610aed565b60006117ed610e87565b6001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b15801561182557600080fd5b505afa158015611839573d6000803e3d6000fd5b505050506040513d602081101561184f57600080fd5b505115611896576040805162461bcd60e51b815260206004820152601060248201526f1150d3d4d654d5115357d4105554d15160821b604482015290519081900360640190fd5b6000805460010190819055600a5460408051634d38f74760e01b815230600482015290516001600160a01b0390921691634d38f74791602480820192602092909190829003018186803b1580156118ec57600080fd5b505afa158015611900573d6000803e3d6000fd5b505050506040513d602081101561191657600080fd5b505161195b576040805162461bcd60e51b815260206004820152600f60248201526e13505492d15517d11254d050931151608a1b604482015290519081900360640190fd5b611974611966612140565b61196e612140565b85612e9a565b915060005481146119ba576040805162461bcd60e51b815260206004820152601f602482015260008051602061448c833981519152604482015290519081900360640190fd5b50919050565b60006119ca612140565b6119d26109eb565b6001600160a01b031663fe575a87826040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015611a2757600080fd5b505afa158015611a3b573d6000803e3d6000fd5b505050506040513d6020811015611a5157600080fd5b505115611a93576040805162461bcd60e51b815260206004820152600b60248201526a10931050d2d31254d5115160aa1b604482015290519081900360640190fd5b83611a9c6109eb565b6001600160a01b031663fe575a87826040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015611af157600080fd5b505afa158015611b05573d6000803e3d6000fd5b505050506040513d6020811015611b1b57600080fd5b505115611b5d576040805162461bcd60e51b815260206004820152600b60248201526a10931050d2d31254d5115160aa1b604482015290519081900360640190fd5b611085611b68612140565b86610e298760405180604001604052806014815260200173414c4c4f57414e43455f42454c4f575f5a45524f60601b81525060036000611ba6612140565b6001600160a01b03908116825260208083019390935260409182016000908120918f1681529252902054919063ffffffff61284e16565b60008054600101808255611bf9611bf2612140565b8585612555565b600191506000548114611c41576040805162461bcd60e51b815260206004820152601f602482015260008051602061448c833981519152604482015290519081900360640190fd5b5092915050565b6000611c52610e87565b6001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b158015611c8a57600080fd5b505afa158015611c9e573d6000803e3d6000fd5b505050506040513d6020811015611cb457600080fd5b505115611cfb576040805162461bcd60e51b815260206004820152601060248201526f1150d3d4d654d5115357d4105554d15160821b604482015290519081900360640190fd5b60008054600101908190556116c88c8c8c8c8c8c8c8c8c8c61305e565b6000611d22611762565b611d61576040805162461bcd60e51b81526020600482018190526024820152600080516020614514833981519152604482015290519081900360640190fd5b611d69610e87565b6001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b158015611da157600080fd5b505afa158015611db5573d6000803e3d6000fd5b505050506040513d6020811015611dcb57600080fd5b505115611e12576040805162461bcd60e51b815260206004820152601060248201526f1150d3d4d654d5115357d4105554d15160821b604482015290519081900360640190fd5b610b13611e1d612140565b30908463ffffffff61315a16565b60006112c7611e3930611492565b611e41610c2c565b9063ffffffff61325516565b7f82e81310e0eab12a427992778464769ef831d801011489bc90ed3ef82f2cb3d181565b6000611e7b610e87565b6001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b158015611eb357600080fd5b505afa158015611ec7573d6000803e3d6000fd5b505050506040513d6020811015611edd57600080fd5b505115611f24576040805162461bcd60e51b815260206004820152601060248201526f1150d3d4d654d5115357d4105554d15160821b604482015290519081900360640190fd5b6000805460010190819055611974611f3a612140565b611f42612140565b856000613297565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b7f24e7162538bf7f86bd3180c9ee9f60f06db3bd66eb344ea3b00f69b84af5ddcf81565b6001600160a01b03166000908152600f602052604090205490565b611fbc611762565b611ffb576040805162461bcd60e51b81526020600482018190526024820152600080516020614514833981519152604482015290519081900360640190fd5b61200481613603565b50565b600b5481565b600a546001600160a01b031681565b612024610e87565b6001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b15801561205c57600080fd5b505afa158015612070573d6000803e3d6000fd5b505050506040513d602081101561208657600080fd5b5051156120cd576040805162461bcd60e51b815260206004820152601060248201526f1150d3d4d654d5115357d4105554d15160821b604482015290519081900360640190fd5b60008054600101908190556120e185612946565b600b5461212190600c907f22fa96956322098f6fd394e06f1b7e0f6930565923f9ad3d20802e9a2eb58fb18e8e8e8e8e8e8e8e8e8e63ffffffff6136a416565b60008761212f576000612133565b6000195b90506111de8c8c83612144565b3390565b6001600160a01b03831661219f576040805162461bcd60e51b815260206004820181905260248201527f43414e4e4f545f415050524f56455f46524f4d5f5a45524f5f41444452455353604482015290519081900360640190fd5b6001600160a01b0382166121fa576040805162461bcd60e51b815260206004820152601e60248201527f43414e4e4f545f415050524f56455f544f5f5a45524f5f414444524553530000604482015290519081900360640190fd5b6122026109eb565b6001600160a01b03166391a9b1d2612218612140565b6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060006040518083038186803b15801561225e57600080fd5b505afa158015612272573d6000803e3d6000fd5b5050505061227e6109eb565b6001600160a01b03166391a9b1d2846040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060006040518083038186803b1580156122d357600080fd5b505afa1580156122e7573d6000803e3d6000fd5b505050506122f36109eb565b6001600160a01b03166391a9b1d2836040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060006040518083038186803b15801561234857600080fd5b505afa15801561235c573d6000803e3d6000fd5b505050506001600160a01b03838116600081815260036020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b600080846001600160a01b031663f77c47916040518163ffffffff1660e01b815260040160206040518083038186803b1580156123fe57600080fd5b505afa158015612412573d6000803e3d6000fd5b505050506040513d602081101561242857600080fd5b5051604080516330df135f60e21b81526001600160a01b0388811660048301529151919092169163c37c4d7c916024808301926020929190829003018186803b15801561247457600080fd5b505afa158015612488573d6000803e3d6000fd5b505050506040513d602081101561249e57600080fd5b505190506110856001600160a01b038216858563ffffffff61383f16565b60045430906124d1908363ffffffff6128e516565b6004556001600160a01b0381166000908152600260205260409020546124fd908363ffffffff6128e516565b6001600160a01b03821660008181526002602090815260408083209490945583518681529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b03831661259a5760405162461bcd60e51b815260040180806020018281038252602181526020018061455e6021913960400191505060405180910390fd5b6001600160a01b0382166125f5576040805162461bcd60e51b815260206004820152601f60248201527f43414e4e4f545f5452414e534645525f544f5f5a45524f5f4144445245535300604482015290519081900360640190fd5b6125fd6109eb565b6001600160a01b03166391a9b1d2612613612140565b6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060006040518083038186803b15801561265957600080fd5b505afa15801561266d573d6000803e3d6000fd5b505050506126796109eb565b6001600160a01b03166391a9b1d2846040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060006040518083038186803b1580156126ce57600080fd5b505afa1580156126e2573d6000803e3d6000fd5b505050506126ee6109eb565b6001600160a01b03166391a9b1d2836040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060006040518083038186803b15801561274357600080fd5b505afa158015612757573d6000803e3d6000fd5b5050604080518082018252601881527f5452414e534645525f455843454544535f42414c414e434500000000000000006020808301919091526001600160a01b0388166000908152600290915291909120546127bd93509150839063ffffffff61284e16565b6001600160a01b0380851660009081526002602052604080822093909355908416815220546127f2908263ffffffff6128e516565b6001600160a01b0380841660008181526002602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156128dd5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156128a257818101518382015260200161288a565b50505050905090810190601f1680156128cf5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008282018381101561293f576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b038116156120045761295d6109eb565b6001600160a01b03166391a9b1d2826040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060006040518083038186803b1580156129b257600080fd5b505afa1580156129c6573d6000803e3d6000fd5b5050505050565b60008c8c8c8c8c8c8c8c8c60405160200180898152602001886001600160a01b03166001600160a01b03168152602001876001600160a01b03166001600160a01b03168152602001868152602001858152602001848152602001838152602001826001600160a01b03166001600160a01b031681526020019850505050505050505060405160208183030381529060405280519060200120604051602001808061190160f01b8152506002018381526020018281526020019250505060405160208183030381529060405280519060200120905060006001600160a01b03168b6001600160a01b03161415612af35760405162461bcd60e51b815260040180806020018281038252602181526020018061455e6021913960400191505060405180910390fd5b6001600160a01b038a16612b4e576040805162461bcd60e51b815260206004820152601f60248201527f43414e4e4f545f5452414e534645525f544f5f5a45524f5f4144445245535300604482015290519081900360640190fd5b612b608e828d8c8c8b8b8b8b8b613891565b5050505050505050505050505050565b8015612c2a5780612b8084611492565b1015612bd3576040805162461bcd60e51b815260206004820152601c60248201527f494e53554646494349454e545f42414c414e43455f464f525f46454500000000604482015290519081900360640190fd5b612bde838383612555565b816001600160a01b0316836001600160a01b03167fccde774d895c5b17def8492294ac28f98828810b74de386b78559a17a3105765836040518082815260200191505060405180910390a35b505050565b600042836001015410612c4457508154610b13565b6000612c9484600101546040518060400160405280601781526020017f494e56414c49445f424c4f434b5f54494d455354414d500000000000000000008152504261284e9092919063ffffffff16565b9050612ca584600001548483613ad1565b915050610b13565b60408051808201825260148152734255524e5f455843454544535f42414c414e434560601b602080830191909152306000818152600290925292902054612cfb91849063ffffffff61284e16565b6001600160a01b038216600090815260026020526040902055600454612d27908363ffffffff61325516565b6004556040805183815290516000916001600160a01b038416917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6000612d7a85612946565b600b54612dba90600c907f82e81310e0eab12a427992778464769ef831d801011489bc90ed3ef82f2cb3d18e8e8e8e8e8e8e8e8e8e63ffffffff613b2e16565b6000612dc78c308a612e9a565b905086811015612e0e576040805162461bcd60e51b815260206004820152600d60248201526c4645455f544f4f5f4c4152474560981b604482015290519081900360640190fd5b6000612e20828963ffffffff61325516565b9050600854811015612e74576040805162461bcd60e51b8152602060048201526018602482015277125394d551919250d251539517d352539517d05353d5539560421b604482015290519081900360640190fd5b612e7f308d83612555565b612e8a30888a612b70565b9c9b505050505050505050505050565b6000612ea46109eb565b6001600160a01b03166391a9b1d2856040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060006040518083038186803b158015612ef957600080fd5b505afa158015612f0d573d6000803e3d6000fd5b5060009250612f279150309050600c63ffffffff613cc516565b90506000612f448483670de0b6b3a764000063ffffffff613de616565b905080612f5030611492565b1015612fa3576040805162461bcd60e51b815260206004820152601a60248201527f494e53554646494349454e545f444d4d5f4c4951554944495459000000000000604482015290519081900360640190fd5b612fad8685613e04565b612fb8308683612555565b846001600160a01b0316866001600160a01b03167fab8530f87dc9b59234c4623bf917212bb2536d647574c8e7e5da92c2ede0c9f8836040518082815260200191505060405180910390a3600854811015613055576040805162461bcd60e51b8152602060048201526018602482015277125394d551919250d251539517d352539517d05353d5539560421b604482015290519081900360640190fd5b95945050505050565b600061306985612946565b600b546130a990600c907f24e7162538bf7f86bd3180c9ee9f60f06db3bd66eb344ea3b00f69b84af5ddcf8e8e8e8e8e8e8e8e8e8e63ffffffff613e9816565b60006130e5876040518060400160405280600d81526020016c4645455f544f4f5f4c4152474560981b8152508a61284e9092919063ffffffff16565b905060095481101561313e576040805162461bcd60e51b815260206004820152601a60248201527f494e53554646494349454e545f52454445454d5f414d4f554e54000000000000604482015290519081900360640190fd5b600061314d8d8d846000613297565b9050612e8a8d888a612b70565b600080846001600160a01b031663f77c47916040518163ffffffff1660e01b815260040160206040518083038186803b15801561319657600080fd5b505afa1580156131aa573d6000803e3d6000fd5b505050506040513d60208110156131c057600080fd5b5051604080516330df135f60e21b81526001600160a01b0388811660048301529151919092169163c37c4d7c916024808301926020929190829003018186803b15801561320c57600080fd5b505afa158015613220573d6000803e3d6000fd5b505050506040513d602081101561323657600080fd5b505190506110856001600160a01b03821685878663ffffffff61402f16565b600061293f83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061284e565b60006132a16109eb565b6001600160a01b03166391a9b1d2856040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060006040518083038186803b1580156132f657600080fd5b505afa15801561330a573d6000803e3d6000fd5b50600092506133249150309050600c63ffffffff613cc516565b905060006133418583670de0b6b3a764000063ffffffff61408f16565b90506000306001600160a01b031663f77c47916040518163ffffffff1660e01b815260040160206040518083038186803b15801561337e57600080fd5b505afa158015613392573d6000803e3d6000fd5b505050506040513d60208110156133a857600080fd5b5051604080516330df135f60e21b815230600482015290516001600160a01b039092169163c37c4d7c91602480820192602092909190829003018186803b1580156133f257600080fd5b505afa158015613406573d6000803e3d6000fd5b505050506040513d602081101561341c57600080fd5b5051604080516370a0823160e01b8152306004820152905191925083916001600160a01b038416916370a08231916024808301926020929190829003018186803b15801561346957600080fd5b505afa15801561347d573d6000803e3d6000fd5b505050506040513d602081101561349357600080fd5b505110156134d25760405162461bcd60e51b81526004018080602001828103825260218152602001806144d26021913960400191505060405180910390fd5b841561354157600061352b8760405180604001604052806016815260200175494e53554646494349454e545f414c4c4f57414e434560501b81525061351e8c613519612140565b611f4a565b919063ffffffff61284e16565b905061353f89613539612140565b83612144565b505b61354c883088612555565b61355687836140a5565b866001600160a01b0316886001600160a01b03167fd12200efa34901b99367694174c3b0d32c99585fdf37c7c26892136ddd0836d9886040518082815260200191505060405180910390a36009548610156135f8576040805162461bcd60e51b815260206004820152601a60248201527f494e53554646494349454e545f52454445454d5f414d4f554e54000000000000604482015290519081900360640190fd5b509695505050505050565b6001600160a01b0381166136485760405162461bcd60e51b81526004018080602001828103825260268152602001806144ac6026913960400191505060405180910390fd5b6001546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600180546001600160a01b0319166001600160a01b0392909216919091179055565b60008c8c8c8c8c8c8c8c8c60405160200180898152602001886001600160a01b03166001600160a01b03168152602001876001600160a01b03166001600160a01b0316815260200186815260200185815260200184151515158152602001838152602001826001600160a01b03166001600160a01b031681526020019850505050505050505060405160208183030381529060405280519060200120604051602001808061190160f01b8152506002018381526020018281526020019250505060405160208183030381529060405280519060200120905060006001600160a01b03168b6001600160a01b031614156137e4576040805162461bcd60e51b815260206004820181905260248201527f43414e4e4f545f415050524f56455f46524f4d5f5a45524f5f41444452455353604482015290519081900360640190fd5b6001600160a01b038a16612b4e576040805162461bcd60e51b815260206004820152601e60248201527f43414e4e4f545f415050524f56455f544f5f5a45524f5f414444524553530000604482015290519081900360640190fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052612c2a90849061419c565b6001600160a01b038816600090815260038b01602090815260408083205481519384528383018083528d905260ff87168483015260608401869052608084018590529051909260019260a0808301939192601f198301929081900390910190855afa158015613904573d6000803e3d6000fd5b505050602060405103516001600160a01b0316896001600160a01b031614613967576040805162461bcd60e51b8152602060048201526011602482015270494e56414c49445f5349474e415455524560781b604482015290519081900360640190fd5b8615806139745750864211155b6139b7576040805162461bcd60e51b815260206004820152600f60248201526e149154555154d517d1561412549151608a1b604482015290519081900360640190fd5b8088146139fb576040805162461bcd60e51b815260206004820152600d60248201526c494e56414c49445f4e4f4e434560981b604482015290519081900360640190fd5b8515613a52576001600160a01b038516613a52576040805162461bcd60e51b8152602060048201526013602482015272494e56414c49445f4645455f4144445245535360681b604482015290519081900360640190fd5b604080518281526020810189905280820188905290516001600160a01b0380881692908c16917fef26afcebac865f663cc730fa63414a504bfbee53bcbeeaa4407d040b8c319639181900360600190a35050506001600160a01b0390951660009081526003909701602052505060409094208054600101905550505050565b600080613b10613afb6301e13380613aef878763ffffffff61435416565b9063ffffffff6143ad16565b670de0b6b3a76400009063ffffffff6128e516565b9050613055670de0b6b3a7640000613aef878463ffffffff61435416565b60008c8c8c8c8c8c8c8c8c60405160200180898152602001886001600160a01b03166001600160a01b03168152602001876001600160a01b03166001600160a01b03168152602001868152602001858152602001848152602001838152602001826001600160a01b03166001600160a01b031681526020019850505050505050505060405160208183030381529060405280519060200120604051602001808061190160f01b8152506002018381526020018281526020019250505060405160208183030381529060405280519060200120905060006001600160a01b03168b6001600160a01b03161415613c6a576040805162461bcd60e51b815260206004820152601d60248201527f43414e4e4f545f4d494e545f46524f4d5f5a45524f5f41444452455353000000604482015290519081900360640190fd5b6001600160a01b038a16612b4e576040805162461bcd60e51b815260206004820152601b60248201527f43414e4e4f545f4d494e545f544f5f5a45524f5f414444524553530000000000604482015290519081900360640190fd5b600080826000015490506000846001600160a01b031663f77c47916040518163ffffffff1660e01b815260040160206040518083038186803b158015613d0a57600080fd5b505afa158015613d1e573d6000803e3d6000fd5b505050506040513d6020811015613d3457600080fd5b50516040805163af4b4cc560e01b81526001600160a01b0388811660048301529151919092169163af4b4cc5916024808301926020929190829003018186803b158015613d8057600080fd5b505afa158015613d94573d6000803e3d6000fd5b505050506040513d6020811015613daa57600080fd5b505190506000613dba8583612c2f565b9050828114613ddc574260018601554360028601558085559250610b13915050565b9250610b13915050565b6000613dfc83613aef868563ffffffff61435416565b949350505050565b600a54604080516330df135f60e21b815230600482015290516000926001600160a01b03169163c37c4d7c916024808301926020929190829003018186803b158015613e4f57600080fd5b505afa158015613e63573d6000803e3d6000fd5b505050506040513d6020811015613e7957600080fd5b50519050612c2a6001600160a01b03821684308563ffffffff61402f16565b60008c8c8c8c8c8c8c8c8c60405160200180898152602001886001600160a01b03166001600160a01b03168152602001876001600160a01b03166001600160a01b03168152602001868152602001858152602001848152602001838152602001826001600160a01b03166001600160a01b031681526020019850505050505050505060405160208183030381529060405280519060200120604051602001808061190160f01b8152506002018381526020018281526020019250505060405160208183030381529060405280519060200120905060006001600160a01b03168b6001600160a01b03161415613fd4576040805162461bcd60e51b815260206004820152601f60248201527f43414e4e4f545f52454445454d5f46524f4d5f5a45524f5f4144445245535300604482015290519081900360640190fd5b6001600160a01b038a16612b4e576040805162461bcd60e51b815260206004820152601d60248201527f43414e4e4f545f52454445454d5f544f5f5a45524f5f41444452455353000000604482015290519081900360640190fd5b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261408990859061419c565b50505050565b6000613dfc82613aef868663ffffffff61435416565b600a54604080516330df135f60e21b815230600482015290516000926001600160a01b03169163c37c4d7c916024808301926020929190829003018186803b1580156140f057600080fd5b505afa158015614104573d6000803e3d6000fd5b505050506040513d602081101561411a57600080fd5b50516040805163a9059cbb60e01b81526001600160a01b0386811660048301526024820186905291519293509083169163a9059cbb916044808201926020929091908290030181600087803b15801561417257600080fd5b505af1158015614186573d6000803e3d6000fd5b505050506040513d60208110156129c657600080fd5b6141ae826001600160a01b03166143ef565b6141ff576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b6020831061423d5780518252601f19909201916020918201910161421e565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461429f576040519150601f19603f3d011682016040523d82523d6000602084013e6142a4565b606091505b5091509150816142fb576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b8051156140895780806020019051602081101561431757600080fd5b50516140895760405162461bcd60e51b815260040180806020018281038252602a815260200180614534602a913960400191505060405180910390fd5b60008261436357506000610b13565b8282028284828161437057fe5b041461293f5760405162461bcd60e51b81526004018080602001828103825260218152602001806144f36021913960400191505060405180910390fd5b600061293f83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250614426565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708115801590613dfc5750141592915050565b600081836144755760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156128a257818101518382015260200161288a565b50600083858161448157fe5b049594505050505056fe5265656e7472616e637947756172643a207265656e7472616e742063616c6c004f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373494e53554646494349454e545f554e4445524c59494e475f4c4951554944495459536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656443414e4e4f545f5452414e534645525f46524f4d5f5a45524f5f41444452455353a265627a7a7231582007307dcde4ef0149f21ecb1293b870dce5c589056296a1481a2d14408f685e5564736f6c634300050d0032

Deployed Bytecode Sourcemap

66527:14537:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;69842:29;;;-1:-1:-1;;;69842:29:0;;;;;;;;;;;;-1:-1:-1;;;69842:29:0;;;;;;;;;;;;;;69990:113;;8:9:-1;5:2;;;30:1;27;20:12;5:2;69990:113:0;;;:::i;:::-;;;;-1:-1:-1;;;;;69990:113:0;;;;;;;;;;;;;;68121:25;;8:9:-1;5:2;;;30:1;27;20:12;5:2;68121:25:0;;;:::i;:::-;;;;;;;;;;;;;;;;68068:18;;8:9:-1;5:2;;;30:1;27;20:12;5:2;68068:18: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;68068:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;68153:27;;8:9:-1;5:2;;;30:1;27;20:12;5:2;68153:27:0;;;:::i;60718:182::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;60718:182:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;60718:182:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;71040:179;;8:9:-1;5:2;;;30:1;27;20:12;5:2;71040:179:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;71040:179:0;;:::i;59691:91::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;59691:91:0;;;:::i;70239:229::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;70239:229:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;70239:229:0;;:::i;:::-;;61372:347;;8:9:-1;5:2;;;30:1;27;20:12;5:2;61372:347:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;61372:347:0;;;;;;;;;;;;;;;;;:::i;68093:21::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;68093:21:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;69887:95;;8:9:-1;5:2;;;30:1;27;20:12;5:2;69887:95:0;;;:::i;62128:303::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;62128:303:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;62128:303:0;;;;;;;;:::i;74727:733::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;74727:733:0;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;;74727:733:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;71227:178::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;71227:178:0;;;:::i;66951:109::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;66951:109:0;;;:::i;71413:138::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;71413:138:0;;;:::i;70476:371::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;70476:371:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;70476:371:0;;:::i;59845:110::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;59845:110:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;59845:110:0;-1:-1:-1;;;;;59845:110:0;;:::i;19108:140::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;19108:140:0;;;:::i;72573:638::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;72573:638:0;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;;72573:638:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;67258:111::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;67258:111:0;;;:::i;15453:51::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;15453:51:0;;;:::i;71559:142::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;71559:142:0;;;:::i;18297:79::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;18297:79:0;;;:::i;18663:94::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;18663:94:0;;;:::i;68041:20::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;68041:20:0;;;:::i;71824:213::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;71824:213:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;71824:213:0;;:::i;62934:337::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;62934:337:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;62934:337:0;;;;;;;;:::i;60168:206::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;60168:206:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;60168:206:0;;;;;;;;:::i;73437:603::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;73437:603:0;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;;73437:603:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;70855:177::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;70855:177:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;70855:177:0;;:::i;70111:120::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;70111:120:0;;;:::i;67562:107::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;67562:107:0;;;:::i;73219:210::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;73219:210:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;73219:210:0;;:::i;60437:134::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;60437:134:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;60437:134:0;;;;;;;;;;:::i;67866:109::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;67866:109:0;;;:::i;71709:107::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;71709:107:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;71709:107:0;-1:-1:-1;;;;;71709:107:0;;:::i;19403:109::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;19403:109:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;19403:109:0;-1:-1:-1;;;;;19403:109:0;;:::i;68228:30::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;68228:30:0;;;:::i;68189:32::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;68189:32:0;;;:::i;74048:671::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;74048:671:0;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;;74048:671:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;69990:113::-;70069:10;;:26;;;-1:-1:-1;;;70069:26:0;;;;70036:13;;-1:-1:-1;;;;;70069:10:0;;:24;;:26;;;;;;;;;;;;;;:10;:26;;;5:2:-1;;;;30:1;27;20:12;5:2;70069:26:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;70069:26:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;70069:26:0;;-1:-1:-1;69990:113:0;:::o;68121:25::-;;;;:::o;68068:18::-;;;;;;;;;;;;;;;-1:-1:-1;;68068:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;68153:27::-;;;;:::o;60718:182::-;60814:4;60831:39;60840:12;:10;:12::i;:::-;60854:7;60863:6;60831:8;:39::i;:::-;-1:-1:-1;60888:4:0;60718:182;;;;;:::o;71040:179::-;71131:4;18509:9;:7;:9::i;:::-;18501:54;;;;;-1:-1:-1;;;18501:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;18501:54:0;;;;;;;;;;;;;;;59092:10;:8;:10::i;:::-;-1:-1:-1;;;;;59082:28:0;;:30;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;59082:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;59082:30:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;59082:30:0;59081:31;59073:60;;;;;-1:-1:-1;;;59073:60:0;;;;;;;;;;;;-1:-1:-1;;;59073:60:0;;;;;;;;;;;;;;;71155:56;71180:12;:10;:12::i;:::-;71155:4;;71194:16;71155:56;:24;:56;:::i;59691:91::-;59762:12;;59691:91;:::o;70239:229::-;18509:9;:7;:9::i;:::-;18501:54;;;;;-1:-1:-1;;;18501:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;18501:54:0;;;;;;;;;;;;;;;59092:10;:8;:10::i;:::-;-1:-1:-1;;;;;59082:28:0;;:30;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;59082:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;59082:30:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;59082:30:0;59081:31;59073:60;;;;;-1:-1:-1;;;59073:60:0;;;;;;;;;;;;-1:-1:-1;;;59073:60:0;;;;;;;;;;;;;;;70345:12;;70368:26;70387:6;70368:18;:26::i;:::-;70447:12;;70410:50;;;;;;;;;;;;;;;;;;;;;;;;;59144:1;70239:229;:::o;61372:347::-;61518:4;56924:18;;56941:1;56924:18;;;;61535:36;61545:6;61553:9;61564:6;61535:9;:36::i;:::-;61582:107;61591:6;61599:12;:10;:12::i;:::-;61613:75;61651:6;61613:75;;;;;;;;;;;;;;;;;:11;:19;61625:6;-1:-1:-1;;;;;61613:19:0;-1:-1:-1;;;;;61613:19:0;;;;;;;;;;;;:33;61633:12;:10;:12::i;:::-;-1:-1:-1;;;;;61613:33:0;;;;;;;;;;;;-1:-1:-1;61613:33:0;;;:75;;:37;:75;:::i;:::-;61582:8;:107::i;:::-;61707:4;61700:11;;57036:13;;57020:12;:29;57012:73;;;;;-1:-1:-1;;;57012:73:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;57012:73:0;;;;;;;;;;;;;;;61372:347;;;;;;:::o;68093:21::-;;;;;;:::o;69887:95::-;69963:10;;-1:-1:-1;;;;;69963:10:0;69887:95;:::o;62128:303::-;62301:4;62237:12;:10;:12::i;:::-;59352:15;:13;:15::i;:::-;-1:-1:-1;;;;;59338:44:0;;59383:7;59338:53;;;;;;;;;;;;;-1:-1:-1;;;;;59338:53:0;-1:-1:-1;;;;;59338:53:0;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;59338:53:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;59338:53:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;59338:53:0;:62;59330:86;;;;;-1:-1:-1;;;59330:86:0;;;;;;;;;;;;-1:-1:-1;;;59330:86:0;;;;;;;;;;;;;;;62271:7;59352:15;:13;:15::i;:::-;-1:-1:-1;;;;;59338:44:0;;59383:7;59338:53;;;;;;;;;;;;;-1:-1:-1;;;;;59338:53:0;-1:-1:-1;;;;;59338:53:0;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;59338:53:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;59338:53:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;59338:53:0;:62;59330:86;;;;;-1:-1:-1;;;59330:86:0;;;;;;;;;;;;-1:-1:-1;;;59330:86:0;;;;;;;;;;;;;;;62318:83;62327:12;:10;:12::i;:::-;62341:7;62350:50;62389:10;62350:11;:25;62362:12;:10;:12::i;:::-;-1:-1:-1;;;;;62350:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;62350:25:0;;;:34;;;;;;;;;;;:50;:38;:50;:::i;62318:83::-;-1:-1:-1;62419:4:0;;62128:303;-1:-1:-1;;;;62128:303:0:o;74727:733::-;59092:10;:8;:10::i;:::-;-1:-1:-1;;;;;59082:28:0;;:30;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;59082:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;59082:30:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;59082:30:0;59081:31;59073:60;;;;;-1:-1:-1;;;59073:60:0;;;;;;;;;;;;-1:-1:-1;;;59073:60:0;;;;;;;;;;;;;;;56924:13;:18;;56941:1;56924:18;;;;;75061:35;75083:12;75061:21;:35::i;:::-;75143:15;;75109:145;;:8;;67303:66;75180:5;75187:9;75198:5;75205:6;75213;75221:9;75232:12;75246:1;75249;75252;75109:145;:33;:145;:::i;:::-;75267:18;75288:38;75299:9;75288:38;;;;;;;;;;;;;-1:-1:-1;;;75288:38:0;;;:6;:10;;:38;;;;;:::i;:::-;75267:59;;75337:42;75347:5;75354:9;75365:13;75337:9;:42::i;:::-;75390:62;75421:5;75428:12;75442:9;75390:30;:62::i;:::-;57000:1;57036:13;;57020:12;:29;57012:73;;;;;-1:-1:-1;;;57012:73:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;57012:73:0;;;;;;;;;;;;;;;59144:1;74727:733;;;;;;;;;;:::o;71227:178::-;71338:10;;:58;;;-1:-1:-1;;;71338:58:0;;71390:4;71338:58;;;;;;71282:4;;71306:91;;-1:-1:-1;;;;;71338:10:0;;;;:43;;:58;;;;;;;;;;;;;;;:10;:58;;;5:2:-1;;;;30:1;27;20:12;5:2;71338:58:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;71338:58:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;71338:58:0;71306:8;;:91;:31;:91;:::i;:::-;71299:98;;71227:178;:::o;66951:109::-;66994:66;66951:109;:::o;71413:138::-;71502:41;;71413:138;:::o;70476:371::-;18509:9;:7;:9::i;:::-;18501:54;;;;;-1:-1:-1;;;18501:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;18501:54:0;;;;;;;;;;;;;;;59092:10;:8;:10::i;:::-;-1:-1:-1;;;;;59082:28:0;;:30;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;59082:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;59082:30:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;59082:30:0;59081:31;59073:60;;;;;-1:-1:-1;;;59073:60:0;;;;;;;;;;;;-1:-1:-1;;;59073:60:0;;;;;;;;;;;;;;;70656:6;70628:24;70646:4;70628:9;:24::i;:::-;:34;;70620:69;;;;;-1:-1:-1;;;70620:69:0;;;;;;;;;;;;-1:-1:-1;;;70620:69:0;;;;;;;;;;;;;;;70722:12;;70745:28;70766:6;70745:20;:28::i;:::-;70826:12;;70789:50;;;;;;;;;;;;;;;;;;;;;;;;;59144:1;70476:371;:::o;59845:110::-;-1:-1:-1;;;;;59929:18:0;59902:7;59929:18;;;:9;:18;;;;;;;59845:110::o;19108:140::-;18509:9;:7;:9::i;:::-;18501:54;;;;;-1:-1:-1;;;18501:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;18501:54:0;;;;;;;;;;;;;;;19191:6;;19170:40;;19207:1;;-1:-1:-1;;;;;19191:6:0;;19170:40;;19207:1;;19170:40;19221:6;:19;;-1:-1:-1;;;;;;19221:19:0;;;19108:140::o;72573:638::-;72930:4;59092:10;:8;:10::i;:::-;-1:-1:-1;;;;;59082:28:0;;:30;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;59082:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;59082:30:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;59082:30:0;59081:31;59073:60;;;;;-1:-1:-1;;;59073:60:0;;;;;;;;;;;;-1:-1:-1;;;59073:60:0;;;;;;;;;;;;;;;56924:13;:18;;56941:1;56924:18;;;;;69634:10;;:58;;;-1:-1:-1;;;69634:58:0;;69686:4;69634:58;;;;;;-1:-1:-1;;;;;69634:10:0;;;;:43;;:58;;;;;;;;;;;;;;;:10;:58;;;5:2:-1;;;;30:1;27;20:12;5:2;69634:58:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;69634:58:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;69634:58:0;69626:86;;;;;-1:-1:-1;;;69626:86:0;;;;;;;;;;;;-1:-1:-1;;;69626:86:0;;;;;;;;;;;;;;;72954:249;72992:5;73012:9;73036:5;73056:6;73077:16;73108:9;73132:12;73159:1;73175;73191;72954:23;:249::i;:::-;72947:256;;57036:13;;57020:12;:29;57012:73;;;;;-1:-1:-1;;;57012:73:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;57012:73:0;;;;;;;;;;;;;;;59144:1;72573:638;;;;;;;;;;;;:::o;67258:111::-;67303:66;67258:111;:::o;15453:51::-;15500:4;15453:51;:::o;71559:142::-;71650:43;;71559:142;:::o;18297:79::-;18362:6;;-1:-1:-1;;;;;18362:6:0;18297:79;:::o;18663:94::-;18743:6;;18703:4;;-1:-1:-1;;;;;18743:6:0;18727:12;:10;:12::i;:::-;-1:-1:-1;;;;;18727:22:0;;18720:29;;18663:94;:::o;68041:20::-;;;;;;;;;;;;;;;-1:-1:-1;;68041:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71824:213;71954:4;59092:10;:8;:10::i;:::-;-1:-1:-1;;;;;59082:28:0;;:30;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;59082:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;59082:30:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;59082:30:0;59081:31;59073:60;;;;;-1:-1:-1;;;59073:60:0;;;;;;;;;;;;-1:-1:-1;;;59073:60:0;;;;;;;;;;;;;;;56924:13;:18;;56941:1;56924:18;;;;;69634:10;;:58;;;-1:-1:-1;;;69634:58:0;;69686:4;69634:58;;;;;;-1:-1:-1;;;;;69634:10:0;;;;:43;;:58;;;;;;;;;;;;;;;:10;:58;;;5:2:-1;;;;30:1;27;20:12;5:2;69634:58:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;69634:58:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;69634:58:0;69626:86;;;;;-1:-1:-1;;;69626:86:0;;;;;;;;;;;;-1:-1:-1;;;69626:86:0;;;;;;;;;;;;;;;71978:51;71984:12;:10;:12::i;:::-;71998;:10;:12::i;:::-;72012:16;71978:5;:51::i;:::-;71971:58;;57036:13;;57020:12;:29;57012:73;;;;;-1:-1:-1;;;57012:73:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;57012:73:0;;;;;;;;;;;;;;;59144:1;71824:213;;;:::o;62934:337::-;63112:4;63048:12;:10;:12::i;:::-;59352:15;:13;:15::i;:::-;-1:-1:-1;;;;;59338:44:0;;59383:7;59338:53;;;;;;;;;;;;;-1:-1:-1;;;;;59338:53:0;-1:-1:-1;;;;;59338:53:0;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;59338:53:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;59338:53:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;59338:53:0;:62;59330:86;;;;;-1:-1:-1;;;59330:86:0;;;;;;;;;;;;-1:-1:-1;;;59330:86:0;;;;;;;;;;;;;;;63082:7;59352:15;:13;:15::i;:::-;-1:-1:-1;;;;;59338:44:0;;59383:7;59338:53;;;;;;;;;;;;;-1:-1:-1;;;;;59338:53:0;-1:-1:-1;;;;;59338:53:0;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;59338:53:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;59338:53:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;59338:53:0;:62;59330:86;;;;;-1:-1:-1;;;59330:86:0;;;;;;;;;;;;-1:-1:-1;;;59330:86:0;;;;;;;;;;;;;;;63129:112;63138:12;:10;:12::i;:::-;63152:7;63161:79;63200:15;63161:79;;;;;;;;;;;;;-1:-1:-1;;;63161:79:0;;;:11;:25;63173:12;:10;:12::i;:::-;-1:-1:-1;;;;;63161:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;63161:25:0;;;:34;;;;;;;;;;;:79;;:38;:79;:::i;60168:206::-;60285:4;56924:18;;56941:1;56924:18;;;;60302:42;60312:12;:10;:12::i;:::-;60326:9;60337:6;60302:9;:42::i;:::-;60362:4;60355:11;;57036:13;;57020:12;:29;57012:73;;;;;-1:-1:-1;;;57012:73:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;57012:73:0;;;;;;;;;;;;;;;60168:206;;;;;:::o;73437:603::-;73767:4;59092:10;:8;:10::i;:::-;-1:-1:-1;;;;;59082:28:0;;:30;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;59082:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;59082:30:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;59082:30:0;59081:31;59073:60;;;;;-1:-1:-1;;;59073:60:0;;;;;;;;;;;;-1:-1:-1;;;59073:60:0;;;;;;;;;;;;;;;56924:13;:18;;56941:1;56924:18;;;;;73791:241;73831:5;73851:9;73875:5;73895:6;73916;73937:9;73961:12;73988:1;74004;74020;73791:25;:241::i;70855:177::-;70945:4;18509:9;:7;:9::i;:::-;18501:54;;;;;-1:-1:-1;;;18501:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;18501:54:0;;;;;;;;;;;;;;;59092:10;:8;:10::i;:::-;-1:-1:-1;;;;;59082:28:0;;:30;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;59082:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;59082:30:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;59082:30:0;59081:31;59073:60;;;;;-1:-1:-1;;;59073:60:0;;;;;;;;;;;;-1:-1:-1;;;59073:60:0;;;;;;;;;;;;;;;70969:55;70993:12;:10;:12::i;:::-;70969:4;;71007:16;70969:55;:23;:55;:::i;70111:120::-;70156:4;70180:43;70198:24;70216:4;70198:9;:24::i;:::-;70180:13;:11;:13::i;:::-;:17;:43;:17;:43;:::i;67562:107::-;67603:66;67562:107;:::o;73219:210::-;73322:4;59092:10;:8;:10::i;:::-;-1:-1:-1;;;;;59082:28:0;;:30;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;59082:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;59082:30:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;59082:30:0;59081:31;59073:60;;;;;-1:-1:-1;;;59073:60:0;;;;;;;;;;;;-1:-1:-1;;;59073:60:0;;;;;;;;;;;;;;;56924:13;:18;;56941:1;56924:18;;;;;73346:75;73354:12;:10;:12::i;:::-;73368;:10;:12::i;:::-;73382:6;73415:5;73346:7;:75::i;60437:134::-;-1:-1:-1;;;;;60536:18:0;;;60509:7;60536:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;60437:134::o;67866:109::-;67909:66;67866:109;:::o;71709:107::-;-1:-1:-1;;;;;71786:22:0;71762:4;71786:22;;;:15;:22;;;;;;;71709:107::o;19403:109::-;18509:9;:7;:9::i;:::-;18501:54;;;;;-1:-1:-1;;;18501:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;18501:54:0;;;;;;;;;;;;;;;19476:28;19495:8;19476:18;:28::i;:::-;19403:109;:::o;68228:30::-;;;;:::o;68189:32::-;;;-1:-1:-1;;;;;68189:32:0;;:::o;74048:671::-;59092:10;:8;:10::i;:::-;-1:-1:-1;;;;;59082:28:0;;:30;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;59082:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;59082:30:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;59082:30:0;59081:31;59073:60;;;;;-1:-1:-1;;;59073:60:0;;;;;;;;;;;;-1:-1:-1;;;59073:60:0;;;;;;;;;;;;;;;56924:13;:18;;56941:1;56924:18;;;;;74361:35;74383:12;74361:21;:35::i;:::-;74441:15;;74409:140;;:8;;66994:66;74476:5;74483:7;74492:5;74499:6;74507:7;74516:9;74527:12;74541:1;74544;74547;74409:140;:31;:140;:::i;:::-;74562:8;74573:7;:23;;74595:1;74573:23;;;-1:-1:-1;;74573:23:0;74562:34;;74607:29;74616:5;74623:7;74632:3;74607:8;:29::i;17046:98::-;17126:10;17046:98;:::o;64894:500::-;-1:-1:-1;;;;;64988:19:0;;64980:64;;;;;-1:-1:-1;;;64980:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;65063:21:0;;65055:64;;;;;-1:-1:-1;;;65055:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;65132:15;:13;:15::i;:::-;-1:-1:-1;;;;;65132:35:0;;65168:12;:10;:12::i;:::-;65132:49;;;;;;;;;;;;;-1:-1:-1;;;;;65132:49:0;-1:-1:-1;;;;;65132:49:0;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;65132:49:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;65132:49:0;;;;65192:15;:13;:15::i;:::-;-1:-1:-1;;;;;65192:35:0;;65228:5;65192:42;;;;;;;;;;;;;-1:-1:-1;;;;;65192:42:0;-1:-1:-1;;;;;65192:42:0;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;65192:42:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;65192:42:0;;;;65245:15;:13;:15::i;:::-;-1:-1:-1;;;;;65245:35:0;;65281:7;65245:44;;;;;;;;;;;;;-1:-1:-1;;;;;65245:44:0;-1:-1:-1;;;;;65245:44:0;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;65245:44:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;;;;;;;;65302:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;65354:32;;;;;;;;;;;;;;;;;64894:500;;;:::o;54195:307::-;54298:4;54315:22;54347:5;-1:-1:-1;;;;;54347:16:0;;:18;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;54347:18:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;54347:18:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;54347:18:0;:59;;;-1:-1:-1;;;54347:59:0;;-1:-1:-1;;;;;54347:59:0;;;;;;;;;:43;;;;;;;:59;;;;;:18;;:59;;;;;;;:43;:59;;;5:2:-1;;;;30:1;27;20:12;5:2;54347:59:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;54347:59:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;54347:59:0;;-1:-1:-1;54418:54:0;-1:-1:-1;;;;;54418:28:0;;54447:6;54455:16;54418:54;:28;:54;:::i;65595:268::-;65716:12;;65685:4;;65716:24;;65733:6;65716:24;:16;:24;:::i;:::-;65701:12;:39;-1:-1:-1;;;;;65772:18:0;;;;;;:9;:18;;;;;;:30;;65795:6;65772:30;:22;:30;:::i;:::-;-1:-1:-1;;;;;65751:18:0;;;;;;:9;:18;;;;;;;;:51;;;;65818:37;;;;;;;65751:18;;;;65818:37;;;;;;;;;;65595:268;;:::o;63832:622::-;-1:-1:-1;;;;;63930:20:0;;63922:66;;;;-1:-1:-1;;;63922:66:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;64007:23:0;;63999:67;;;;;-1:-1:-1;;;63999:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;64079:15;:13;:15::i;:::-;-1:-1:-1;;;;;64079:35:0;;64115:12;:10;:12::i;:::-;64079:49;;;;;;;;;;;;;-1:-1:-1;;;;;64079:49:0;-1:-1:-1;;;;;64079:49:0;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;64079:49:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;64079:49:0;;;;64139:15;:13;:15::i;:::-;-1:-1:-1;;;;;64139:35:0;;64175:6;64139:43;;;;;;;;;;;;;-1:-1:-1;;;;;64139:43:0;-1:-1:-1;;;;;64139:43:0;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;64139:43:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;64139:43:0;;;;64193:15;:13;:15::i;:::-;-1:-1:-1;;;;;64193:35:0;;64229:9;64193:46;;;;;;;;;;;;;-1:-1:-1;;;;;64193:46:0;-1:-1:-1;;;;;64193:46:0;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;64193:46:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;64272:57:0;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;64272:17:0;;-1:-1:-1;64272:17:0;;;:9;:17;;;;;;;;:57;;-1:-1:-1;64272:17:0;-1:-1:-1;64294:6:0;;64272:57;:21;:57;:::i;:::-;-1:-1:-1;;;;;64252:17:0;;;;;;;:9;:17;;;;;;:77;;;;64363:20;;;;;;;:32;;64388:6;64363:32;:24;:32;:::i;:::-;-1:-1:-1;;;;;64340:20:0;;;;;;;:9;:20;;;;;;;;;:55;;;;64411:35;;;;;;;64340:20;;64411:35;;;;;;;;;;;;;63832:622;;;:::o;4722:192::-;4808:7;4844:12;4836:6;;;;4828:29;;;;-1:-1:-1;;;4828: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;4828:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;4880:5:0;;;4722:192::o;3793:181::-;3851:7;3883:5;;;3907:6;;;;3899:46;;;;;-1:-1:-1;;;3899:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;3965:1;3793:181;-1:-1:-1;;;3793:181:0:o;80503:194::-;-1:-1:-1;;;;;80584:28:0;;;80580:110;;80629:15;:13;:15::i;:::-;-1:-1:-1;;;;;80629:35:0;;80665:12;80629:49;;;;;;;;;;;;;-1:-1:-1;;;;;80629:49:0;-1:-1:-1;;;;;80629:49:0;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;80629:49:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;80629:49:0;;;;80503:194;:::o;52849:926::-;53237:14;53342:15;53397:8;53407:5;53414:9;53425:5;53432:6;53440;53448:9;53459:12;53386:86;;;;;;;;;;;-1:-1:-1;;;;;53386:86:0;-1:-1:-1;;;;;53386:86:0;;;;;;-1:-1:-1;;;;;53386:86:0;-1:-1:-1;;;;;53386:86:0;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;53386:86:0;-1:-1:-1;;;;;53386:86:0;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;53386:86:0;;;53376:97;;;;;;53278:210;;;;;;-1:-1:-1;;;53278:210:0;;;;;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;53278:210:0;;;53254:245;;;;;;53237:262;;53537:3;-1:-1:-1;;;;;53520:21:0;:5;-1:-1:-1;;;;;53520:21:0;;;53512:67;;;;-1:-1:-1;;;53512:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;53598:25:0;;53590:69;;;;;-1:-1:-1;;;53590:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;53670:97;53694:8;53704:6;53712:5;53719;53726:6;53734:9;53745:12;53759:1;53762;53765;53670:23;:97::i;:::-;52849:926;;;;;;;;;;;;;;:::o;80705:354::-;80821:13;;80817:235;;80879:9;80859:16;80869:5;80859:9;:16::i;:::-;:29;;80851:70;;;;;-1:-1:-1;;;80851:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;80936:41;80946:5;80953:12;80967:9;80936;:41::i;:::-;81016:12;-1:-1:-1;;;;;80997:43:0;81009:5;-1:-1:-1;;;;;80997:43:0;;81030:9;80997:43;;;;;;;;;;;;;;;;;;80817:235;80705:354;;;:::o;48785:530::-;48885:4;48951:15;48906:8;:41;;;:60;48902:406;;-1:-1:-1;49044:21:0;;49037:28;;48902:406;49098:18;49119:89;49139:8;:41;;;49119:89;;;;;;;;;;;;;;;;;:15;:19;;:89;;;;;:::i;:::-;49098:110;;49230:66;49245:8;:21;;;49268:12;49282:13;49230:14;:66::i;:::-;49223:73;;;;;66144:294;66273:54;;;;;;;;;;;-1:-1:-1;;;66273:54:0;;;;;;;;66236:4;66210:15;66273:18;;;:9;:18;;;;;;;:54;;66296:6;;66273:54;:22;:54;:::i;:::-;-1:-1:-1;;;;;66252:18:0;;;;;;:9;:18;;;;;:75;66353:12;;:24;;66370:6;66353:24;:16;:24;:::i;:::-;66338:12;:39;66393:37;;;;;;;;66419:1;;-1:-1:-1;;;;;66393:37:0;;;;;;;;;;;;66144:294;;:::o;78187:1333::-;78486:4;78503:35;78525:12;78503:21;:35::i;:::-;78671:15;;78641:147;;:8;;67603:66;78704:5;78711:9;78722:5;78729:6;78737:16;78755:9;78766:12;78780:1;78783;78786;78641:147;:29;:147;:::i;:::-;79085:11;79099:45;79105:5;79120:4;79127:16;79099:5;:45::i;:::-;79085:59;;79173:9;79163:6;:19;;79155:45;;;;;-1:-1:-1;;;79155:45:0;;;;;;;;;;;;-1:-1:-1;;;79155:45:0;;;;;;;;;;;;;;;79213:18;79234:21;:6;79245:9;79234:21;:10;:21;:::i;:::-;79213:42;;79291:13;;79274;:30;;79266:67;;;;;-1:-1:-1;;;79266:67:0;;;;;;;;;;;;-1:-1:-1;;;79266:67:0;;;;;;;;;;;;;;;79346:50;79364:4;79371:9;79382:13;79346:9;:50::i;:::-;79409:70;79448:4;79455:12;79469:9;79409:30;:70::i;:::-;79499:13;78187:1333;-1:-1:-1;;;;;;;;;;;;78187:1333:0:o;75559:893::-;75649:4;75768:15;:13;:15::i;:::-;-1:-1:-1;;;;;75768:35:0;;75804:5;75768:42;;;;;;;;;;;;;-1:-1:-1;;;;;75768:42:0;-1:-1:-1;;;;;75768:42:0;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;75768:42:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;75823:24:0;;-1:-1:-1;75850:50:0;;-1:-1:-1;75850:4:0;;-1:-1:-1;75891:8:0;75850:50;:40;:50;:::i;:::-;75823:77;-1:-1:-1;75911:11:0;75925:81;:16;75823:77;15500:4;75925:81;:35;:81;:::i;:::-;75911:95;;76055:6;76027:24;76045:4;76027:9;:24::i;:::-;:34;;76019:73;;;;;-1:-1:-1;;;76019:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;76154:45;76175:5;76182:16;76154:20;:45::i;:::-;76254:43;76272:4;76279:9;76290:6;76254:9;:43::i;:::-;76327:9;-1:-1:-1;;;;;76315:30:0;76320:5;-1:-1:-1;;;;;76315:30:0;;76338:6;76315:30;;;;;;;;;;;;;;;;;;76376:13;;76366:6;:23;;76358:60;;;;;-1:-1:-1;;;76358:60:0;;;;;;;;;;;;-1:-1:-1;;;76358:60:0;;;;;;;;;;;;;;;76438:6;75559:893;-1:-1:-1;;;;;75559:893:0:o;79528:967::-;79819:4;79836:35;79858:12;79836:21;:35::i;:::-;80006:15;;79974:141;;:8;;67909:66;80041:5;80048:9;80059:5;80066:6;80074;80082:9;80093:12;80107:1;80110;80113;79974:141;:31;:141;:::i;:::-;80128:18;80149:38;80160:9;80149:38;;;;;;;;;;;;;-1:-1:-1;;;80149:38:0;;;:6;:10;;:38;;;;;:::i;:::-;80128:59;;80223:15;;80206:13;:32;;80198:71;;;;;-1:-1:-1;;;80198:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;80282:21;80306:72;80314:5;80321:9;80332:13;80372:5;80306:7;:72::i;:::-;80282:96;;80389:62;80420:5;80427:12;80441:9;80389:30;:62::i;53861:326::-;53963:4;53980:22;54012:5;-1:-1:-1;;;;;54012:16:0;;:18;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;54012:18:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;54012:18:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;54012:18:0;:59;;;-1:-1:-1;;;54012:59:0;;-1:-1:-1;;;;;54012:59:0;;;;;;;;;:43;;;;;;;:59;;;;;:18;;:59;;;;;;;:43;:59;;;5:2:-1;;;;30:1;27;20:12;5:2;54012:59:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;54012:59:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;54012:59:0;;-1:-1:-1;54083:74:0;-1:-1:-1;;;;;54083:32:0;;54116:6;54132:5;54140:16;54083:74;:32;:74;:::i;4249:136::-;4307:7;4334:43;4338:1;4341;4334:43;;;;;;;;;;;;;;;;;:3;:43::i;76937:1242::-;77044:4;77156:15;:13;:15::i;:::-;-1:-1:-1;;;;;77156:35:0;;77192:9;77156:46;;;;;;;;;;;;;-1:-1:-1;;;;;77156:46:0;-1:-1:-1;;;;;77156:46:0;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;77156:46:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;77215:24:0;;-1:-1:-1;77242:50:0;;-1:-1:-1;77242:4:0;;-1:-1:-1;77283:8:0;77242:50;:40;:50;:::i;:::-;77215:77;-1:-1:-1;77303:21:0;77327:71;:6;77215:77;15500:4;77327:71;:25;:71;:::i;:::-;77303:95;;77411:22;77443:4;-1:-1:-1;;;;;77443:15:0;;:17;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;77443:17:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;77443:17:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;77443:17:0;:57;;;-1:-1:-1;;;77443:57:0;;77494:4;77443:57;;;;;;-1:-1:-1;;;;;77443:42:0;;;;;;:57;;;;;:17;;:57;;;;;;;;:42;:57;;;5:2:-1;;;;30:1;27;20:12;5:2;77443:57:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;77443:57:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;77443:57:0;77520:40;;;-1:-1:-1;;;77520:40:0;;77554:4;77520:40;;;;;;77443:57;;-1:-1:-1;77564:16:0;;-1:-1:-1;;;;;77520:25:0;;;;;:40;;;;;77443:57;;77520:40;;;;;;;:25;:40;;;5:2:-1;;;;30:1;27;20:12;5:2;77520:40:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;77520:40:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;77520:40:0;:60;;77512:106;;;;-1:-1:-1;;;77512:106:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;77635:18;77631:197;;;77670:17;77690:68;77725:6;77690:68;;;;;;;;;;;;;-1:-1:-1;;;77690:68:0;;;:30;77700:5;77707:12;:10;:12::i;:::-;77690:9;:30::i;:::-;:34;:68;;:34;:68;:::i;:::-;77670:88;;77773:43;77782:5;77789:12;:10;:12::i;:::-;77803;77773:8;:43::i;:::-;77631:197;;77838:39;77848:5;77863:4;77870:6;77838:9;:39::i;:::-;77958:50;77980:9;77991:16;77958:21;:50::i;:::-;78040:9;-1:-1:-1;;;;;78026:32:0;78033:5;-1:-1:-1;;;;;78026:32:0;;78051:6;78026:32;;;;;;;;;;;;;;;;;;78089:15;;78079:6;:25;;78071:64;;;;;-1:-1:-1;;;78071:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;78155:16:0;76937:1242;-1:-1:-1;;;;;;76937:1242:0:o;19618:229::-;-1:-1:-1;;;;;19692:22:0;;19684:73;;;;-1:-1:-1;;;19684:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19794:6;;19773:38;;-1:-1:-1;;;;;19773:38:0;;;;19794:6;;19773:38;;19794:6;;19773:38;19822:6;:17;;-1:-1:-1;;;;;;19822:17:0;-1:-1:-1;;;;;19822:17:0;;;;;;;;;;19618:229::o;51927:914::-;52312:14;52417:15;52472:8;52482:5;52489:7;52498:5;52505:6;52513:7;52522:9;52533:12;52461:85;;;;;;;;;;;-1:-1:-1;;;;;52461:85:0;-1:-1:-1;;;;;52461:85:0;;;;;;-1:-1:-1;;;;;52461:85:0;-1:-1:-1;;;;;52461:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;52461:85:0;-1:-1:-1;;;;;52461:85:0;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;52461:85:0;;;52451:96;;;;;;52353:209;;;;;;-1:-1:-1;;;52353:209:0;;;;;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;52353:209:0;;;52329:244;;;;;;52312:261;;52611:1;-1:-1:-1;;;;;52594:19:0;:5;-1:-1:-1;;;;;52594:19:0;;;52586:64;;;;;-1:-1:-1;;;52586:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;52669:21:0;;52661:64;;;;;-1:-1:-1;;;52661:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;12180:176;12289:58;;;-1:-1:-1;;;;;12289:58:0;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;12289:58:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;12263:85:0;;12282:5;;12263:18;:85::i;54643:882::-;-1:-1:-1;;;;;54964:22:0;;54943:18;54964:22;;;:15;;;:22;;;;;;;;;55016:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54964:22;;55016:26;;;;;;;54964:22;;-1:-1:-1;;55016:26:0;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;55016:26:0;;;;;;;;-1:-1:-1;;;;;55007:35:0;:5;-1:-1:-1;;;;;55007:35:0;;54999:65;;;;;-1:-1:-1;;;54999:65:0;;;;;;;;;;;;-1:-1:-1;;;54999:65:0;;;;;;;;;;;;;;;55083:11;;;:28;;;55105:6;55098:3;:13;;55083:28;55075:56;;;;;-1:-1:-1;;;55075:56:0;;;;;;;;;;;;-1:-1:-1;;;55075:56:0;;;;;;;;;;;;;;;55159:13;55150:5;:22;55142:48;;;;;-1:-1:-1;;;55142:48:0;;;;;;;;;;;;-1:-1:-1;;;55142:48:0;;;;;;;;;;;;;;;55205:13;;55201:106;;-1:-1:-1;;;;;55243:28:0;;55235:60;;;;;-1:-1:-1;;;55235:60:0;;;;;;;;;;;;-1:-1:-1;;;55235:60:0;;;;;;;;;;;;;;;55324:155;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;55324:155:0;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;55490:22:0;;;;;;;:15;;;;:22;;-1:-1:-1;;55490:22:0;;;;:27;;55516:1;55490:27;;;-1:-1:-1;;;;54643:882:0:o;48400:300::-;48500:4;;48540:75;48564:49;47872:8;48565:26;:12;48582:8;48565:26;:16;:26;:::i;:::-;48564:32;:49;:32;:49;:::i;:::-;47822:4;;48540:75;:22;:75;:::i;:::-;48517:98;-1:-1:-1;48633:59:0;47822:4;48634:33;:12;48517:98;48634:33;:16;:33;:::i;50085:910::-;50469:14;50574:15;50629:8;50639:5;50646:9;50657:5;50664:6;50672;50680:9;50691:12;50618:86;;;;;;;;;;;-1:-1:-1;;;;;50618:86:0;-1:-1:-1;;;;;50618:86:0;;;;;;-1:-1:-1;;;;;50618:86:0;-1:-1:-1;;;;;50618:86:0;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;50618:86:0;-1:-1:-1;;;;;50618:86:0;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;50618:86:0;;;50608:97;;;;;;50510:210;;;;;;-1:-1:-1;;;50510:210:0;;;;;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;50510:210:0;;;50486:245;;;;;;50469:262;;50769:1;-1:-1:-1;;;;;50752:19:0;:5;-1:-1:-1;;;;;50752:19:0;;;50744:61;;;;;-1:-1:-1;;;50744:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;50824:23:0;;50816:63;;;;;-1:-1:-1;;;50816:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;49323:754;49429:4;49446:25;49474:8;:21;;;49446:49;;49506:25;49534:5;-1:-1:-1;;;;;49534:16:0;;:18;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;49534:18:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;49534:18:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;49534:18:0;:67;;;-1:-1:-1;;;49534:67:0;;-1:-1:-1;;;;;49534:67:0;;;;;;;;;:51;;;;;;;:67;;;;;:18;;:67;;;;;;;:51;:67;;;5:2:-1;;;;30:1;27;20:12;5:2;49534:67:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;49534:67:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;49534:67:0;;-1:-1:-1;49612:24:0;49639:54;49662:8;49534:67;49639:22;:54::i;:::-;49612:81;;49731:20;49708:19;:43;49704:366;;49812:15;49768:41;;;:59;49888:12;49842:43;;;:58;49915:43;;;49939:19;-1:-1:-1;49973:26:0;;-1:-1:-1;;49973:26:0;49704:366;50039:19;-1:-1:-1;50032:26:0;;-1:-1:-1;;50032:26:0;48178:214;48298:4;48322:62;48371:12;48323:42;:16;48344:20;48323:42;:20;:42;:::i;48322:62::-;48315:69;48178:214;-1:-1:-1;;;;48178:214:0:o;72045:263::-;72159:10;;:50;;;-1:-1:-1;;;72159:50:0;;72203:4;72159:50;;;;;;72133:23;;-1:-1:-1;;;;;72159:10:0;;:35;;:50;;;;;;;;;;;;;;:10;:50;;;5:2:-1;;;;30:1;27;20:12;5:2;72159:50:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;72159:50:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;72159:50:0;;-1:-1:-1;72220:80:0;-1:-1:-1;;;;;72220:40:0;;72261:5;72276:4;72283:16;72220:80;:40;:80;:::i;51003:916::-;51389:14;51494:15;51549:8;51559:5;51566:9;51577:5;51584:6;51592;51600:9;51611:12;51538:86;;;;;;;;;;;-1:-1:-1;;;;;51538:86:0;-1:-1:-1;;;;;51538:86:0;;;;;;-1:-1:-1;;;;;51538:86:0;-1:-1:-1;;;;;51538:86:0;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;51538:86:0;-1:-1:-1;;;;;51538:86:0;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;51538:86:0;;;51528:97;;;;;;51430:210;;;;;;-1:-1:-1;;;51430:210:0;;;;;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;51430:210:0;;;51406:245;;;;;;51389:262;;51689:1;-1:-1:-1;;;;;51672:19:0;:5;-1:-1:-1;;;;;51672:19:0;;;51664:63;;;;;-1:-1:-1;;;51664:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;51746:23:0;;51738:65;;;;;-1:-1:-1;;;51738:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;12364:204;12491:68;;;-1:-1:-1;;;;;12491:68:0;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;12491:68:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;12465:95:0;;12484:5;;12465:18;:95::i;:::-;12364:204;;;;:::o;47976:194::-;48086:4;48110:52;48141:20;48111:24;:6;48122:12;48111:24;:10;:24;:::i;72316:249::-;72435:10;;:50;;;-1:-1:-1;;;72435:50:0;;72479:4;72435:50;;;;;;72409:23;;-1:-1:-1;;;;;72435:10:0;;:35;;:50;;;;;;;;;;;;;;:10;:50;;;5:2:-1;;;;30:1;27;20:12;5:2;72435:50:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;72435:50:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;72435:50:0;72496:61;;;-1:-1:-1;;;72496:61:0;;-1:-1:-1;;;;;72496:61:0;;;;;;;;;;;;;;;72435:50;;-1:-1:-1;72496:32:0;;;;;;:61;;;;;72435:50;;72496:61;;;;;;;;-1:-1:-1;72496:32:0;:61;;;5:2:-1;;;;30:1;27;20:12;5:2;72496:61:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;72496:61:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;14219:1114:0;14823:27;14831:5;-1:-1:-1;;;;;14823:25:0;;:27::i;:::-;14815:71;;;;;-1:-1:-1;;;14815:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;14960:12;14974:23;15009:5;-1:-1:-1;;;;;15001:19:0;15021:4;15001:25;;;;;;;;;;;;;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;;;15001:25:0;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;14959:67:0;;;;15045:7;15037:52;;;;;-1:-1:-1;;;15037:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15106:17;;:21;15102:224;;15248:10;15237:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;15237:30:0;15229:85;;;;-1:-1:-1;;;15229:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5165:471;5223:7;5468:6;5464:47;;-1:-1:-1;5498:1:0;5491:8;;5464:47;5535:5;;;5539:1;5535;:5;:1;5559:5;;;;;:10;5551:56;;;;-1:-1:-1;;;5551:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6104:132;6162:7;6189:39;6193:1;6196;6189:39;;;;;;;;;;;;;;;;;:3;:39::i;9018:810::-;9078:4;9737:20;;9580:66;9777:15;;;;;:42;;-1:-1:-1;9796:23:0;;;9769:51;-1:-1:-1;;9018:810:0:o;6766:345::-;6852:7;6954:12;6947:5;6939:28;;;;-1:-1:-1;;;6939:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;6939:28:0;;6978:9;6994:1;6990;:5;;;;;;;6766:345;-1:-1:-1;;;;;6766:345:0:o

Swarm Source

bzzr://07307dcde4ef0149f21ecb1293b870dce5c589056296a1481a2d14408f685e55

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

OVERVIEW

Earn 6.25% on ETH, DAI and USDC with DeFi Money Market (DMM) all backed by real world income generating assets viewable on-chain.

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.