ETH Price: $3,165.66 (+3.47%)

Contract

0x8dc840CEAd11A46f59c65B1697698a2B60Fa0789
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x60806040124116402021-05-11 6:56:071285 days ago1620716167IN
 Create: CCollateralCapErc20Delegate
0 ETH1.09099511230

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CCollateralCapErc20Delegate

Compiler Version
v0.5.17+commit.d19bba13

Optimization Enabled:
Yes with 200 runs

Other Settings:
istanbul EvmVersion, None license

Contract Source Code (Solidity Multiple files format)

File 1 of 13: CCollateralCapErc20Delegate.sol
pragma solidity ^0.5.16;

import "./CCollateralCapErc20.sol";

/**
 * @title Cream's CCollateralCapErc20Delegate Contract
 * @notice CTokens which wrap an EIP-20 underlying and are delegated to
 * @author Cream
 */
contract CCollateralCapErc20Delegate is CCollateralCapErc20 {
    /**
     * @notice Construct an empty delegate
     */
    constructor() public {}

    /**
     * @notice Called by the delegator on a delegate to initialize it for duty
     * @param data The encoded bytes data for any initialization
     */
    function _becomeImplementation(bytes memory data) public {
        // Shh -- currently unused
        data;

        // Shh -- we don't ever want this hook to be marked pure
        if (false) {
            implementation = address(0);
        }

        require(msg.sender == admin, "only the admin may call _becomeImplementation");

        // Set internal cash when becoming implementation
        internalCash = getCashOnChain();

        // Set CToken version in comptroller
        ComptrollerInterfaceExtension(address(comptroller)).updateCTokenVersion(address(this), ComptrollerV2Storage.Version.COLLATERALCAP);
    }

    /**
     * @notice Called by the delegator on a delegate to forfeit its responsibility
     */
    function _resignImplementation() public {
        // Shh -- we don't ever want this hook to be marked pure
        if (false) {
            implementation = address(0);
        }

        require(msg.sender == admin, "only the admin may call _resignImplementation");
    }
}

File 2 of 13: CarefulMath.sol
pragma solidity ^0.5.16;

/**
  * @title Careful Math
  * @author Compound
  * @notice Derived from OpenZeppelin's SafeMath library
  *         https://github.com/OpenZeppelin/openzeppelin-solidity/blob/master/contracts/math/SafeMath.sol
  */
contract CarefulMath {

    /**
     * @dev Possible error codes that we can return
     */
    enum MathError {
        NO_ERROR,
        DIVISION_BY_ZERO,
        INTEGER_OVERFLOW,
        INTEGER_UNDERFLOW
    }

    /**
    * @dev Multiplies two numbers, returns an error on overflow.
    */
    function mulUInt(uint a, uint b) internal pure returns (MathError, uint) {
        if (a == 0) {
            return (MathError.NO_ERROR, 0);
        }

        uint c = a * b;

        if (c / a != b) {
            return (MathError.INTEGER_OVERFLOW, 0);
        } else {
            return (MathError.NO_ERROR, c);
        }
    }

    /**
    * @dev Integer division of two numbers, truncating the quotient.
    */
    function divUInt(uint a, uint b) internal pure returns (MathError, uint) {
        if (b == 0) {
            return (MathError.DIVISION_BY_ZERO, 0);
        }

        return (MathError.NO_ERROR, a / b);
    }

    /**
    * @dev Subtracts two numbers, returns an error on overflow (i.e. if subtrahend is greater than minuend).
    */
    function subUInt(uint a, uint b) internal pure returns (MathError, uint) {
        if (b <= a) {
            return (MathError.NO_ERROR, a - b);
        } else {
            return (MathError.INTEGER_UNDERFLOW, 0);
        }
    }

    /**
    * @dev Adds two numbers, returns an error on overflow.
    */
    function addUInt(uint a, uint b) internal pure returns (MathError, uint) {
        uint c = a + b;

        if (c >= a) {
            return (MathError.NO_ERROR, c);
        } else {
            return (MathError.INTEGER_OVERFLOW, 0);
        }
    }

    /**
    * @dev add a and b and then subtract c
    */
    function addThenSubUInt(uint a, uint b, uint c) internal pure returns (MathError, uint) {
        (MathError err0, uint sum) = addUInt(a, b);

        if (err0 != MathError.NO_ERROR) {
            return (err0, 0);
        }

        return subUInt(sum, c);
    }
}

File 3 of 13: CCollateralCapErc20.sol
pragma solidity ^0.5.16;

import "./CToken.sol";
import "./ComptrollerStorage.sol";

/**
 * @title Cream's Comptroller interface extension
 */
interface ComptrollerInterfaceExtension {
    function checkMembership(address account, CToken cToken) external view returns (bool);

    function updateCTokenVersion(address cToken, ComptrollerV2Storage.Version version) external;
}

/**
 * @title Cream's CCollateralCapErc20 Contract
 * @notice CTokens which wrap an EIP-20 underlying with collateral cap
 * @author Cream
 */
contract CCollateralCapErc20 is CToken, CCollateralCapErc20Interface {
    /**
     * @notice Initialize the new money market
     * @param underlying_ The address of the underlying asset
     * @param comptroller_ The address of the Comptroller
     * @param interestRateModel_ The address of the interest rate model
     * @param initialExchangeRateMantissa_ The initial exchange rate, scaled by 1e18
     * @param name_ ERC-20 name of this token
     * @param symbol_ ERC-20 symbol of this token
     * @param decimals_ ERC-20 decimal precision of this token
     */
    function initialize(address underlying_,
                        ComptrollerInterface comptroller_,
                        InterestRateModel interestRateModel_,
                        uint initialExchangeRateMantissa_,
                        string memory name_,
                        string memory symbol_,
                        uint8 decimals_) public {
        // CToken initialize does the bulk of the work
        super.initialize(comptroller_, interestRateModel_, initialExchangeRateMantissa_, name_, symbol_, decimals_);

        // Set underlying and sanity check it
        underlying = underlying_;
        EIP20Interface(underlying).totalSupply();
    }

    /*** User Interface ***/

    /**
     * @notice Sender supplies assets into the market and receives cTokens in exchange
     * @dev Accrues interest whether or not the operation succeeds, unless reverted
     * @param mintAmount The amount of the underlying asset to supply
     * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
     */
    function mint(uint mintAmount) external returns (uint) {
        (uint err,) = mintInternal(mintAmount);
        return err;
    }

    /**
     * @notice Sender redeems cTokens in exchange for the underlying asset
     * @dev Accrues interest whether or not the operation succeeds, unless reverted
     * @param redeemTokens The number of cTokens to redeem into underlying
     * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
     */
    function redeem(uint redeemTokens) external returns (uint) {
        return redeemInternal(redeemTokens);
    }

    /**
     * @notice Sender redeems cTokens in exchange for a specified amount of underlying asset
     * @dev Accrues interest whether or not the operation succeeds, unless reverted
     * @param redeemAmount The amount of underlying to redeem
     * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
     */
    function redeemUnderlying(uint redeemAmount) external returns (uint) {
        return redeemUnderlyingInternal(redeemAmount);
    }

    /**
      * @notice Sender borrows assets from the protocol to their own address
      * @param borrowAmount The amount of the underlying asset to borrow
      * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
      */
    function borrow(uint borrowAmount) external returns (uint) {
        return borrowInternal(borrowAmount);
    }

    /**
     * @notice Sender repays their own borrow
     * @param repayAmount The amount to repay
     * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
     */
    function repayBorrow(uint repayAmount) external returns (uint) {
        (uint err,) = repayBorrowInternal(repayAmount);
        return err;
    }

    /**
     * @notice Sender repays a borrow belonging to borrower
     * @param borrower the account with the debt being payed off
     * @param repayAmount The amount to repay
     * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
     */
    function repayBorrowBehalf(address borrower, uint repayAmount) external returns (uint) {
        (uint err,) = repayBorrowBehalfInternal(borrower, repayAmount);
        return err;
    }

    /**
     * @notice The sender liquidates the borrowers collateral.
     *  The collateral seized is transferred to the liquidator.
     * @param borrower The borrower of this cToken to be liquidated
     * @param repayAmount The amount of the underlying borrowed asset to repay
     * @param cTokenCollateral The market in which to seize collateral from the borrower
     * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
     */
    function liquidateBorrow(address borrower, uint repayAmount, CTokenInterface cTokenCollateral) external returns (uint) {
        (uint err,) = liquidateBorrowInternal(borrower, repayAmount, cTokenCollateral);
        return err;
    }

    /**
     * @notice The sender adds to reserves.
     * @param addAmount The amount fo underlying token to add as reserves
     * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
     */
    function _addReserves(uint addAmount) external returns (uint) {
        return _addReservesInternal(addAmount);
    }

    /**
     * @notice Set the given collateral cap for the market.
     * @param newCollateralCap New collateral cap for this market. A value of 0 corresponds to no cap.
     */
    function _setCollateralCap(uint newCollateralCap) external {
        require(msg.sender == admin, "only admin can set collateral cap");

        collateralCap = newCollateralCap;
        emit NewCollateralCap(address(this), newCollateralCap);
    }

    /**
     * @notice Absorb excess cash into reserves.
     */
    function gulp() external nonReentrant {
        uint256 cashOnChain = getCashOnChain();
        uint256 cashPrior = getCashPrior();

        uint excessCash = sub_(cashOnChain, cashPrior);
        totalReserves = add_(totalReserves, excessCash);
        internalCash = cashOnChain;
    }

    /**
     * @notice Flash loan funds to a given account.
     * @param receiver The receiver address for the funds
     * @param amount The amount of the funds to be loaned
     * @param params The other parameters
     */
    function flashLoan(address receiver, uint amount, bytes calldata params) external nonReentrant {
        require(amount > 0, "flashLoan amount should be greater than zero");
        require(accrueInterest() == uint(Error.NO_ERROR), "accrue interest failed");

        uint cashOnChainBefore = getCashOnChain();
        uint cashBefore = getCashPrior();
        require(cashBefore >= amount, "INSUFFICIENT_LIQUIDITY");

        // 1. calculate fee, 1 bips = 1/10000
        uint totalFee = div_(mul_(amount, flashFeeBips), 10000);

        // 2. transfer fund to receiver
        doTransferOut(address(uint160(receiver)), amount);

        // 3. update totalBorrows
        totalBorrows = add_(totalBorrows, amount);

        // 4. execute receiver's callback function
        IFlashloanReceiver(receiver).executeOperation(msg.sender, underlying, amount, totalFee, params);

        // 5. check balance
        uint cashOnChainAfter = getCashOnChain();
        require(cashOnChainAfter == add_(cashOnChainBefore, totalFee), "BALANCE_INCONSISTENT");

        // 6. update reserves and internal cash and totalBorrows
        uint reservesFee = mul_ScalarTruncate(Exp({mantissa: reserveFactorMantissa}), totalFee);
        totalReserves = add_(totalReserves, reservesFee);
        internalCash = add_(cashBefore, totalFee);
        totalBorrows = sub_(totalBorrows, amount);

        emit Flashloan(receiver, amount, totalFee, reservesFee);
    }

    /**
     * @notice Register account collateral tokens if there is space.
     * @param account The account to register
     * @dev This function could only be called by comptroller.
     * @return The actual registered amount of collateral
     */
    function registerCollateral(address account) external returns (uint) {
        // Make sure accountCollateralTokens of `account` is initialized.
        initializeAccountCollateralTokens(account);

        require(msg.sender == address(comptroller), "only comptroller may register collateral for user");

        uint amount = sub_(accountTokens[account], accountCollateralTokens[account]);
        return increaseUserCollateralInternal(account, amount);
    }

    /**
     * @notice Unregister account collateral tokens if the account still has enough collateral.
     * @dev This function could only be called by comptroller.
     * @param account The account to unregister
     */
    function unregisterCollateral(address account) external {
        // Make sure accountCollateralTokens of `account` is initialized.
        initializeAccountCollateralTokens(account);

        require(msg.sender == address(comptroller), "only comptroller may unregister collateral for user");

        decreaseUserCollateralInternal(account, accountCollateralTokens[account]);
    }

    /*** Safe Token ***/

    /**
     * @notice Gets internal balance of this contract in terms of the underlying.
     *  It excludes balance from direct transfer.
     * @dev This excludes the value of the current message, if any
     * @return The quantity of underlying tokens owned by this contract
     */
    function getCashPrior() internal view returns (uint) {
        return internalCash;
    }

    /**
     * @notice Gets total balance of this contract in terms of the underlying
     * @dev This excludes the value of the current message, if any
     * @return The quantity of underlying tokens owned by this contract
     */
    function getCashOnChain() internal view returns (uint) {
        EIP20Interface token = EIP20Interface(underlying);
        return token.balanceOf(address(this));
    }

    /**
     * @notice Initialize the account's collateral tokens. This function should be called in the beginning of every function
     *  that accesses accountCollateralTokens or accountTokens.
     * @param account The account of accountCollateralTokens that needs to be updated
     */
    function initializeAccountCollateralTokens(address account) internal {
        /**
         * If isCollateralTokenInit is false, it means accountCollateralTokens was not initialized yet.
         * This case will only happen once and must be the very beginning. accountCollateralTokens is a new structure and its
         * initial value should be equal to accountTokens if user has entered the market. However, it's almost impossible to
         * check every user's value when the implementation becomes active. Therefore, it must rely on every action which will
         * access accountTokens to call this function to check if accountCollateralTokens needed to be initialized.
         */
        if (!isCollateralTokenInit[account]) {
            if (ComptrollerInterfaceExtension(address(comptroller)).checkMembership(account, CToken(this))) {
                accountCollateralTokens[account] = accountTokens[account];
                totalCollateralTokens = add_(totalCollateralTokens, accountTokens[account]);

                emit UserCollateralChanged(account, accountCollateralTokens[account]);
            }
            isCollateralTokenInit[account] = true;
        }
    }

    /**
     * @dev Similar to EIP20 transfer, except it handles a False result from `transferFrom` and reverts in that case.
     *      This will revert due to insufficient balance or insufficient allowance.
     *      This function returns the actual amount received,
     *      which may be less than `amount` if there is a fee attached to the transfer.
     *
     *      Note: This wrapper safely handles non-standard ERC-20 tokens that do not return a value.
     *            See here: https://medium.com/coinmonks/missing-return-value-bug-at-least-130-tokens-affected-d67bf08521ca
     */
    function doTransferIn(address from, uint amount) internal returns (uint) {
        EIP20NonStandardInterface token = EIP20NonStandardInterface(underlying);
        uint balanceBefore = EIP20Interface(underlying).balanceOf(address(this));
        token.transferFrom(from, address(this), amount);

        bool success;
        assembly {
            switch returndatasize()
                case 0 {                       // This is a non-standard ERC-20
                    success := not(0)          // set success to true
                }
                case 32 {                      // This is a compliant ERC-20
                    returndatacopy(0, 0, 32)
                    success := mload(0)        // Set `success = returndata` of external call
                }
                default {                      // This is an excessively non-compliant ERC-20, revert.
                    revert(0, 0)
                }
        }
        require(success, "TOKEN_TRANSFER_IN_FAILED");

        // Calculate the amount that was *actually* transferred
        uint balanceAfter = EIP20Interface(underlying).balanceOf(address(this));
        uint transferredIn = sub_(balanceAfter, balanceBefore);
        internalCash = add_(internalCash, transferredIn);
        return transferredIn;
    }

    /**
     * @dev Similar to EIP20 transfer, except it handles a False success from `transfer` and returns an explanatory
     *      error code rather than reverting. If caller has not called checked protocol's balance, this may revert due to
     *      insufficient cash held in this contract. If caller has checked protocol's balance prior to this call, and verified
     *      it is >= amount, this should not revert in normal conditions.
     *
     *      Note: This wrapper safely handles non-standard ERC-20 tokens that do not return a value.
     *            See here: https://medium.com/coinmonks/missing-return-value-bug-at-least-130-tokens-affected-d67bf08521ca
     */
    function doTransferOut(address payable to, uint amount) internal {
        EIP20NonStandardInterface token = EIP20NonStandardInterface(underlying);
        token.transfer(to, amount);

        bool success;
        assembly {
            switch returndatasize()
                case 0 {                      // This is a non-standard ERC-20
                    success := not(0)          // set success to true
                }
                case 32 {                     // This is a complaint ERC-20
                    returndatacopy(0, 0, 32)
                    success := mload(0)        // Set `success = returndata` of external call
                }
                default {                     // This is an excessively non-compliant ERC-20, revert.
                    revert(0, 0)
                }
        }
        require(success, "TOKEN_TRANSFER_OUT_FAILED");
        internalCash = sub_(internalCash, amount);
    }

    /**
     * @notice Transfer `tokens` tokens from `src` to `dst` by `spender`
     * @dev Called by both `transfer` and `transferFrom` internally
     * @param spender The address of the account performing the transfer
     * @param src The address of the source account
     * @param dst The address of the destination account
     * @param tokens The number of tokens to transfer
     * @return Whether or not the transfer succeeded
     */
    function transferTokens(address spender, address src, address dst, uint tokens) internal returns (uint) {
        // Make sure accountCollateralTokens of `src` and `dst` are initialized.
        initializeAccountCollateralTokens(src);
        initializeAccountCollateralTokens(dst);

        /**
         * For every user, accountTokens must be greater than or equal to accountCollateralTokens.
         * The buffer between the two values will be transferred first.
         * bufferTokens = accountTokens[src] - accountCollateralTokens[src]
         * collateralTokens = tokens - bufferTokens
         */
        uint bufferTokens = sub_(accountTokens[src], accountCollateralTokens[src]);
        uint collateralTokens = 0;
        if (tokens > bufferTokens) {
            collateralTokens = tokens - bufferTokens;
        }

        /**
         * Since bufferTokens are not collateralized and can be transferred freely, we only check with comptroller
         * whether collateralized tokens can be transferred.
         */
        uint allowed = comptroller.transferAllowed(address(this), src, dst, collateralTokens);
        if (allowed != 0) {
            return failOpaque(Error.COMPTROLLER_REJECTION, FailureInfo.TRANSFER_COMPTROLLER_REJECTION, allowed);
        }

        /* Do not allow self-transfers */
        if (src == dst) {
            return fail(Error.BAD_INPUT, FailureInfo.TRANSFER_NOT_ALLOWED);
        }

        /* Get the allowance, infinite for the account owner */
        uint startingAllowance = 0;
        if (spender == src) {
            startingAllowance = uint(-1);
        } else {
            startingAllowance = transferAllowances[src][spender];
        }

        /* Do the calculations, checking for {under,over}flow */
        accountTokens[src] = sub_(accountTokens[src], tokens);
        accountTokens[dst] = add_(accountTokens[dst], tokens);
        if (collateralTokens > 0) {
            accountCollateralTokens[src] = sub_(accountCollateralTokens[src], collateralTokens);
            accountCollateralTokens[dst] = add_(accountCollateralTokens[dst], collateralTokens);

            emit UserCollateralChanged(src, accountCollateralTokens[src]);
            emit UserCollateralChanged(dst, accountCollateralTokens[dst]);
        }

        /* Eat some of the allowance (if necessary) */
        if (startingAllowance != uint(-1)) {
            transferAllowances[src][spender] = sub_(startingAllowance, tokens);
        }

        /* We emit a Transfer event */
        emit Transfer(src, dst, tokens);

        // unused function
        // comptroller.transferVerify(address(this), src, dst, tokens);

        return uint(Error.NO_ERROR);
    }

    /**
     * @notice Get the account's cToken balances
     * @param account The address of the account
     */
    function getCTokenBalanceInternal(address account) internal view returns (uint) {
        if (isCollateralTokenInit[account]) {
            return accountCollateralTokens[account];
        } else {
            /**
             * If the value of accountCollateralTokens was not initialized, we should return the value of accountTokens.
             */
            return accountTokens[account];
        }
    }

    /**
     * @notice Increase user's collateral. Increase as much as we can.
     * @param account The address of the account
     * @param amount The amount of collateral user wants to increase
     * @return The actual increased amount of collateral
     */
    function increaseUserCollateralInternal(address account, uint amount) internal returns (uint) {
        uint totalCollateralTokensNew = add_(totalCollateralTokens, amount);
        if (collateralCap == 0 || (collateralCap != 0 && totalCollateralTokensNew <= collateralCap)) {
            // 1. If collateral cap is not set,
            // 2. If collateral cap is set but has enough space for this user,
            // give all the user needs.
            totalCollateralTokens = totalCollateralTokensNew;
            accountCollateralTokens[account] = add_(accountCollateralTokens[account], amount);

            emit UserCollateralChanged(account, accountCollateralTokens[account]);
            return amount;
        } else if (collateralCap > totalCollateralTokens) {
            // If the collateral cap is set but the remaining cap is not enough for this user,
            // give the remaining parts to the user.
            uint gap = sub_(collateralCap, totalCollateralTokens);
            totalCollateralTokens = add_(totalCollateralTokens, gap);
            accountCollateralTokens[account] = add_(accountCollateralTokens[account], gap);

            emit UserCollateralChanged(account, accountCollateralTokens[account]);
            return gap;
        }
        return 0;
    }

    /**
     * @notice Decrease user's collateral. Reject if the amount can't be fully decrease.
     * @param account The address of the account
     * @param amount The amount of collateral user wants to decrease
     */
    function decreaseUserCollateralInternal(address account, uint amount) internal {
        require(comptroller.redeemAllowed(address(this), account, amount) == 0, "comptroller rejection");

        /*
         * Return if amount is zero.
         * Put behind `redeemAllowed` for accuring potential COMP rewards.
         */
        if (amount == 0) {
            return;
        }

        totalCollateralTokens = sub_(totalCollateralTokens, amount);
        accountCollateralTokens[account] = sub_(accountCollateralTokens[account], amount);

        emit UserCollateralChanged(account, accountCollateralTokens[account]);
    }

    struct MintLocalVars {
        uint exchangeRateMantissa;
        uint mintTokens;
        uint actualMintAmount;
    }

    /**
     * @notice User supplies assets into the market and receives cTokens in exchange
     * @dev Assumes interest has already been accrued up to the current block
     * @param minter The address of the account which is supplying the assets
     * @param mintAmount The amount of the underlying asset to supply
     * @return (uint, uint) An error code (0=success, otherwise a failure, see ErrorReporter.sol), and the actual mint amount.
     */
    function mintFresh(address minter, uint mintAmount) internal returns (uint, uint) {
        // Make sure accountCollateralTokens of `minter` is initialized.
        initializeAccountCollateralTokens(minter);

        /* Fail if mint not allowed */
        uint allowed = comptroller.mintAllowed(address(this), minter, mintAmount);
        if (allowed != 0) {
            return (failOpaque(Error.COMPTROLLER_REJECTION, FailureInfo.MINT_COMPTROLLER_REJECTION, allowed), 0);
        }

        /*
         * Return if mintAmount is zero.
         * Put behind `mintAllowed` for accuring potential COMP rewards.
         */
        if (mintAmount == 0) {
            return (uint(Error.NO_ERROR), 0);
        }

        /* Verify market's block number equals current block number */
        if (accrualBlockNumber != getBlockNumber()) {
            return (fail(Error.MARKET_NOT_FRESH, FailureInfo.MINT_FRESHNESS_CHECK), 0);
        }

        MintLocalVars memory vars;

        vars.exchangeRateMantissa = exchangeRateStoredInternal();

        /////////////////////////
        // EFFECTS & INTERACTIONS
        // (No safe failures beyond this point)

        /*
         *  We call `doTransferIn` for the minter and the mintAmount.
         *  Note: The cToken must handle variations between ERC-20 and ETH underlying.
         *  `doTransferIn` reverts if anything goes wrong, since we can't be sure if
         *  side-effects occurred. The function returns the amount actually transferred,
         *  in case of a fee. On success, the cToken holds an additional `actualMintAmount`
         *  of cash.
         */
        vars.actualMintAmount = doTransferIn(minter, mintAmount);

        /*
         * We get the current exchange rate and calculate the number of cTokens to be minted:
         *  mintTokens = actualMintAmount / exchangeRate
         */
        vars.mintTokens = div_ScalarByExpTruncate(vars.actualMintAmount, Exp({mantissa: vars.exchangeRateMantissa}));

        /*
         * We calculate the new total supply of cTokens and minter token balance, checking for overflow:
         *  totalSupply = totalSupply + mintTokens
         *  accountTokens[minter] = accountTokens[minter] + mintTokens
         */
        totalSupply = add_(totalSupply, vars.mintTokens);
        accountTokens[minter] = add_(accountTokens[minter], vars.mintTokens);

        /*
         * We only allocate collateral tokens if the minter has entered the market.
         */
        if (ComptrollerInterfaceExtension(address(comptroller)).checkMembership(minter, CToken(this))) {
            increaseUserCollateralInternal(minter, vars.mintTokens);
        }

        /* We emit a Mint event, and a Transfer event */
        emit Mint(minter, vars.actualMintAmount, vars.mintTokens);
        emit Transfer(address(this), minter, vars.mintTokens);

        /* We call the defense hook */
        // unused function
        // comptroller.mintVerify(address(this), minter, vars.actualMintAmount, vars.mintTokens);

        return (uint(Error.NO_ERROR), vars.actualMintAmount);
    }

    struct RedeemLocalVars {
        uint exchangeRateMantissa;
        uint redeemTokens;
        uint redeemAmount;
    }

    /**
     * @notice User redeems cTokens in exchange for the underlying asset
     * @dev Assumes interest has already been accrued up to the current block. Only one of redeemTokensIn or redeemAmountIn may be non-zero and it would do nothing if both are zero.
     * @param redeemer The address of the account which is redeeming the tokens
     * @param redeemTokensIn The number of cTokens to redeem into underlying
     * @param redeemAmountIn The number of underlying tokens to receive from redeeming cTokens
     * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
     */
    function redeemFresh(address payable redeemer, uint redeemTokensIn, uint redeemAmountIn) internal returns (uint) {
        // Make sure accountCollateralTokens of `redeemer` is initialized.
        initializeAccountCollateralTokens(redeemer);

        require(redeemTokensIn == 0 || redeemAmountIn == 0, "one of redeemTokensIn or redeemAmountIn must be zero");

        RedeemLocalVars memory vars;

        /* exchangeRate = invoke Exchange Rate Stored() */
        vars.exchangeRateMantissa = exchangeRateStoredInternal();

        /* If redeemTokensIn > 0: */
        if (redeemTokensIn > 0) {
            /*
             * We calculate the exchange rate and the amount of underlying to be redeemed:
             *  redeemTokens = redeemTokensIn
             *  redeemAmount = redeemTokensIn x exchangeRateCurrent
             */
            vars.redeemTokens = redeemTokensIn;
            vars.redeemAmount = mul_ScalarTruncate(Exp({mantissa: vars.exchangeRateMantissa}), redeemTokensIn);
        } else {
            /*
             * We get the current exchange rate and calculate the amount to be redeemed:
             *  redeemTokens = redeemAmountIn / exchangeRate
             *  redeemAmount = redeemAmountIn
             */
            vars.redeemTokens = div_ScalarByExpTruncate(redeemAmountIn, Exp({mantissa: vars.exchangeRateMantissa}));
            vars.redeemAmount = redeemAmountIn;
        }

        /**
         * For every user, accountTokens must be greater than or equal to accountCollateralTokens.
         * The buffer between the two values will be redeemed first.
         * bufferTokens = accountTokens[redeemer] - accountCollateralTokens[redeemer]
         * collateralTokens = redeemTokens - bufferTokens
         */
        uint bufferTokens = sub_(accountTokens[redeemer], accountCollateralTokens[redeemer]);
        uint collateralTokens = 0;
        if (vars.redeemTokens > bufferTokens) {
            collateralTokens = vars.redeemTokens - bufferTokens;
        }

        /* Verify market's block number equals current block number */
        if (accrualBlockNumber != getBlockNumber()) {
            return fail(Error.MARKET_NOT_FRESH, FailureInfo.REDEEM_FRESHNESS_CHECK);
        }

        /* Fail gracefully if protocol has insufficient cash */
        if (getCashPrior() < vars.redeemAmount) {
            return fail(Error.TOKEN_INSUFFICIENT_CASH, FailureInfo.REDEEM_TRANSFER_OUT_NOT_POSSIBLE);
        }

        /////////////////////////
        // EFFECTS & INTERACTIONS
        // (No safe failures beyond this point)

        /*
         * We invoke doTransferOut for the redeemer and the redeemAmount.
         *  Note: The cToken must handle variations between ERC-20 and ETH underlying.
         *  On success, the cToken has redeemAmount less of cash.
         *  doTransferOut reverts if anything goes wrong, since we can't be sure if side effects occurred.
         */
        doTransferOut(redeemer, vars.redeemAmount);

        /*
         * We calculate the new total supply and redeemer balance, checking for underflow:
         *  totalSupplyNew = totalSupply - redeemTokens
         *  accountTokensNew = accountTokens[redeemer] - redeemTokens
         */
        totalSupply = sub_(totalSupply, vars.redeemTokens);
        accountTokens[redeemer] = sub_(accountTokens[redeemer], vars.redeemTokens);

        /*
         * We only deallocate collateral tokens if the redeemer needs to redeem them.
         */
        if (collateralTokens > 0) {
            decreaseUserCollateralInternal(redeemer, collateralTokens);
        }

        /* We emit a Transfer event, and a Redeem event */
        emit Transfer(redeemer, address(this), vars.redeemTokens);
        emit Redeem(redeemer, vars.redeemAmount, vars.redeemTokens);

        /* We call the defense hook */
        comptroller.redeemVerify(address(this), redeemer, vars.redeemAmount, vars.redeemTokens);

        return uint(Error.NO_ERROR);
    }

    /**
     * @notice Transfers collateral tokens (this market) to the liquidator.
     * @dev Called only during an in-kind liquidation, or by liquidateBorrow during the liquidation of another CToken.
     *  Its absolutely critical to use msg.sender as the seizer cToken and not a parameter.
     * @param seizerToken The contract seizing the collateral (i.e. borrowed cToken)
     * @param liquidator The account receiving seized collateral
     * @param borrower The account having collateral seized
     * @param seizeTokens The number of cTokens to seize
     * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
     */
    function seizeInternal(address seizerToken, address liquidator, address borrower, uint seizeTokens) internal returns (uint) {
        // Make sure accountCollateralTokens of `liquidator` and `borrower` are initialized.
        initializeAccountCollateralTokens(liquidator);
        initializeAccountCollateralTokens(borrower);

        /* Fail if seize not allowed */
        uint allowed = comptroller.seizeAllowed(address(this), seizerToken, liquidator, borrower, seizeTokens);
        if (allowed != 0) {
            return failOpaque(Error.COMPTROLLER_REJECTION, FailureInfo.LIQUIDATE_SEIZE_COMPTROLLER_REJECTION, allowed);
        }

        /*
         * Return if seizeTokens is zero.
         * Put behind `seizeAllowed` for accuring potential COMP rewards.
         */
        if (seizeTokens == 0) {
            return uint(Error.NO_ERROR);
        }

        /* Fail if borrower = liquidator */
        if (borrower == liquidator) {
            return fail(Error.INVALID_ACCOUNT_PAIR, FailureInfo.LIQUIDATE_SEIZE_LIQUIDATOR_IS_BORROWER);
        }

        /*
         * We calculate the new borrower and liquidator token balances and token collateral balances, failing on underflow/overflow:
         *  accountTokens[borrower] = accountTokens[borrower] - seizeTokens
         *  accountTokens[liquidator] = accountTokens[liquidator] + seizeTokens
         *  accountCollateralTokens[borrower] = accountCollateralTokens[borrower] - seizeTokens
         *  accountCollateralTokens[liquidator] = accountCollateralTokens[liquidator] + seizeTokens
         */
        accountTokens[borrower] = sub_(accountTokens[borrower], seizeTokens);
        accountTokens[liquidator] = add_(accountTokens[liquidator], seizeTokens);
        accountCollateralTokens[borrower] = sub_(accountCollateralTokens[borrower], seizeTokens);
        accountCollateralTokens[liquidator] = add_(accountCollateralTokens[liquidator], seizeTokens);

        /* Emit a Transfer, UserCollateralChanged events */
        emit Transfer(borrower, liquidator, seizeTokens);
        emit UserCollateralChanged(borrower, accountCollateralTokens[borrower]);
        emit UserCollateralChanged(liquidator, accountCollateralTokens[liquidator]);

        /* We call the defense hook */
        // unused function
        // comptroller.seizeVerify(address(this), seizerToken, liquidator, borrower, seizeTokens);

        return uint(Error.NO_ERROR);
    }
}

File 4 of 13: ComptrollerInterface.sol
pragma solidity ^0.5.16;

contract ComptrollerInterface {
    /// @notice Indicator that this is a Comptroller contract (for inspection)
    bool public constant isComptroller = true;

    /*** Assets You Are In ***/

    function enterMarkets(address[] calldata cTokens) external returns (uint[] memory);
    function exitMarket(address cToken) external returns (uint);

    /*** Policy Hooks ***/

    function mintAllowed(address cToken, address minter, uint mintAmount) external returns (uint);
    function mintVerify(address cToken, address minter, uint mintAmount, uint mintTokens) external;

    function redeemAllowed(address cToken, address redeemer, uint redeemTokens) external returns (uint);
    function redeemVerify(address cToken, address redeemer, uint redeemAmount, uint redeemTokens) external;

    function borrowAllowed(address cToken, address borrower, uint borrowAmount) external returns (uint);
    function borrowVerify(address cToken, address borrower, uint borrowAmount) external;

    function repayBorrowAllowed(
        address cToken,
        address payer,
        address borrower,
        uint repayAmount) external returns (uint);
    function repayBorrowVerify(
        address cToken,
        address payer,
        address borrower,
        uint repayAmount,
        uint borrowerIndex) external;

    function liquidateBorrowAllowed(
        address cTokenBorrowed,
        address cTokenCollateral,
        address liquidator,
        address borrower,
        uint repayAmount) external returns (uint);
    function liquidateBorrowVerify(
        address cTokenBorrowed,
        address cTokenCollateral,
        address liquidator,
        address borrower,
        uint repayAmount,
        uint seizeTokens) external;

    function seizeAllowed(
        address cTokenCollateral,
        address cTokenBorrowed,
        address liquidator,
        address borrower,
        uint seizeTokens) external returns (uint);
    function seizeVerify(
        address cTokenCollateral,
        address cTokenBorrowed,
        address liquidator,
        address borrower,
        uint seizeTokens) external;

    function transferAllowed(address cToken, address src, address dst, uint transferTokens) external returns (uint);
    function transferVerify(address cToken, address src, address dst, uint transferTokens) external;

    /*** Liquidity/Liquidation Calculations ***/

    function liquidateCalculateSeizeTokens(
        address cTokenBorrowed,
        address cTokenCollateral,
        uint repayAmount) external view returns (uint, uint);
}

File 5 of 13: ComptrollerStorage.sol
pragma solidity ^0.5.16;

import "./CToken.sol";
import "./PriceOracle.sol";

contract UnitrollerAdminStorage {
    /**
    * @notice Administrator for this contract
    */
    address public admin;

    /**
    * @notice Pending administrator for this contract
    */
    address public pendingAdmin;

    /**
    * @notice Active brains of Unitroller
    */
    address public comptrollerImplementation;

    /**
    * @notice Pending brains of Unitroller
    */
    address public pendingComptrollerImplementation;
}

contract ComptrollerV1Storage is UnitrollerAdminStorage {

    /**
     * @notice Oracle which gives the price of any given asset
     */
    PriceOracle public oracle;

    /**
     * @notice Multiplier used to calculate the maximum repayAmount when liquidating a borrow
     */
    uint public closeFactorMantissa;

    /**
     * @notice Multiplier representing the discount on collateral that a liquidator receives
     */
    uint public liquidationIncentiveMantissa;

    /**
     * @notice Max number of assets a single account can participate in (borrow or use as collateral)
     */
    uint public maxAssets;

    /**
     * @notice Per-account mapping of "assets you are in", capped by maxAssets
     */
    mapping(address => CToken[]) public accountAssets;

}

contract ComptrollerV2Storage is ComptrollerV1Storage {
    enum Version {
        VANILLA,
        COLLATERALCAP
    }

    struct Market {
        /// @notice Whether or not this market is listed
        bool isListed;

        /**
         * @notice Multiplier representing the most one can borrow against their collateral in this market.
         *  For instance, 0.9 to allow borrowing 90% of collateral value.
         *  Must be between 0 and 1, and stored as a mantissa.
         */
        uint collateralFactorMantissa;

        /// @notice Per-market mapping of "accounts in this asset"
        mapping(address => bool) accountMembership;

        /// @notice Whether or not this market receives COMP
        bool isComped;

        /// @notice CToken version
        Version version;
    }

    /**
     * @notice Official mapping of cTokens -> Market metadata
     * @dev Used e.g. to determine if a market is supported
     */
    mapping(address => Market) public markets;


    /**
     * @notice The Pause Guardian can pause certain actions as a safety mechanism.
     *  Actions which allow users to remove their own assets cannot be paused.
     *  Liquidation / seizing / transfer can only be paused globally, not by market.
     */
    address public pauseGuardian;
    bool public _mintGuardianPaused;
    bool public _borrowGuardianPaused;
    bool public transferGuardianPaused;
    bool public seizeGuardianPaused;
    mapping(address => bool) public mintGuardianPaused;
    mapping(address => bool) public borrowGuardianPaused;
}

contract ComptrollerV3Storage is ComptrollerV2Storage {
    struct CompMarketState {
        /// @notice The market's last updated compBorrowIndex or compSupplyIndex
        uint224 index;

        /// @notice The block number the index was last updated at
        uint32 block;
    }

    /// @notice A list of all markets
    CToken[] public allMarkets;

    /// @notice The rate at which the flywheel distributes COMP, per block
    uint public compRate;

    /// @notice The portion of compRate that each market currently receives
    mapping(address => uint) public compSpeeds;

    /// @notice The COMP market supply state for each market
    mapping(address => CompMarketState) public compSupplyState;

    /// @notice The COMP market borrow state for each market
    mapping(address => CompMarketState) public compBorrowState;

    /// @notice The COMP borrow index for each market for each supplier as of the last time they accrued COMP
    mapping(address => mapping(address => uint)) public compSupplierIndex;

    /// @notice The COMP borrow index for each market for each borrower as of the last time they accrued COMP
    mapping(address => mapping(address => uint)) public compBorrowerIndex;

    /// @notice The COMP accrued but not yet transferred to each user
    mapping(address => uint) public compAccrued;
}

contract ComptrollerV4Storage is ComptrollerV3Storage {
    // @notice The borrowCapGuardian can set borrowCaps to any number for any market. Lowering the borrow cap could disable borrowing on the given market.
    address public borrowCapGuardian;

    // @notice Borrow caps enforced by borrowAllowed for each cToken address. Defaults to zero which corresponds to unlimited borrowing.
    mapping(address => uint) public borrowCaps;
}

contract ComptrollerV5Storage is ComptrollerV4Storage {
    // @notice The supplyCapGuardian can set supplyCaps to any number for any market. Lowering the supply cap could disable supplying to the given market.
    address public supplyCapGuardian;

    // @notice Supply caps enforced by mintAllowed for each cToken address. Defaults to zero which corresponds to unlimited supplying.
    mapping(address => uint) public supplyCaps;
}

File 6 of 13: CToken.sol
pragma solidity ^0.5.16;

import "./ComptrollerInterface.sol";
import "./CTokenInterfaces.sol";
import "./ErrorReporter.sol";
import "./Exponential.sol";
import "./EIP20Interface.sol";
import "./EIP20NonStandardInterface.sol";
import "./InterestRateModel.sol";

/**
 * @title Compound's CToken Contract
 * @notice Abstract base for CTokens
 * @author Compound
 */
contract CToken is CTokenInterface, Exponential, TokenErrorReporter {
    /**
     * @notice Initialize the money market
     * @param comptroller_ The address of the Comptroller
     * @param interestRateModel_ The address of the interest rate model
     * @param initialExchangeRateMantissa_ The initial exchange rate, scaled by 1e18
     * @param name_ EIP-20 name of this token
     * @param symbol_ EIP-20 symbol of this token
     * @param decimals_ EIP-20 decimal precision of this token
     */
    function initialize(ComptrollerInterface comptroller_,
                        InterestRateModel interestRateModel_,
                        uint initialExchangeRateMantissa_,
                        string memory name_,
                        string memory symbol_,
                        uint8 decimals_) public {
        require(msg.sender == admin, "only admin may initialize the market");
        require(accrualBlockNumber == 0 && borrowIndex == 0, "market may only be initialized once");

        // Set initial exchange rate
        initialExchangeRateMantissa = initialExchangeRateMantissa_;
        require(initialExchangeRateMantissa > 0, "initial exchange rate must be greater than zero.");

        // Set the comptroller
        uint err = _setComptroller(comptroller_);
        require(err == uint(Error.NO_ERROR), "setting comptroller failed");

        // Initialize block number and borrow index (block number mocks depend on comptroller being set)
        accrualBlockNumber = getBlockNumber();
        borrowIndex = mantissaOne;

        // Set the interest rate model (depends on block number / borrow index)
        err = _setInterestRateModelFresh(interestRateModel_);
        require(err == uint(Error.NO_ERROR), "setting interest rate model failed");

        name = name_;
        symbol = symbol_;
        decimals = decimals_;

        // The counter starts true to prevent changing it from zero to non-zero (i.e. smaller cost/refund)
        _notEntered = true;
    }

    /**
     * @notice Transfer `amount` tokens from `msg.sender` to `dst`
     * @param dst The address of the destination account
     * @param amount The number of tokens to transfer
     * @return Whether or not the transfer succeeded
     */
    function transfer(address dst, uint256 amount) external nonReentrant returns (bool) {
        return transferTokens(msg.sender, msg.sender, dst, amount) == uint(Error.NO_ERROR);
    }

    /**
     * @notice Transfer `amount` tokens from `src` to `dst`
     * @param src The address of the source account
     * @param dst The address of the destination account
     * @param amount The number of tokens to transfer
     * @return Whether or not the transfer succeeded
     */
    function transferFrom(address src, address dst, uint256 amount) external nonReentrant returns (bool) {
        return transferTokens(msg.sender, src, dst, amount) == uint(Error.NO_ERROR);
    }

    /**
     * @notice Approve `spender` to transfer up to `amount` from `src`
     * @dev This will overwrite the approval amount for `spender`
     *  and is subject to issues noted [here](https://eips.ethereum.org/EIPS/eip-20#approve)
     * @param spender The address of the account which may transfer tokens
     * @param amount The number of tokens that are approved (-1 means infinite)
     * @return Whether or not the approval succeeded
     */
    function approve(address spender, uint256 amount) external returns (bool) {
        address src = msg.sender;
        transferAllowances[src][spender] = amount;
        emit Approval(src, spender, amount);
        return true;
    }

    /**
     * @notice Get the current allowance from `owner` for `spender`
     * @param owner The address of the account which owns the tokens to be spent
     * @param spender The address of the account which may transfer tokens
     * @return The number of tokens allowed to be spent (-1 means infinite)
     */
    function allowance(address owner, address spender) external view returns (uint256) {
        return transferAllowances[owner][spender];
    }

    /**
     * @notice Get the token balance of the `owner`
     * @param owner The address of the account to query
     * @return The number of tokens owned by `owner`
     */
    function balanceOf(address owner) external view returns (uint256) {
        return accountTokens[owner];
    }

    /**
     * @notice Get the underlying balance of the `owner`
     * @dev This also accrues interest in a transaction
     * @param owner The address of the account to query
     * @return The amount of underlying owned by `owner`
     */
    function balanceOfUnderlying(address owner) external returns (uint) {
        Exp memory exchangeRate = Exp({mantissa: exchangeRateCurrent()});
        return mul_ScalarTruncate(exchangeRate, accountTokens[owner]);
    }

    /**
     * @notice Get a snapshot of the account's balances, and the cached exchange rate
     * @dev This is used by comptroller to more efficiently perform liquidity checks.
     * @param account Address of the account to snapshot
     * @return (possible error, token balance, borrow balance, exchange rate mantissa)
     */
    function getAccountSnapshot(address account) external view returns (uint, uint, uint, uint) {
        uint cTokenBalance = getCTokenBalanceInternal(account);
        uint borrowBalance = borrowBalanceStoredInternal(account);
        uint exchangeRateMantissa = exchangeRateStoredInternal();

        return (uint(Error.NO_ERROR), cTokenBalance, borrowBalance, exchangeRateMantissa);
    }

    /**
     * @dev Function to simply retrieve block number
     *  This exists mainly for inheriting test contracts to stub this result.
     */
    function getBlockNumber() internal view returns (uint) {
        return block.number;
    }

    /**
     * @notice Returns the current per-block borrow interest rate for this cToken
     * @return The borrow interest rate per block, scaled by 1e18
     */
    function borrowRatePerBlock() external view returns (uint) {
        return interestRateModel.getBorrowRate(getCashPrior(), totalBorrows, totalReserves);
    }

    /**
     * @notice Returns the current per-block supply interest rate for this cToken
     * @return The supply interest rate per block, scaled by 1e18
     */
    function supplyRatePerBlock() external view returns (uint) {
        return interestRateModel.getSupplyRate(getCashPrior(), totalBorrows, totalReserves, reserveFactorMantissa);
    }

    /**
     * @notice Returns the estimated per-block borrow interest rate for this cToken after some change
     * @return The borrow interest rate per block, scaled by 1e18
     */
    function estimateBorrowRatePerBlockAfterChange(uint256 change, bool repay) external view returns (uint) {
        uint256 cashPriorNew;
        uint256 totalBorrowsNew;

        if (repay) {
            cashPriorNew = add_(getCashPrior(), change);
            totalBorrowsNew = sub_(totalBorrows, change);
        } else {
            cashPriorNew = sub_(getCashPrior(), change);
            totalBorrowsNew = add_(totalBorrows, change);
        }
        return interestRateModel.getBorrowRate(cashPriorNew, totalBorrowsNew, totalReserves);
    }

    /**
     * @notice Returns the estimated per-block supply interest rate for this cToken after some change
     * @return The supply interest rate per block, scaled by 1e18
     */
    function estimateSupplyRatePerBlockAfterChange(uint256 change, bool repay) external view returns (uint) {
        uint256 cashPriorNew;
        uint256 totalBorrowsNew;

        if (repay) {
            cashPriorNew = add_(getCashPrior(), change);
            totalBorrowsNew = sub_(totalBorrows, change);
        } else {
            cashPriorNew = sub_(getCashPrior(), change);
            totalBorrowsNew = add_(totalBorrows, change);
        }

        return interestRateModel.getSupplyRate(cashPriorNew, totalBorrowsNew, totalReserves, reserveFactorMantissa);
    }

    /**
     * @notice Returns the current total borrows plus accrued interest
     * @return The total borrows with interest
     */
    function totalBorrowsCurrent() external nonReentrant returns (uint) {
        require(accrueInterest() == uint(Error.NO_ERROR), "accrue interest failed");
        return totalBorrows;
    }

    /**
     * @notice Accrue interest to updated borrowIndex and then calculate account's borrow balance using the updated borrowIndex
     * @param account The address whose balance should be calculated after updating borrowIndex
     * @return The calculated balance
     */
    function borrowBalanceCurrent(address account) external nonReentrant returns (uint) {
        require(accrueInterest() == uint(Error.NO_ERROR), "accrue interest failed");
        return borrowBalanceStored(account);
    }

    /**
     * @notice Return the borrow balance of account based on stored data
     * @param account The address whose balance should be calculated
     * @return The calculated balance
     */
    function borrowBalanceStored(address account) public view returns (uint) {
        return borrowBalanceStoredInternal(account);
    }

    /**
     * @notice Return the borrow balance of account based on stored data
     * @param account The address whose balance should be calculated
     * @return the calculated balance or 0 if error code is non-zero
     */
    function borrowBalanceStoredInternal(address account) internal view returns (uint) {
        /* Get borrowBalance and borrowIndex */
        BorrowSnapshot storage borrowSnapshot = accountBorrows[account];

        /* If borrowBalance = 0 then borrowIndex is likely also 0.
         * Rather than failing the calculation with a division by 0, we immediately return 0 in this case.
         */
        if (borrowSnapshot.principal == 0) {
            return 0;
        }

        /* Calculate new borrow balance using the interest index:
         *  recentBorrowBalance = borrower.borrowBalance * market.borrowIndex / borrower.borrowIndex
         */
        uint principalTimesIndex = mul_(borrowSnapshot.principal, borrowIndex);
        uint result = div_(principalTimesIndex, borrowSnapshot.interestIndex);
        return result;
    }

    /**
     * @notice Accrue interest then return the up-to-date exchange rate
     * @return Calculated exchange rate scaled by 1e18
     */
    function exchangeRateCurrent() public nonReentrant returns (uint) {
        require(accrueInterest() == uint(Error.NO_ERROR), "accrue interest failed");
        return exchangeRateStored();
    }

    /**
     * @notice Calculates the exchange rate from the underlying to the CToken
     * @dev This function does not accrue interest before calculating the exchange rate
     * @return Calculated exchange rate scaled by 1e18
     */
    function exchangeRateStored() public view returns (uint) {
        return exchangeRateStoredInternal();
    }

    /**
     * @notice Calculates the exchange rate from the underlying to the CToken
     * @dev This function does not accrue interest before calculating the exchange rate
     * @return calculated exchange rate scaled by 1e18
     */
    function exchangeRateStoredInternal() internal view returns (uint) {
        uint _totalSupply = totalSupply;
        if (_totalSupply == 0) {
            /*
             * If there are no tokens minted:
             *  exchangeRate = initialExchangeRate
             */
            return initialExchangeRateMantissa;
        } else {
            /*
             * Otherwise:
             *  exchangeRate = (totalCash + totalBorrows - totalReserves) / totalSupply
             */
            uint totalCash = getCashPrior();
            uint cashPlusBorrowsMinusReserves = sub_(add_(totalCash, totalBorrows), totalReserves);
            uint exchangeRate = div_(cashPlusBorrowsMinusReserves, Exp({mantissa: _totalSupply}));
            return exchangeRate;
        }
    }

    /**
     * @notice Get cash balance of this cToken in the underlying asset
     * @return The quantity of underlying asset owned by this contract
     */
    function getCash() external view returns (uint) {
        return getCashPrior();
    }

    /**
     * @notice Applies accrued interest to total borrows and reserves
     * @dev This calculates interest accrued from the last checkpointed block
     *   up to the current block and writes new checkpoint to storage.
     */
    function accrueInterest() public returns (uint) {
        /* Remember the initial block number */
        uint currentBlockNumber = getBlockNumber();
        uint accrualBlockNumberPrior = accrualBlockNumber;

        /* Short-circuit accumulating 0 interest */
        if (accrualBlockNumberPrior == currentBlockNumber) {
            return uint(Error.NO_ERROR);
        }

        /* Read the previous values out of storage */
        uint cashPrior = getCashPrior();
        uint borrowsPrior = totalBorrows;
        uint reservesPrior = totalReserves;
        uint borrowIndexPrior = borrowIndex;

        /* Calculate the current borrow interest rate */
        uint borrowRateMantissa = interestRateModel.getBorrowRate(cashPrior, borrowsPrior, reservesPrior);
        require(borrowRateMantissa <= borrowRateMaxMantissa, "borrow rate is absurdly high");

        /* Calculate the number of blocks elapsed since the last accrual */
        uint blockDelta = sub_(currentBlockNumber, accrualBlockNumberPrior);

        /*
         * Calculate the interest accumulated into borrows and reserves and the new index:
         *  simpleInterestFactor = borrowRate * blockDelta
         *  interestAccumulated = simpleInterestFactor * totalBorrows
         *  totalBorrowsNew = interestAccumulated + totalBorrows
         *  totalReservesNew = interestAccumulated * reserveFactor + totalReserves
         *  borrowIndexNew = simpleInterestFactor * borrowIndex + borrowIndex
         */

        Exp memory simpleInterestFactor = mul_(Exp({mantissa: borrowRateMantissa}), blockDelta);
        uint interestAccumulated = mul_ScalarTruncate(simpleInterestFactor, borrowsPrior);
        uint totalBorrowsNew = add_(interestAccumulated, borrowsPrior);
        uint totalReservesNew = mul_ScalarTruncateAddUInt(Exp({mantissa: reserveFactorMantissa}), interestAccumulated, reservesPrior);
        uint borrowIndexNew = mul_ScalarTruncateAddUInt(simpleInterestFactor, borrowIndexPrior, borrowIndexPrior);

        /////////////////////////
        // EFFECTS & INTERACTIONS
        // (No safe failures beyond this point)

        /* We write the previously calculated values into storage */
        accrualBlockNumber = currentBlockNumber;
        borrowIndex = borrowIndexNew;
        totalBorrows = totalBorrowsNew;
        totalReserves = totalReservesNew;

        /* We emit an AccrueInterest event */
        emit AccrueInterest(cashPrior, interestAccumulated, borrowIndexNew, totalBorrowsNew);

        return uint(Error.NO_ERROR);
    }

    /**
     * @notice Sender supplies assets into the market and receives cTokens in exchange
     * @dev Accrues interest whether or not the operation succeeds, unless reverted
     * @param mintAmount The amount of the underlying asset to supply
     * @return (uint, uint) An error code (0=success, otherwise a failure, see ErrorReporter.sol), and the actual mint amount.
     */
    function mintInternal(uint mintAmount) internal nonReentrant returns (uint, uint) {
        uint error = accrueInterest();
        if (error != uint(Error.NO_ERROR)) {
            // accrueInterest emits logs on errors, but we still want to log the fact that an attempted borrow failed
            return (fail(Error(error), FailureInfo.MINT_ACCRUE_INTEREST_FAILED), 0);
        }
        // mintFresh emits the actual Mint event if successful and logs on errors, so we don't need to
        return mintFresh(msg.sender, mintAmount);
    }

    /**
     * @notice Sender redeems cTokens in exchange for the underlying asset
     * @dev Accrues interest whether or not the operation succeeds, unless reverted
     * @param redeemTokens The number of cTokens to redeem into underlying
     * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
     */
    function redeemInternal(uint redeemTokens) internal nonReentrant returns (uint) {
        uint error = accrueInterest();
        if (error != uint(Error.NO_ERROR)) {
            // accrueInterest emits logs on errors, but we still want to log the fact that an attempted redeem failed
            return fail(Error(error), FailureInfo.REDEEM_ACCRUE_INTEREST_FAILED);
        }
        // redeemFresh emits redeem-specific logs on errors, so we don't need to
        return redeemFresh(msg.sender, redeemTokens, 0);
    }

    /**
     * @notice Sender redeems cTokens in exchange for a specified amount of underlying asset
     * @dev Accrues interest whether or not the operation succeeds, unless reverted
     * @param redeemAmount The amount of underlying to receive from redeeming cTokens
     * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
     */
    function redeemUnderlyingInternal(uint redeemAmount) internal nonReentrant returns (uint) {
        uint error = accrueInterest();
        if (error != uint(Error.NO_ERROR)) {
            // accrueInterest emits logs on errors, but we still want to log the fact that an attempted redeem failed
            return fail(Error(error), FailureInfo.REDEEM_ACCRUE_INTEREST_FAILED);
        }
        // redeemFresh emits redeem-specific logs on errors, so we don't need to
        return redeemFresh(msg.sender, 0, redeemAmount);
    }

    /**
      * @notice Sender borrows assets from the protocol to their own address
      * @param borrowAmount The amount of the underlying asset to borrow
      * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
      */
    function borrowInternal(uint borrowAmount) internal nonReentrant returns (uint) {
        uint error = accrueInterest();
        if (error != uint(Error.NO_ERROR)) {
            // accrueInterest emits logs on errors, but we still want to log the fact that an attempted borrow failed
            return fail(Error(error), FailureInfo.BORROW_ACCRUE_INTEREST_FAILED);
        }
        // borrowFresh emits borrow-specific logs on errors, so we don't need to
        return borrowFresh(msg.sender, borrowAmount);
    }

    struct BorrowLocalVars {
        MathError mathErr;
        uint accountBorrows;
        uint accountBorrowsNew;
        uint totalBorrowsNew;
    }

    /**
      * @notice Users borrow assets from the protocol to their own address
      * @param borrowAmount The amount of the underlying asset to borrow
      * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
      */
    function borrowFresh(address payable borrower, uint borrowAmount) internal returns (uint) {
        /* Fail if borrow not allowed */
        uint allowed = comptroller.borrowAllowed(address(this), borrower, borrowAmount);
        if (allowed != 0) {
            return failOpaque(Error.COMPTROLLER_REJECTION, FailureInfo.BORROW_COMPTROLLER_REJECTION, allowed);
        }

        /*
         * Return if borrowAmount is zero.
         * Put behind `borrowAllowed` for accuring potential COMP rewards.
         */
        if (borrowAmount == 0) {
            accountBorrows[borrower].interestIndex = borrowIndex;
            return uint(Error.NO_ERROR);
        }

        /* Verify market's block number equals current block number */
        if (accrualBlockNumber != getBlockNumber()) {
            return fail(Error.MARKET_NOT_FRESH, FailureInfo.BORROW_FRESHNESS_CHECK);
        }

        /* Fail gracefully if protocol has insufficient underlying cash */
        if (getCashPrior() < borrowAmount) {
            return fail(Error.TOKEN_INSUFFICIENT_CASH, FailureInfo.BORROW_CASH_NOT_AVAILABLE);
        }

        BorrowLocalVars memory vars;

        /*
         * We calculate the new borrower and total borrow balances, failing on overflow:
         *  accountBorrowsNew = accountBorrows + borrowAmount
         *  totalBorrowsNew = totalBorrows + borrowAmount
         */
        vars.accountBorrows = borrowBalanceStoredInternal(borrower);
        vars.accountBorrowsNew = add_(vars.accountBorrows, borrowAmount);
        vars.totalBorrowsNew = add_(totalBorrows, borrowAmount);

        /////////////////////////
        // EFFECTS & INTERACTIONS
        // (No safe failures beyond this point)

        /*
         * We invoke doTransferOut for the borrower and the borrowAmount.
         *  Note: The cToken must handle variations between ERC-20 and ETH underlying.
         *  On success, the cToken borrowAmount less of cash.
         *  doTransferOut reverts if anything goes wrong, since we can't be sure if side effects occurred.
         */
        doTransferOut(borrower, borrowAmount);

        /* We write the previously calculated values into storage */
        accountBorrows[borrower].principal = vars.accountBorrowsNew;
        accountBorrows[borrower].interestIndex = borrowIndex;
        totalBorrows = vars.totalBorrowsNew;

        /* We emit a Borrow event */
        emit Borrow(borrower, borrowAmount, vars.accountBorrowsNew, vars.totalBorrowsNew);

        /* We call the defense hook */
        // unused function
        // comptroller.borrowVerify(address(this), borrower, borrowAmount);

        return uint(Error.NO_ERROR);
    }

    /**
     * @notice Sender repays their own borrow
     * @param repayAmount The amount to repay
     * @return (uint, uint) An error code (0=success, otherwise a failure, see ErrorReporter.sol), and the actual repayment amount.
     */
    function repayBorrowInternal(uint repayAmount) internal nonReentrant returns (uint, uint) {
        uint error = accrueInterest();
        if (error != uint(Error.NO_ERROR)) {
            // accrueInterest emits logs on errors, but we still want to log the fact that an attempted borrow failed
            return (fail(Error(error), FailureInfo.REPAY_BORROW_ACCRUE_INTEREST_FAILED), 0);
        }
        // repayBorrowFresh emits repay-borrow-specific logs on errors, so we don't need to
        return repayBorrowFresh(msg.sender, msg.sender, repayAmount);
    }

    /**
     * @notice Sender repays a borrow belonging to borrower
     * @param borrower the account with the debt being payed off
     * @param repayAmount The amount to repay
     * @return (uint, uint) An error code (0=success, otherwise a failure, see ErrorReporter.sol), and the actual repayment amount.
     */
    function repayBorrowBehalfInternal(address borrower, uint repayAmount) internal nonReentrant returns (uint, uint) {
        uint error = accrueInterest();
        if (error != uint(Error.NO_ERROR)) {
            // accrueInterest emits logs on errors, but we still want to log the fact that an attempted borrow failed
            return (fail(Error(error), FailureInfo.REPAY_BEHALF_ACCRUE_INTEREST_FAILED), 0);
        }
        // repayBorrowFresh emits repay-borrow-specific logs on errors, so we don't need to
        return repayBorrowFresh(msg.sender, borrower, repayAmount);
    }

    struct RepayBorrowLocalVars {
        Error err;
        MathError mathErr;
        uint repayAmount;
        uint borrowerIndex;
        uint accountBorrows;
        uint accountBorrowsNew;
        uint totalBorrowsNew;
        uint actualRepayAmount;
    }

    /**
     * @notice Borrows are repaid by another user (possibly the borrower).
     * @param payer the account paying off the borrow
     * @param borrower the account with the debt being payed off
     * @param repayAmount the amount of undelrying tokens being returned
     * @return (uint, uint) An error code (0=success, otherwise a failure, see ErrorReporter.sol), and the actual repayment amount.
     */
    function repayBorrowFresh(address payer, address borrower, uint repayAmount) internal returns (uint, uint) {
        /* Fail if repayBorrow not allowed */
        uint allowed = comptroller.repayBorrowAllowed(address(this), payer, borrower, repayAmount);
        if (allowed != 0) {
            return (failOpaque(Error.COMPTROLLER_REJECTION, FailureInfo.REPAY_BORROW_COMPTROLLER_REJECTION, allowed), 0);
        }

        /*
         * Return if repayAmount is zero.
         * Put behind `repayBorrowAllowed` for accuring potential COMP rewards.
         */
        if (repayAmount == 0) {
            accountBorrows[borrower].interestIndex = borrowIndex;
            return (uint(Error.NO_ERROR), 0);
        }

        /* Verify market's block number equals current block number */
        if (accrualBlockNumber != getBlockNumber()) {
            return (fail(Error.MARKET_NOT_FRESH, FailureInfo.REPAY_BORROW_FRESHNESS_CHECK), 0);
        }

        RepayBorrowLocalVars memory vars;

        /* We remember the original borrowerIndex for verification purposes */
        vars.borrowerIndex = accountBorrows[borrower].interestIndex;

        /* We fetch the amount the borrower owes, with accumulated interest */
        vars.accountBorrows = borrowBalanceStoredInternal(borrower);

        /* If repayAmount == -1, repayAmount = accountBorrows */
        if (repayAmount == uint(-1)) {
            vars.repayAmount = vars.accountBorrows;
        } else {
            vars.repayAmount = repayAmount;
        }

        /////////////////////////
        // EFFECTS & INTERACTIONS
        // (No safe failures beyond this point)

        /*
         * We call doTransferIn for the payer and the repayAmount
         *  Note: The cToken must handle variations between ERC-20 and ETH underlying.
         *  On success, the cToken holds an additional repayAmount of cash.
         *  doTransferIn reverts if anything goes wrong, since we can't be sure if side effects occurred.
         *   it returns the amount actually transferred, in case of a fee.
         */
        vars.actualRepayAmount = doTransferIn(payer, vars.repayAmount);

        /*
         * We calculate the new borrower and total borrow balances, failing on underflow:
         *  accountBorrowsNew = accountBorrows - actualRepayAmount
         *  totalBorrowsNew = totalBorrows - actualRepayAmount
         */
        vars.accountBorrowsNew = sub_(vars.accountBorrows, vars.actualRepayAmount);
        vars.totalBorrowsNew = sub_(totalBorrows, vars.actualRepayAmount);

        /* We write the previously calculated values into storage */
        accountBorrows[borrower].principal = vars.accountBorrowsNew;
        accountBorrows[borrower].interestIndex = borrowIndex;
        totalBorrows = vars.totalBorrowsNew;

        /* We emit a RepayBorrow event */
        emit RepayBorrow(payer, borrower, vars.actualRepayAmount, vars.accountBorrowsNew, vars.totalBorrowsNew);

        /* We call the defense hook */
        // unused function
        // comptroller.repayBorrowVerify(address(this), payer, borrower, vars.actualRepayAmount, vars.borrowerIndex);

        return (uint(Error.NO_ERROR), vars.actualRepayAmount);
    }

    /**
     * @notice The sender liquidates the borrowers collateral.
     *  The collateral seized is transferred to the liquidator.
     * @param borrower The borrower of this cToken to be liquidated
     * @param cTokenCollateral The market in which to seize collateral from the borrower
     * @param repayAmount The amount of the underlying borrowed asset to repay
     * @return (uint, uint) An error code (0=success, otherwise a failure, see ErrorReporter.sol), and the actual repayment amount.
     */
    function liquidateBorrowInternal(address borrower, uint repayAmount, CTokenInterface cTokenCollateral) internal nonReentrant returns (uint, uint) {
        uint error = accrueInterest();
        if (error != uint(Error.NO_ERROR)) {
            // accrueInterest emits logs on errors, but we still want to log the fact that an attempted liquidation failed
            return (fail(Error(error), FailureInfo.LIQUIDATE_ACCRUE_BORROW_INTEREST_FAILED), 0);
        }

        error = cTokenCollateral.accrueInterest();
        if (error != uint(Error.NO_ERROR)) {
            // accrueInterest emits logs on errors, but we still want to log the fact that an attempted liquidation failed
            return (fail(Error(error), FailureInfo.LIQUIDATE_ACCRUE_COLLATERAL_INTEREST_FAILED), 0);
        }

        // liquidateBorrowFresh emits borrow-specific logs on errors, so we don't need to
        return liquidateBorrowFresh(msg.sender, borrower, repayAmount, cTokenCollateral);
    }

    /**
     * @notice The liquidator liquidates the borrowers collateral.
     *  The collateral seized is transferred to the liquidator.
     * @param borrower The borrower of this cToken to be liquidated
     * @param liquidator The address repaying the borrow and seizing collateral
     * @param cTokenCollateral The market in which to seize collateral from the borrower
     * @param repayAmount The amount of the underlying borrowed asset to repay
     * @return (uint, uint) An error code (0=success, otherwise a failure, see ErrorReporter.sol), and the actual repayment amount.
     */
    function liquidateBorrowFresh(address liquidator, address borrower, uint repayAmount, CTokenInterface cTokenCollateral) internal returns (uint, uint) {
        /* Fail if liquidate not allowed */
        uint allowed = comptroller.liquidateBorrowAllowed(address(this), address(cTokenCollateral), liquidator, borrower, repayAmount);
        if (allowed != 0) {
            return (failOpaque(Error.COMPTROLLER_REJECTION, FailureInfo.LIQUIDATE_COMPTROLLER_REJECTION, allowed), 0);
        }

        /* Verify market's block number equals current block number */
        if (accrualBlockNumber != getBlockNumber()) {
            return (fail(Error.MARKET_NOT_FRESH, FailureInfo.LIQUIDATE_FRESHNESS_CHECK), 0);
        }

        /* Verify cTokenCollateral market's block number equals current block number */
        if (cTokenCollateral.accrualBlockNumber() != getBlockNumber()) {
            return (fail(Error.MARKET_NOT_FRESH, FailureInfo.LIQUIDATE_COLLATERAL_FRESHNESS_CHECK), 0);
        }

        /* Fail if borrower = liquidator */
        if (borrower == liquidator) {
            return (fail(Error.INVALID_ACCOUNT_PAIR, FailureInfo.LIQUIDATE_LIQUIDATOR_IS_BORROWER), 0);
        }

        /* Fail if repayAmount = 0 */
        if (repayAmount == 0) {
            return (fail(Error.INVALID_CLOSE_AMOUNT_REQUESTED, FailureInfo.LIQUIDATE_CLOSE_AMOUNT_IS_ZERO), 0);
        }

        /* Fail if repayAmount = -1 */
        if (repayAmount == uint(-1)) {
            return (fail(Error.INVALID_CLOSE_AMOUNT_REQUESTED, FailureInfo.LIQUIDATE_CLOSE_AMOUNT_IS_UINT_MAX), 0);
        }


        /* Fail if repayBorrow fails */
        (uint repayBorrowError, uint actualRepayAmount) = repayBorrowFresh(liquidator, borrower, repayAmount);
        if (repayBorrowError != uint(Error.NO_ERROR)) {
            return (fail(Error(repayBorrowError), FailureInfo.LIQUIDATE_REPAY_BORROW_FRESH_FAILED), 0);
        }

        /////////////////////////
        // EFFECTS & INTERACTIONS
        // (No safe failures beyond this point)

        /* We calculate the number of collateral tokens that will be seized */
        (uint amountSeizeError, uint seizeTokens) = comptroller.liquidateCalculateSeizeTokens(address(this), address(cTokenCollateral), actualRepayAmount);
        require(amountSeizeError == uint(Error.NO_ERROR), "LIQUIDATE_COMPTROLLER_CALCULATE_AMOUNT_SEIZE_FAILED");

        /* Revert if borrower collateral token balance < seizeTokens */
        require(cTokenCollateral.balanceOf(borrower) >= seizeTokens, "LIQUIDATE_SEIZE_TOO_MUCH");

        // If this is also the collateral, run seizeInternal to avoid re-entrancy, otherwise make an external call
        uint seizeError;
        if (address(cTokenCollateral) == address(this)) {
            seizeError = seizeInternal(address(this), liquidator, borrower, seizeTokens);
        } else {
            seizeError = cTokenCollateral.seize(liquidator, borrower, seizeTokens);
        }

        /* Revert if seize tokens fails (since we cannot be sure of side effects) */
        require(seizeError == uint(Error.NO_ERROR), "token seizure failed");

        /* We emit a LiquidateBorrow event */
        emit LiquidateBorrow(liquidator, borrower, actualRepayAmount, address(cTokenCollateral), seizeTokens);

        /* We call the defense hook */
        // unused function
        // comptroller.liquidateBorrowVerify(address(this), address(cTokenCollateral), liquidator, borrower, actualRepayAmount, seizeTokens);

        return (uint(Error.NO_ERROR), actualRepayAmount);
    }

    /**
     * @notice Transfers collateral tokens (this market) to the liquidator.
     * @dev Will fail unless called by another cToken during the process of liquidation.
     *  Its absolutely critical to use msg.sender as the borrowed cToken and not a parameter.
     * @param liquidator The account receiving seized collateral
     * @param borrower The account having collateral seized
     * @param seizeTokens The number of cTokens to seize
     * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
     */
    function seize(address liquidator, address borrower, uint seizeTokens) external nonReentrant returns (uint) {
        return seizeInternal(msg.sender, liquidator, borrower, seizeTokens);
    }

    /*** Admin Functions ***/

    /**
      * @notice Begins transfer of admin rights. The newPendingAdmin must call `_acceptAdmin` to finalize the transfer.
      * @dev Admin function to begin change of admin. The newPendingAdmin must call `_acceptAdmin` to finalize the transfer.
      * @param newPendingAdmin New pending admin.
      * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
      */
    function _setPendingAdmin(address payable newPendingAdmin) external returns (uint) {
        // Check caller = admin
        if (msg.sender != admin) {
            return fail(Error.UNAUTHORIZED, FailureInfo.SET_PENDING_ADMIN_OWNER_CHECK);
        }

        // Save current value, if any, for inclusion in log
        address oldPendingAdmin = pendingAdmin;

        // Store pendingAdmin with value newPendingAdmin
        pendingAdmin = newPendingAdmin;

        // Emit NewPendingAdmin(oldPendingAdmin, newPendingAdmin)
        emit NewPendingAdmin(oldPendingAdmin, newPendingAdmin);

        return uint(Error.NO_ERROR);
    }

    /**
      * @notice Accepts transfer of admin rights. msg.sender must be pendingAdmin
      * @dev Admin function for pending admin to accept role and update admin
      * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
      */
    function _acceptAdmin() external returns (uint) {
        // Check caller is pendingAdmin and pendingAdmin ≠ address(0)
        if (msg.sender != pendingAdmin || msg.sender == address(0)) {
            return fail(Error.UNAUTHORIZED, FailureInfo.ACCEPT_ADMIN_PENDING_ADMIN_CHECK);
        }

        // Save current values for inclusion in log
        address oldAdmin = admin;
        address oldPendingAdmin = pendingAdmin;

        // Store admin with value pendingAdmin
        admin = pendingAdmin;

        // Clear the pending value
        pendingAdmin = address(0);

        emit NewAdmin(oldAdmin, admin);
        emit NewPendingAdmin(oldPendingAdmin, pendingAdmin);

        return uint(Error.NO_ERROR);
    }

    /**
      * @notice Sets a new comptroller for the market
      * @dev Admin function to set a new comptroller
      * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
      */
    function _setComptroller(ComptrollerInterface newComptroller) public returns (uint) {
        // Check caller is admin
        if (msg.sender != admin) {
            return fail(Error.UNAUTHORIZED, FailureInfo.SET_COMPTROLLER_OWNER_CHECK);
        }

        ComptrollerInterface oldComptroller = comptroller;
        // Ensure invoke comptroller.isComptroller() returns true
        require(newComptroller.isComptroller(), "marker method returned false");

        // Set market's comptroller to newComptroller
        comptroller = newComptroller;

        // Emit NewComptroller(oldComptroller, newComptroller)
        emit NewComptroller(oldComptroller, newComptroller);

        return uint(Error.NO_ERROR);
    }

    /**
      * @notice accrues interest and sets a new reserve factor for the protocol using _setReserveFactorFresh
      * @dev Admin function to accrue interest and set a new reserve factor
      * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
      */
    function _setReserveFactor(uint newReserveFactorMantissa) external nonReentrant returns (uint) {
        uint error = accrueInterest();
        if (error != uint(Error.NO_ERROR)) {
            // accrueInterest emits logs on errors, but on top of that we want to log the fact that an attempted reserve factor change failed.
            return fail(Error(error), FailureInfo.SET_RESERVE_FACTOR_ACCRUE_INTEREST_FAILED);
        }
        // _setReserveFactorFresh emits reserve-factor-specific logs on errors, so we don't need to.
        return _setReserveFactorFresh(newReserveFactorMantissa);
    }

    /**
      * @notice Sets a new reserve factor for the protocol (*requires fresh interest accrual)
      * @dev Admin function to set a new reserve factor
      * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
      */
    function _setReserveFactorFresh(uint newReserveFactorMantissa) internal returns (uint) {
        // Check caller is admin
        if (msg.sender != admin) {
            return fail(Error.UNAUTHORIZED, FailureInfo.SET_RESERVE_FACTOR_ADMIN_CHECK);
        }

        // Verify market's block number equals current block number
        if (accrualBlockNumber != getBlockNumber()) {
            return fail(Error.MARKET_NOT_FRESH, FailureInfo.SET_RESERVE_FACTOR_FRESH_CHECK);
        }

        // Check newReserveFactor ≤ maxReserveFactor
        if (newReserveFactorMantissa > reserveFactorMaxMantissa) {
            return fail(Error.BAD_INPUT, FailureInfo.SET_RESERVE_FACTOR_BOUNDS_CHECK);
        }

        uint oldReserveFactorMantissa = reserveFactorMantissa;
        reserveFactorMantissa = newReserveFactorMantissa;

        emit NewReserveFactor(oldReserveFactorMantissa, newReserveFactorMantissa);

        return uint(Error.NO_ERROR);
    }

    /**
     * @notice Accrues interest and reduces reserves by transferring from msg.sender
     * @param addAmount Amount of addition to reserves
     * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
     */
    function _addReservesInternal(uint addAmount) internal nonReentrant returns (uint) {
        uint error = accrueInterest();
        if (error != uint(Error.NO_ERROR)) {
            // accrueInterest emits logs on errors, but on top of that we want to log the fact that an attempted reduce reserves failed.
            return fail(Error(error), FailureInfo.ADD_RESERVES_ACCRUE_INTEREST_FAILED);
        }

        // _addReservesFresh emits reserve-addition-specific logs on errors, so we don't need to.
        (error, ) = _addReservesFresh(addAmount);
        return error;
    }

    /**
     * @notice Add reserves by transferring from caller
     * @dev Requires fresh interest accrual
     * @param addAmount Amount of addition to reserves
     * @return (uint, uint) An error code (0=success, otherwise a failure (see ErrorReporter.sol for details)) and the actual amount added, net token fees
     */
    function _addReservesFresh(uint addAmount) internal returns (uint, uint) {
        // totalReserves + actualAddAmount
        uint totalReservesNew;
        uint actualAddAmount;

        // We fail gracefully unless market's block number equals current block number
        if (accrualBlockNumber != getBlockNumber()) {
            return (fail(Error.MARKET_NOT_FRESH, FailureInfo.ADD_RESERVES_FRESH_CHECK), actualAddAmount);
        }

        /////////////////////////
        // EFFECTS & INTERACTIONS
        // (No safe failures beyond this point)

        /*
         * We call doTransferIn for the caller and the addAmount
         *  Note: The cToken must handle variations between ERC-20 and ETH underlying.
         *  On success, the cToken holds an additional addAmount of cash.
         *  doTransferIn reverts if anything goes wrong, since we can't be sure if side effects occurred.
         *  it returns the amount actually transferred, in case of a fee.
         */

        actualAddAmount = doTransferIn(msg.sender, addAmount);

        totalReservesNew = add_(totalReserves, actualAddAmount);

        // Store reserves[n+1] = reserves[n] + actualAddAmount
        totalReserves = totalReservesNew;

        /* Emit NewReserves(admin, actualAddAmount, reserves[n+1]) */
        emit ReservesAdded(msg.sender, actualAddAmount, totalReservesNew);

        /* Return (NO_ERROR, actualAddAmount) */
        return (uint(Error.NO_ERROR), actualAddAmount);
    }


    /**
     * @notice Accrues interest and reduces reserves by transferring to admin
     * @param reduceAmount Amount of reduction to reserves
     * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
     */
    function _reduceReserves(uint reduceAmount) external nonReentrant returns (uint) {
        uint error = accrueInterest();
        if (error != uint(Error.NO_ERROR)) {
            // accrueInterest emits logs on errors, but on top of that we want to log the fact that an attempted reduce reserves failed.
            return fail(Error(error), FailureInfo.REDUCE_RESERVES_ACCRUE_INTEREST_FAILED);
        }
        // _reduceReservesFresh emits reserve-reduction-specific logs on errors, so we don't need to.
        return _reduceReservesFresh(reduceAmount);
    }

    /**
     * @notice Reduces reserves by transferring to admin
     * @dev Requires fresh interest accrual
     * @param reduceAmount Amount of reduction to reserves
     * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
     */
    function _reduceReservesFresh(uint reduceAmount) internal returns (uint) {
        // totalReserves - reduceAmount
        uint totalReservesNew;

        // Check caller is admin
        if (msg.sender != admin) {
            return fail(Error.UNAUTHORIZED, FailureInfo.REDUCE_RESERVES_ADMIN_CHECK);
        }

        // We fail gracefully unless market's block number equals current block number
        if (accrualBlockNumber != getBlockNumber()) {
            return fail(Error.MARKET_NOT_FRESH, FailureInfo.REDUCE_RESERVES_FRESH_CHECK);
        }

        // Fail gracefully if protocol has insufficient underlying cash
        if (getCashPrior() < reduceAmount) {
            return fail(Error.TOKEN_INSUFFICIENT_CASH, FailureInfo.REDUCE_RESERVES_CASH_NOT_AVAILABLE);
        }

        // Check reduceAmount ≤ reserves[n] (totalReserves)
        if (reduceAmount > totalReserves) {
            return fail(Error.BAD_INPUT, FailureInfo.REDUCE_RESERVES_VALIDATION);
        }

        /////////////////////////
        // EFFECTS & INTERACTIONS
        // (No safe failures beyond this point)

        totalReservesNew = sub_(totalReserves, reduceAmount);

        // Store reserves[n+1] = reserves[n] - reduceAmount
        totalReserves = totalReservesNew;

        // doTransferOut reverts if anything goes wrong, since we can't be sure if side effects occurred.
        doTransferOut(admin, reduceAmount);

        emit ReservesReduced(admin, reduceAmount, totalReservesNew);

        return uint(Error.NO_ERROR);
    }

    /**
     * @notice accrues interest and updates the interest rate model using _setInterestRateModelFresh
     * @dev Admin function to accrue interest and update the interest rate model
     * @param newInterestRateModel the new interest rate model to use
     * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
     */
    function _setInterestRateModel(InterestRateModel newInterestRateModel) public returns (uint) {
        uint error = accrueInterest();
        if (error != uint(Error.NO_ERROR)) {
            // accrueInterest emits logs on errors, but on top of that we want to log the fact that an attempted change of interest rate model failed
            return fail(Error(error), FailureInfo.SET_INTEREST_RATE_MODEL_ACCRUE_INTEREST_FAILED);
        }
        // _setInterestRateModelFresh emits interest-rate-model-update-specific logs on errors, so we don't need to.
        return _setInterestRateModelFresh(newInterestRateModel);
    }

    /**
     * @notice updates the interest rate model (*requires fresh interest accrual)
     * @dev Admin function to update the interest rate model
     * @param newInterestRateModel the new interest rate model to use
     * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
     */
    function _setInterestRateModelFresh(InterestRateModel newInterestRateModel) internal returns (uint) {

        // Used to store old model for use in the event that is emitted on success
        InterestRateModel oldInterestRateModel;

        // Check caller is admin
        if (msg.sender != admin) {
            return fail(Error.UNAUTHORIZED, FailureInfo.SET_INTEREST_RATE_MODEL_OWNER_CHECK);
        }

        // We fail gracefully unless market's block number equals current block number
        if (accrualBlockNumber != getBlockNumber()) {
            return fail(Error.MARKET_NOT_FRESH, FailureInfo.SET_INTEREST_RATE_MODEL_FRESH_CHECK);
        }

        // Track the market's current interest rate model
        oldInterestRateModel = interestRateModel;

        // Ensure invoke newInterestRateModel.isInterestRateModel() returns true
        require(newInterestRateModel.isInterestRateModel(), "marker method returned false");

        // Set the interest rate model to newInterestRateModel
        interestRateModel = newInterestRateModel;

        // Emit NewMarketInterestRateModel(oldInterestRateModel, newInterestRateModel)
        emit NewMarketInterestRateModel(oldInterestRateModel, newInterestRateModel);

        return uint(Error.NO_ERROR);
    }

    /*** Safe Token ***/

    /**
     * @notice Gets balance of this contract in terms of the underlying
     * @dev This excludes the value of the current message, if any
     * @return The quantity of underlying owned by this contract
     */
    function getCashPrior() internal view returns (uint);

    /**
     * @dev Performs a transfer in, reverting upon failure. Returns the amount actually transferred to the protocol, in case of a fee.
     *  This may revert due to insufficient balance or insufficient allowance.
     */
    function doTransferIn(address from, uint amount) internal returns (uint);

    /**
     * @dev Performs a transfer out, ideally returning an explanatory error code upon failure tather than reverting.
     *  If caller has not called checked protocol's balance, may revert due to insufficient cash held in the contract.
     *  If caller has checked protocol's balance, and verified it is >= amount, this should not revert in normal conditions.
     */
    function doTransferOut(address payable to, uint amount) internal;

    /**
     * @notice Transfer `tokens` tokens from `src` to `dst` by `spender`
     * @dev Called by both `transfer` and `transferFrom` internally
     */
    function transferTokens(address spender, address src, address dst, uint tokens) internal returns (uint);

    /**
     * @notice Get the account's cToken balances
     */
    function getCTokenBalanceInternal(address account) internal view returns (uint);

    /**
     * @notice User supplies assets into the market and receives cTokens in exchange
     * @dev Assumes interest has already been accrued up to the current block
     */
    function mintFresh(address minter, uint mintAmount) internal returns (uint, uint);

    /**
     * @notice User redeems cTokens in exchange for the underlying asset
     * @dev Assumes interest has already been accrued up to the current block
     */
    function redeemFresh(address payable redeemer, uint redeemTokensIn, uint redeemAmountIn) internal returns (uint);

    /**
     * @notice Transfers collateral tokens (this market) to the liquidator.
     * @dev Called only during an in-kind liquidation, or by liquidateBorrow during the liquidation of another CToken.
     *  Its absolutely critical to use msg.sender as the seizer cToken and not a parameter.
     */
    function seizeInternal(address seizerToken, address liquidator, address borrower, uint seizeTokens) internal returns (uint);

    /*** Reentrancy Guard ***/

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     */
    modifier nonReentrant() {
        require(_notEntered, "re-entered");
        _notEntered = false;
        _;
        _notEntered = true; // get a gas-refund post-Istanbul
    }
}

File 7 of 13: CTokenInterfaces.sol
pragma solidity ^0.5.16;

import "./ComptrollerInterface.sol";
import "./InterestRateModel.sol";

contract CTokenStorage {
    /**
     * @dev Guard variable for re-entrancy checks
     */
    bool internal _notEntered;

    /**
     * @notice EIP-20 token name for this token
     */
    string public name;

    /**
     * @notice EIP-20 token symbol for this token
     */
    string public symbol;

    /**
     * @notice EIP-20 token decimals for this token
     */
    uint8 public decimals;

    /**
     * @notice Maximum borrow rate that can ever be applied (.0005% / block)
     */

    uint internal constant borrowRateMaxMantissa = 0.0005e16;

    /**
     * @notice Maximum fraction of interest that can be set aside for reserves
     */
    uint internal constant reserveFactorMaxMantissa = 1e18;

    /**
     * @notice Administrator for this contract
     */
    address payable public admin;

    /**
     * @notice Pending administrator for this contract
     */
    address payable public pendingAdmin;

    /**
     * @notice Contract which oversees inter-cToken operations
     */
    ComptrollerInterface public comptroller;

    /**
     * @notice Model which tells what the current interest rate should be
     */
    InterestRateModel public interestRateModel;

    /**
     * @notice Initial exchange rate used when minting the first CTokens (used when totalSupply = 0)
     */
    uint internal initialExchangeRateMantissa;

    /**
     * @notice Fraction of interest currently set aside for reserves
     */
    uint public reserveFactorMantissa;

    /**
     * @notice Block number that interest was last accrued at
     */
    uint public accrualBlockNumber;

    /**
     * @notice Accumulator of the total earned interest rate since the opening of the market
     */
    uint public borrowIndex;

    /**
     * @notice Total amount of outstanding borrows of the underlying in this market
     */
    uint public totalBorrows;

    /**
     * @notice Total amount of reserves of the underlying held in this market
     */
    uint public totalReserves;

    /**
     * @notice Total number of tokens in circulation
     */
    uint public totalSupply;

    /**
     * @notice Official record of token balances for each account
     */
    mapping (address => uint) internal accountTokens;

    /**
     * @notice Approved token transfer amounts on behalf of others
     */
    mapping (address => mapping (address => uint)) internal transferAllowances;

    /**
     * @notice Container for borrow balance information
     * @member principal Total balance (with accrued interest), after applying the most recent balance-changing action
     * @member interestIndex Global borrowIndex as of the most recent balance-changing action
     */
    struct BorrowSnapshot {
        uint principal;
        uint interestIndex;
    }

    /**
     * @notice Mapping of account addresses to outstanding borrow balances
     */
    mapping(address => BorrowSnapshot) internal accountBorrows;
}

contract CErc20Storage {
    /**
     * @notice Underlying asset for this CToken
     */
    address public underlying;

    /**
     * @notice Implementation address for this contract
     */
    address public implementation;
}

contract CSupplyCapStorage {
    /**
     * @notice Internal cash counter for this CToken. Should equal underlying.balanceOf(address(this)) for CERC20.
     */
    uint256 public internalCash;
}

contract CCollateralCapStorage {
    /**
     * @notice Total number of tokens used as collateral in circulation.
     */
    uint256 public totalCollateralTokens;

    /**
     * @notice Record of token balances which could be treated as collateral for each account.
     *         If collateral cap is not set, the value should be equal to accountTokens.
     */
    mapping (address => uint) public accountCollateralTokens;

    /**
     * @notice Check if accountCollateralTokens have been initialized.
     */
    mapping (address => bool) public isCollateralTokenInit;

    /**
     * @notice Collateral cap for this CToken, zero for no cap.
     */
    uint256 public collateralCap;
}

/*** Interface ***/

contract CTokenInterface is CTokenStorage {
    /**
     * @notice Indicator that this is a CToken contract (for inspection)
     */
    bool public constant isCToken = true;


    /*** Market Events ***/

    /**
     * @notice Event emitted when interest is accrued
     */
    event AccrueInterest(uint cashPrior, uint interestAccumulated, uint borrowIndex, uint totalBorrows);

    /**
     * @notice Event emitted when tokens are minted
     */
    event Mint(address minter, uint mintAmount, uint mintTokens);

    /**
     * @notice Event emitted when tokens are redeemed
     */
    event Redeem(address redeemer, uint redeemAmount, uint redeemTokens);

    /**
     * @notice Event emitted when underlying is borrowed
     */
    event Borrow(address borrower, uint borrowAmount, uint accountBorrows, uint totalBorrows);

    /**
     * @notice Event emitted when a borrow is repaid
     */
    event RepayBorrow(address payer, address borrower, uint repayAmount, uint accountBorrows, uint totalBorrows);

    /**
     * @notice Event emitted when a borrow is liquidated
     */
    event LiquidateBorrow(address liquidator, address borrower, uint repayAmount, address cTokenCollateral, uint seizeTokens);


    /*** Admin Events ***/

    /**
     * @notice Event emitted when pendingAdmin is changed
     */
    event NewPendingAdmin(address oldPendingAdmin, address newPendingAdmin);

    /**
     * @notice Event emitted when pendingAdmin is accepted, which means admin is updated
     */
    event NewAdmin(address oldAdmin, address newAdmin);

    /**
     * @notice Event emitted when comptroller is changed
     */
    event NewComptroller(ComptrollerInterface oldComptroller, ComptrollerInterface newComptroller);

    /**
     * @notice Event emitted when interestRateModel is changed
     */
    event NewMarketInterestRateModel(InterestRateModel oldInterestRateModel, InterestRateModel newInterestRateModel);

    /**
     * @notice Event emitted when the reserve factor is changed
     */
    event NewReserveFactor(uint oldReserveFactorMantissa, uint newReserveFactorMantissa);

    /**
     * @notice Event emitted when the reserves are added
     */
    event ReservesAdded(address benefactor, uint addAmount, uint newTotalReserves);

    /**
     * @notice Event emitted when the reserves are reduced
     */
    event ReservesReduced(address admin, uint reduceAmount, uint newTotalReserves);

    /**
     * @notice EIP20 Transfer event
     */
    event Transfer(address indexed from, address indexed to, uint amount);

    /**
     * @notice EIP20 Approval event
     */
    event Approval(address indexed owner, address indexed spender, uint amount);

    /**
     * @notice Failure event
     */
    event Failure(uint error, uint info, uint detail);


    /*** User Interface ***/

    function transfer(address dst, uint amount) external returns (bool);
    function transferFrom(address src, address dst, uint amount) external returns (bool);
    function approve(address spender, uint amount) external returns (bool);
    function allowance(address owner, address spender) external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function balanceOfUnderlying(address owner) external returns (uint);
    function getAccountSnapshot(address account) external view returns (uint, uint, uint, uint);
    function borrowRatePerBlock() external view returns (uint);
    function supplyRatePerBlock() external view returns (uint);
    function totalBorrowsCurrent() external returns (uint);
    function borrowBalanceCurrent(address account) external returns (uint);
    function borrowBalanceStored(address account) public view returns (uint);
    function exchangeRateCurrent() public returns (uint);
    function exchangeRateStored() public view returns (uint);
    function getCash() external view returns (uint);
    function accrueInterest() public returns (uint);
    function seize(address liquidator, address borrower, uint seizeTokens) external returns (uint);


    /*** Admin Functions ***/

    function _setPendingAdmin(address payable newPendingAdmin) external returns (uint);
    function _acceptAdmin() external returns (uint);
    function _setComptroller(ComptrollerInterface newComptroller) public returns (uint);
    function _setReserveFactor(uint newReserveFactorMantissa) external returns (uint);
    function _reduceReserves(uint reduceAmount) external returns (uint);
    function _setInterestRateModel(InterestRateModel newInterestRateModel) public returns (uint);
}

contract CErc20Interface is CErc20Storage {

    /*** User Interface ***/

    function mint(uint mintAmount) external returns (uint);
    function redeem(uint redeemTokens) external returns (uint);
    function redeemUnderlying(uint redeemAmount) external returns (uint);
    function borrow(uint borrowAmount) external returns (uint);
    function repayBorrow(uint repayAmount) external returns (uint);
    function repayBorrowBehalf(address borrower, uint repayAmount) external returns (uint);
    function liquidateBorrow(address borrower, uint repayAmount, CTokenInterface cTokenCollateral) external returns (uint);

    /*** Admin Functions ***/

    function _addReserves(uint addAmount) external returns (uint);
}

contract CCapableErc20Interface is CErc20Interface, CSupplyCapStorage {
    /**
     * @notice Flash loan fee ratio
     */
    uint public constant flashFeeBips = 3;

    /*** Market Events ***/

    /**
     * @notice Event emitted when a flashloan occured
     */
    event Flashloan(address indexed receiver, uint amount, uint totalFee, uint reservesFee);

    /*** User Interface ***/

    function gulp() external;
    function flashLoan(address receiver, uint amount, bytes calldata params) external;
}

contract CCollateralCapErc20Interface is CCapableErc20Interface, CCollateralCapStorage {

    /*** Admin Events ***/

    /**
     * @notice Event emitted when collateral cap is set
     */
    event NewCollateralCap(address token, uint newCap);

    /**
     * @notice Event emitted when user collateral is changed
     */
    event UserCollateralChanged(address account, uint newCollateralTokens);

    /*** User Interface ***/

    function registerCollateral(address account) external returns (uint);
    function unregisterCollateral(address account) external;

    /*** Admin Functions ***/

    function _setCollateralCap(uint newCollateralCap) external;
}

contract CDelegatorInterface {
    /**
     * @notice Emitted when implementation is changed
     */
    event NewImplementation(address oldImplementation, address newImplementation);

    /**
     * @notice Called by the admin to update the implementation of the delegator
     * @param implementation_ The address of the new implementation for delegation
     * @param allowResign Flag to indicate whether to call _resignImplementation on the old implementation
     * @param becomeImplementationData The encoded bytes data to be passed to _becomeImplementation
     */
    function _setImplementation(address implementation_, bool allowResign, bytes memory becomeImplementationData) public;
}

contract CDelegateInterface {
    /**
     * @notice Called by the delegator on a delegate to initialize it for duty
     * @dev Should revert if any issues arise which make it unfit for delegation
     * @param data The encoded bytes data for any initialization
     */
    function _becomeImplementation(bytes memory data) public;

    /**
     * @notice Called by the delegator on a delegate to forfeit its responsibility
     */
    function _resignImplementation() public;
}

/*** External interface ***/

/**
 * @title Flash loan receiver interface
 */
interface IFlashloanReceiver {
    function executeOperation(address sender, address underlying, uint amount, uint fee, bytes calldata params) external;
}

File 8 of 13: EIP20Interface.sol
pragma solidity ^0.5.16;

/**
 * @title ERC 20 Token Standard Interface
 *  https://eips.ethereum.org/EIPS/eip-20
 */
interface EIP20Interface {
    function name() external view returns (string memory);
    function symbol() external view returns (string memory);
    function decimals() external view returns (uint8);

    /**
      * @notice Get the total number of tokens in circulation
      * @return The supply of tokens
      */
    function totalSupply() external view returns (uint256);

    /**
     * @notice Gets the balance of the specified address
     * @param owner The address from which the balance will be retrieved
     * @return The balance
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
      * @notice Transfer `amount` tokens from `msg.sender` to `dst`
      * @param dst The address of the destination account
      * @param amount The number of tokens to transfer
      * @return Whether or not the transfer succeeded
      */
    function transfer(address dst, uint256 amount) external returns (bool success);

    /**
      * @notice Transfer `amount` tokens from `src` to `dst`
      * @param src The address of the source account
      * @param dst The address of the destination account
      * @param amount The number of tokens to transfer
      * @return Whether or not the transfer succeeded
      */
    function transferFrom(address src, address dst, uint256 amount) external returns (bool success);

    /**
      * @notice Approve `spender` to transfer up to `amount` from `src`
      * @dev This will overwrite the approval amount for `spender`
      *  and is subject to issues noted [here](https://eips.ethereum.org/EIPS/eip-20#approve)
      * @param spender The address of the account which may transfer tokens
      * @param amount The number of tokens that are approved (-1 means infinite)
      * @return Whether or not the approval succeeded
      */
    function approve(address spender, uint256 amount) external returns (bool success);

    /**
      * @notice Get the current allowance from `owner` for `spender`
      * @param owner The address of the account which owns the tokens to be spent
      * @param spender The address of the account which may transfer tokens
      * @return The number of tokens allowed to be spent (-1 means infinite)
      */
    function allowance(address owner, address spender) external view returns (uint256 remaining);

    event Transfer(address indexed from, address indexed to, uint256 amount);
    event Approval(address indexed owner, address indexed spender, uint256 amount);
}

File 9 of 13: EIP20NonStandardInterface.sol
pragma solidity ^0.5.16;

/**
 * @title EIP20NonStandardInterface
 * @dev Version of ERC20 with no return values for `transfer` and `transferFrom`
 *  See https://medium.com/coinmonks/missing-return-value-bug-at-least-130-tokens-affected-d67bf08521ca
 */
interface EIP20NonStandardInterface {

    /**
     * @notice Get the total number of tokens in circulation
     * @return The supply of tokens
     */
    function totalSupply() external view returns (uint256);

    /**
     * @notice Gets the balance of the specified address
     * @param owner The address from which the balance will be retrieved
     * @return The balance
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    ///
    /// !!!!!!!!!!!!!!
    /// !!! NOTICE !!! `transfer` does not return a value, in violation of the ERC-20 specification
    /// !!!!!!!!!!!!!!
    ///

    /**
      * @notice Transfer `amount` tokens from `msg.sender` to `dst`
      * @param dst The address of the destination account
      * @param amount The number of tokens to transfer
      */
    function transfer(address dst, uint256 amount) external;

    ///
    /// !!!!!!!!!!!!!!
    /// !!! NOTICE !!! `transferFrom` does not return a value, in violation of the ERC-20 specification
    /// !!!!!!!!!!!!!!
    ///

    /**
      * @notice Transfer `amount` tokens from `src` to `dst`
      * @param src The address of the source account
      * @param dst The address of the destination account
      * @param amount The number of tokens to transfer
      */
    function transferFrom(address src, address dst, uint256 amount) external;

    /**
      * @notice Approve `spender` to transfer up to `amount` from `src`
      * @dev This will overwrite the approval amount for `spender`
      *  and is subject to issues noted [here](https://eips.ethereum.org/EIPS/eip-20#approve)
      * @param spender The address of the account which may transfer tokens
      * @param amount The number of tokens that are approved
      * @return Whether or not the approval succeeded
      */
    function approve(address spender, uint256 amount) external returns (bool success);

    /**
      * @notice Get the current allowance from `owner` for `spender`
      * @param owner The address of the account which owns the tokens to be spent
      * @param spender The address of the account which may transfer tokens
      * @return The number of tokens allowed to be spent
      */
    function allowance(address owner, address spender) external view returns (uint256 remaining);

    event Transfer(address indexed from, address indexed to, uint256 amount);
    event Approval(address indexed owner, address indexed spender, uint256 amount);
}

File 10 of 13: ErrorReporter.sol
pragma solidity ^0.5.16;

contract ComptrollerErrorReporter {
    enum Error {
        NO_ERROR,
        UNAUTHORIZED,
        COMPTROLLER_MISMATCH,
        INSUFFICIENT_SHORTFALL,
        INSUFFICIENT_LIQUIDITY,
        INVALID_CLOSE_FACTOR,
        INVALID_COLLATERAL_FACTOR,
        INVALID_LIQUIDATION_INCENTIVE,
        MARKET_NOT_ENTERED, // no longer possible
        MARKET_NOT_LISTED,
        MARKET_ALREADY_LISTED,
        MATH_ERROR,
        NONZERO_BORROW_BALANCE,
        PRICE_ERROR,
        REJECTION,
        SNAPSHOT_ERROR,
        TOO_MANY_ASSETS,
        TOO_MUCH_REPAY
    }

    enum FailureInfo {
        ACCEPT_ADMIN_PENDING_ADMIN_CHECK,
        ACCEPT_PENDING_IMPLEMENTATION_ADDRESS_CHECK,
        EXIT_MARKET_BALANCE_OWED,
        EXIT_MARKET_REJECTION,
        SET_CLOSE_FACTOR_OWNER_CHECK,
        SET_CLOSE_FACTOR_VALIDATION,
        SET_COLLATERAL_FACTOR_OWNER_CHECK,
        SET_COLLATERAL_FACTOR_NO_EXISTS,
        SET_COLLATERAL_FACTOR_VALIDATION,
        SET_COLLATERAL_FACTOR_WITHOUT_PRICE,
        SET_IMPLEMENTATION_OWNER_CHECK,
        SET_LIQUIDATION_INCENTIVE_OWNER_CHECK,
        SET_LIQUIDATION_INCENTIVE_VALIDATION,
        SET_MAX_ASSETS_OWNER_CHECK,
        SET_PENDING_ADMIN_OWNER_CHECK,
        SET_PENDING_IMPLEMENTATION_OWNER_CHECK,
        SET_PRICE_ORACLE_OWNER_CHECK,
        SUPPORT_MARKET_EXISTS,
        SUPPORT_MARKET_OWNER_CHECK,
        SET_PAUSE_GUARDIAN_OWNER_CHECK
    }

    /**
      * @dev `error` corresponds to enum Error; `info` corresponds to enum FailureInfo, and `detail` is an arbitrary
      * contract-specific code that enables us to report opaque error codes from upgradeable contracts.
      **/
    event Failure(uint error, uint info, uint detail);

    /**
      * @dev use this when reporting a known error from the money market or a non-upgradeable collaborator
      */
    function fail(Error err, FailureInfo info) internal returns (uint) {
        emit Failure(uint(err), uint(info), 0);

        return uint(err);
    }

    /**
      * @dev use this when reporting an opaque error from an upgradeable collaborator contract
      */
    function failOpaque(Error err, FailureInfo info, uint opaqueError) internal returns (uint) {
        emit Failure(uint(err), uint(info), opaqueError);

        return uint(err);
    }
}

contract TokenErrorReporter {
    enum Error {
        NO_ERROR,
        UNAUTHORIZED,
        BAD_INPUT,
        COMPTROLLER_REJECTION,
        COMPTROLLER_CALCULATION_ERROR,
        INTEREST_RATE_MODEL_ERROR,
        INVALID_ACCOUNT_PAIR,
        INVALID_CLOSE_AMOUNT_REQUESTED,
        INVALID_COLLATERAL_FACTOR,
        MATH_ERROR,
        MARKET_NOT_FRESH,
        MARKET_NOT_LISTED,
        TOKEN_INSUFFICIENT_ALLOWANCE,
        TOKEN_INSUFFICIENT_BALANCE,
        TOKEN_INSUFFICIENT_CASH,
        TOKEN_TRANSFER_IN_FAILED,
        TOKEN_TRANSFER_OUT_FAILED
    }

    /*
     * Note: FailureInfo (but not Error) is kept in alphabetical order
     *       This is because FailureInfo grows significantly faster, and
     *       the order of Error has some meaning, while the order of FailureInfo
     *       is entirely arbitrary.
     */
    enum FailureInfo {
        ACCEPT_ADMIN_PENDING_ADMIN_CHECK,
        ACCRUE_INTEREST_BORROW_RATE_CALCULATION_FAILED,
        BORROW_ACCRUE_INTEREST_FAILED,
        BORROW_CASH_NOT_AVAILABLE,
        BORROW_FRESHNESS_CHECK,
        BORROW_MARKET_NOT_LISTED,
        BORROW_COMPTROLLER_REJECTION,
        LIQUIDATE_ACCRUE_BORROW_INTEREST_FAILED,
        LIQUIDATE_ACCRUE_COLLATERAL_INTEREST_FAILED,
        LIQUIDATE_COLLATERAL_FRESHNESS_CHECK,
        LIQUIDATE_COMPTROLLER_REJECTION,
        LIQUIDATE_COMPTROLLER_CALCULATE_AMOUNT_SEIZE_FAILED,
        LIQUIDATE_CLOSE_AMOUNT_IS_UINT_MAX,
        LIQUIDATE_CLOSE_AMOUNT_IS_ZERO,
        LIQUIDATE_FRESHNESS_CHECK,
        LIQUIDATE_LIQUIDATOR_IS_BORROWER,
        LIQUIDATE_REPAY_BORROW_FRESH_FAILED,
        LIQUIDATE_SEIZE_COMPTROLLER_REJECTION,
        LIQUIDATE_SEIZE_LIQUIDATOR_IS_BORROWER,
        LIQUIDATE_SEIZE_TOO_MUCH,
        MINT_ACCRUE_INTEREST_FAILED,
        MINT_COMPTROLLER_REJECTION,
        MINT_FRESHNESS_CHECK,
        MINT_TRANSFER_IN_FAILED,
        MINT_TRANSFER_IN_NOT_POSSIBLE,
        REDEEM_ACCRUE_INTEREST_FAILED,
        REDEEM_COMPTROLLER_REJECTION,
        REDEEM_FRESHNESS_CHECK,
        REDEEM_TRANSFER_OUT_NOT_POSSIBLE,
        REDUCE_RESERVES_ACCRUE_INTEREST_FAILED,
        REDUCE_RESERVES_ADMIN_CHECK,
        REDUCE_RESERVES_CASH_NOT_AVAILABLE,
        REDUCE_RESERVES_FRESH_CHECK,
        REDUCE_RESERVES_VALIDATION,
        REPAY_BEHALF_ACCRUE_INTEREST_FAILED,
        REPAY_BORROW_ACCRUE_INTEREST_FAILED,
        REPAY_BORROW_COMPTROLLER_REJECTION,
        REPAY_BORROW_FRESHNESS_CHECK,
        REPAY_BORROW_TRANSFER_IN_NOT_POSSIBLE,
        SET_COLLATERAL_FACTOR_OWNER_CHECK,
        SET_COLLATERAL_FACTOR_VALIDATION,
        SET_COMPTROLLER_OWNER_CHECK,
        SET_INTEREST_RATE_MODEL_ACCRUE_INTEREST_FAILED,
        SET_INTEREST_RATE_MODEL_FRESH_CHECK,
        SET_INTEREST_RATE_MODEL_OWNER_CHECK,
        SET_MAX_ASSETS_OWNER_CHECK,
        SET_ORACLE_MARKET_NOT_LISTED,
        SET_PENDING_ADMIN_OWNER_CHECK,
        SET_RESERVE_FACTOR_ACCRUE_INTEREST_FAILED,
        SET_RESERVE_FACTOR_ADMIN_CHECK,
        SET_RESERVE_FACTOR_FRESH_CHECK,
        SET_RESERVE_FACTOR_BOUNDS_CHECK,
        TRANSFER_COMPTROLLER_REJECTION,
        TRANSFER_NOT_ALLOWED,
        ADD_RESERVES_ACCRUE_INTEREST_FAILED,
        ADD_RESERVES_FRESH_CHECK,
        ADD_RESERVES_TRANSFER_IN_NOT_POSSIBLE
    }

    /**
      * @dev `error` corresponds to enum Error; `info` corresponds to enum FailureInfo, and `detail` is an arbitrary
      * contract-specific code that enables us to report opaque error codes from upgradeable contracts.
      **/
    event Failure(uint error, uint info, uint detail);

    /**
      * @dev use this when reporting a known error from the money market or a non-upgradeable collaborator
      */
    function fail(Error err, FailureInfo info) internal returns (uint) {
        emit Failure(uint(err), uint(info), 0);

        return uint(err);
    }

    /**
      * @dev use this when reporting an opaque error from an upgradeable collaborator contract
      */
    function failOpaque(Error err, FailureInfo info, uint opaqueError) internal returns (uint) {
        emit Failure(uint(err), uint(info), opaqueError);

        return uint(err);
    }
}

File 11 of 13: Exponential.sol
pragma solidity ^0.5.16;

import "./CarefulMath.sol";

/**
 * @title Exponential module for storing fixed-precision decimals
 * @author Compound
 * @notice Exp is a struct which stores decimals with a fixed precision of 18 decimal places.
 *         Thus, if we wanted to store the 5.1, mantissa would store 5.1e18. That is:
 *         `Exp({mantissa: 5100000000000000000})`.
 */
contract Exponential is CarefulMath {
    uint constant expScale = 1e18;
    uint constant doubleScale = 1e36;
    uint constant halfExpScale = expScale/2;
    uint constant mantissaOne = expScale;

    struct Exp {
        uint mantissa;
    }

    struct Double {
        uint mantissa;
    }

    /**
     * @dev Creates an exponential from numerator and denominator values.
     *      Note: Returns an error if (`num` * 10e18) > MAX_INT,
     *            or if `denom` is zero.
     */
    function getExp(uint num, uint denom) pure internal returns (MathError, Exp memory) {
        (MathError err0, uint scaledNumerator) = mulUInt(num, expScale);
        if (err0 != MathError.NO_ERROR) {
            return (err0, Exp({mantissa: 0}));
        }

        (MathError err1, uint rational) = divUInt(scaledNumerator, denom);
        if (err1 != MathError.NO_ERROR) {
            return (err1, Exp({mantissa: 0}));
        }

        return (MathError.NO_ERROR, Exp({mantissa: rational}));
    }

    /**
     * @dev Adds two exponentials, returning a new exponential.
     */
    function addExp(Exp memory a, Exp memory b) pure internal returns (MathError, Exp memory) {
        (MathError error, uint result) = addUInt(a.mantissa, b.mantissa);

        return (error, Exp({mantissa: result}));
    }

    /**
     * @dev Subtracts two exponentials, returning a new exponential.
     */
    function subExp(Exp memory a, Exp memory b) pure internal returns (MathError, Exp memory) {
        (MathError error, uint result) = subUInt(a.mantissa, b.mantissa);

        return (error, Exp({mantissa: result}));
    }

    /**
     * @dev Multiply an Exp by a scalar, returning a new Exp.
     */
    function mulScalar(Exp memory a, uint scalar) pure internal returns (MathError, Exp memory) {
        (MathError err0, uint scaledMantissa) = mulUInt(a.mantissa, scalar);
        if (err0 != MathError.NO_ERROR) {
            return (err0, Exp({mantissa: 0}));
        }

        return (MathError.NO_ERROR, Exp({mantissa: scaledMantissa}));
    }

    /**
     * @dev Multiply an Exp by a scalar, then truncate to return an unsigned integer.
     */
    function mulScalarTruncate(Exp memory a, uint scalar) pure internal returns (MathError, uint) {
        (MathError err, Exp memory product) = mulScalar(a, scalar);
        if (err != MathError.NO_ERROR) {
            return (err, 0);
        }

        return (MathError.NO_ERROR, truncate(product));
    }

    /**
     * @dev Multiply an Exp by a scalar, truncate, then add an to an unsigned integer, returning an unsigned integer.
     */
    function mulScalarTruncateAddUInt(Exp memory a, uint scalar, uint addend) pure internal returns (MathError, uint) {
        (MathError err, Exp memory product) = mulScalar(a, scalar);
        if (err != MathError.NO_ERROR) {
            return (err, 0);
        }

        return addUInt(truncate(product), addend);
    }

    /**
     * @dev Multiply an Exp by a scalar, then truncate to return an unsigned integer.
     */
    function mul_ScalarTruncate(Exp memory a, uint scalar) pure internal returns (uint) {
        Exp memory product = mul_(a, scalar);
        return truncate(product);
    }

    /**
     * @dev Multiply an Exp by a scalar, truncate, then add an to an unsigned integer, returning an unsigned integer.
     */
    function mul_ScalarTruncateAddUInt(Exp memory a, uint scalar, uint addend) pure internal returns (uint) {
        Exp memory product = mul_(a, scalar);
        return add_(truncate(product), addend);
    }

    /**
     * @dev Divide an Exp by a scalar, returning a new Exp.
     */
    function divScalar(Exp memory a, uint scalar) pure internal returns (MathError, Exp memory) {
        (MathError err0, uint descaledMantissa) = divUInt(a.mantissa, scalar);
        if (err0 != MathError.NO_ERROR) {
            return (err0, Exp({mantissa: 0}));
        }

        return (MathError.NO_ERROR, Exp({mantissa: descaledMantissa}));
    }

    /**
     * @dev Divide a scalar by an Exp, returning a new Exp.
     */
    function divScalarByExp(uint scalar, Exp memory divisor) pure internal returns (MathError, Exp memory) {
        /*
          We are doing this as:
          getExp(mulUInt(expScale, scalar), divisor.mantissa)

          How it works:
          Exp = a / b;
          Scalar = s;
          `s / (a / b)` = `b * s / a` and since for an Exp `a = mantissa, b = expScale`
        */
        (MathError err0, uint numerator) = mulUInt(expScale, scalar);
        if (err0 != MathError.NO_ERROR) {
            return (err0, Exp({mantissa: 0}));
        }
        return getExp(numerator, divisor.mantissa);
    }

    /**
     * @dev Divide a scalar by an Exp, then truncate to return an unsigned integer.
     */
    function divScalarByExpTruncate(uint scalar, Exp memory divisor) pure internal returns (MathError, uint) {
        (MathError err, Exp memory fraction) = divScalarByExp(scalar, divisor);
        if (err != MathError.NO_ERROR) {
            return (err, 0);
        }

        return (MathError.NO_ERROR, truncate(fraction));
    }

    /**
     * @dev Divide a scalar by an Exp, returning a new Exp.
     */
    function div_ScalarByExp(uint scalar, Exp memory divisor) pure internal returns (Exp memory) {
        /*
          We are doing this as:
          getExp(mulUInt(expScale, scalar), divisor.mantissa)

          How it works:
          Exp = a / b;
          Scalar = s;
          `s / (a / b)` = `b * s / a` and since for an Exp `a = mantissa, b = expScale`
        */
        uint numerator = mul_(expScale, scalar);
        return Exp({mantissa: div_(numerator, divisor)});
    }

    /**
     * @dev Divide a scalar by an Exp, then truncate to return an unsigned integer.
     */
    function div_ScalarByExpTruncate(uint scalar, Exp memory divisor) pure internal returns (uint) {
        Exp memory fraction = div_ScalarByExp(scalar, divisor);
        return truncate(fraction);
    }

    /**
     * @dev Multiplies two exponentials, returning a new exponential.
     */
    function mulExp(Exp memory a, Exp memory b) pure internal returns (MathError, Exp memory) {

        (MathError err0, uint doubleScaledProduct) = mulUInt(a.mantissa, b.mantissa);
        if (err0 != MathError.NO_ERROR) {
            return (err0, Exp({mantissa: 0}));
        }

        // We add half the scale before dividing so that we get rounding instead of truncation.
        //  See "Listing 6" and text above it at https://accu.org/index.php/journals/1717
        // Without this change, a result like 6.6...e-19 will be truncated to 0 instead of being rounded to 1e-18.
        (MathError err1, uint doubleScaledProductWithHalfScale) = addUInt(halfExpScale, doubleScaledProduct);
        if (err1 != MathError.NO_ERROR) {
            return (err1, Exp({mantissa: 0}));
        }

        (MathError err2, uint product) = divUInt(doubleScaledProductWithHalfScale, expScale);
        // The only error `div` can return is MathError.DIVISION_BY_ZERO but we control `expScale` and it is not zero.
        assert(err2 == MathError.NO_ERROR);

        return (MathError.NO_ERROR, Exp({mantissa: product}));
    }

    /**
     * @dev Multiplies two exponentials given their mantissas, returning a new exponential.
     */
    function mulExp(uint a, uint b) pure internal returns (MathError, Exp memory) {
        return mulExp(Exp({mantissa: a}), Exp({mantissa: b}));
    }

    /**
     * @dev Multiplies three exponentials, returning a new exponential.
     */
    function mulExp3(Exp memory a, Exp memory b, Exp memory c) pure internal returns (MathError, Exp memory) {
        (MathError err, Exp memory ab) = mulExp(a, b);
        if (err != MathError.NO_ERROR) {
            return (err, ab);
        }
        return mulExp(ab, c);
    }

    /**
     * @dev Divides two exponentials, returning a new exponential.
     *     (a/scale) / (b/scale) = (a/scale) * (scale/b) = a/b,
     *  which we can scale as an Exp by calling getExp(a.mantissa, b.mantissa)
     */
    function divExp(Exp memory a, Exp memory b) pure internal returns (MathError, Exp memory) {
        return getExp(a.mantissa, b.mantissa);
    }

    /**
     * @dev Truncates the given exp to a whole number value.
     *      For example, truncate(Exp{mantissa: 15 * expScale}) = 15
     */
    function truncate(Exp memory exp) pure internal returns (uint) {
        // Note: We are not using careful math here as we're performing a division that cannot fail
        return exp.mantissa / expScale;
    }

    /**
     * @dev Checks if first Exp is less than second Exp.
     */
    function lessThanExp(Exp memory left, Exp memory right) pure internal returns (bool) {
        return left.mantissa < right.mantissa;
    }

    /**
     * @dev Checks if left Exp <= right Exp.
     */
    function lessThanOrEqualExp(Exp memory left, Exp memory right) pure internal returns (bool) {
        return left.mantissa <= right.mantissa;
    }

    /**
     * @dev returns true if Exp is exactly zero
     */
    function isZeroExp(Exp memory value) pure internal returns (bool) {
        return value.mantissa == 0;
    }

    function safe224(uint n, string memory errorMessage) pure internal returns (uint224) {
        require(n < 2**224, errorMessage);
        return uint224(n);
    }

    function safe32(uint n, string memory errorMessage) pure internal returns (uint32) {
        require(n < 2**32, errorMessage);
        return uint32(n);
    }

    function add_(Exp memory a, Exp memory b) pure internal returns (Exp memory) {
        return Exp({mantissa: add_(a.mantissa, b.mantissa)});
    }

    function add_(Double memory a, Double memory b) pure internal returns (Double memory) {
        return Double({mantissa: add_(a.mantissa, b.mantissa)});
    }

    function add_(uint a, uint b) pure internal returns (uint) {
        return add_(a, b, "addition overflow");
    }

    function add_(uint a, uint b, string memory errorMessage) pure internal returns (uint) {
        uint c = a + b;
        require(c >= a, errorMessage);
        return c;
    }

    function sub_(Exp memory a, Exp memory b) pure internal returns (Exp memory) {
        return Exp({mantissa: sub_(a.mantissa, b.mantissa)});
    }

    function sub_(Double memory a, Double memory b) pure internal returns (Double memory) {
        return Double({mantissa: sub_(a.mantissa, b.mantissa)});
    }

    function sub_(uint a, uint b) pure internal returns (uint) {
        return sub_(a, b, "subtraction underflow");
    }

    function sub_(uint a, uint b, string memory errorMessage) pure internal returns (uint) {
        require(b <= a, errorMessage);
        return a - b;
    }

    function mul_(Exp memory a, Exp memory b) pure internal returns (Exp memory) {
        return Exp({mantissa: mul_(a.mantissa, b.mantissa) / expScale});
    }

    function mul_(Exp memory a, uint b) pure internal returns (Exp memory) {
        return Exp({mantissa: mul_(a.mantissa, b)});
    }

    function mul_(uint a, Exp memory b) pure internal returns (uint) {
        return mul_(a, b.mantissa) / expScale;
    }

    function mul_(Double memory a, Double memory b) pure internal returns (Double memory) {
        return Double({mantissa: mul_(a.mantissa, b.mantissa) / doubleScale});
    }

    function mul_(Double memory a, uint b) pure internal returns (Double memory) {
        return Double({mantissa: mul_(a.mantissa, b)});
    }

    function mul_(uint a, Double memory b) pure internal returns (uint) {
        return mul_(a, b.mantissa) / doubleScale;
    }

    function mul_(uint a, uint b) pure internal returns (uint) {
        return mul_(a, b, "multiplication overflow");
    }

    function mul_(uint a, uint b, string memory errorMessage) pure internal returns (uint) {
        if (a == 0 || b == 0) {
            return 0;
        }
        uint c = a * b;
        require(c / a == b, errorMessage);
        return c;
    }

    function div_(Exp memory a, Exp memory b) pure internal returns (Exp memory) {
        return Exp({mantissa: div_(mul_(a.mantissa, expScale), b.mantissa)});
    }

    function div_(Exp memory a, uint b) pure internal returns (Exp memory) {
        return Exp({mantissa: div_(a.mantissa, b)});
    }

    function div_(uint a, Exp memory b) pure internal returns (uint) {
        return div_(mul_(a, expScale), b.mantissa);
    }

    function div_(Double memory a, Double memory b) pure internal returns (Double memory) {
        return Double({mantissa: div_(mul_(a.mantissa, doubleScale), b.mantissa)});
    }

    function div_(Double memory a, uint b) pure internal returns (Double memory) {
        return Double({mantissa: div_(a.mantissa, b)});
    }

    function div_(uint a, Double memory b) pure internal returns (uint) {
        return div_(mul_(a, doubleScale), b.mantissa);
    }

    function div_(uint a, uint b) pure internal returns (uint) {
        return div_(a, b, "divide by zero");
    }

    function div_(uint a, uint b, string memory errorMessage) pure internal returns (uint) {
        require(b > 0, errorMessage);
        return a / b;
    }

    function fraction(uint a, uint b) pure internal returns (Double memory) {
        return Double({mantissa: div_(mul_(a, doubleScale), b)});
    }

    // implementation from https://github.com/Uniswap/uniswap-lib/commit/99f3f28770640ba1bb1ff460ac7c5292fb8291a0
    // original implementation: https://github.com/abdk-consulting/abdk-libraries-solidity/blob/master/ABDKMath64x64.sol#L687
    function sqrt(uint x) pure internal returns (uint) {
        if (x == 0) return 0;
        uint xx = x;
        uint r = 1;

        if (xx >= 0x100000000000000000000000000000000) {
            xx >>= 128;
            r <<= 64;
        }
        if (xx >= 0x10000000000000000) {
            xx >>= 64;
            r <<= 32;
        }
        if (xx >= 0x100000000) {
            xx >>= 32;
            r <<= 16;
        }
        if (xx >= 0x10000) {
            xx >>= 16;
            r <<= 8;
        }
        if (xx >= 0x100) {
            xx >>= 8;
            r <<= 4;
        }
        if (xx >= 0x10) {
            xx >>= 4;
            r <<= 2;
        }
        if (xx >= 0x8) {
            r <<= 1;
        }

        r = (r + x / r) >> 1;
        r = (r + x / r) >> 1;
        r = (r + x / r) >> 1;
        r = (r + x / r) >> 1;
        r = (r + x / r) >> 1;
        r = (r + x / r) >> 1;
        r = (r + x / r) >> 1; // Seven iterations should be enough
        uint r1 = x / r;
        return (r < r1 ? r : r1);
    }
}

File 12 of 13: InterestRateModel.sol
pragma solidity ^0.5.16;

/**
  * @title Compound's InterestRateModel Interface
  * @author Compound
  */
contract InterestRateModel {
    /// @notice Indicator that this is an InterestRateModel contract (for inspection)
    bool public constant isInterestRateModel = true;

    /**
      * @notice Calculates the current borrow interest rate per block
      * @param cash The total amount of cash the market has
      * @param borrows The total amount of borrows the market has outstanding
      * @param reserves The total amnount of reserves the market has
      * @return The borrow rate per block (as a percentage, and scaled by 1e18)
      */
    function getBorrowRate(uint cash, uint borrows, uint reserves) external view returns (uint);

    /**
      * @notice Calculates the current supply interest rate per block
      * @param cash The total amount of cash the market has
      * @param borrows The total amount of borrows the market has outstanding
      * @param reserves The total amnount of reserves the market has
      * @param reserveFactorMantissa The current reserve factor the market has
      * @return The supply rate per block (as a percentage, and scaled by 1e18)
      */
    function getSupplyRate(uint cash, uint borrows, uint reserves, uint reserveFactorMantissa) external view returns (uint);

}

File 13 of 13: PriceOracle.sol
pragma solidity ^0.5.16;

import "./CToken.sol";

contract PriceOracle {
    /// @notice Indicator that this is a PriceOracle contract (for inspection)
    bool public constant isPriceOracle = true;

    /**
      * @notice Get the underlying price of a cToken asset
      * @param cToken The cToken to get the underlying price of
      * @return The underlying asset price mantissa (scaled by 1e18).
      *  Zero means the price is unavailable.
      */
    function getUnderlyingPrice(CToken cToken) external view returns (uint);
}

Contract Security Audit

Contract ABI

[{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"cashPrior","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"interestAccumulated","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"borrowIndex","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalBorrows","type":"uint256"}],"name":"AccrueInterest","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"borrower","type":"address"},{"indexed":false,"internalType":"uint256","name":"borrowAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"accountBorrows","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalBorrows","type":"uint256"}],"name":"Borrow","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"error","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"info","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"detail","type":"uint256"}],"name":"Failure","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"reservesFee","type":"uint256"}],"name":"Flashloan","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"liquidator","type":"address"},{"indexed":false,"internalType":"address","name":"borrower","type":"address"},{"indexed":false,"internalType":"uint256","name":"repayAmount","type":"uint256"},{"indexed":false,"internalType":"address","name":"cTokenCollateral","type":"address"},{"indexed":false,"internalType":"uint256","name":"seizeTokens","type":"uint256"}],"name":"LiquidateBorrow","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"uint256","name":"mintAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"mintTokens","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"NewAdmin","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"newCap","type":"uint256"}],"name":"NewCollateralCap","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"contract ComptrollerInterface","name":"oldComptroller","type":"address"},{"indexed":false,"internalType":"contract ComptrollerInterface","name":"newComptroller","type":"address"}],"name":"NewComptroller","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"contract InterestRateModel","name":"oldInterestRateModel","type":"address"},{"indexed":false,"internalType":"contract InterestRateModel","name":"newInterestRateModel","type":"address"}],"name":"NewMarketInterestRateModel","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldPendingAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newPendingAdmin","type":"address"}],"name":"NewPendingAdmin","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldReserveFactorMantissa","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newReserveFactorMantissa","type":"uint256"}],"name":"NewReserveFactor","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"redeemer","type":"address"},{"indexed":false,"internalType":"uint256","name":"redeemAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"redeemTokens","type":"uint256"}],"name":"Redeem","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"payer","type":"address"},{"indexed":false,"internalType":"address","name":"borrower","type":"address"},{"indexed":false,"internalType":"uint256","name":"repayAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"accountBorrows","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalBorrows","type":"uint256"}],"name":"RepayBorrow","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"benefactor","type":"address"},{"indexed":false,"internalType":"uint256","name":"addAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newTotalReserves","type":"uint256"}],"name":"ReservesAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"admin","type":"address"},{"indexed":false,"internalType":"uint256","name":"reduceAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newTotalReserves","type":"uint256"}],"name":"ReservesReduced","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":"amount","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"newCollateralTokens","type":"uint256"}],"name":"UserCollateralChanged","type":"event"},{"constant":false,"inputs":[],"name":"_acceptAdmin","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"addAmount","type":"uint256"}],"name":"_addReserves","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes","name":"data","type":"bytes"}],"name":"_becomeImplementation","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"reduceAmount","type":"uint256"}],"name":"_reduceReserves","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"_resignImplementation","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"newCollateralCap","type":"uint256"}],"name":"_setCollateralCap","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"contract ComptrollerInterface","name":"newComptroller","type":"address"}],"name":"_setComptroller","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"contract InterestRateModel","name":"newInterestRateModel","type":"address"}],"name":"_setInterestRateModel","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address payable","name":"newPendingAdmin","type":"address"}],"name":"_setPendingAdmin","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"newReserveFactorMantissa","type":"uint256"}],"name":"_setReserveFactor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"accountCollateralTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"accrualBlockNumber","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"accrueInterest","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"admin","outputs":[{"internalType":"address payable","name":"","type":"address"}],"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":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOfUnderlying","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"borrowAmount","type":"uint256"}],"name":"borrow","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"borrowBalanceCurrent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"borrowBalanceStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"borrowIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"borrowRatePerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"collateralCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"comptroller","outputs":[{"internalType":"contract ComptrollerInterface","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":true,"inputs":[{"internalType":"uint256","name":"change","type":"uint256"},{"internalType":"bool","name":"repay","type":"bool"}],"name":"estimateBorrowRatePerBlockAfterChange","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"change","type":"uint256"},{"internalType":"bool","name":"repay","type":"bool"}],"name":"estimateSupplyRatePerBlockAfterChange","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"exchangeRateCurrent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"exchangeRateStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"flashFeeBips","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"params","type":"bytes"}],"name":"flashLoan","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getAccountSnapshot","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getCash","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"gulp","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"underlying_","type":"address"},{"internalType":"contract ComptrollerInterface","name":"comptroller_","type":"address"},{"internalType":"contract InterestRateModel","name":"interestRateModel_","type":"address"},{"internalType":"uint256","name":"initialExchangeRateMantissa_","type":"uint256"},{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"uint8","name":"decimals_","type":"uint8"}],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"contract ComptrollerInterface","name":"comptroller_","type":"address"},{"internalType":"contract InterestRateModel","name":"interestRateModel_","type":"address"},{"internalType":"uint256","name":"initialExchangeRateMantissa_","type":"uint256"},{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"uint8","name":"decimals_","type":"uint8"}],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"interestRateModel","outputs":[{"internalType":"contract InterestRateModel","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"internalCash","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isCToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isCollateralTokenInit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"borrower","type":"address"},{"internalType":"uint256","name":"repayAmount","type":"uint256"},{"internalType":"contract CTokenInterface","name":"cTokenCollateral","type":"address"}],"name":"liquidateBorrow","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"mintAmount","type":"uint256"}],"name":"mint","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":[],"name":"pendingAdmin","outputs":[{"internalType":"address payable","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"redeemTokens","type":"uint256"}],"name":"redeem","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"redeemAmount","type":"uint256"}],"name":"redeemUnderlying","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"registerCollateral","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"repayAmount","type":"uint256"}],"name":"repayBorrow","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"borrower","type":"address"},{"internalType":"uint256","name":"repayAmount","type":"uint256"}],"name":"repayBorrowBehalf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"reserveFactorMantissa","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"liquidator","type":"address"},{"internalType":"address","name":"borrower","type":"address"},{"internalType":"uint256","name":"seizeTokens","type":"uint256"}],"name":"seize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"supplyRatePerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalBorrows","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"totalBorrowsCurrent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalCollateralTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalReserves","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"dst","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":"src","type":"address"},{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"underlying","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"unregisterCollateral","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b506154d9806100206000396000f3fe608060405234801561001057600080fd5b50600436106103d05760003560e01c806385d8a2e6116101ff578063c37f68e21161011a578063ea11eea4116100ad578063f851a4401161007c578063f851a44014610dbb578063f8f9da2814610dc3578063fca7820b14610dcb578063fe9c44ae14610de8576103d0565b8063ea11eea414610d4f578063f2b3abbd14610d57578063f3fdb15a14610d7d578063f5e3c46214610d85576103d0565b8063db006a75116100e9578063db006a7514610c79578063dd62ed3e14610c96578063e0232b4214610cc4578063e9c714f214610d47576103d0565b8063c37f68e214610be2578063c5ebeaec14610c2e578063d240d64a14610c4b578063d2bb18e914610c71576103d0565b8063a0712d6811610192578063ae9d70b011610161578063ae9d70b014610b76578063b2a02ff114610b7e578063b71d1a0c14610bb4578063bd6d894d14610bda576103d0565b8063a0712d6814610b1d578063a6afed9514610b3a578063a9059cbb14610b42578063aa5af0fd14610b6e576103d0565b806394909e62116101ce57806394909e621461099957806395d89b41146109a157806395dd9193146109a957806399d8c1b4146109cf576103d0565b806385d8a2e61461091f5780638897bd85146109455780638b35776b1461096b5780638f840ddd14610991576103d0565b8063313ce567116102ef5780635fe3b5671161028257806370a082311161025157806370a08231146108b757806373acee98146108dd57806381cf00eb146108e5578063852a12e314610902576103d0565b80635fe3b56714610882578063601a0bf11461088a5780636c540baf146108a75780636f307dc3146108af576103d0565b80634576b5db116102be5780634576b5db146107a857806347bd3718146107ce57806356e67728146107d65780635c60da1b1461087a576103d0565b8063313ce5671461073f5780633af9e6691461075d5780633b1d21a2146107835780633e9410101461078b576103d0565b806318160ddd1161036757806322abdbf51161033657806322abdbf5146106b157806323b872dd146106b95780632608f818146106ef578063267822471461071b576103d0565b806318160ddd14610543578063182df0f51461054b57806319a4dd3c146105535780631a31d4651461055b576103d0565b80630f226888116103a35780630f226888146104e6578063153ab5051461050b578063173b99041461051557806317bfdfbc1461051d576103d0565b806305dd00b8146103d557806306fdde031461040c578063095ea7b3146104895780630e752702146104c9575b600080fd5b6103fa600480360360408110156103eb57600080fd5b50803590602001351515610df0565b60408051918252519081900360200190f35b610414610ed7565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561044e578181015183820152602001610436565b50505050905090810190601f16801561047b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6104b56004803603604081101561049f57600080fd5b506001600160a01b038135169060200135610f64565b604080519115158252519081900360200190f35b6103fa600480360360208110156104df57600080fd5b5035610fcf565b6103fa600480360360408110156104fc57600080fd5b50803590602001351515610fe5565b610513611094565b005b6103fa6110e4565b6103fa6004803603602081101561053357600080fd5b50356001600160a01b03166110ea565b6103fa6111aa565b6103fa6111b0565b6103fa6111c0565b610513600480360360e081101561057157600080fd5b6001600160a01b03823581169260208101358216926040820135909216916060820135919081019060a081016080820135600160201b8111156105b357600080fd5b8201836020820111156105c557600080fd5b803590602001918460018302840111600160201b831117156105e657600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561063857600080fd5b82018360208201111561064a57600080fd5b803590602001918460018302840111600160201b8311171561066b57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505050903560ff1691506111c69050565b6103fa611265565b6104b5600480360360608110156106cf57600080fd5b506001600160a01b0381358116916020810135909116906040013561126b565b6103fa6004803603604081101561070557600080fd5b506001600160a01b0381351690602001356112dd565b6107236112f3565b604080516001600160a01b039092168252519081900360200190f35b610747611302565b6040805160ff9092168252519081900360200190f35b6103fa6004803603602081101561077357600080fd5b50356001600160a01b031661130b565b6103fa611358565b6103fa600480360360208110156107a157600080fd5b5035611362565b6103fa600480360360208110156107be57600080fd5b50356001600160a01b031661136d565b6103fa6114bf565b610513600480360360208110156107ec57600080fd5b810190602081018135600160201b81111561080657600080fd5b82018360208201111561081857600080fd5b803590602001918460018302840111600160201b8311171561083957600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506114c5945050505050565b61072361158c565b61072361159b565b6103fa600480360360208110156108a057600080fd5b50356115aa565b6103fa611645565b61072361164b565b6103fa600480360360208110156108cd57600080fd5b50356001600160a01b031661165a565b6103fa611675565b610513600480360360208110156108fb57600080fd5b503561172b565b6103fa6004803603602081101561091857600080fd5b50356117bc565b6104b56004803603602081101561093557600080fd5b50356001600160a01b03166117c7565b6103fa6004803603602081101561095b57600080fd5b50356001600160a01b03166117dc565b6105136004803603602081101561098157600080fd5b50356001600160a01b031661186a565b6103fa6118e3565b6105136118e9565b61041461197e565b6103fa600480360360208110156109bf57600080fd5b50356001600160a01b03166119d6565b610513600480360360c08110156109e557600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b811115610a1f57600080fd5b820183602082011115610a3157600080fd5b803590602001918460018302840111600160201b83111715610a5257600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b811115610aa457600080fd5b820183602082011115610ab657600080fd5b803590602001918460018302840111600160201b83111715610ad757600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505050903560ff1691506119e19050565b6103fa60048036036020811015610b3357600080fd5b5035611bc8565b6103fa611bd4565b6104b560048036036040811015610b5857600080fd5b506001600160a01b038135169060200135611de4565b6103fa611e55565b6103fa611e5b565b6103fa60048036036060811015610b9457600080fd5b506001600160a01b03813581169160208101359091169060400135611efa565b6103fa60048036036020811015610bca57600080fd5b50356001600160a01b0316611f6b565b6103fa611ff7565b610c0860048036036020811015610bf857600080fd5b50356001600160a01b03166120b3565b604080519485526020850193909352838301919091526060830152519081900360800190f35b6103fa60048036036020811015610c4457600080fd5b50356120ef565b6103fa60048036036020811015610c6157600080fd5b50356001600160a01b03166120fa565b6103fa61210c565b6103fa60048036036020811015610c8f57600080fd5b5035612112565b6103fa60048036036040811015610cac57600080fd5b506001600160a01b038135811691602001351661211d565b61051360048036036060811015610cda57600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b811115610d0957600080fd5b820183602082011115610d1b57600080fd5b803590602001918460018302840111600160201b83111715610d3c57600080fd5b509092509050612148565b6103fa612488565b6103fa61258b565b6103fa60048036036020811015610d6d57600080fd5b50356001600160a01b0316612590565b6107236125ca565b6103fa60048036036060811015610d9b57600080fd5b506001600160a01b038135811691602081013591604090910135166125d9565b6107236125f1565b6103fa612605565b6103fa60048036036020811015610de157600080fd5b5035612669565b6104b56126e7565b60008060008315610e2157610e0c610e066126ec565b866126f2565b9150610e1a600b5486612728565b9050610e43565b610e32610e2c6126ec565b86612728565b9150610e40600b54866126f2565b90505b600654600c54604080516315f2405360e01b815260048101869052602481018590526044810192909252516001600160a01b03909216916315f2405391606480820192602092909190829003018186803b158015610ea057600080fd5b505afa158015610eb4573d6000803e3d6000fd5b505050506040513d6020811015610eca57600080fd5b5051925050505b92915050565b60018054604080516020600284861615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610f5c5780601f10610f3157610100808354040283529160200191610f5c565b820191906000526020600020905b815481529060010190602001808311610f3f57829003601f168201915b505050505081565b336000818152600f602090815260408083206001600160a01b03871680855290835281842086905581518681529151939493909284927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929081900390910190a35060019392505050565b600080610fdb83612762565b509150505b919050565b6000806000831561101057610ffb610e066126ec565b9150611009600b5486612728565b905061102c565b61101b610e2c6126ec565b9150611029600b54866126f2565b90505b600654600c5460085460408051635c0b440b60e11b8152600481018790526024810186905260448101939093526064830191909152516001600160a01b039092169163b816881691608480820192602092909190829003018186803b158015610ea057600080fd5b60035461010090046001600160a01b031633146110e25760405162461bcd60e51b815260040180806020018281038252602d815260200180615314602d913960400191505060405180910390fd5b565b60085481565b6000805460ff1661112f576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155611141611bd4565b1461118c576040805162461bcd60e51b81526020600482015260166024820152751858d8dc9d59481a5b9d195c995cdd0819985a5b195960521b604482015290519081900360640190fd5b611195826119d6565b90505b6000805460ff19166001179055919050565b600d5481565b60006111ba61280b565b90505b90565b60145481565b6111d48686868686866119e1565b601180546001600160a01b0319166001600160a01b038981169190911791829055604080516318160ddd60e01b8152905192909116916318160ddd91600480820192602092909190829003018186803b15801561123057600080fd5b505afa158015611244573d6000803e3d6000fd5b505050506040513d602081101561125a57600080fd5b505050505050505050565b60135481565b6000805460ff166112b0576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556112c633868686612871565b1490506000805460ff191660011790559392505050565b6000806112ea8484612bbd565b50949350505050565b6004546001600160a01b031681565b60035460ff1681565b6000611315615122565b6040518060200160405280611328611ff7565b90526001600160a01b0384166000908152600e6020526040902054909150611351908290612c68565b9392505050565b60006111ba6126ec565b6000610ed182612c87565b60035460009061010090046001600160a01b0316331461139a5761139360016029612d1b565b9050610fe0565b60055460408051623f1ee960e11b815290516001600160a01b0392831692851691627e3dd2916004808301926020929190829003018186803b1580156113df57600080fd5b505afa1580156113f3573d6000803e3d6000fd5b505050506040513d602081101561140957600080fd5b505161145c576040805162461bcd60e51b815260206004820152601c60248201527f6d61726b6572206d6574686f642072657475726e65642066616c736500000000604482015290519081900360640190fd5b600580546001600160a01b0319166001600160a01b03858116918217909255604080519284168352602083019190915280517f7ac369dbd14fa5ea3f473ed67cc9d598964a77501540ba6751eb0b3decf5870d9281900390910190a16000611351565b600b5481565b60035461010090046001600160a01b031633146115135760405162461bcd60e51b815260040180806020018281038252602d81526020018061542c602d913960400191505060405180910390fd5b61151b612d81565b601355600554604080516344e3de7360e01b81523060048201526001602482015290516001600160a01b03909216916344e3de739160448082019260009290919082900301818387803b15801561157157600080fd5b505af1158015611585573d6000803e3d6000fd5b5050505050565b6012546001600160a01b031681565b6005546001600160a01b031681565b6000805460ff166115ef576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155611601611bd4565b905080156116275761161f81601081111561161857fe5b601d612d1b565b915050611198565b61163083612e01565b9150506000805460ff19166001179055919050565b60095481565b6011546001600160a01b031681565b6001600160a01b03166000908152600e602052604090205490565b6000805460ff166116ba576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556116cc611bd4565b14611717576040805162461bcd60e51b81526020600482015260166024820152751858d8dc9d59481a5b9d195c995cdd0819985a5b195960521b604482015290519081900360640190fd5b50600b546000805460ff1916600117905590565b60035461010090046001600160a01b031633146117795760405162461bcd60e51b81526004018080602001828103825260218152602001806152d16021913960400191505060405180910390fd5b6017819055604080513081526020810183905281517f01b7c780e0f385803fe80cbe0efc086d13b8eb443a2ce43e2061fd92bc0e34f1929181900390910190a150565b6000610ed182612efd565b60166020526000908152604090205460ff1681565b60006117e782612f7e565b6005546001600160a01b031633146118305760405162461bcd60e51b81526004018080602001828103825260318152602001806153946031913960400191505060405180910390fd5b6001600160a01b0382166000908152600e6020908152604080832054601590925282205461185e9190612728565b905061135183826130c0565b61187381612f7e565b6005546001600160a01b031633146118bc5760405162461bcd60e51b81526004018080602001828103825260338152602001806153c56033913960400191505060405180910390fd5b6001600160a01b0381166000908152601560205260409020546118e0908290613213565b50565b600c5481565b60005460ff1661192d576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff1916815561193f612d81565b9050600061194b6126ec565b905060006119598383612728565b9050611967600c54826126f2565b600c5550506013556000805460ff19166001179055565b6002805460408051602060018416156101000260001901909316849004601f81018490048402820184019092528181529291830182828015610f5c5780601f10610f3157610100808354040283529160200191610f5c565b6000610ed18261336b565b60035461010090046001600160a01b03163314611a2f5760405162461bcd60e51b815260040180806020018281038252602481526020018061525a6024913960400191505060405180910390fd5b600954158015611a3f5750600a54155b611a7a5760405162461bcd60e51b815260040180806020018281038252602381526020018061527e6023913960400191505060405180910390fd5b600784905583611abb5760405162461bcd60e51b81526004018080602001828103825260308152602001806152a16030913960400191505060405180910390fd5b6000611ac68761136d565b90508015611b1b576040805162461bcd60e51b815260206004820152601a60248201527f73657474696e6720636f6d7074726f6c6c6572206661696c6564000000000000604482015290519081900360640190fd5b611b236133c0565b600955670de0b6b3a7640000600a55611b3b866133c4565b90508015611b7a5760405162461bcd60e51b81526004018080602001828103825260228152602001806152f26022913960400191505060405180910390fd5b8351611b8d906001906020870190615135565b508251611ba1906002906020860190615135565b50506003805460ff90921660ff199283161790556000805490911660011790555050505050565b600080610fdb83613539565b600080611bdf6133c0565b60095490915080821415611bf8576000925050506111bd565b6000611c026126ec565b600b54600c54600a54600654604080516315f2405360e01b815260048101879052602481018690526044810185905290519596509394929391926000926001600160a01b03909216916315f24053916064808301926020929190829003018186803b158015611c7057600080fd5b505afa158015611c84573d6000803e3d6000fd5b505050506040513d6020811015611c9a57600080fd5b5051905065048c27395000811115611cf9576040805162461bcd60e51b815260206004820152601c60248201527f626f72726f772072617465206973206162737572646c79206869676800000000604482015290519081900360640190fd5b6000611d058888612728565b9050611d0f615122565b611d27604051806020016040528085815250836135ba565b90506000611d358288612c68565b90506000611d4382896126f2565b90506000611d626040518060200160405280600854815250848a6135e4565b90506000611d7185898a6135e4565b60098e9055600a819055600b849055600c839055604080518d8152602081018790528082018390526060810186905290519192507f4dec04e750ca11537cabcd8a9eab06494de08da3735bc8871cd41250e190bc04919081900360800190a160009d505050505050505050505050505090565b6000805460ff16611e29576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155611e3f33338686612871565b1490506000805460ff1916600117905592915050565b600a5481565b6006546000906001600160a01b031663b8168816611e776126ec565b600b54600c546008546040518563ffffffff1660e01b81526004018085815260200184815260200183815260200182815260200194505050505060206040518083038186803b158015611ec957600080fd5b505afa158015611edd573d6000803e3d6000fd5b505050506040513d6020811015611ef357600080fd5b5051905090565b6000805460ff16611f3f576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19169055611f553385858561360c565b90506000805460ff191660011790559392505050565b60035460009061010090046001600160a01b03163314611f91576113936001602f612d1b565b600480546001600160a01b038481166001600160a01b0319831681179093556040805191909216808252602082019390935281517fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a9929181900390910190a16000611351565b6000805460ff1661203c576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff1916815561204e611bd4565b14612099576040805162461bcd60e51b81526020600482015260166024820152751858d8dc9d59481a5b9d195c995cdd0819985a5b195960521b604482015290519081900360640190fd5b6120a16111b0565b90506000805460ff1916600117905590565b60008060008060006120c486613892565b905060006120d18761336b565b905060006120dd61280b565b90506000989297509095509350915050565b6000610ed1826138f1565b60156020526000908152604090205481565b60175481565b6000610ed182613970565b6001600160a01b039182166000908152600f6020908152604080832093909416825291909152205490565b60005460ff1661218c576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19169055826121d25760405162461bcd60e51b815260040180806020018281038252602c815260200180615479602c913960400191505060405180910390fd5b60006121dc611bd4565b14612227576040805162461bcd60e51b81526020600482015260166024820152751858d8dc9d59481a5b9d195c995cdd0819985a5b195960521b604482015290519081900360640190fd5b6000612231612d81565b9050600061223d6126ec565b90508481101561228d576040805162461bcd60e51b8152602060048201526016602482015275494e53554646494349454e545f4c495155494449545960501b604482015290519081900360640190fd5b60006122a561229d8760036139ea565b612710613a2c565b90506122b18787613a5f565b6122bd600b54876126f2565b600b5560115460405163405b019d60e01b815233600482018181526001600160a01b0393841660248401819052604484018b90526064840186905260a06084850190815260a485018a9052948c169463405b019d9491928c9288928d928d9290919060c401848480828437600081840152601f19601f820116905080830192505050975050505050505050600060405180830381600087803b15801561236257600080fd5b505af1158015612376573d6000803e3d6000fd5b505050506000612384612d81565b905061239084836126f2565b81146123da576040805162461bcd60e51b8152602060048201526014602482015273109053105390d157d25390d3d394d254d511539560621b604482015290519081900360640190fd5b60006123f6604051806020016040528060085481525084612c68565b9050612404600c54826126f2565b600c5561241184846126f2565b601355600b546124219089612728565b600b55604080518981526020810185905280820183905290516001600160a01b038b16917f33c8e097c526683cbdb29adf782fac95e9d0fbe0ed635c13d8c75fdf726557d9919081900360600190a250506000805460ff1916600117905550505050505050565b6004546000906001600160a01b0316331415806124a3575033155b156124bb576124b460016000612d1b565b90506111bd565b60038054600480546001600160a01b03818116610100818102610100600160a81b0319871617968790556001600160a01b031990931690935560408051948390048216808652929095041660208401528351909391927ff9ffabca9c8276e99321725bcb43fb076a6c66a54b7f21c4e8146d8519b417dc92908290030190a1600454604080516001600160a01b038085168252909216602083015280517fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a99281900390910190a160009250505090565b600381565b60008061259b611bd4565b905080156125c1576125b98160108111156125b257fe5b602a612d1b565b915050610fe0565b611351836133c4565b6006546001600160a01b031681565b6000806125e7858585613b65565b5095945050505050565b60035461010090046001600160a01b031681565b6006546000906001600160a01b03166315f240536126216126ec565b600b54600c546040518463ffffffff1660e01b815260040180848152602001838152602001828152602001935050505060206040518083038186803b158015611ec957600080fd5b6000805460ff166126ae576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556126c0611bd4565b905080156126de5761161f8160108111156126d757fe5b6030612d1b565b61163083613c97565b600181565b60135490565b60006113518383604051806040016040528060118152602001706164646974696f6e206f766572666c6f7760781b815250613d3f565b60006113518383604051806040016040528060158152602001747375627472616374696f6e20756e646572666c6f7760581b815250613dd1565b60008054819060ff166127a9576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556127bb611bd4565b905080156127e6576127d98160108111156127d257fe5b6023612d1b565b9250600091506127f79050565b6127f1333386613e2b565b92509250505b6000805460ff191660011790559092909150565b600d54600090806128205750506007546111bd565b600061282a6126ec565b9050600061284561283d83600b546126f2565b600c54612728565b9050600061286182604051806020016040528087815250614069565b94506111bd9350505050565b5090565b600061287c84612f7e565b61288583612f7e565b6001600160a01b0384166000908152600e602090815260408083205460159092528220546128b39190612728565b90506000818411156128c457508083035b600554604080516317b9b84b60e31b81523060048201526001600160a01b0389811660248301528881166044830152606482018590529151600093929092169163bdcdc2589160848082019260209290919082900301818787803b15801561292b57600080fd5b505af115801561293f573d6000803e3d6000fd5b505050506040513d602081101561295557600080fd5b5051905080156129765761296c6003603483614087565b9350505050612bb5565b856001600160a01b0316876001600160a01b0316141561299c5761296c60026035612d1b565b60006001600160a01b0389811690891614156129bb57506000196129e3565b506001600160a01b038088166000908152600f60209081526040808320938c16835292905220545b6001600160a01b0388166000908152600e6020526040902054612a069087612728565b6001600160a01b03808a166000908152600e60205260408082209390935590891681522054612a3590876126f2565b6001600160a01b0388166000908152600e60205260409020558215612b39576001600160a01b038816600090815260156020526040902054612a779084612728565b6001600160a01b03808a166000908152601560205260408082209390935590891681522054612aa690846126f2565b6001600160a01b03808916600090815260156020908152604080832094909455918b1680825290839020548351918252918101919091528151600080516020615459833981519152929181900390910190a16001600160a01b0387166000818152601560209081526040918290205482519384529083015280516000805160206154598339815191529281900390910190a15b6000198114612b7357612b4c8187612728565b6001600160a01b03808a166000908152600f60209081526040808320938e16835292905220555b866001600160a01b0316886001600160a01b0316600080516020615341833981519152886040518082815260200191505060405180910390a360009450505050505b949350505050565b60008054819060ff16612c04576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155612c16611bd4565b90508015612c4157612c34816010811115612c2d57fe5b6022612d1b565b925060009150612c529050565b612c4c338686613e2b565b92509250505b6000805460ff1916600117905590939092509050565b6000612c72615122565b612c7c84846135ba565b9050612bb5816140ed565b6000805460ff16612ccc576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155612cde611bd4565b90508015612cfc5761161f816010811115612cf557fe5b6036612d1b565b612d05836140fc565b509150506000805460ff19166001179055919050565b60007f45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa0836010811115612d4a57fe5b836038811115612d5657fe5b604080519283526020830191909152600082820152519081900360600190a182601081111561135157fe5b601154604080516370a0823160e01b815230600482015290516000926001600160a01b03169182916370a0823191602480820192602092909190829003018186803b158015612dcf57600080fd5b505afa158015612de3573d6000803e3d6000fd5b505050506040513d6020811015612df957600080fd5b505191505090565b600354600090819061010090046001600160a01b03163314612e29576125b96001601e612d1b565b612e316133c0565b60095414612e45576125b9600a6020612d1b565b82612e4e6126ec565b1015612e60576125b9600e601f612d1b565b600c54831115612e76576125b960026021612d1b565b612e82600c5484612728565b600c819055600354909150612ea59061010090046001600160a01b031684613a5f565b600354604080516101009092046001600160a01b0316825260208201859052818101839052517f3bad0c59cf2f06e7314077049f48a93578cd16f5ef92329f1dab1420a99c177e916060908290030190a16000611351565b6000805460ff16612f42576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155612f54611bd4565b90508015612f725761161f816010811115612f6b57fe5b6019612d1b565b61163033600085614197565b6001600160a01b03811660009081526016602052604090205460ff166118e0576005546040805163929fe9a160e01b81526001600160a01b0384811660048301523060248301529151919092169163929fe9a1916044808301926020929190829003018186803b158015612ff157600080fd5b505afa158015613005573d6000803e3d6000fd5b505050506040513d602081101561301b57600080fd5b50511561309a576001600160a01b0381166000908152600e6020818152604080842054601583529320839055601454919052613056916126f2565b6014556001600160a01b0381166000818152601560209081526040918290205482519384529083015280516000805160206154598339815191529281900390910190a15b6001600160a01b0381166000908152601660205260409020805460ff1916600117905550565b6000806130cf601454846126f2565b9050601754600014806130f05750601754158015906130f057506017548111155b1561316b5760148190556001600160a01b03841660009081526015602052604090205461311d90846126f2565b6001600160a01b03851660008181526015602090815260409182902084905581519283528201929092528151600080516020615459833981519152929181900390910190a182915050610ed1565b6014546017541115613209576000613187601754601454612728565b9050613195601454826126f2565b6014556001600160a01b0385166000908152601560205260409020546131bb90826126f2565b6001600160a01b03861660008181526015602090815260409182902084905581519283528201929092528151600080516020615459833981519152929181900390910190a19150610ed19050565b5060009392505050565b6005546040805163eabe7d9160e01b81523060048201526001600160a01b038581166024830152604482018590529151919092169163eabe7d919160648083019260209291908290030181600087803b15801561326f57600080fd5b505af1158015613283573d6000803e3d6000fd5b505050506040513d602081101561329957600080fd5b5051156132e5576040805162461bcd60e51b815260206004820152601560248201527431b7b6b83a3937b63632b9103932b532b1ba34b7b760591b604482015290519081900360640190fd5b806132ef57613367565b6132fb60145482612728565b6014556001600160a01b0382166000908152601560205260409020546133219082612728565b6001600160a01b03831660008181526015602090815260409182902084905581519283528201929092528151600080516020615459833981519152929181900390910190a15b5050565b6001600160a01b03811660009081526010602052604081208054613393576000915050610fe0565b60006133a58260000154600a546139ea565b905060006133b7828460010154613a2c565b95945050505050565b4390565b600354600090819061010090046001600160a01b031633146133ec576125b96001602c612d1b565b6133f46133c0565b60095414613408576125b9600a602b612d1b565b600660009054906101000a90046001600160a01b03169050826001600160a01b0316632191f92a6040518163ffffffff1660e01b815260040160206040518083038186803b15801561345957600080fd5b505afa15801561346d573d6000803e3d6000fd5b505050506040513d602081101561348357600080fd5b50516134d6576040805162461bcd60e51b815260206004820152601c60248201527f6d61726b6572206d6574686f642072657475726e65642066616c736500000000604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b03858116918217909255604080519284168352602083019190915280517fedffc32e068c7c95dfd4bdfd5c4d939a084d6b11c4199eac8436ed234d72f9269281900390910190a16000611351565b60008054819060ff16613580576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155613592611bd4565b905080156135b0576127d98160108111156135a957fe5b6014612d1b565b6127f1338561447f565b6135c2615122565b60405180602001604052806135db8560000151856139ea565b90529392505050565b60006135ee615122565b6135f885856135ba565b90506133b7613606826140ed565b846126f2565b600061361784612f7e565b61362083612f7e565b6005546040805163d02f735160e01b81523060048201526001600160a01b03888116602483015287811660448301528681166064830152608482018690529151600093929092169163d02f73519160a48082019260209290919082900301818787803b15801561368f57600080fd5b505af11580156136a3573d6000803e3d6000fd5b505050506040513d60208110156136b957600080fd5b5051905080156136d8576136d06003601183614087565b915050612bb5565b826136e45760006136d0565b846001600160a01b0316846001600160a01b0316141561370a576136d060066012612d1b565b6001600160a01b0384166000908152600e602052604090205461372d9084612728565b6001600160a01b038086166000908152600e6020526040808220939093559087168152205461375c90846126f2565b6001600160a01b038087166000908152600e60209081526040808320949094559187168152601590915220546137929084612728565b6001600160a01b0380861660009081526015602052604080822093909355908716815220546137c190846126f2565b6001600160a01b03808716600081815260156020908152604091829020949094558051878152905191939288169260008051602061534183398151915292918290030190a36001600160a01b0384166000818152601560209081526040918290205482519384529083015280516000805160206154598339815191529281900390910190a16001600160a01b0385166000818152601560209081526040918290205482519384529083015280516000805160206154598339815191529281900390910190a160009695505050505050565b6001600160a01b03811660009081526016602052604081205460ff16156138d257506001600160a01b038116600090815260156020526040902054610fe0565b506001600160a01b0381166000908152600e6020526040902054610fe0565b6000805460ff16613936576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155613948611bd4565b905080156139665761161f81601081111561395f57fe5b6002612d1b565b6116303384614723565b6000805460ff166139b5576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556139c7611bd4565b905080156139de5761161f816010811115612f6b57fe5b61163033846000614197565b600061135183836040518060400160405280601781526020017f6d756c7469706c69636174696f6e206f766572666c6f770000000000000000008152506148fc565b600061135183836040518060400160405280600e81526020016d646976696465206279207a65726f60901b815250614972565b6011546040805163a9059cbb60e01b81526001600160a01b0385811660048301526024820185905291519190921691829163a9059cbb9160448082019260009290919082900301818387803b158015613ab757600080fd5b505af1158015613acb573d6000803e3d6000fd5b5050505060003d60008114613ae75760208114613af157600080fd5b6000199150613afd565b60206000803e60005191505b5080613b50576040805162461bcd60e51b815260206004820152601960248201527f544f4b454e5f5452414e534645525f4f55545f4641494c454400000000000000604482015290519081900360640190fd5b613b5c60135484612728565b60135550505050565b60008054819060ff16613bac576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155613bbe611bd4565b90508015613be957613bdc816010811115613bd557fe5b6007612d1b565b925060009150613c809050565b836001600160a01b031663a6afed956040518163ffffffff1660e01b8152600401602060405180830381600087803b158015613c2457600080fd5b505af1158015613c38573d6000803e3d6000fd5b505050506040513d6020811015613c4e57600080fd5b505190508015613c6e57613bdc816010811115613c6757fe5b6008612d1b565b613c7a338787876149d4565b92509250505b6000805460ff191660011790559094909350915050565b60035460009061010090046001600160a01b03163314613cbd5761139360016031612d1b565b613cc56133c0565b60095414613cd957611393600a6032612d1b565b670de0b6b3a7640000821115613cf55761139360026033612d1b565b6008805490839055604080518281526020810185905281517faaa68312e2ea9d50e16af5068410ab56e1a1fd06037b1a35664812c30f821460929181900390910190a16000611351565b600083830182858210156112ea5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613d96578181015183820152602001613d7e565b50505050905090810190601f168015613dc35780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b60008184841115613e235760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315613d96578181015183820152602001613d7e565b505050900390565b60055460408051631200453160e11b81523060048201526001600160a01b0386811660248301528581166044830152606482018590529151600093849384939116916324008a629160848082019260209290919082900301818787803b158015613e9457600080fd5b505af1158015613ea8573d6000803e3d6000fd5b505050506040513d6020811015613ebe57600080fd5b505190508015613ee257613ed56003602483614087565b9250600091506140619050565b83613f0e57600a546001600160a01b038616600090815260106020526040812060010191909155613ed5565b613f166133c0565b60095414613f2a57613ed5600a6025612d1b565b613f326151af565b6001600160a01b0386166000908152601060205260409020600101546060820152613f5c8661336b565b6080820152600019851415613f7a5760808101516040820152613f82565b604081018590525b613f90878260400151614ec6565b60e082018190526080820151613fa591612728565b60a0820152600b5460e0820151613fbc9190612728565b60c0820190815260a080830180516001600160a01b03808b16600081815260106020908152604091829020948555600a546001909501949094559551600b81905560e088015194518751938f16845293830191909152818601939093526060810191909152608081019190915291517f1a2a22cb034d26d1854bdc6666a5b91fe25efbbb5dcad3b0355478d6f5c362a19281900390910190a160e00151600093509150505b935093915050565b600061135161408084670de0b6b3a76400006139ea565b8351613a2c565b60007f45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa08460108111156140b657fe5b8460388111156140c257fe5b604080519283526020830191909152818101859052519081900360600190a1836010811115612bb557fe5b51670de0b6b3a7640000900490565b60008060008061410a6133c0565b600954146141295761411e600a6037612d1b565b935091506141929050565b6141333386614ec6565b9050614141600c54826126f2565b600c819055604080513381526020810184905280820183905290519193507fa91e67c5ea634cd43a12c5a482724b03de01e85ca68702a53d0c2f45cb7c1dc5919081900360600190a1600093509150505b915091565b60006141a284612f7e565b8215806141ad575081155b6141e85760405162461bcd60e51b81526004018080602001828103825260348152602001806153f86034913960400191505060405180910390fd5b6141f06151f5565b6141f861280b565b815283156142295760208082018590526040805191820190528151815261421f9085612c68565b6040820152614252565b61424583604051806020016040528084600001518152506150d6565b6020820152604081018390525b6001600160a01b0385166000908152600e602090815260408083205460159092528220546142809190612728565b90506000809050818360200151111561429d578183602001510390505b6142a56133c0565b600954146142c3576142b9600a601b612d1b565b9350505050611351565b82604001516142d06126ec565b10156142e2576142b9600e601c612d1b565b6142f0878460400151613a5f565b614300600d548460200151612728565b600d556001600160a01b0387166000908152600e60209081526040909120549084015161432d9190612728565b6001600160a01b0388166000908152600e60205260409020558015614356576143568782613213565b306001600160a01b0316876001600160a01b031660008051602061534183398151915285602001516040518082815260200191505060405180910390a360408084015160208086015183516001600160a01b038c168152918201929092528083019190915290517fe5b754fb1abb7f01b499791d0b820ae3b6af3424ac1c59768edb53f4ec31a9299181900360600190a1600554604080850151602086015182516351dff98960e01b81523060048201526001600160a01b038c811660248301526044820193909352606481019190915291519216916351dff9899160848082019260009290919082900301818387803b15801561445357600080fd5b505af1158015614467573d6000803e3d6000fd5b5060009250614474915050565b979650505050505050565b60008061448b84612f7e565b60055460408051634ef4c3e160e01b81523060048201526001600160a01b0387811660248301526044820187905291516000939290921691634ef4c3e19160648082019260209290919082900301818787803b1580156144ea57600080fd5b505af11580156144fe573d6000803e3d6000fd5b505050506040513d602081101561451457600080fd5b5051905080156145385761452b6003601583614087565b92506000915061471c9050565b8361454457600061452b565b61454c6133c0565b600954146145605761452b600a6016612d1b565b6145686151f5565b61457061280b565b815261457c8686614ec6565b60408083018290528051602081019091528251815261459b91906150d6565b60208201819052600d546145ae916126f2565b600d556001600160a01b0386166000908152600e6020908152604090912054908201516145db91906126f2565b6001600160a01b038088166000818152600e602090815260409182902094909455600554815163929fe9a160e01b81526004810193909352306024840152905192169263929fe9a192604480840193829003018186803b15801561463e57600080fd5b505afa158015614652573d6000803e3d6000fd5b505050506040513d602081101561466857600080fd5b50511561467f5761467d8682602001516130c0565b505b60408082015160208084015183516001600160a01b038b168152918201929092528083019190915290517f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f9181900360600190a1856001600160a01b0316306001600160a01b031660008051602061534183398151915283602001516040518082815260200191505060405180910390a360400151600093509150505b9250929050565b6005546040805163368f515360e21b81523060048201526001600160a01b0385811660248301526044820185905291516000938493169163da3d454c91606480830192602092919082900301818787803b15801561478057600080fd5b505af1158015614794573d6000803e3d6000fd5b505050506040513d60208110156147aa57600080fd5b5051905080156147c9576147c16003600683614087565b915050610ed1565b826147f557600a546001600160a01b0385166000908152601060205260408120600101919091556147c1565b6147fd6133c0565b60095414614811576147c1600a6004612d1b565b8261481a6126ec565b101561482c576147c1600e6003612d1b565b614834615216565b61483d8561336b565b6020820181905261484e90856126f2565b6040820152600b5461486090856126f2565b606082015261486f8585613a5f565b604080820180516001600160a01b03881660008181526010602090815290859020928355600a54600190930192909255606080860151600b81905593518551928352928201899052818501929092529081019190915290517f13ed6866d4e1ee6da46f845c46d7e54120883d75c5ea9a2dacc1c4ca8984ab809181900360800190a1600095945050505050565b6000831580614909575082155b1561491657506000611351565b8383028385828161492357fe5b041483906112ea5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315613d96578181015183820152602001613d7e565b600081836149c15760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315613d96578181015183820152602001613d7e565b508284816149cb57fe5b04949350505050565b60055460408051632fe3f38f60e11b81523060048201526001600160a01b0384811660248301528781166044830152868116606483015260848201869052915160009384938493911691635fc7e71e9160a48082019260209290919082900301818787803b158015614a4557600080fd5b505af1158015614a59573d6000803e3d6000fd5b505050506040513d6020811015614a6f57600080fd5b505190508015614a9357614a866003600a83614087565b925060009150614ebd9050565b614a9b6133c0565b60095414614aaf57614a86600a600e612d1b565b614ab76133c0565b846001600160a01b0316636c540baf6040518163ffffffff1660e01b815260040160206040518083038186803b158015614af057600080fd5b505afa158015614b04573d6000803e3d6000fd5b505050506040513d6020811015614b1a57600080fd5b505114614b2d57614a86600a6009612d1b565b866001600160a01b0316866001600160a01b03161415614b5357614a866006600f612d1b565b84614b6457614a866007600d612d1b565b600019851415614b7a57614a866007600c612d1b565b600080614b88898989613e2b565b90925090508115614bb857614ba9826010811115614ba257fe5b6010612d1b565b945060009350614ebd92505050565b6005546040805163c488847b60e01b81523060048201526001600160a01b038981166024830152604482018590528251600094859492169263c488847b926064808301939192829003018186803b158015614c1257600080fd5b505afa158015614c26573d6000803e3d6000fd5b505050506040513d6040811015614c3c57600080fd5b50805160209091015190925090508115614c875760405162461bcd60e51b81526004018080602001828103825260338152602001806153616033913960400191505060405180910390fd5b80886001600160a01b03166370a082318c6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015614cde57600080fd5b505afa158015614cf2573d6000803e3d6000fd5b505050506040513d6020811015614d0857600080fd5b50511015614d5d576040805162461bcd60e51b815260206004820152601860248201527f4c49515549444154455f5345495a455f544f4f5f4d5543480000000000000000604482015290519081900360640190fd5b60006001600160a01b038916301415614d8357614d7c308d8d8561360c565b9050614e0d565b6040805163b2a02ff160e01b81526001600160a01b038e811660048301528d81166024830152604482018590529151918b169163b2a02ff1916064808201926020929091908290030181600087803b158015614dde57600080fd5b505af1158015614df2573d6000803e3d6000fd5b505050506040513d6020811015614e0857600080fd5b505190505b8015614e57576040805162461bcd60e51b81526020600482015260146024820152731d1bdad95b881cd95a5e9d5c994819985a5b195960621b604482015290519081900360640190fd5b604080516001600160a01b03808f168252808e1660208301528183018790528b1660608201526080810184905290517f298637f684da70674f26509b10f07ec2fbc77a335ab1e7d6215a4b2484d8bb529181900360a00190a16000975092955050505050505b94509492505050565b601154604080516370a0823160e01b815230600482015290516000926001600160a01b031691839183916370a08231916024808301926020929190829003018186803b158015614f1557600080fd5b505afa158015614f29573d6000803e3d6000fd5b505050506040513d6020811015614f3f57600080fd5b5051604080516323b872dd60e01b81526001600160a01b038881166004830152306024830152604482018890529151929350908416916323b872dd9160648082019260009290919082900301818387803b158015614f9c57600080fd5b505af1158015614fb0573d6000803e3d6000fd5b5050505060003d60008114614fcc5760208114614fd657600080fd5b6000199150614fe2565b60206000803e60005191505b5080615035576040805162461bcd60e51b815260206004820152601860248201527f544f4b454e5f5452414e534645525f494e5f4641494c45440000000000000000604482015290519081900360640190fd5b601154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561508057600080fd5b505afa158015615094573d6000803e3d6000fd5b505050506040513d60208110156150aa57600080fd5b5051905060006150ba8285612728565b90506150c8601354826126f2565b601355979650505050505050565b60006150e0615122565b612c7c84846150ed615122565b6000615101670de0b6b3a7640000856139ea565b905060405180602001604052806151188386614069565b9052949350505050565b6040518060200160405280600081525090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061517657805160ff19168380011785556151a3565b828001600101855582156151a3579182015b828111156151a3578251825591602001919060010190615188565b5061286d92915061523f565b6040805161010081019091528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b60405180606001604052806000815260200160008152602001600081525090565b604080516080810190915280600081526020016000815260200160008152602001600081525090565b6111bd91905b8082111561286d576000815560010161524556fe6f6e6c792061646d696e206d617920696e697469616c697a6520746865206d61726b65746d61726b6574206d6179206f6e6c7920626520696e697469616c697a6564206f6e6365696e697469616c2065786368616e67652072617465206d7573742062652067726561746572207468616e207a65726f2e6f6e6c792061646d696e2063616e2073657420636f6c6c61746572616c2063617073657474696e6720696e7465726573742072617465206d6f64656c206661696c65646f6e6c79207468652061646d696e206d61792063616c6c205f72657369676e496d706c656d656e746174696f6eddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef4c49515549444154455f434f4d5054524f4c4c45525f43414c43554c4154455f414d4f554e545f5345495a455f4641494c45446f6e6c7920636f6d7074726f6c6c6572206d617920726567697374657220636f6c6c61746572616c20666f7220757365726f6e6c7920636f6d7074726f6c6c6572206d617920756e726567697374657220636f6c6c61746572616c20666f7220757365726f6e65206f662072656465656d546f6b656e73496e206f722072656465656d416d6f756e74496e206d757374206265207a65726f6f6e6c79207468652061646d696e206d61792063616c6c205f6265636f6d65496d706c656d656e746174696f6e1d22042d9eb89f2620572acbf8d85b66fba5a2ca19d166d8659574440175c964666c6173684c6f616e20616d6f756e742073686f756c642062652067726561746572207468616e207a65726fa265627a7a723158201869b1e87ec27eb5cc176f9704347773d7449d0463c5d57b6bc4ad7af1a3d83a64736f6c63430005110032

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106103d05760003560e01c806385d8a2e6116101ff578063c37f68e21161011a578063ea11eea4116100ad578063f851a4401161007c578063f851a44014610dbb578063f8f9da2814610dc3578063fca7820b14610dcb578063fe9c44ae14610de8576103d0565b8063ea11eea414610d4f578063f2b3abbd14610d57578063f3fdb15a14610d7d578063f5e3c46214610d85576103d0565b8063db006a75116100e9578063db006a7514610c79578063dd62ed3e14610c96578063e0232b4214610cc4578063e9c714f214610d47576103d0565b8063c37f68e214610be2578063c5ebeaec14610c2e578063d240d64a14610c4b578063d2bb18e914610c71576103d0565b8063a0712d6811610192578063ae9d70b011610161578063ae9d70b014610b76578063b2a02ff114610b7e578063b71d1a0c14610bb4578063bd6d894d14610bda576103d0565b8063a0712d6814610b1d578063a6afed9514610b3a578063a9059cbb14610b42578063aa5af0fd14610b6e576103d0565b806394909e62116101ce57806394909e621461099957806395d89b41146109a157806395dd9193146109a957806399d8c1b4146109cf576103d0565b806385d8a2e61461091f5780638897bd85146109455780638b35776b1461096b5780638f840ddd14610991576103d0565b8063313ce567116102ef5780635fe3b5671161028257806370a082311161025157806370a08231146108b757806373acee98146108dd57806381cf00eb146108e5578063852a12e314610902576103d0565b80635fe3b56714610882578063601a0bf11461088a5780636c540baf146108a75780636f307dc3146108af576103d0565b80634576b5db116102be5780634576b5db146107a857806347bd3718146107ce57806356e67728146107d65780635c60da1b1461087a576103d0565b8063313ce5671461073f5780633af9e6691461075d5780633b1d21a2146107835780633e9410101461078b576103d0565b806318160ddd1161036757806322abdbf51161033657806322abdbf5146106b157806323b872dd146106b95780632608f818146106ef578063267822471461071b576103d0565b806318160ddd14610543578063182df0f51461054b57806319a4dd3c146105535780631a31d4651461055b576103d0565b80630f226888116103a35780630f226888146104e6578063153ab5051461050b578063173b99041461051557806317bfdfbc1461051d576103d0565b806305dd00b8146103d557806306fdde031461040c578063095ea7b3146104895780630e752702146104c9575b600080fd5b6103fa600480360360408110156103eb57600080fd5b50803590602001351515610df0565b60408051918252519081900360200190f35b610414610ed7565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561044e578181015183820152602001610436565b50505050905090810190601f16801561047b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6104b56004803603604081101561049f57600080fd5b506001600160a01b038135169060200135610f64565b604080519115158252519081900360200190f35b6103fa600480360360208110156104df57600080fd5b5035610fcf565b6103fa600480360360408110156104fc57600080fd5b50803590602001351515610fe5565b610513611094565b005b6103fa6110e4565b6103fa6004803603602081101561053357600080fd5b50356001600160a01b03166110ea565b6103fa6111aa565b6103fa6111b0565b6103fa6111c0565b610513600480360360e081101561057157600080fd5b6001600160a01b03823581169260208101358216926040820135909216916060820135919081019060a081016080820135600160201b8111156105b357600080fd5b8201836020820111156105c557600080fd5b803590602001918460018302840111600160201b831117156105e657600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561063857600080fd5b82018360208201111561064a57600080fd5b803590602001918460018302840111600160201b8311171561066b57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505050903560ff1691506111c69050565b6103fa611265565b6104b5600480360360608110156106cf57600080fd5b506001600160a01b0381358116916020810135909116906040013561126b565b6103fa6004803603604081101561070557600080fd5b506001600160a01b0381351690602001356112dd565b6107236112f3565b604080516001600160a01b039092168252519081900360200190f35b610747611302565b6040805160ff9092168252519081900360200190f35b6103fa6004803603602081101561077357600080fd5b50356001600160a01b031661130b565b6103fa611358565b6103fa600480360360208110156107a157600080fd5b5035611362565b6103fa600480360360208110156107be57600080fd5b50356001600160a01b031661136d565b6103fa6114bf565b610513600480360360208110156107ec57600080fd5b810190602081018135600160201b81111561080657600080fd5b82018360208201111561081857600080fd5b803590602001918460018302840111600160201b8311171561083957600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506114c5945050505050565b61072361158c565b61072361159b565b6103fa600480360360208110156108a057600080fd5b50356115aa565b6103fa611645565b61072361164b565b6103fa600480360360208110156108cd57600080fd5b50356001600160a01b031661165a565b6103fa611675565b610513600480360360208110156108fb57600080fd5b503561172b565b6103fa6004803603602081101561091857600080fd5b50356117bc565b6104b56004803603602081101561093557600080fd5b50356001600160a01b03166117c7565b6103fa6004803603602081101561095b57600080fd5b50356001600160a01b03166117dc565b6105136004803603602081101561098157600080fd5b50356001600160a01b031661186a565b6103fa6118e3565b6105136118e9565b61041461197e565b6103fa600480360360208110156109bf57600080fd5b50356001600160a01b03166119d6565b610513600480360360c08110156109e557600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b811115610a1f57600080fd5b820183602082011115610a3157600080fd5b803590602001918460018302840111600160201b83111715610a5257600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b811115610aa457600080fd5b820183602082011115610ab657600080fd5b803590602001918460018302840111600160201b83111715610ad757600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505050903560ff1691506119e19050565b6103fa60048036036020811015610b3357600080fd5b5035611bc8565b6103fa611bd4565b6104b560048036036040811015610b5857600080fd5b506001600160a01b038135169060200135611de4565b6103fa611e55565b6103fa611e5b565b6103fa60048036036060811015610b9457600080fd5b506001600160a01b03813581169160208101359091169060400135611efa565b6103fa60048036036020811015610bca57600080fd5b50356001600160a01b0316611f6b565b6103fa611ff7565b610c0860048036036020811015610bf857600080fd5b50356001600160a01b03166120b3565b604080519485526020850193909352838301919091526060830152519081900360800190f35b6103fa60048036036020811015610c4457600080fd5b50356120ef565b6103fa60048036036020811015610c6157600080fd5b50356001600160a01b03166120fa565b6103fa61210c565b6103fa60048036036020811015610c8f57600080fd5b5035612112565b6103fa60048036036040811015610cac57600080fd5b506001600160a01b038135811691602001351661211d565b61051360048036036060811015610cda57600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b811115610d0957600080fd5b820183602082011115610d1b57600080fd5b803590602001918460018302840111600160201b83111715610d3c57600080fd5b509092509050612148565b6103fa612488565b6103fa61258b565b6103fa60048036036020811015610d6d57600080fd5b50356001600160a01b0316612590565b6107236125ca565b6103fa60048036036060811015610d9b57600080fd5b506001600160a01b038135811691602081013591604090910135166125d9565b6107236125f1565b6103fa612605565b6103fa60048036036020811015610de157600080fd5b5035612669565b6104b56126e7565b60008060008315610e2157610e0c610e066126ec565b866126f2565b9150610e1a600b5486612728565b9050610e43565b610e32610e2c6126ec565b86612728565b9150610e40600b54866126f2565b90505b600654600c54604080516315f2405360e01b815260048101869052602481018590526044810192909252516001600160a01b03909216916315f2405391606480820192602092909190829003018186803b158015610ea057600080fd5b505afa158015610eb4573d6000803e3d6000fd5b505050506040513d6020811015610eca57600080fd5b5051925050505b92915050565b60018054604080516020600284861615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610f5c5780601f10610f3157610100808354040283529160200191610f5c565b820191906000526020600020905b815481529060010190602001808311610f3f57829003601f168201915b505050505081565b336000818152600f602090815260408083206001600160a01b03871680855290835281842086905581518681529151939493909284927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929081900390910190a35060019392505050565b600080610fdb83612762565b509150505b919050565b6000806000831561101057610ffb610e066126ec565b9150611009600b5486612728565b905061102c565b61101b610e2c6126ec565b9150611029600b54866126f2565b90505b600654600c5460085460408051635c0b440b60e11b8152600481018790526024810186905260448101939093526064830191909152516001600160a01b039092169163b816881691608480820192602092909190829003018186803b158015610ea057600080fd5b60035461010090046001600160a01b031633146110e25760405162461bcd60e51b815260040180806020018281038252602d815260200180615314602d913960400191505060405180910390fd5b565b60085481565b6000805460ff1661112f576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155611141611bd4565b1461118c576040805162461bcd60e51b81526020600482015260166024820152751858d8dc9d59481a5b9d195c995cdd0819985a5b195960521b604482015290519081900360640190fd5b611195826119d6565b90505b6000805460ff19166001179055919050565b600d5481565b60006111ba61280b565b90505b90565b60145481565b6111d48686868686866119e1565b601180546001600160a01b0319166001600160a01b038981169190911791829055604080516318160ddd60e01b8152905192909116916318160ddd91600480820192602092909190829003018186803b15801561123057600080fd5b505afa158015611244573d6000803e3d6000fd5b505050506040513d602081101561125a57600080fd5b505050505050505050565b60135481565b6000805460ff166112b0576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556112c633868686612871565b1490506000805460ff191660011790559392505050565b6000806112ea8484612bbd565b50949350505050565b6004546001600160a01b031681565b60035460ff1681565b6000611315615122565b6040518060200160405280611328611ff7565b90526001600160a01b0384166000908152600e6020526040902054909150611351908290612c68565b9392505050565b60006111ba6126ec565b6000610ed182612c87565b60035460009061010090046001600160a01b0316331461139a5761139360016029612d1b565b9050610fe0565b60055460408051623f1ee960e11b815290516001600160a01b0392831692851691627e3dd2916004808301926020929190829003018186803b1580156113df57600080fd5b505afa1580156113f3573d6000803e3d6000fd5b505050506040513d602081101561140957600080fd5b505161145c576040805162461bcd60e51b815260206004820152601c60248201527f6d61726b6572206d6574686f642072657475726e65642066616c736500000000604482015290519081900360640190fd5b600580546001600160a01b0319166001600160a01b03858116918217909255604080519284168352602083019190915280517f7ac369dbd14fa5ea3f473ed67cc9d598964a77501540ba6751eb0b3decf5870d9281900390910190a16000611351565b600b5481565b60035461010090046001600160a01b031633146115135760405162461bcd60e51b815260040180806020018281038252602d81526020018061542c602d913960400191505060405180910390fd5b61151b612d81565b601355600554604080516344e3de7360e01b81523060048201526001602482015290516001600160a01b03909216916344e3de739160448082019260009290919082900301818387803b15801561157157600080fd5b505af1158015611585573d6000803e3d6000fd5b5050505050565b6012546001600160a01b031681565b6005546001600160a01b031681565b6000805460ff166115ef576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155611601611bd4565b905080156116275761161f81601081111561161857fe5b601d612d1b565b915050611198565b61163083612e01565b9150506000805460ff19166001179055919050565b60095481565b6011546001600160a01b031681565b6001600160a01b03166000908152600e602052604090205490565b6000805460ff166116ba576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556116cc611bd4565b14611717576040805162461bcd60e51b81526020600482015260166024820152751858d8dc9d59481a5b9d195c995cdd0819985a5b195960521b604482015290519081900360640190fd5b50600b546000805460ff1916600117905590565b60035461010090046001600160a01b031633146117795760405162461bcd60e51b81526004018080602001828103825260218152602001806152d16021913960400191505060405180910390fd5b6017819055604080513081526020810183905281517f01b7c780e0f385803fe80cbe0efc086d13b8eb443a2ce43e2061fd92bc0e34f1929181900390910190a150565b6000610ed182612efd565b60166020526000908152604090205460ff1681565b60006117e782612f7e565b6005546001600160a01b031633146118305760405162461bcd60e51b81526004018080602001828103825260318152602001806153946031913960400191505060405180910390fd5b6001600160a01b0382166000908152600e6020908152604080832054601590925282205461185e9190612728565b905061135183826130c0565b61187381612f7e565b6005546001600160a01b031633146118bc5760405162461bcd60e51b81526004018080602001828103825260338152602001806153c56033913960400191505060405180910390fd5b6001600160a01b0381166000908152601560205260409020546118e0908290613213565b50565b600c5481565b60005460ff1661192d576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff1916815561193f612d81565b9050600061194b6126ec565b905060006119598383612728565b9050611967600c54826126f2565b600c5550506013556000805460ff19166001179055565b6002805460408051602060018416156101000260001901909316849004601f81018490048402820184019092528181529291830182828015610f5c5780601f10610f3157610100808354040283529160200191610f5c565b6000610ed18261336b565b60035461010090046001600160a01b03163314611a2f5760405162461bcd60e51b815260040180806020018281038252602481526020018061525a6024913960400191505060405180910390fd5b600954158015611a3f5750600a54155b611a7a5760405162461bcd60e51b815260040180806020018281038252602381526020018061527e6023913960400191505060405180910390fd5b600784905583611abb5760405162461bcd60e51b81526004018080602001828103825260308152602001806152a16030913960400191505060405180910390fd5b6000611ac68761136d565b90508015611b1b576040805162461bcd60e51b815260206004820152601a60248201527f73657474696e6720636f6d7074726f6c6c6572206661696c6564000000000000604482015290519081900360640190fd5b611b236133c0565b600955670de0b6b3a7640000600a55611b3b866133c4565b90508015611b7a5760405162461bcd60e51b81526004018080602001828103825260228152602001806152f26022913960400191505060405180910390fd5b8351611b8d906001906020870190615135565b508251611ba1906002906020860190615135565b50506003805460ff90921660ff199283161790556000805490911660011790555050505050565b600080610fdb83613539565b600080611bdf6133c0565b60095490915080821415611bf8576000925050506111bd565b6000611c026126ec565b600b54600c54600a54600654604080516315f2405360e01b815260048101879052602481018690526044810185905290519596509394929391926000926001600160a01b03909216916315f24053916064808301926020929190829003018186803b158015611c7057600080fd5b505afa158015611c84573d6000803e3d6000fd5b505050506040513d6020811015611c9a57600080fd5b5051905065048c27395000811115611cf9576040805162461bcd60e51b815260206004820152601c60248201527f626f72726f772072617465206973206162737572646c79206869676800000000604482015290519081900360640190fd5b6000611d058888612728565b9050611d0f615122565b611d27604051806020016040528085815250836135ba565b90506000611d358288612c68565b90506000611d4382896126f2565b90506000611d626040518060200160405280600854815250848a6135e4565b90506000611d7185898a6135e4565b60098e9055600a819055600b849055600c839055604080518d8152602081018790528082018390526060810186905290519192507f4dec04e750ca11537cabcd8a9eab06494de08da3735bc8871cd41250e190bc04919081900360800190a160009d505050505050505050505050505090565b6000805460ff16611e29576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155611e3f33338686612871565b1490506000805460ff1916600117905592915050565b600a5481565b6006546000906001600160a01b031663b8168816611e776126ec565b600b54600c546008546040518563ffffffff1660e01b81526004018085815260200184815260200183815260200182815260200194505050505060206040518083038186803b158015611ec957600080fd5b505afa158015611edd573d6000803e3d6000fd5b505050506040513d6020811015611ef357600080fd5b5051905090565b6000805460ff16611f3f576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19169055611f553385858561360c565b90506000805460ff191660011790559392505050565b60035460009061010090046001600160a01b03163314611f91576113936001602f612d1b565b600480546001600160a01b038481166001600160a01b0319831681179093556040805191909216808252602082019390935281517fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a9929181900390910190a16000611351565b6000805460ff1661203c576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff1916815561204e611bd4565b14612099576040805162461bcd60e51b81526020600482015260166024820152751858d8dc9d59481a5b9d195c995cdd0819985a5b195960521b604482015290519081900360640190fd5b6120a16111b0565b90506000805460ff1916600117905590565b60008060008060006120c486613892565b905060006120d18761336b565b905060006120dd61280b565b90506000989297509095509350915050565b6000610ed1826138f1565b60156020526000908152604090205481565b60175481565b6000610ed182613970565b6001600160a01b039182166000908152600f6020908152604080832093909416825291909152205490565b60005460ff1661218c576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19169055826121d25760405162461bcd60e51b815260040180806020018281038252602c815260200180615479602c913960400191505060405180910390fd5b60006121dc611bd4565b14612227576040805162461bcd60e51b81526020600482015260166024820152751858d8dc9d59481a5b9d195c995cdd0819985a5b195960521b604482015290519081900360640190fd5b6000612231612d81565b9050600061223d6126ec565b90508481101561228d576040805162461bcd60e51b8152602060048201526016602482015275494e53554646494349454e545f4c495155494449545960501b604482015290519081900360640190fd5b60006122a561229d8760036139ea565b612710613a2c565b90506122b18787613a5f565b6122bd600b54876126f2565b600b5560115460405163405b019d60e01b815233600482018181526001600160a01b0393841660248401819052604484018b90526064840186905260a06084850190815260a485018a9052948c169463405b019d9491928c9288928d928d9290919060c401848480828437600081840152601f19601f820116905080830192505050975050505050505050600060405180830381600087803b15801561236257600080fd5b505af1158015612376573d6000803e3d6000fd5b505050506000612384612d81565b905061239084836126f2565b81146123da576040805162461bcd60e51b8152602060048201526014602482015273109053105390d157d25390d3d394d254d511539560621b604482015290519081900360640190fd5b60006123f6604051806020016040528060085481525084612c68565b9050612404600c54826126f2565b600c5561241184846126f2565b601355600b546124219089612728565b600b55604080518981526020810185905280820183905290516001600160a01b038b16917f33c8e097c526683cbdb29adf782fac95e9d0fbe0ed635c13d8c75fdf726557d9919081900360600190a250506000805460ff1916600117905550505050505050565b6004546000906001600160a01b0316331415806124a3575033155b156124bb576124b460016000612d1b565b90506111bd565b60038054600480546001600160a01b03818116610100818102610100600160a81b0319871617968790556001600160a01b031990931690935560408051948390048216808652929095041660208401528351909391927ff9ffabca9c8276e99321725bcb43fb076a6c66a54b7f21c4e8146d8519b417dc92908290030190a1600454604080516001600160a01b038085168252909216602083015280517fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a99281900390910190a160009250505090565b600381565b60008061259b611bd4565b905080156125c1576125b98160108111156125b257fe5b602a612d1b565b915050610fe0565b611351836133c4565b6006546001600160a01b031681565b6000806125e7858585613b65565b5095945050505050565b60035461010090046001600160a01b031681565b6006546000906001600160a01b03166315f240536126216126ec565b600b54600c546040518463ffffffff1660e01b815260040180848152602001838152602001828152602001935050505060206040518083038186803b158015611ec957600080fd5b6000805460ff166126ae576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556126c0611bd4565b905080156126de5761161f8160108111156126d757fe5b6030612d1b565b61163083613c97565b600181565b60135490565b60006113518383604051806040016040528060118152602001706164646974696f6e206f766572666c6f7760781b815250613d3f565b60006113518383604051806040016040528060158152602001747375627472616374696f6e20756e646572666c6f7760581b815250613dd1565b60008054819060ff166127a9576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556127bb611bd4565b905080156127e6576127d98160108111156127d257fe5b6023612d1b565b9250600091506127f79050565b6127f1333386613e2b565b92509250505b6000805460ff191660011790559092909150565b600d54600090806128205750506007546111bd565b600061282a6126ec565b9050600061284561283d83600b546126f2565b600c54612728565b9050600061286182604051806020016040528087815250614069565b94506111bd9350505050565b5090565b600061287c84612f7e565b61288583612f7e565b6001600160a01b0384166000908152600e602090815260408083205460159092528220546128b39190612728565b90506000818411156128c457508083035b600554604080516317b9b84b60e31b81523060048201526001600160a01b0389811660248301528881166044830152606482018590529151600093929092169163bdcdc2589160848082019260209290919082900301818787803b15801561292b57600080fd5b505af115801561293f573d6000803e3d6000fd5b505050506040513d602081101561295557600080fd5b5051905080156129765761296c6003603483614087565b9350505050612bb5565b856001600160a01b0316876001600160a01b0316141561299c5761296c60026035612d1b565b60006001600160a01b0389811690891614156129bb57506000196129e3565b506001600160a01b038088166000908152600f60209081526040808320938c16835292905220545b6001600160a01b0388166000908152600e6020526040902054612a069087612728565b6001600160a01b03808a166000908152600e60205260408082209390935590891681522054612a3590876126f2565b6001600160a01b0388166000908152600e60205260409020558215612b39576001600160a01b038816600090815260156020526040902054612a779084612728565b6001600160a01b03808a166000908152601560205260408082209390935590891681522054612aa690846126f2565b6001600160a01b03808916600090815260156020908152604080832094909455918b1680825290839020548351918252918101919091528151600080516020615459833981519152929181900390910190a16001600160a01b0387166000818152601560209081526040918290205482519384529083015280516000805160206154598339815191529281900390910190a15b6000198114612b7357612b4c8187612728565b6001600160a01b03808a166000908152600f60209081526040808320938e16835292905220555b866001600160a01b0316886001600160a01b0316600080516020615341833981519152886040518082815260200191505060405180910390a360009450505050505b949350505050565b60008054819060ff16612c04576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155612c16611bd4565b90508015612c4157612c34816010811115612c2d57fe5b6022612d1b565b925060009150612c529050565b612c4c338686613e2b565b92509250505b6000805460ff1916600117905590939092509050565b6000612c72615122565b612c7c84846135ba565b9050612bb5816140ed565b6000805460ff16612ccc576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155612cde611bd4565b90508015612cfc5761161f816010811115612cf557fe5b6036612d1b565b612d05836140fc565b509150506000805460ff19166001179055919050565b60007f45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa0836010811115612d4a57fe5b836038811115612d5657fe5b604080519283526020830191909152600082820152519081900360600190a182601081111561135157fe5b601154604080516370a0823160e01b815230600482015290516000926001600160a01b03169182916370a0823191602480820192602092909190829003018186803b158015612dcf57600080fd5b505afa158015612de3573d6000803e3d6000fd5b505050506040513d6020811015612df957600080fd5b505191505090565b600354600090819061010090046001600160a01b03163314612e29576125b96001601e612d1b565b612e316133c0565b60095414612e45576125b9600a6020612d1b565b82612e4e6126ec565b1015612e60576125b9600e601f612d1b565b600c54831115612e76576125b960026021612d1b565b612e82600c5484612728565b600c819055600354909150612ea59061010090046001600160a01b031684613a5f565b600354604080516101009092046001600160a01b0316825260208201859052818101839052517f3bad0c59cf2f06e7314077049f48a93578cd16f5ef92329f1dab1420a99c177e916060908290030190a16000611351565b6000805460ff16612f42576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155612f54611bd4565b90508015612f725761161f816010811115612f6b57fe5b6019612d1b565b61163033600085614197565b6001600160a01b03811660009081526016602052604090205460ff166118e0576005546040805163929fe9a160e01b81526001600160a01b0384811660048301523060248301529151919092169163929fe9a1916044808301926020929190829003018186803b158015612ff157600080fd5b505afa158015613005573d6000803e3d6000fd5b505050506040513d602081101561301b57600080fd5b50511561309a576001600160a01b0381166000908152600e6020818152604080842054601583529320839055601454919052613056916126f2565b6014556001600160a01b0381166000818152601560209081526040918290205482519384529083015280516000805160206154598339815191529281900390910190a15b6001600160a01b0381166000908152601660205260409020805460ff1916600117905550565b6000806130cf601454846126f2565b9050601754600014806130f05750601754158015906130f057506017548111155b1561316b5760148190556001600160a01b03841660009081526015602052604090205461311d90846126f2565b6001600160a01b03851660008181526015602090815260409182902084905581519283528201929092528151600080516020615459833981519152929181900390910190a182915050610ed1565b6014546017541115613209576000613187601754601454612728565b9050613195601454826126f2565b6014556001600160a01b0385166000908152601560205260409020546131bb90826126f2565b6001600160a01b03861660008181526015602090815260409182902084905581519283528201929092528151600080516020615459833981519152929181900390910190a19150610ed19050565b5060009392505050565b6005546040805163eabe7d9160e01b81523060048201526001600160a01b038581166024830152604482018590529151919092169163eabe7d919160648083019260209291908290030181600087803b15801561326f57600080fd5b505af1158015613283573d6000803e3d6000fd5b505050506040513d602081101561329957600080fd5b5051156132e5576040805162461bcd60e51b815260206004820152601560248201527431b7b6b83a3937b63632b9103932b532b1ba34b7b760591b604482015290519081900360640190fd5b806132ef57613367565b6132fb60145482612728565b6014556001600160a01b0382166000908152601560205260409020546133219082612728565b6001600160a01b03831660008181526015602090815260409182902084905581519283528201929092528151600080516020615459833981519152929181900390910190a15b5050565b6001600160a01b03811660009081526010602052604081208054613393576000915050610fe0565b60006133a58260000154600a546139ea565b905060006133b7828460010154613a2c565b95945050505050565b4390565b600354600090819061010090046001600160a01b031633146133ec576125b96001602c612d1b565b6133f46133c0565b60095414613408576125b9600a602b612d1b565b600660009054906101000a90046001600160a01b03169050826001600160a01b0316632191f92a6040518163ffffffff1660e01b815260040160206040518083038186803b15801561345957600080fd5b505afa15801561346d573d6000803e3d6000fd5b505050506040513d602081101561348357600080fd5b50516134d6576040805162461bcd60e51b815260206004820152601c60248201527f6d61726b6572206d6574686f642072657475726e65642066616c736500000000604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b03858116918217909255604080519284168352602083019190915280517fedffc32e068c7c95dfd4bdfd5c4d939a084d6b11c4199eac8436ed234d72f9269281900390910190a16000611351565b60008054819060ff16613580576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155613592611bd4565b905080156135b0576127d98160108111156135a957fe5b6014612d1b565b6127f1338561447f565b6135c2615122565b60405180602001604052806135db8560000151856139ea565b90529392505050565b60006135ee615122565b6135f885856135ba565b90506133b7613606826140ed565b846126f2565b600061361784612f7e565b61362083612f7e565b6005546040805163d02f735160e01b81523060048201526001600160a01b03888116602483015287811660448301528681166064830152608482018690529151600093929092169163d02f73519160a48082019260209290919082900301818787803b15801561368f57600080fd5b505af11580156136a3573d6000803e3d6000fd5b505050506040513d60208110156136b957600080fd5b5051905080156136d8576136d06003601183614087565b915050612bb5565b826136e45760006136d0565b846001600160a01b0316846001600160a01b0316141561370a576136d060066012612d1b565b6001600160a01b0384166000908152600e602052604090205461372d9084612728565b6001600160a01b038086166000908152600e6020526040808220939093559087168152205461375c90846126f2565b6001600160a01b038087166000908152600e60209081526040808320949094559187168152601590915220546137929084612728565b6001600160a01b0380861660009081526015602052604080822093909355908716815220546137c190846126f2565b6001600160a01b03808716600081815260156020908152604091829020949094558051878152905191939288169260008051602061534183398151915292918290030190a36001600160a01b0384166000818152601560209081526040918290205482519384529083015280516000805160206154598339815191529281900390910190a16001600160a01b0385166000818152601560209081526040918290205482519384529083015280516000805160206154598339815191529281900390910190a160009695505050505050565b6001600160a01b03811660009081526016602052604081205460ff16156138d257506001600160a01b038116600090815260156020526040902054610fe0565b506001600160a01b0381166000908152600e6020526040902054610fe0565b6000805460ff16613936576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155613948611bd4565b905080156139665761161f81601081111561395f57fe5b6002612d1b565b6116303384614723565b6000805460ff166139b5576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556139c7611bd4565b905080156139de5761161f816010811115612f6b57fe5b61163033846000614197565b600061135183836040518060400160405280601781526020017f6d756c7469706c69636174696f6e206f766572666c6f770000000000000000008152506148fc565b600061135183836040518060400160405280600e81526020016d646976696465206279207a65726f60901b815250614972565b6011546040805163a9059cbb60e01b81526001600160a01b0385811660048301526024820185905291519190921691829163a9059cbb9160448082019260009290919082900301818387803b158015613ab757600080fd5b505af1158015613acb573d6000803e3d6000fd5b5050505060003d60008114613ae75760208114613af157600080fd5b6000199150613afd565b60206000803e60005191505b5080613b50576040805162461bcd60e51b815260206004820152601960248201527f544f4b454e5f5452414e534645525f4f55545f4641494c454400000000000000604482015290519081900360640190fd5b613b5c60135484612728565b60135550505050565b60008054819060ff16613bac576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155613bbe611bd4565b90508015613be957613bdc816010811115613bd557fe5b6007612d1b565b925060009150613c809050565b836001600160a01b031663a6afed956040518163ffffffff1660e01b8152600401602060405180830381600087803b158015613c2457600080fd5b505af1158015613c38573d6000803e3d6000fd5b505050506040513d6020811015613c4e57600080fd5b505190508015613c6e57613bdc816010811115613c6757fe5b6008612d1b565b613c7a338787876149d4565b92509250505b6000805460ff191660011790559094909350915050565b60035460009061010090046001600160a01b03163314613cbd5761139360016031612d1b565b613cc56133c0565b60095414613cd957611393600a6032612d1b565b670de0b6b3a7640000821115613cf55761139360026033612d1b565b6008805490839055604080518281526020810185905281517faaa68312e2ea9d50e16af5068410ab56e1a1fd06037b1a35664812c30f821460929181900390910190a16000611351565b600083830182858210156112ea5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613d96578181015183820152602001613d7e565b50505050905090810190601f168015613dc35780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b60008184841115613e235760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315613d96578181015183820152602001613d7e565b505050900390565b60055460408051631200453160e11b81523060048201526001600160a01b0386811660248301528581166044830152606482018590529151600093849384939116916324008a629160848082019260209290919082900301818787803b158015613e9457600080fd5b505af1158015613ea8573d6000803e3d6000fd5b505050506040513d6020811015613ebe57600080fd5b505190508015613ee257613ed56003602483614087565b9250600091506140619050565b83613f0e57600a546001600160a01b038616600090815260106020526040812060010191909155613ed5565b613f166133c0565b60095414613f2a57613ed5600a6025612d1b565b613f326151af565b6001600160a01b0386166000908152601060205260409020600101546060820152613f5c8661336b565b6080820152600019851415613f7a5760808101516040820152613f82565b604081018590525b613f90878260400151614ec6565b60e082018190526080820151613fa591612728565b60a0820152600b5460e0820151613fbc9190612728565b60c0820190815260a080830180516001600160a01b03808b16600081815260106020908152604091829020948555600a546001909501949094559551600b81905560e088015194518751938f16845293830191909152818601939093526060810191909152608081019190915291517f1a2a22cb034d26d1854bdc6666a5b91fe25efbbb5dcad3b0355478d6f5c362a19281900390910190a160e00151600093509150505b935093915050565b600061135161408084670de0b6b3a76400006139ea565b8351613a2c565b60007f45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa08460108111156140b657fe5b8460388111156140c257fe5b604080519283526020830191909152818101859052519081900360600190a1836010811115612bb557fe5b51670de0b6b3a7640000900490565b60008060008061410a6133c0565b600954146141295761411e600a6037612d1b565b935091506141929050565b6141333386614ec6565b9050614141600c54826126f2565b600c819055604080513381526020810184905280820183905290519193507fa91e67c5ea634cd43a12c5a482724b03de01e85ca68702a53d0c2f45cb7c1dc5919081900360600190a1600093509150505b915091565b60006141a284612f7e565b8215806141ad575081155b6141e85760405162461bcd60e51b81526004018080602001828103825260348152602001806153f86034913960400191505060405180910390fd5b6141f06151f5565b6141f861280b565b815283156142295760208082018590526040805191820190528151815261421f9085612c68565b6040820152614252565b61424583604051806020016040528084600001518152506150d6565b6020820152604081018390525b6001600160a01b0385166000908152600e602090815260408083205460159092528220546142809190612728565b90506000809050818360200151111561429d578183602001510390505b6142a56133c0565b600954146142c3576142b9600a601b612d1b565b9350505050611351565b82604001516142d06126ec565b10156142e2576142b9600e601c612d1b565b6142f0878460400151613a5f565b614300600d548460200151612728565b600d556001600160a01b0387166000908152600e60209081526040909120549084015161432d9190612728565b6001600160a01b0388166000908152600e60205260409020558015614356576143568782613213565b306001600160a01b0316876001600160a01b031660008051602061534183398151915285602001516040518082815260200191505060405180910390a360408084015160208086015183516001600160a01b038c168152918201929092528083019190915290517fe5b754fb1abb7f01b499791d0b820ae3b6af3424ac1c59768edb53f4ec31a9299181900360600190a1600554604080850151602086015182516351dff98960e01b81523060048201526001600160a01b038c811660248301526044820193909352606481019190915291519216916351dff9899160848082019260009290919082900301818387803b15801561445357600080fd5b505af1158015614467573d6000803e3d6000fd5b5060009250614474915050565b979650505050505050565b60008061448b84612f7e565b60055460408051634ef4c3e160e01b81523060048201526001600160a01b0387811660248301526044820187905291516000939290921691634ef4c3e19160648082019260209290919082900301818787803b1580156144ea57600080fd5b505af11580156144fe573d6000803e3d6000fd5b505050506040513d602081101561451457600080fd5b5051905080156145385761452b6003601583614087565b92506000915061471c9050565b8361454457600061452b565b61454c6133c0565b600954146145605761452b600a6016612d1b565b6145686151f5565b61457061280b565b815261457c8686614ec6565b60408083018290528051602081019091528251815261459b91906150d6565b60208201819052600d546145ae916126f2565b600d556001600160a01b0386166000908152600e6020908152604090912054908201516145db91906126f2565b6001600160a01b038088166000818152600e602090815260409182902094909455600554815163929fe9a160e01b81526004810193909352306024840152905192169263929fe9a192604480840193829003018186803b15801561463e57600080fd5b505afa158015614652573d6000803e3d6000fd5b505050506040513d602081101561466857600080fd5b50511561467f5761467d8682602001516130c0565b505b60408082015160208084015183516001600160a01b038b168152918201929092528083019190915290517f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f9181900360600190a1856001600160a01b0316306001600160a01b031660008051602061534183398151915283602001516040518082815260200191505060405180910390a360400151600093509150505b9250929050565b6005546040805163368f515360e21b81523060048201526001600160a01b0385811660248301526044820185905291516000938493169163da3d454c91606480830192602092919082900301818787803b15801561478057600080fd5b505af1158015614794573d6000803e3d6000fd5b505050506040513d60208110156147aa57600080fd5b5051905080156147c9576147c16003600683614087565b915050610ed1565b826147f557600a546001600160a01b0385166000908152601060205260408120600101919091556147c1565b6147fd6133c0565b60095414614811576147c1600a6004612d1b565b8261481a6126ec565b101561482c576147c1600e6003612d1b565b614834615216565b61483d8561336b565b6020820181905261484e90856126f2565b6040820152600b5461486090856126f2565b606082015261486f8585613a5f565b604080820180516001600160a01b03881660008181526010602090815290859020928355600a54600190930192909255606080860151600b81905593518551928352928201899052818501929092529081019190915290517f13ed6866d4e1ee6da46f845c46d7e54120883d75c5ea9a2dacc1c4ca8984ab809181900360800190a1600095945050505050565b6000831580614909575082155b1561491657506000611351565b8383028385828161492357fe5b041483906112ea5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315613d96578181015183820152602001613d7e565b600081836149c15760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315613d96578181015183820152602001613d7e565b508284816149cb57fe5b04949350505050565b60055460408051632fe3f38f60e11b81523060048201526001600160a01b0384811660248301528781166044830152868116606483015260848201869052915160009384938493911691635fc7e71e9160a48082019260209290919082900301818787803b158015614a4557600080fd5b505af1158015614a59573d6000803e3d6000fd5b505050506040513d6020811015614a6f57600080fd5b505190508015614a9357614a866003600a83614087565b925060009150614ebd9050565b614a9b6133c0565b60095414614aaf57614a86600a600e612d1b565b614ab76133c0565b846001600160a01b0316636c540baf6040518163ffffffff1660e01b815260040160206040518083038186803b158015614af057600080fd5b505afa158015614b04573d6000803e3d6000fd5b505050506040513d6020811015614b1a57600080fd5b505114614b2d57614a86600a6009612d1b565b866001600160a01b0316866001600160a01b03161415614b5357614a866006600f612d1b565b84614b6457614a866007600d612d1b565b600019851415614b7a57614a866007600c612d1b565b600080614b88898989613e2b565b90925090508115614bb857614ba9826010811115614ba257fe5b6010612d1b565b945060009350614ebd92505050565b6005546040805163c488847b60e01b81523060048201526001600160a01b038981166024830152604482018590528251600094859492169263c488847b926064808301939192829003018186803b158015614c1257600080fd5b505afa158015614c26573d6000803e3d6000fd5b505050506040513d6040811015614c3c57600080fd5b50805160209091015190925090508115614c875760405162461bcd60e51b81526004018080602001828103825260338152602001806153616033913960400191505060405180910390fd5b80886001600160a01b03166370a082318c6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015614cde57600080fd5b505afa158015614cf2573d6000803e3d6000fd5b505050506040513d6020811015614d0857600080fd5b50511015614d5d576040805162461bcd60e51b815260206004820152601860248201527f4c49515549444154455f5345495a455f544f4f5f4d5543480000000000000000604482015290519081900360640190fd5b60006001600160a01b038916301415614d8357614d7c308d8d8561360c565b9050614e0d565b6040805163b2a02ff160e01b81526001600160a01b038e811660048301528d81166024830152604482018590529151918b169163b2a02ff1916064808201926020929091908290030181600087803b158015614dde57600080fd5b505af1158015614df2573d6000803e3d6000fd5b505050506040513d6020811015614e0857600080fd5b505190505b8015614e57576040805162461bcd60e51b81526020600482015260146024820152731d1bdad95b881cd95a5e9d5c994819985a5b195960621b604482015290519081900360640190fd5b604080516001600160a01b03808f168252808e1660208301528183018790528b1660608201526080810184905290517f298637f684da70674f26509b10f07ec2fbc77a335ab1e7d6215a4b2484d8bb529181900360a00190a16000975092955050505050505b94509492505050565b601154604080516370a0823160e01b815230600482015290516000926001600160a01b031691839183916370a08231916024808301926020929190829003018186803b158015614f1557600080fd5b505afa158015614f29573d6000803e3d6000fd5b505050506040513d6020811015614f3f57600080fd5b5051604080516323b872dd60e01b81526001600160a01b038881166004830152306024830152604482018890529151929350908416916323b872dd9160648082019260009290919082900301818387803b158015614f9c57600080fd5b505af1158015614fb0573d6000803e3d6000fd5b5050505060003d60008114614fcc5760208114614fd657600080fd5b6000199150614fe2565b60206000803e60005191505b5080615035576040805162461bcd60e51b815260206004820152601860248201527f544f4b454e5f5452414e534645525f494e5f4641494c45440000000000000000604482015290519081900360640190fd5b601154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561508057600080fd5b505afa158015615094573d6000803e3d6000fd5b505050506040513d60208110156150aa57600080fd5b5051905060006150ba8285612728565b90506150c8601354826126f2565b601355979650505050505050565b60006150e0615122565b612c7c84846150ed615122565b6000615101670de0b6b3a7640000856139ea565b905060405180602001604052806151188386614069565b9052949350505050565b6040518060200160405280600081525090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061517657805160ff19168380011785556151a3565b828001600101855582156151a3579182015b828111156151a3578251825591602001919060010190615188565b5061286d92915061523f565b6040805161010081019091528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b60405180606001604052806000815260200160008152602001600081525090565b604080516080810190915280600081526020016000815260200160008152602001600081525090565b6111bd91905b8082111561286d576000815560010161524556fe6f6e6c792061646d696e206d617920696e697469616c697a6520746865206d61726b65746d61726b6574206d6179206f6e6c7920626520696e697469616c697a6564206f6e6365696e697469616c2065786368616e67652072617465206d7573742062652067726561746572207468616e207a65726f2e6f6e6c792061646d696e2063616e2073657420636f6c6c61746572616c2063617073657474696e6720696e7465726573742072617465206d6f64656c206661696c65646f6e6c79207468652061646d696e206d61792063616c6c205f72657369676e496d706c656d656e746174696f6eddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef4c49515549444154455f434f4d5054524f4c4c45525f43414c43554c4154455f414d4f554e545f5345495a455f4641494c45446f6e6c7920636f6d7074726f6c6c6572206d617920726567697374657220636f6c6c61746572616c20666f7220757365726f6e6c7920636f6d7074726f6c6c6572206d617920756e726567697374657220636f6c6c61746572616c20666f7220757365726f6e65206f662072656465656d546f6b656e73496e206f722072656465656d416d6f756e74496e206d757374206265207a65726f6f6e6c79207468652061646d696e206d61792063616c6c205f6265636f6d65496d706c656d656e746174696f6e1d22042d9eb89f2620572acbf8d85b66fba5a2ca19d166d8659574440175c964666c6173684c6f616e20616d6f756e742073686f756c642062652067726561746572207468616e207a65726fa265627a7a723158201869b1e87ec27eb5cc176f9704347773d7449d0463c5d57b6bc4ad7af1a3d83a64736f6c63430005110032

Deployed Bytecode Sourcemap

215:1318:1:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;215:1318:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7053:547:2;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;7053:547:2;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;289:18:3;;;:::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;289:18:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3756:232:2;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;3756:232:2;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;3781:146:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;3781:146:0;;:::i;7790:571:2:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;7790:571:2;;;;;;;;;:::i;1259:272:1:-;;;:::i;:::-;;1541:33:3;;;:::i;8974:221:2:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;8974:221:2;-1:-1:-1;;;;;8974:221:2;;:::i;2161:23:3:-;;;:::i;11187:109:2:-;;;:::i;3571:36:3:-;;;:::i;1094:671:0:-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;1094:671:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;1094:671:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;1094:671:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;1094:671:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;1094:671:0;;;;;;;;-1:-1:-1;1094:671:0;;-1:-1:-1;;;;;5:28;;2:2;;;46:1;43;36:12;2:2;1094:671:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;1094:671:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;1094:671:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;1094:671:0;;-1:-1:-1;;;1094:671:0;;;;;-1:-1:-1;1094:671:0;;-1:-1:-1;1094:671:0:i;3413:27:3:-;;;:::i;3103:193:2:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;3103:193:2;;;;;;;;;;;;;;;;;:::i;4207:186:0:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;4207:186:0;;;;;;;;:::i;985:35:3:-;;;:::i;:::-;;;;-1:-1:-1;;;;;985:35:3;;;;;;;;;;;;;;475:21;;;:::i;:::-;;;;;;;;;;;;;;;;;;;4992:220:2;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;4992:220:2;-1:-1:-1;;;;;4992:220:2;;:::i;12476:86::-;;;:::i;5326:117:0:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;5326:117:0;;:::i;36154:718:2:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;36154:718:2;-1:-1:-1;;;;;36154:718:2;;:::i;1935:24:3:-;;;:::i;529:625:1:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;529:625:1;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;529:625:1;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;529:625:1;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;529:625:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;529:625:1;;-1:-1:-1;529:625:1;;-1:-1:-1;;;;;529:625:1:i;3215:29:3:-;;;:::i;1106:39::-;;;:::i;41864:563:2:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;41864:563:2;;:::i;1659:30:3:-;;;:::i;3111:25::-;;;:::i;4634:110:2:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;4634:110:2;-1:-1:-1;;;;;4634:110:2;;:::i;8501:189::-;;;:::i;5628:248:0:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;5628:248:0;;:::i;3077:131::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;3077:131:0;;:::i;3964:54:3:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;3964:54:3;-1:-1:-1;;;;;3964:54:3;;:::i;8166:460:0:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;8166:460:0;-1:-1:-1;;;;;8166:460:0;;:::i;8855:382::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;8855:382:0;-1:-1:-1;;;;;8855:382:0;;:::i;2060:25:3:-;;;:::i;5947:287:0:-;;;:::i;380:20:3:-;;;:::i;9397:133:2:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;9397:133:2;-1:-1:-1;;;;;9397:133:2;;:::i;871:1498::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;871:1498:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;871:1498:2;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;871:1498:2;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;871:1498:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;871:1498:2;;;;;;;;-1:-1:-1;871:1498:2;;-1:-1:-1;;;;;5:28;;2:2;;;46:1;43;36:12;2:2;871:1498:2;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;871:1498:2;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;871:1498:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;871:1498:2;;-1:-1:-1;;;871:1498:2;;;;;-1:-1:-1;871:1498:2;;-1:-1:-1;871:1498:2:i;2145:130:0:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2145:130:0;;:::i;12803:2535:2:-;;;:::i;2622:183::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2622:183:2;;;;;;;;:::i;1805:23:3:-;;;:::i;6681:182:2:-;;;:::i;33683:192::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;33683:192:2;;;;;;;;;;;;;;;;;:::i;34312:631::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;34312:631:2;-1:-1:-1;;;;;34312:631:2;;:::i;10749:195::-;;;:::i;5550:388::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;5550:388:2;-1:-1:-1;;;;;5550:388:2;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3469:111:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;3469:111:0;;:::i;3814:56:3:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;3814:56:3;-1:-1:-1;;;;;3814:56:3;;:::i;4105:28::-;;;:::i;2618:111:0:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2618:111:0;;:::i;4310:141:2:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;4310:141:2;;;;;;;;;;:::i;6466:1442:0:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;6466:1442:0;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;6466:1442:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;6466:1442:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;-1:-1;6466:1442:0;;-1:-1:-1;6466:1442:0;-1:-1:-1;6466:1442:0;:::i;35214:722:2:-;;;:::i;9578:37:3:-;;;:::i;44588:625:2:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;44588:625:2;-1:-1:-1;;;;;44588:625:2;;:::i;1242:42:3:-;;;:::i;4865:234:0:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;4865:234:0;;;;;;;;;;;;;;;;;:::i;879:28:3:-;;;:::i;6352:159:2:-;;;:::i;37168:599::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;37168:599:2;;:::i;4296:36:3:-;;;:::i;7053:547:2:-;7151:4;7167:20;7197:23;7235:5;7231:269;;;7271:28;7276:14;:12;:14::i;:::-;7292:6;7271:4;:28::i;:::-;7256:43;;7331:26;7336:12;;7350:6;7331:4;:26::i;:::-;7313:44;;7231:269;;;7403:28;7408:14;:12;:14::i;:::-;7424:6;7403:4;:28::i;:::-;7388:43;;7463:26;7468:12;;7482:6;7463:4;:26::i;:::-;7445:44;;7231:269;7516:17;;7579:13;;7516:77;;;-1:-1:-1;;;7516:77:2;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;7516:17:2;;;;:31;;:77;;;;;;;;;;;;;;;:17;:77;;;5:2:-1;;;;30:1;27;20:12;5:2;7516:77:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;7516:77:2;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;7516:77:2;;-1:-1:-1;;;7053:547:2;;;;;:::o;289:18:3:-;;;;;;;;;;;;;;;-1:-1:-1;;289:18:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;3756:232:2:-;3854:10;3824:4;3874:23;;;:18;:23;;;;;;;;-1:-1:-1;;;;;3874:32:2;;;;;;;;;;;:41;;;3930:30;;;;;;;3824:4;;3854:10;3874:32;;3854:10;;3930:30;;;;;;;;;;;-1:-1:-1;3977:4:2;;3756:232;-1:-1:-1;;;3756:232:2:o;3781:146:0:-;3838:4;3855:8;3868:32;3888:11;3868:19;:32::i;:::-;-1:-1:-1;3854:46:0;-1:-1:-1;;3781:146:0;;;;:::o;7790:571:2:-;7888:4;7904:20;7934:23;7972:5;7968:269;;;8008:28;8013:14;:12;:14::i;8008:28::-;7993:43;;8068:26;8073:12;;8087:6;8068:4;:26::i;:::-;8050:44;;7968:269;;;8140:28;8145:14;:12;:14::i;8140:28::-;8125:43;;8200:26;8205:12;;8219:6;8200:4;:26::i;:::-;8182:44;;7968:269;8254:17;;8317:13;;8332:21;;8254:100;;;-1:-1:-1;;;8254:100:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;8254:17:2;;;;:31;;:100;;;;;;;;;;;;;;;:17;:100;;;5:2:-1;;;;30:1;27;20:12;1259:272:1;1469:5;;;;;-1:-1:-1;;;;;1469:5:1;1455:10;:19;1447:77;;;;-1:-1:-1;;;1447:77:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1259:272::o;1541:33:3:-;;;;:::o;8974:221:2:-;9052:4;49445:11;;;;49437:34;;;;;-1:-1:-1;;;49437:34:2;;;;;;;;;;;;-1:-1:-1;;;49437:34:2;;;;;;;;;;;;;;;49495:5;49481:19;;-1:-1:-1;;49481:19:2;;;9076:16;:14;:16::i;:::-;:40;9068:75;;;;;-1:-1:-1;;;9068:75:2;;;;;;;;;;;;-1:-1:-1;;;9068:75:2;;;;;;;;;;;;;;;9160:28;9180:7;9160:19;:28::i;:::-;9153:35;;49510:1;49521:11;:18;;-1:-1:-1;;49521:18:2;49535:4;49521:18;;;8974:221;;-1:-1:-1;8974:221:2:o;2161:23:3:-;;;;:::o;11187:109:2:-;11238:4;11261:28;:26;:28::i;:::-;11254:35;;11187:109;;:::o;3571:36:3:-;;;;:::o;1094:671:0:-;1520:107;1537:12;1551:18;1571:28;1601:5;1608:7;1617:9;1520:16;:107::i;:::-;1684:10;:24;;-1:-1:-1;;;;;;1684:24:0;-1:-1:-1;;;;;1684:24:0;;;;;;;;;;;1718:40;;;-1:-1:-1;;;1718:40:0;;;;1733:10;;;;;1718:38;;:40;;;;;;;;;;;;;;;1733:10;1718:40;;;5:2:-1;;;;30:1;27;20:12;5:2;1718:40:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1718:40:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;;;;1094:671:0:o;3413:27:3:-;;;;:::o;3103:193:2:-;3198:4;49445:11;;;;49437:34;;;;;-1:-1:-1;;;49437:34:2;;;;;;;;;;;;-1:-1:-1;;;49437:34:2;;;;;;;;;;;;;;;49495:5;49481:19;;-1:-1:-1;;49481:19:2;;;3221:44;3236:10;3248:3;3253;3258:6;3221:14;:44::i;:::-;:68;3214:75;;49521:11;:18;;-1:-1:-1;;49521:18:2;49535:4;49521:18;;;3103:193;;-1:-1:-1;;;3103:193:2:o;4207:186:0:-;4288:4;4305:8;4318:48;4344:8;4354:11;4318:25;:48::i;:::-;-1:-1:-1;4304:62:0;4207:186;-1:-1:-1;;;;4207:186:0:o;985:35:3:-;;;-1:-1:-1;;;;;985:35:3;;:::o;475:21::-;;;;;;:::o;4992:220:2:-;5054:4;5070:23;;:::i;:::-;5096:38;;;;;;;;5111:21;:19;:21::i;:::-;5096:38;;-1:-1:-1;;;;;5184:20:2;;;;;;:13;:20;;;;;;5070:64;;-1:-1:-1;5151:54:2;;5070:64;;5151:18;:54::i;:::-;5144:61;4992:220;-1:-1:-1;;;4992:220:2:o;12476:86::-;12518:4;12541:14;:12;:14::i;5326:117:0:-;5382:4;5405:31;5426:9;5405:20;:31::i;36154:718:2:-;36299:5;;36232:4;;36299:5;;;-1:-1:-1;;;;;36299:5:2;36285:10;:19;36281:122;;36327:65;36332:18;36352:39;36327:4;:65::i;:::-;36320:72;;;;36281:122;36451:11;;36546:30;;;-1:-1:-1;;;36546:30:2;;;;-1:-1:-1;;;;;36451:11:2;;;;36546:28;;;;;:30;;;;;;;;;;;;;;:28;:30;;;5:2:-1;;;;30:1;27;20:12;5:2;36546:30:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;36546:30:2;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;36546:30:2;36538:71;;;;;-1:-1:-1;;;36538:71:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;36674:11;:28;;-1:-1:-1;;;;;;36674:28:2;-1:-1:-1;;;;;36674:28:2;;;;;;;;;36781:46;;;;;;;;;;;;;;;;;;;;;;;;;;;36850:14;36845:20;;1935:24:3;;;;:::o;529:625:1:-;806:5;;;;;-1:-1:-1;;;;;806:5:1;792:10;:19;784:77;;;;-1:-1:-1;;;784:77:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;945:16;:14;:16::i;:::-;930:12;:31;1055:11;;1017:130;;;-1:-1:-1;;;1017:130:1;;1097:4;1017:130;;;;1055:11;1017:130;;;;;;-1:-1:-1;;;;;1055:11:1;;;;1017:71;;:130;;;;;-1:-1:-1;;1017:130:1;;;;;;;;-1:-1:-1;1055:11:1;1017:130;;;5:2:-1;;;;30:1;27;20:12;5:2;1017:130:1;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1017:130:1;;;;529:625;:::o;3215:29:3:-;;;-1:-1:-1;;;;;3215:29:3;;:::o;1106:39::-;;;-1:-1:-1;;;;;1106:39:3;;:::o;41864:563:2:-;41939:4;49445:11;;;;49437:34;;;;;-1:-1:-1;;;49437:34:2;;;;;;;;;;;;-1:-1:-1;;;49437:34:2;;;;;;;;;;;;;;;49495:5;49481:19;;-1:-1:-1;;49481:19:2;;;41968:16;:14;:16::i;:::-;41955:29;-1:-1:-1;41998:29:2;;41994:274;;42187:70;42198:5;42192:12;;;;;;;;42206:50;42187:4;:70::i;:::-;42180:77;;;;;41994:274;42386:34;42407:12;42386:20;:34::i;:::-;42379:41;;;49521:11;:18;;-1:-1:-1;;49521:18:2;49535:4;49521:18;;;41864:563;;-1:-1:-1;41864:563:2:o;1659:30:3:-;;;;:::o;3111:25::-;;;-1:-1:-1;;;;;3111:25:3;;:::o;4634:110:2:-;-1:-1:-1;;;;;4717:20:2;4691:7;4717:20;;;:13;:20;;;;;;;4634:110::o;8501:189::-;8563:4;49445:11;;;;49437:34;;;;;-1:-1:-1;;;49437:34:2;;;;;;;;;;;;-1:-1:-1;;;49437:34:2;;;;;;;;;;;;;;;49495:5;49481:19;;-1:-1:-1;;49481:19:2;;;8587:16;:14;:16::i;:::-;:40;8579:75;;;;;-1:-1:-1;;;8579:75:2;;;;;;;;;;;;-1:-1:-1;;;8579:75:2;;;;;;;;;;;;;;;-1:-1:-1;8671:12:2;;49521:11;:18;;-1:-1:-1;;49521:18:2;49535:4;49521:18;;;8501:189;:::o;5628:248:0:-;5719:5;;;;;-1:-1:-1;;;;;5719:5:0;5705:10;:19;5697:65;;;;-1:-1:-1;;;5697:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5773:13;:32;;;5820:49;;;5845:4;5820:49;;;;;;;;;;;;;;;;;;;;;5628:248;:::o;3077:131::-;3140:4;3163:38;3188:12;3163:24;:38::i;3964:54:3:-;;;;;;;;;;;;;;;:::o;8166:460:0:-;8229:4;8319:42;8353:7;8319:33;:42::i;:::-;8402:11;;-1:-1:-1;;;;;8402:11:0;8380:10;:34;8372:96;;;;-1:-1:-1;;;8372:96:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;8498:22:0;;8479:11;8498:22;;;:13;:22;;;;;;;;;8522:23;:32;;;;;;8493:62;;8498:22;8493:4;:62::i;:::-;8479:76;;8572:47;8603:7;8612:6;8572:30;:47::i;8855:382::-;8995:42;9029:7;8995:33;:42::i;:::-;9078:11;;-1:-1:-1;;;;;9078:11:0;9056:10;:34;9048:98;;;;-1:-1:-1;;;9048:98:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;9197:32:0;;;;;;:23;:32;;;;;;9157:73;;9188:7;;9157:30;:73::i;:::-;8855:382;:::o;2060:25:3:-;;;;:::o;5947:287:0:-;49445:11:2;;;;49437:34;;;;;-1:-1:-1;;;49437:34:2;;;;;;;;;;;;-1:-1:-1;;;49437:34:2;;;;;;;;;;;;;;;49495:5;49481:19;;-1:-1:-1;;49481:19:2;;;6017:16:0;:14;:16::i;:::-;5995:38;;6043:17;6063:14;:12;:14::i;:::-;6043:34;;6088:15;6106:28;6111:11;6124:9;6106:4;:28::i;:::-;6088:46;;6160:31;6165:13;;6180:10;6160:4;:31::i;:::-;6144:13;:47;-1:-1:-1;;6201:12:0;:26;-1:-1:-1;49521:18:2;;-1:-1:-1;;49521:18:2;49535:4;49521:18;;;5947:287:0:o;380:20:3:-;;;;;;;;;;;;;;-1:-1:-1;;380:20:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9397:133:2;9464:4;9487:36;9515:7;9487:27;:36::i;871:1498::-;1219:5;;;;;-1:-1:-1;;;;;1219:5:2;1205:10;:19;1197:68;;;;-1:-1:-1;;;1197:68:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1283:18;;:23;:43;;;;-1:-1:-1;1310:11:2;;:16;1283:43;1275:91;;;;-1:-1:-1;;;1275:91:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1414:27;:58;;;1490:31;1482:92;;;;-1:-1:-1;;;1482:92:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1616:8;1627:29;1643:12;1627:15;:29::i;:::-;1616:40;-1:-1:-1;1674:27:2;;1666:66;;;;;-1:-1:-1;;;1666:66:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;1869:16;:14;:16::i;:::-;1848:18;:37;447:4:10;1895:11:2;:25;2017:46;2044:18;2017:26;:46::i;:::-;2011:52;-1:-1:-1;2081:27:2;;2073:74;;;;-1:-1:-1;;;2073:74:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2158:12;;;;:4;;:12;;;;;:::i;:::-;-1:-1:-1;2180:16:2;;;;:6;;:16;;;;;:::i;:::-;-1:-1:-1;;2206:8:2;:20;;;;;;-1:-1:-1;;2206:20:2;;;;;;:8;2344:18;;;;;2206:20;2344:18;;;-1:-1:-1;;;;;871:1498:2:o;2145:130:0:-;2194:4;2211:8;2224:24;2237:10;2224:12;:24::i;12803:2535:2:-;12845:4;12909:23;12935:16;:14;:16::i;:::-;12992:18;;12909:42;;-1:-1:-1;13077:45:2;;;13073:103;;;13150:14;13138:27;;;;;;13073:103;13240:14;13257;:12;:14::i;:::-;13301:12;;13344:13;;13391:11;;13496:17;;:71;;;-1:-1:-1;;;13496:71:2;;;;;;;;;;;;;;;;;;;;;;13240:31;;-1:-1:-1;13301:12:2;;13344:13;;13391:11;;13281:17;;-1:-1:-1;;;;;13496:17:2;;;;:31;;:71;;;;;;;;;;;;;;:17;:71;;;5:2:-1;;;;30:1;27;20:12;5:2;13496:71:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;13496:71:2;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;13496:71:2;;-1:-1:-1;644:9:3;13585:43:2;;;13577:84;;;;;-1:-1:-1;;;13577:84:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;13748:15;13766:49;13771:18;13791:23;13766:4;:49::i;:::-;13748:67;;14296:31;;:::i;:::-;14330:53;14335:35;;;;;;;;14350:18;14335:35;;;14372:10;14330:4;:53::i;:::-;14296:87;;14393:24;14420:54;14439:20;14461:12;14420:18;:54::i;:::-;14393:81;;14484:20;14507:39;14512:19;14533:12;14507:4;:39::i;:::-;14484:62;;14556:21;14580:101;14606:38;;;;;;;;14621:21;;14606:38;;;14646:19;14667:13;14580:25;:101::i;:::-;14556:125;;14691:19;14713:83;14739:20;14761:16;14779;14713:25;:83::i;:::-;14993:18;:39;;;15042:11;:28;;;15080:12;:30;;;15120:13;:32;;;15214:79;;;;;;;;;;;;;;;;;;;;;;;;;;14691:105;;-1:-1:-1;15214:79:2;;;;;;;;;;15316:14;15304:27;;;;;;;;;;;;;;;12803:2535;:::o;2622:183::-;2700:4;49445:11;;;;49437:34;;;;;-1:-1:-1;;;49437:34:2;;;;;;;;;;;;-1:-1:-1;;;49437:34:2;;;;;;;;;;;;;;;49495:5;49481:19;;-1:-1:-1;;49481:19:2;;;2723:51;2738:10;2750;2762:3;2767:6;2723:14;:51::i;:::-;:75;2716:82;;49521:11;:18;;-1:-1:-1;;49521:18:2;49535:4;49521:18;;;2622:183;;-1:-1:-1;;2622:183:2:o;1805:23:3:-;;;;:::o;6681:182:2:-;6757:17;;6734:4;;-1:-1:-1;;;;;6757:17:2;:31;6789:14;:12;:14::i;:::-;6805:12;;6819:13;;6834:21;;6757:99;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;6757:99:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;6757:99:2;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;6757:99:2;;-1:-1:-1;6681:182:2;:::o;33683:192::-;33785:4;49445:11;;;;49437:34;;;;;-1:-1:-1;;;49437:34:2;;;;;;;;;;;;-1:-1:-1;;;49437:34:2;;;;;;;;;;;;;;;49495:5;49481:19;;-1:-1:-1;;49481:19:2;;;33808:60;33822:10;33834;33846:8;33856:11;33808:13;:60::i;:::-;33801:67;;49521:11;:18;;-1:-1:-1;;49521:18:2;49535:4;49521:18;;;33683:192;;-1:-1:-1;;;33683:192:2:o;34312:631::-;34455:5;;34389:4;;34455:5;;;-1:-1:-1;;;;;34455:5:2;34441:10;:19;34437:124;;34483:67;34488:18;34508:41;34483:4;:67::i;34437:124::-;34657:12;;;-1:-1:-1;;;;;34737:30:2;;;-1:-1:-1;;;;;;34737:30:2;;;;;;;34849:49;;;34657:12;;;;34849:49;;;;;;;;;;;;;;;;;;;;;;;34921:14;34916:20;;10749:195;10809:4;49445:11;;;;49437:34;;;;;-1:-1:-1;;;49437:34:2;;;;;;;;;;;;-1:-1:-1;;;49437:34:2;;;;;;;;;;;;;;;49495:5;49481:19;;-1:-1:-1;;49481:19:2;;;10833:16;:14;:16::i;:::-;:40;10825:75;;;;;-1:-1:-1;;;10825:75:2;;;;;;;;;;;;-1:-1:-1;;;10825:75:2;;;;;;;;;;;;;;;10917:20;:18;:20::i;:::-;10910:27;;49521:11;:18;;-1:-1:-1;;49521:18:2;49535:4;49521:18;;;10749:195;:::o;5550:388::-;5618:4;5624;5630;5636;5652:18;5673:33;5698:7;5673:24;:33::i;:::-;5652:54;;5716:18;5737:36;5765:7;5737:27;:36::i;:::-;5716:57;;5783:25;5811:28;:26;:28::i;:::-;5783:56;-1:-1:-1;5863:14:2;5850:81;5880:13;;-1:-1:-1;5895:13:2;;-1:-1:-1;5880:13:2;-1:-1:-1;5550:388:2;-1:-1:-1;;5550:388:2:o;3469:111:0:-;3522:4;3545:28;3560:12;3545:14;:28::i;3814:56:3:-;;;;;;;;;;;;;:::o;4105:28::-;;;;:::o;2618:111:0:-;2671:4;2694:28;2709:12;2694:14;:28::i;4310:141:2:-;-1:-1:-1;;;;;4410:25:2;;;4384:7;4410:25;;;:18;:25;;;;;;;;:34;;;;;;;;;;;;;4310:141::o;6466:1442:0:-;49445:11:2;;;;49437:34;;;;;-1:-1:-1;;;49437:34:2;;;;;;;;;;;;-1:-1:-1;;;49437:34:2;;;;;;;;;;;;;;;49495:5;49481:19;;-1:-1:-1;;49481:19:2;;;6579:10:0;6571:67;;;;-1:-1:-1;;;6571:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6681:14;6656:16;:14;:16::i;:::-;:40;6648:75;;;;;-1:-1:-1;;;6648:75:0;;;;;;;;;;;;-1:-1:-1;;;6648:75:0;;;;;;;;;;;;;;;6734:22;6759:16;:14;:16::i;:::-;6734:41;;6785:15;6803:14;:12;:14::i;:::-;6785:32;;6849:6;6835:10;:20;;6827:55;;;;;-1:-1:-1;;;6827:55:0;;;;;;;;;;;;-1:-1:-1;;;6827:55:0;;;;;;;;;;;;;;;6939:13;6955:39;6960:26;6965:6;9614:1:3;6960:4:0;:26::i;:::-;6988:5;6955:4;:39::i;:::-;6939:55;;7045:49;7075:8;7087:6;7045:13;:49::i;:::-;7154:26;7159:12;;7173:6;7154:4;:26::i;:::-;7139:12;:41;7300:10;;7242:95;;-1:-1:-1;;;7242:95:0;;7288:10;7242:95;;;;;;-1:-1:-1;;;;;7300:10:0;;;7242:95;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:45;;;;;;7300:10;;7312:6;;7320:8;;7330:6;;;;7242:95;;;;;7330:6;;;;7242:95;1:33:-1;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;7242:95:0;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;7242:95:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;7242:95:0;;;;7376:21;7400:16;:14;:16::i;:::-;7376:40;;7454:33;7459:17;7478:8;7454:4;:33::i;:::-;7434:16;:53;7426:86;;;;;-1:-1:-1;;;7426:86:0;;;;;;;;;;;;-1:-1:-1;;;7426:86:0;;;;;;;;;;;;;;;7588:16;7607:68;7626:38;;;;;;;;7641:21;;7626:38;;;7666:8;7607:18;:68::i;:::-;7588:87;;7701:32;7706:13;;7721:11;7701:4;:32::i;:::-;7685:13;:48;7758:26;7763:10;7775:8;7758:4;:26::i;:::-;7743:12;:41;7814:12;;7809:26;;7828:6;7809:4;:26::i;:::-;7794:12;:41;7851:50;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;7851:50:0;;;;;;;;;;;;;-1:-1:-1;;49521:11:2;:18;;-1:-1:-1;;49521:18:2;49535:4;49521:18;;;-1:-1:-1;;;;;;;6466:1442:0:o;35214:722:2:-;35362:12;;35256:4;;-1:-1:-1;;;;;35362:12:2;35348:10;:26;;;:54;;-1:-1:-1;35378:10:2;:24;35348:54;35344:162;;;35425:70;35430:18;35450:44;35425:4;:70::i;:::-;35418:77;;;;35344:162;35587:5;;;35628:12;;;-1:-1:-1;;;;;35628:12:2;;;35587:5;35698:20;;;-1:-1:-1;;;;;;35698:20:2;;;;;;;-1:-1:-1;;;;;;35764:25:2;;;;;;35805;;;35587:5;;;;;;35805:25;;;35824:5;;;;;35805:25;;;;;;35587:5;;35628:12;;35805:25;;;;;;;;;35878:12;;35845:46;;;-1:-1:-1;;;;;35845:46:2;;;;;35878:12;;;35845:46;;;;;;;;;;;;;;;;35914:14;35902:27;;;;35214:722;:::o;9578:37:3:-;9614:1;9578:37;:::o;44588:625:2:-;44675:4;44691:10;44704:16;:14;:16::i;:::-;44691:29;-1:-1:-1;44734:29:2;;44730:295;;44936:78;44947:5;44941:12;;;;;;;;44955:58;44936:4;:78::i;:::-;44929:85;;;;;44730:295;45158:48;45185:20;45158:26;:48::i;1242:42:3:-;;;-1:-1:-1;;;;;1242:42:3;;:::o;4865:234:0:-;4978:4;4995:8;5008:64;5032:8;5042:11;5055:16;5008:23;:64::i;:::-;-1:-1:-1;4994:78:0;4865:234;-1:-1:-1;;;;;4865:234:0:o;879:28:3:-;;;;;;-1:-1:-1;;;;;879:28:3;;:::o;6352:159:2:-;6428:17;;6405:4;;-1:-1:-1;;;;;6428:17:2;:31;6460:14;:12;:14::i;:::-;6476:12;;6490:13;;6428:76;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;37168:599:2;37257:4;49445:11;;;;49437:34;;;;;-1:-1:-1;;;49437:34:2;;;;;;;;;;;;-1:-1:-1;;;49437:34:2;;;;;;;;;;;;;;;49495:5;49481:19;;-1:-1:-1;;49481:19:2;;;37286:16;:14;:16::i;:::-;37273:29;-1:-1:-1;37316:29:2;;37312:283;;37511:73;37522:5;37516:12;;;;;;;;37530:53;37511:4;:73::i;37312:283::-;37712:48;37735:24;37712:22;:48::i;4296:36:3:-;4328:4;4296:36;:::o;9556:89:0:-;9626:12;;9556:89;:::o;10197:114:10:-;10250:4;10273:31;10278:1;10281;10273:31;;;;;;;;;;;;;-1:-1:-1;;;10273:31:10;;;:4;:31::i;10814:118::-;10867:4;10890:35;10895:1;10898;10890:35;;;;;;;;;;;;;-1:-1:-1;;;10890:35:10;;;:4;:35::i;22134:564:2:-;22212:4;49445:11;;22212:4;;49445:11;;49437:34;;;;;-1:-1:-1;;;49437:34:2;;;;;;;;;;;;-1:-1:-1;;;49437:34:2;;;;;;;;;;;;;;;49495:5;49481:19;;-1:-1:-1;;49481:19:2;;;22247:16;:14;:16::i;:::-;22234:29;-1:-1:-1;22277:29:2;;22273:257;;22448:67;22459:5;22453:12;;;;;;;;22467:47;22448:4;:67::i;:::-;22440:79;-1:-1:-1;22517:1:2;;-1:-1:-1;22440:79:2;;-1:-1:-1;22440:79:2;22273:257;22638:53;22655:10;22667;22679:11;22638:16;:53::i;:::-;22631:60;;;;;49510:1;49521:11;:18;;-1:-1:-1;;49521:18:2;49535:4;49521:18;;;22134:564;;;;-1:-1:-1;22134:564:2:o;11539:773::-;11636:11;;11600:4;;11661:17;11657:649;;-1:-1:-1;;11829:27:2;;11822:34;;11657:649;12032:14;12049;:12;:14::i;:::-;12032:31;;12077:33;12113:50;12118:29;12123:9;12134:12;;12118:4;:29::i;:::-;12149:13;;12113:4;:50::i;:::-;12077:86;;12177:17;12197:65;12202:28;12232:29;;;;;;;;12247:12;12232:29;;;12197:4;:65::i;:::-;12177:85;-1:-1:-1;12276:19:2;;-1:-1:-1;;;;12276:19:2;11657:649;11539:773;;:::o;15518:2693:0:-;15616:4;15713:38;15747:3;15713:33;:38::i;:::-;15761;15795:3;15761:33;:38::i;:::-;-1:-1:-1;;;;;16158:18:0;;16133:17;16158:18;;;:13;:18;;;;;;;;;16178:23;:28;;;;;;16153:54;;16158:18;16153:4;:54::i;:::-;16133:74;-1:-1:-1;16217:21:0;16256;;;16252:92;;;-1:-1:-1;16312:21:0;;;16252:92;16569:11;;:70;;;-1:-1:-1;;;16569:70:0;;16605:4;16569:70;;;;-1:-1:-1;;;;;16569:70:0;;;;;;;;;;;;;;;;;;;;;;16554:12;;16569:11;;;;;:27;;:70;;;;;;;;;;;;;;;16554:12;16569:11;:70;;;5:2:-1;;;;30:1;27;20:12;5:2;16569:70:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;16569:70:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;16569:70:0;;-1:-1:-1;16653:12:0;;16649:142;;16688:92;16699:27;16728:42;16772:7;16688:10;:92::i;:::-;16681:99;;;;;;;16649:142;16854:3;-1:-1:-1;;;;;16847:10:0;:3;-1:-1:-1;;;;;16847:10:0;;16843:103;;;16880:55;16885:15;16902:32;16880:4;:55::i;16843:103::-;17020:22;-1:-1:-1;;;;;17060:14:0;;;;;;;17056:156;;;-1:-1:-1;;;17056:156:0;;;-1:-1:-1;;;;;;17169:23:0;;;;;;;:18;:23;;;;;;;;:32;;;;;;;;;;17056:156;-1:-1:-1;;;;;17313:18:0;;;;;;:13;:18;;;;;;17308:32;;17333:6;17308:4;:32::i;:::-;-1:-1:-1;;;;;17287:18:0;;;;;;;:13;:18;;;;;;:53;;;;17376:18;;;;;;;17371:32;;17396:6;17371:4;:32::i;:::-;-1:-1:-1;;;;;17350:18:0;;;;;;:13;:18;;;;;:53;17417:20;;17413:382;;-1:-1:-1;;;;;17489:28:0;;;;;;:23;:28;;;;;;17484:52;;17519:16;17484:4;:52::i;:::-;-1:-1:-1;;;;;17453:28:0;;;;;;;:23;:28;;;;;;:83;;;;17586:28;;;;;;;17581:52;;17616:16;17581:4;:52::i;:::-;-1:-1:-1;;;;;17550:28:0;;;;;;;:23;:28;;;;;;;;:83;;;;17680:28;;;;;;;;;;;17653:56;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;17653:56:0;;;;;;;;;;-1:-1:-1;;;;;17755:28:0;;;;;;:23;:28;;;;;;;;;;17728:56;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;17728:56:0;;;;;;;;;17413:382;-1:-1:-1;;17864:17:0;:29;17860:126;;17944:31;17949:17;17968:6;17944:4;:31::i;:::-;-1:-1:-1;;;;;17909:23:0;;;;;;;:18;:23;;;;;;;;:32;;;;;;;;;:66;17860:126;18054:3;-1:-1:-1;;;;;18040:26:0;18049:3;-1:-1:-1;;;;;18040:26:0;-1:-1:-1;;;;;;;;;;;18059:6:0;18040:26;;;;;;;;;;;;;;;;;;18189:14;18177:27;;;;;;15518:2693;;;;;;;:::o;23023:586:2:-;23125:4;49445:11;;23125:4;;49445:11;;49437:34;;;;;-1:-1:-1;;;49437:34:2;;;;;;;;;;;;-1:-1:-1;;;49437:34:2;;;;;;;;;;;;;;;49495:5;49481:19;;-1:-1:-1;;49481:19:2;;;23160:16;:14;:16::i;:::-;23147:29;-1:-1:-1;23190:29:2;;23186:257;;23361:67;23372:5;23366:12;;;;;;;;23380:47;23361:4;:67::i;:::-;23353:79;-1:-1:-1;23430:1:2;;-1:-1:-1;23353:79:2;;-1:-1:-1;23353:79:2;23186:257;23551:51;23568:10;23580:8;23590:11;23551:16;:51::i;:::-;23544:58;;;;;49510:1;49521:11;:18;;-1:-1:-1;;49521:18:2;49535:4;49521:18;;;23023:586;;;;-1:-1:-1;23023:586:2;-1:-1:-1;23023:586:2:o;3411:171:10:-;3489:4;3505:18;;:::i;:::-;3526:15;3531:1;3534:6;3526:4;:15::i;:::-;3505:36;;3558:17;3567:7;3558:8;:17::i;39228:580:2:-;39305:4;49445:11;;;;49437:34;;;;;-1:-1:-1;;;49437:34:2;;;;;;;;;;;;-1:-1:-1;;;49437:34:2;;;;;;;;;;;;;;;49495:5;49481:19;;-1:-1:-1;;49481:19:2;;;39334:16;:14;:16::i;:::-;39321:29;-1:-1:-1;39364:29:2;;39360:271;;39553:67;39564:5;39558:12;;;;;;;;39572:47;39553:4;:67::i;39360:271::-;39751:28;39769:9;39751:17;:28::i;:::-;-1:-1:-1;39739:40:2;-1:-1:-1;;49521:11:2;:18;;-1:-1:-1;;49521:18:2;49535:4;49521:18;;;39228:580;;-1:-1:-1;39228:580:2:o;5965:149:9:-;6026:4;6047:33;6060:3;6055:9;;;;;;;;6071:4;6066:10;;;;;;;;6047:33;;;;;;;;;;;;;6078:1;6047:33;;;;;;;;;;;;;6103:3;6098:9;;;;;;;9884:168:0;9987:10;;10015:30;;;-1:-1:-1;;;10015:30:0;;10039:4;10015:30;;;;;;9933:4;;-1:-1:-1;;;;;9987:10:0;;;;10015:15;;:30;;;;;;;;;;;;;;;9987:10;10015:30;;;5:2:-1;;;;30:1;27;20:12;5:2;10015:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;10015:30:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;10015:30:0;;-1:-1:-1;;9884:168:0;:::o;42696:1531:2:-;42902:5;;42763:4;;;;42902:5;;;-1:-1:-1;;;;;42902:5:2;42888:10;:19;42884:122;;42930:65;42935:18;42955:39;42930:4;:65::i;42884:122::-;43129:16;:14;:16::i;:::-;43107:18;;:38;43103:145;;43168:69;43173:22;43197:39;43168:4;:69::i;43103:145::-;43351:12;43334:14;:12;:14::i;:::-;:29;43330:150;;;43386:83;43391:29;43422:46;43386:4;:83::i;43330:150::-;43571:13;;43556:12;:28;43552:127;;;43607:61;43612:15;43629:38;43607:4;:61::i;43552:127::-;43825:33;43830:13;;43845:12;43825:4;:33::i;:::-;43929:13;:32;;;44092:5;;43929:32;;-1:-1:-1;44078:34:2;;44092:5;;;-1:-1:-1;;;;;44092:5:2;44099:12;44078:13;:34::i;:::-;44144:5;;44128:54;;;44144:5;;;;-1:-1:-1;;;;;44144:5:2;44128:54;;;;;;;;;;;;;;;;;;;;;;;;;44205:14;44200:20;;17501:529;17585:4;49445:11;;;;49437:34;;;;;-1:-1:-1;;;49437:34:2;;;;;;;;;;;;-1:-1:-1;;;49437:34:2;;;;;;;;;;;;;;;49495:5;49481:19;;-1:-1:-1;;49481:19:2;;;17614:16;:14;:16::i;:::-;17601:29;-1:-1:-1;17644:29:2;;17640:246;;17814:61;17825:5;17819:12;;;;;;;;17833:41;17814:4;:61::i;17640:246::-;17983:40;17995:10;18007:1;18010:12;17983:11;:40::i;10349:1186:0:-;-1:-1:-1;;;;;11055:30:0;;;;;;:21;:30;;;;;;;;11050:479;;11143:11;;11105:90;;;-1:-1:-1;;;11105:90:0;;-1:-1:-1;;;;;11105:90:0;;;;;;;11189:4;11105:90;;;;;;11143:11;;;;;11105:67;;:90;;;;;;;;;;;;;;11143:11;11105:90;;;5:2:-1;;;;30:1;27;20:12;5:2;11105:90:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;11105:90:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;11105:90:0;11101:367;;;-1:-1:-1;;;;;11250:22:0;;;;;;:13;:22;;;;;;;;;11215:23;:32;;;;:57;;;11319:21;;11342:22;;;11314:51;;:4;:51::i;:::-;11290:21;:75;-1:-1:-1;;;;;11420:32:0;;;;;;:23;:32;;;;;;;;;;11389:64;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;11389:64:0;;;;;;;;;11101:367;-1:-1:-1;;;;;11481:30:0;;;;;;:21;:30;;;;;:37;;-1:-1:-1;;11481:37:0;11514:4;11481:37;;;10349:1186;:::o;19008:1289::-;19096:4;19112:29;19144:35;19149:21;;19172:6;19144:4;:35::i;:::-;19112:67;;19193:13;;19210:1;19193:18;:87;;;-1:-1:-1;19216:13:0;;:18;;;;:63;;;19266:13;;19238:24;:41;;19216:63;19189:1084;;;19463:21;:48;;;-1:-1:-1;;;;;19565:32:0;;;;;;:23;:32;;;;;;19560:46;;19599:6;19560:4;:46::i;:::-;-1:-1:-1;;;;;19525:32:0;;;;;;:23;:32;;;;;;;;;:81;;;19626:64;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;19626:64:0;;;;;;;;;;19711:6;19704:13;;;;;19189:1084;19754:21;;19738:13;;:37;19734:539;;;19939:8;19950:42;19955:13;;19970:21;;19950:4;:42::i;:::-;19939:53;;20030:32;20035:21;;20058:3;20030:4;:32::i;:::-;20006:21;:56;-1:-1:-1;;;;;20116:32:0;;;;;;:23;:32;;;;;;20111:43;;20150:3;20111:4;:43::i;:::-;-1:-1:-1;;;;;20076:32:0;;;;;;:23;:32;;;;;;;;;:78;;;20174:64;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;20174:64:0;;;;;;;;;;20259:3;-1:-1:-1;20252:10:0;;-1:-1:-1;20252:10:0;19734:539;-1:-1:-1;20289:1:0;;19008:1289;-1:-1:-1;;;19008:1289:0:o;20526:626::-;20623:11;;:57;;;-1:-1:-1;;;20623:57:0;;20657:4;20623:57;;;;-1:-1:-1;;;;;20623:57:0;;;;;;;;;;;;;;;:11;;;;;:25;;:57;;;;;;;;;;;;;;:11;;:57;;;5:2:-1;;;;30:1;27;20:12;5:2;20623:57:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;20623:57:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;20623:57:0;:62;20615:96;;;;;-1:-1:-1;;;20615:96:0;;;;;;;;;;;;-1:-1:-1;;;20615:96:0;;;;;;;;;;;;;;;20861:11;20857:48;;20888:7;;20857:48;20939:35;20944:21;;20967:6;20939:4;:35::i;:::-;20915:21;:59;-1:-1:-1;;;;;21024:32:0;;;;;;:23;:32;;;;;;21019:46;;21058:6;21019:4;:46::i;:::-;-1:-1:-1;;;;;20984:32:0;;;;;;:23;:32;;;;;;;;;:81;;;21081:64;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;21081:64:0;;;;;;;;;;20526:626;;;:::o;9763:837:2:-;-1:-1:-1;;;;;9944:23:2;;9840:4;9944:23;;;:14;:23;;;;;10168:24;;10164:68;;10220:1;10213:8;;;;;10164:68;10421:24;10448:43;10453:14;:24;;;10479:11;;10448:4;:43::i;:::-;10421:70;;10501:11;10515:55;10520:19;10541:14;:28;;;10515:4;:55::i;:::-;10501:69;9763:837;-1:-1:-1;;;;;9763:837:2:o;6091:91::-;6163:12;6091:91;:::o;45535:1271::-;45829:5;;45629:4;;;;45829:5;;;-1:-1:-1;;;;;45829:5:2;45815:10;:19;45811:130;;45857:73;45862:18;45882:47;45857:4;:73::i;45811:130::-;46064:16;:14;:16::i;:::-;46042:18;;:38;46038:153;;46103:77;46108:22;46132:47;46103:4;:77::i;46038:153::-;46282:17;;;;;;;;;-1:-1:-1;;;;;46282:17:2;46259:40;;46399:20;-1:-1:-1;;;;;46399:40:2;;:42;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;46399:42:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;46399:42:2;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;46399:42:2;46391:83;;;;;-1:-1:-1;;;46391:83:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;46548:17;:40;;-1:-1:-1;;;;;;46548:40:2;-1:-1:-1;;;;;46548:40:2;;;;;;;;;46691:70;;;;;;;;;;;;;;;;;;;;;;;;;;;46784:14;46779:20;;15728:539;15798:4;49445:11;;15798:4;;49445:11;;49437:34;;;;;-1:-1:-1;;;49437:34:2;;;;;;;;;;;;-1:-1:-1;;;49437:34:2;;;;;;;;;;;;;;;49495:5;49481:19;;-1:-1:-1;;49481:19:2;;;15833:16;:14;:16::i;:::-;15820:29;-1:-1:-1;15863:29:2;;15859:249;;16034:59;16045:5;16039:12;;;;;;;;16053:39;16034:4;:59::i;15859:249::-;16227:33;16237:10;16249;16227:9;:33::i;11262:131:10:-;11321:10;;:::i;:::-;11350:36;;;;;;;;11365:19;11370:1;:10;;;11382:1;11365:4;:19::i;:::-;11350:36;;11343:43;11262:131;-1:-1:-1;;;11262:131:10:o;3722:205::-;3820:4;3836:18;;:::i;:::-;3857:15;3862:1;3865:6;3857:4;:15::i;:::-;3836:36;;3889:31;3894:17;3903:7;3894:8;:17::i;:::-;3913:6;3889:4;:31::i;30185:2422:0:-;30303:4;30412:45;30446:10;30412:33;:45::i;:::-;30467:43;30501:8;30467:33;:43::i;:::-;30576:11;;:87;;;-1:-1:-1;;;30576:87:0;;30609:4;30576:87;;;;-1:-1:-1;;;;;30576:87:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30561:12;;30576:11;;;;;:24;;:87;;;;;;;;;;;;;;;30561:12;30576:11;:87;;;5:2:-1;;;;30:1;27;20:12;5:2;30576:87:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;30576:87:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;30576:87:0;;-1:-1:-1;30677:12:0;;30673:149;;30712:99;30723:27;30752:49;30803:7;30712:10;:99::i;:::-;30705:106;;;;;30673:149;30975:16;30971:74;;31019:14;31014:20;;30971:74;31115:10;-1:-1:-1;;;;;31103:22:0;:8;-1:-1:-1;;;;;31103:22:0;;31099:144;;;31148:84;31153:26;31181:50;31148:4;:84::i;31099:144::-;-1:-1:-1;;;;;31792:23:0;;;;;;:13;:23;;;;;;31787:42;;31817:11;31787:4;:42::i;:::-;-1:-1:-1;;;;;31761:23:0;;;;;;;:13;:23;;;;;;:68;;;;31872:25;;;;;;;31867:44;;31899:11;31867:4;:44::i;:::-;-1:-1:-1;;;;;31839:25:0;;;;;;;:13;:25;;;;;;;;:72;;;;31962:33;;;;;:23;:33;;;;;31957:52;;31997:11;31957:4;:52::i;:::-;-1:-1:-1;;;;;31921:33:0;;;;;;;:23;:33;;;;;;:88;;;;32062:35;;;;;;;32057:54;;32099:11;32057:4;:54::i;:::-;-1:-1:-1;;;;;32019:35:0;;;;;;;:23;:35;;;;;;;;;:92;;;;32187:43;;;;;;;32019:35;;32187:43;;;;-1:-1:-1;;;;;;;;;;;32187:43:0;;;;;;;;-1:-1:-1;;;;;32277:33:0;;;;;;:23;:33;;;;;;;;;;32245:66;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;32245:66:0;;;;;;;;;-1:-1:-1;;;;;32360:35:0;;;;;;:23;:35;;;;;;;;;;32326:70;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;32326:70:0;;;;;;;;;32585:14;32573:27;30185:2422;-1:-1:-1;;;;;;30185:2422:0:o;18331:409::-;-1:-1:-1;;;;;18425:30:0;;18405:4;18425:30;;;:21;:30;;;;;;;;18421:313;;;-1:-1:-1;;;;;;18478:32:0;;;;;;:23;:32;;;;;;18471:39;;18421:313;-1:-1:-1;;;;;;18701:22:0;;;;;;:13;:22;;;;;;18694:29;;18291:516:2;18365:4;49445:11;;;;49437:34;;;;;-1:-1:-1;;;49437:34:2;;;;;;;;;;;;-1:-1:-1;;;49437:34:2;;;;;;;;;;;;;;;49495:5;49481:19;;-1:-1:-1;;49481:19:2;;;18394:16;:14;:16::i;:::-;18381:29;-1:-1:-1;18424:29:2;;18420:246;;18594:61;18605:5;18599:12;;;;;;;;18613:41;18594:4;:61::i;18420:246::-;18763:37;18775:10;18787:12;18763:11;:37::i;16610:519::-;16684:4;49445:11;;;;49437:34;;;;;-1:-1:-1;;;49437:34:2;;;;;;;;;;;;-1:-1:-1;;;49437:34:2;;;;;;;;;;;;;;;49495:5;49481:19;;-1:-1:-1;;49481:19:2;;;16713:16;:14;:16::i;:::-;16700:29;-1:-1:-1;16743:29:2;;16739:246;;16913:61;16924:5;16918:12;;;;;;;16739:246;17082:40;17094:10;17106:12;17120:1;17082:11;:40::i;11979:120:10:-;12032:4;12055:37;12060:1;12063;12055:37;;;;;;;;;;;;;;;;;:4;:37::i;13254:111::-;13307:4;13330:28;13335:1;13338;13330:28;;;;;;;;;;;;;-1:-1:-1;;;13330:28:10;;;:4;:28::i;14130:936:0:-;14265:10;;14286:26;;;-1:-1:-1;;;14286:26:0;;-1:-1:-1;;;;;14286:26:0;;;;;;;;;;;;;;;14265:10;;;;;;;14286:14;;:26;;;;;14205:31;;14286:26;;;;;;;;14205:31;14265:10;14286:26;;;5:2:-1;;;;30:1;27;20:12;5:2;14286:26:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;14286:26:0;;;;14323:12;14375:16;14413:1;14408:150;;;;14580:2;14575:216;;;;14924:1;14921;14914:12;14408:150;-1:-1:-1;;14502:6:0;-1:-1:-1;14408:150:0;;14575:216;14676:2;14673:1;14670;14655:24;14717:1;14711:8;14700:19;;14368:576;;14971:7;14963:45;;;;;-1:-1:-1;;;14963:45:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;15033:26;15038:12;;15052:6;15033:4;:26::i;:::-;15018:12;:41;-1:-1:-1;;;;14130:936:0:o;28009:979:2:-;28143:4;49445:11;;28143:4;;49445:11;;49437:34;;;;;-1:-1:-1;;;49437:34:2;;;;;;;;;;;;-1:-1:-1;;;49437:34:2;;;;;;;;;;;;;;;49495:5;49481:19;;-1:-1:-1;;49481:19:2;;;28178:16;:14;:16::i;:::-;28165:29;-1:-1:-1;28208:29:2;;28204:266;;28384:71;28395:5;28389:12;;;;;;;;28403:51;28384:4;:71::i;:::-;28376:83;-1:-1:-1;28457:1:2;;-1:-1:-1;28376:83:2;;-1:-1:-1;28376:83:2;28204:266;28488:16;-1:-1:-1;;;;;28488:31:2;;:33;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;28488:33:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;28488:33:2;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;28488:33:2;;-1:-1:-1;28535:29:2;;28531:270;;28711:75;28722:5;28716:12;;;;;;;;28730:55;28711:4;:75::i;28531:270::-;28908:73;28929:10;28941:8;28951:11;28964:16;28908:20;:73::i;:::-;28901:80;;;;;49510:1;49521:11;:18;;-1:-1:-1;;49521:18:2;49535:4;49521:18;;;28009:979;;;;-1:-1:-1;28009:979:2;-1:-1:-1;;28009:979:2:o;38028:951::-;38176:5;;38109:4;;38176:5;;;-1:-1:-1;;;;;38176:5:2;38162:10;:19;38158:125;;38204:68;38209:18;38229:42;38204:4;:68::i;38158:125::-;38387:16;:14;:16::i;:::-;38365:18;;:38;38361:148;;38426:72;38431:22;38455:42;38426:4;:72::i;38361:148::-;805:4:3;38578:24:2;:51;38574:155;;;38652:66;38657:15;38674:43;38652:4;:66::i;38574:155::-;38771:21;;;38802:48;;;;38866:68;;;;;;;;;;;;;;;;;;;;;;;;;38957:14;38952:20;;10317:175:10;10398:4;10423:5;;;10454:12;10446:6;;;;10438:29;;;;-1:-1:-1;;;10438:29:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;10438:29:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10938:155;11019:4;11051:12;11043:6;;;;11035:29;;;;-1:-1:-1;;;11035:29:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;11035:29:10;-1:-1:-1;;;11081:5:10;;;10938:155::o;24294:3198:2:-;24472:11;;:75;;;-1:-1:-1;;;24472:75:2;;24511:4;24472:75;;;;-1:-1:-1;;;;;24472:75:2;;;;;;;;;;;;;;;;;;;;;;24389:4;;;;;;24472:11;;;:30;;:75;;;;;;;;;;;;;;;24389:4;24472:11;:75;;;5:2:-1;;;;30:1;27;20:12;5:2;24472:75:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;24472:75:2;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;24472:75:2;;-1:-1:-1;24561:12:2;;24557:151;;24597:96;24608:27;24637:46;24685:7;24597:10;:96::i;:::-;24589:108;-1:-1:-1;24695:1:2;;-1:-1:-1;24589:108:2;;-1:-1:-1;24589:108:2;24557:151;24867:16;24863:145;;24940:11;;-1:-1:-1;;;;;24899:24:2;;;;;;:14;:24;;;;;:38;;:52;;;;24973:20;;24863:145;25115:16;:14;:16::i;:::-;25093:18;;:38;25089:151;;25155:70;25160:22;25184:40;25155:4;:70::i;25089:151::-;25250:32;;:::i;:::-;-1:-1:-1;;;;;25393:24:2;;;;;;:14;:24;;;;;:38;;;25372:18;;;:59;25543:37;25408:8;25543:27;:37::i;:::-;25521:19;;;:59;-1:-1:-1;;25660:23:2;;25656:153;;;25718:19;;;;25699:16;;;:38;25656:153;;;25768:16;;;:30;;;25656:153;26394:37;26407:5;26414:4;:16;;;26394:12;:37::i;:::-;26369:22;;;:62;;;26715:19;;;;26710:49;;:4;:49::i;:::-;26685:22;;;:74;26797:12;;26811:22;;;;26792:42;;26797:12;26792:4;:42::i;:::-;26769:20;;;:65;;;26951:22;;;;;;-1:-1:-1;;;;;26914:24:2;;;;;;;:14;:24;;;;;;;;;:59;;;27024:11;;26983:38;;;;:52;;;;27060:20;;27045:12;:35;;;27167:22;;;;27191;;27138:98;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27462:22;;;27445:14;;-1:-1:-1;27462:22:2;-1:-1:-1;;24294:3198:2;;;;;;;:::o;12659:124:10:-;12718:4;12741:35;12746:17;12751:1;447:4;12746;:17::i;:::-;12765:10;;12741:4;:35::i;6232:183:9:-;6317:4;6338:43;6351:3;6346:9;;;;;;;;6362:4;6357:10;;;;;;;;6338:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;6404:3;6399:9;;;;;;;8722:210:10;8902:12;447:4;8902:23;;;8722:210::o;40140:1477:2:-;40201:4;40207;40266:21;40297:20;40441:16;:14;:16::i;:::-;40419:18;;:38;40415:161;;40481:66;40486:22;40510:36;40481:4;:66::i;:::-;40473:92;-1:-1:-1;40549:15:2;-1:-1:-1;40473:92:2;;-1:-1:-1;40473:92:2;40415:161;41151:35;41164:10;41176:9;41151:12;:35::i;:::-;41133:53;;41216:36;41221:13;;41236:15;41216:4;:36::i;:::-;41326:13;:32;;;41444:60;;;41458:10;41444:60;;;;;;;;;;;;;;;;41197:55;;-1:-1:-1;41444:60:2;;;;;;;;;;41577:14;41564:46;-1:-1:-1;41594:15:2;-1:-1:-1;;40140:1477:2;;;;:::o;25557:3965:0:-;25664:4;25755:43;25789:8;25755:33;:43::i;:::-;25817:19;;;:42;;-1:-1:-1;25840:19:0;;25817:42;25809:107;;;;-1:-1:-1;;;25809:107:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25927:27;;:::i;:::-;26052:28;:26;:28::i;:::-;26024:56;;26132:18;;26128:840;;26402:17;;;;:34;;;26489:42;;;;;;;;26504:25;;26489:42;;26470:78;;26422:14;26470:18;:78::i;:::-;26450:17;;;:98;26128:840;;;26826:83;26850:14;26866:42;;;;;;;;26881:4;:25;;;26866:42;;;26826:23;:83::i;:::-;26806:17;;;:103;26923:17;;;:34;;;26128:840;-1:-1:-1;;;;;27339:23:0;;27314:17;27339:23;;;:13;:23;;;;;;;;;27364;:33;;;;;;27334:64;;27339:23;27334:4;:64::i;:::-;27314:84;;27408:21;27432:1;27408:25;;27467:12;27447:4;:17;;;:32;27443:114;;;27534:12;27514:4;:17;;;:32;27495:51;;27443:114;27664:16;:14;:16::i;:::-;27642:18;;:38;27638:140;;27703:64;27708:22;27732:34;27703:4;:64::i;:::-;27696:71;;;;;;;27638:140;27873:4;:17;;;27856:14;:12;:14::i;:::-;:34;27852:153;;;27913:81;27918:29;27949:44;27913:4;:81::i;27852:153::-;28489:42;28503:8;28513:4;:17;;;28489:13;:42::i;:::-;28796:36;28801:11;;28814:4;:17;;;28796:4;:36::i;:::-;28782:11;:50;-1:-1:-1;;;;;28873:23:0;;;;;;:13;:23;;;;;;;;;28898:17;;;;28868:48;;28873:23;28868:4;:48::i;:::-;-1:-1:-1;;;;;28842:23:0;;;;;;:13;:23;;;;;:74;29040:20;;29036:109;;29076:58;29107:8;29117:16;29076:30;:58::i;:::-;29246:4;-1:-1:-1;;;;;29219:52:0;29228:8;-1:-1:-1;;;;;29219:52:0;-1:-1:-1;;;;;;;;;;;29253:4:0;:17;;;29219:52;;;;;;;;;;;;;;;;;;29303:17;;;;;29322;;;;;29286:54;;-1:-1:-1;;;;;29286:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29390:11;;29440:17;;;;;29459;;;;29390:87;;-1:-1:-1;;;29390:87:0;;29423:4;29390:87;;;;-1:-1:-1;;;;;29390:87:0;;;;;;;;;;;;;;;;;;;;;;;:11;;;:24;;:87;;;;;:11;;:87;;;;;;;;:11;;:87;;;5:2:-1;;;;30:1;27;20:12;5:2;29390:87:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;29500:14:0;;-1:-1:-1;29495:20:0;;-1:-1:-1;;29495:20:0;;29488:27;25557:3965;-1:-1:-1;;;;;;;25557:3965:0:o;21737:3079::-;21807:4;21813;21902:41;21936:6;21902:33;:41::i;:::-;22008:11;;:58;;;-1:-1:-1;;;22008:58:0;;22040:4;22008:58;;;;-1:-1:-1;;;;;22008:58:0;;;;;;;;;;;;;;;21993:12;;22008:11;;;;;:23;;:58;;;;;;;;;;;;;;;21993:12;22008:11;:58;;;5:2:-1;;;;30:1;27;20:12;5:2;22008:58:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;22008:58:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;22008:58:0;;-1:-1:-1;22080:12:0;;22076:143;;22116:88;22127:27;22156:38;22196:7;22116:10;:88::i;:::-;22108:100;-1:-1:-1;22206:1:0;;-1:-1:-1;22108:100:0;;-1:-1:-1;22108:100:0;22076:143;22370:15;22366:78;;22414:14;22409:20;;22366:78;22551:16;:14;:16::i;:::-;22529:18;;:38;22525:143;;22591:62;22596:22;22620:32;22591:4;:62::i;22525:143::-;22678:25;;:::i;:::-;22742:28;:26;:28::i;:::-;22714:56;;23389:32;23402:6;23410:10;23389:12;:32::i;:::-;23365:21;;;;:56;;;23671:42;;;;;;;;23686:25;;23671:42;;23624:90;;23365:56;23624:23;:90::i;:::-;23606:15;;;:108;;;23994:11;;23989:34;;:4;:34::i;:::-;23975:11;:48;-1:-1:-1;;;;;24062:21:0;;;;;;:13;:21;;;;;;;;;24085:15;;;;24057:44;;24062:21;24057:4;:44::i;:::-;-1:-1:-1;;;;;24033:21:0;;;;;;;:13;:21;;;;;;;;;:68;;;;24261:11;;24223:89;;-1:-1:-1;;;24223:89:0;;;;;;;;;24306:4;24223:89;;;;;;24261:11;;;24223:67;;:89;;;;;;;;;;24261:11;24223:89;;;5:2:-1;;;;30:1;27;20:12;5:2;24223:89:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;24223:89:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;24223:89:0;24219:175;;;24328:55;24359:6;24367:4;:15;;;24328:30;:55::i;:::-;;24219:175;24479:21;;;;;24502:15;;;;;24466:52;;-1:-1:-1;;;;;24466:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24557:6;-1:-1:-1;;;;;24533:48:0;24550:4;-1:-1:-1;;;;;24533:48:0;-1:-1:-1;;;;;;;;;;;24565:4:0;:15;;;24533:48;;;;;;;;;;;;;;;;;;24787:21;;;24770:14;;-1:-1:-1;24787:21:0;-1:-1:-1;;21737:3079:0;;;;;;:::o;19220:2668:2:-;19376:11;;:64;;;-1:-1:-1;;;19376:64:2;;19410:4;19376:64;;;;-1:-1:-1;;;;;19376:64:2;;;;;;;;;;;;;;;19304:4;;;;19376:11;;:25;;:64;;;;;;;;;;;;;;19304:4;19376:11;:64;;;5:2:-1;;;;30:1;27;20:12;5:2;19376:64:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;19376:64:2;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;19376:64:2;;-1:-1:-1;19454:12:2;;19450:140;;19489:90;19500:27;19529:40;19571:7;19489:10;:90::i;:::-;19482:97;;;;;19450:140;19745:17;19741:141;;19819:11;;-1:-1:-1;;;;;19778:24:2;;;;;;:14;:24;;;;;:38;;:52;;;;19851:20;;19741:141;19989:16;:14;:16::i;:::-;19967:18;;:38;19963:140;;20028:64;20033:22;20057:34;20028:4;:64::i;19963:140::-;20209:12;20192:14;:12;:14::i;:::-;:29;20188:141;;;20244:74;20249:29;20280:37;20244:4;:74::i;20188:141::-;20339:27;;:::i;:::-;20631:37;20659:8;20631:27;:37::i;:::-;20609:19;;;:59;;;20703:39;;20729:12;20703:4;:39::i;:::-;20678:22;;;:64;20780:12;;20775:32;;20794:12;20775:4;:32::i;:::-;20752:20;;;:55;21288:37;21302:8;21312:12;21288:13;:37::i;:::-;21442:22;;;;;;-1:-1:-1;;;;;21405:24:2;;;;;;:14;:24;;;;;;;;:59;;;21515:11;;21474:38;;;;:52;;;;21551:20;;;;;21536:12;:35;;;21655:22;;21624:76;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21866:14;21854:27;19220:2668;-1:-1:-1;;;;;19220:2668:2:o;12105:243:10:-;12186:4;12206:6;;;:16;;-1:-1:-1;12216:6:10;;12206:16;12202:55;;;-1:-1:-1;12245:1:10;12238:8;;12202:55;12275:5;;;12279:1;12275;:5;:1;12298:5;;;;;:10;12310:12;12290:33;;;;;-1:-1:-1;;;12290:33:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;13371:154:10;13452:4;13483:12;13476:5;13468:28;;;;-1:-1:-1;;;13468:28:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;13468:28:10;;13517:1;13513;:5;;;;;;;13371:154;-1:-1:-1;;;;13371:154:10:o;29589:3544:2:-;29808:11;;:111;;;-1:-1:-1;;;29808:111:2;;29851:4;29808:111;;;;-1:-1:-1;;;;;29808:111:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29727:4;;;;;;29808:11;;;:34;;:111;;;;;;;;;;;;;;;29727:4;29808:11;:111;;;5:2:-1;;;;30:1;27;20:12;5:2;29808:111:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;29808:111:2;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;29808:111:2;;-1:-1:-1;29933:12:2;;29929:148;;29969:93;29980:27;30009:43;30054:7;29969:10;:93::i;:::-;29961:105;-1:-1:-1;30064:1:2;;-1:-1:-1;29961:105:2;;-1:-1:-1;29961:105:2;29929:148;30184:16;:14;:16::i;:::-;30162:18;;:38;30158:148;;30224:67;30229:22;30253:37;30224:4;:67::i;30158:148::-;30449:16;:14;:16::i;:::-;30408;-1:-1:-1;;;;;30408:35:2;;:37;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;30408:37:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;30408:37:2;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;30408:37:2;:57;30404:178;;30489:78;30494:22;30518:48;30489:4;:78::i;30404:178::-;30652:10;-1:-1:-1;;;;;30640:22:2;:8;-1:-1:-1;;;;;30640:22:2;;30636:143;;;30686:78;30691:26;30719:44;30686:4;:78::i;30636:143::-;30831:16;30827:145;;30871:86;30876:36;30914:42;30871:4;:86::i;30827:145::-;-1:-1:-1;;31025:11:2;:23;31021:156;;;31072:90;31077:36;31115:46;31072:4;:90::i;31021:156::-;31229:21;31252:22;31278:51;31295:10;31307:8;31317:11;31278:16;:51::i;:::-;31228:101;;-1:-1:-1;31228:101:2;-1:-1:-1;31343:40:2;;31339:161;;31407:78;31418:16;31412:23;;;;;;;;31437:47;31407:4;:78::i;:::-;31399:90;-1:-1:-1;31487:1:2;;-1:-1:-1;31399:90:2;;-1:-1:-1;;;31399:90:2;31339:161;31750:11;;:102;;;-1:-1:-1;;;31750:102:2;;31800:4;31750:102;;;;-1:-1:-1;;;;;31750:102:2;;;;;;;;;;;;;;;31707:21;;;;31750:11;;;:41;;:102;;;;;;;;;;;;:11;:102;;;5:2:-1;;;;30:1;27;20:12;5:2;31750:102:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;31750:102:2;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;31750:102:2;;;;;;;;;-1:-1:-1;31750:102:2;-1:-1:-1;31870:40:2;;31862:104;;;;-1:-1:-1;;;31862:104:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32097:11;32057:16;-1:-1:-1;;;;;32057:26:2;;32084:8;32057:36;;;;;;;;;;;;;-1:-1:-1;;;;;32057:36:2;-1:-1:-1;;;;;32057:36:2;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;32057:36:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;32057:36:2;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;32057:36:2;:51;;32049:88;;;;;-1:-1:-1;;;32049:88:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;32263:15;-1:-1:-1;;;;;32292:42:2;;32329:4;32292:42;32288:250;;;32363:63;32385:4;32392:10;32404:8;32414:11;32363:13;:63::i;:::-;32350:76;;32288:250;;;32470:57;;;-1:-1:-1;;;32470:57:2;;-1:-1:-1;;;;;32470:57:2;;;;;;;;;;;;;;;;;;;;;;:22;;;;;;:57;;;;;;;;;;;;;;;-1:-1:-1;32470:22:2;:57;;;5:2:-1;;;;30:1;27;20:12;5:2;32470:57:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;32470:57:2;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;32470:57:2;;-1:-1:-1;32288:250:2;32641:34;;32633:67;;;;;-1:-1:-1;;;32633:67:2;;;;;;;;;;;;-1:-1:-1;;;32633:67:2;;;;;;;;;;;;;;;32762:96;;;-1:-1:-1;;;;;32762:96:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33091:14;33078:48;-1:-1:-1;33108:17:2;;-1:-1:-1;;;;;;29589:3544:2;;;;;;;;:::o;12141:1296:0:-;12284:10;;12326:51;;;-1:-1:-1;;;12326:51:0;;12371:4;12326:51;;;;;;12208:4;;-1:-1:-1;;;;;12284:10:0;;12208:4;;12284:10;;12326:36;;:51;;;;;;;;;;;;;;12284:10;12326:51;;;5:2:-1;;;;30:1;27;20:12;5:2;12326:51:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;12326:51:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;12326:51:0;12387:47;;;-1:-1:-1;;;12387:47:0;;-1:-1:-1;;;;;12387:47:0;;;;;;;12420:4;12387:47;;;;;;;;;;;;12326:51;;-1:-1:-1;12387:18:0;;;;;;:47;;;;;-1:-1:-1;;12387:47:0;;;;;;;;-1:-1:-1;12387:18:0;:47;;;5:2:-1;;;;30:1;27;20:12;5:2;12387:47:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;12387:47:0;;;;12445:12;12497:16;12535:1;12530:151;;;;12703:2;12698:217;;;;13049:1;13046;13039:12;12530:151;-1:-1:-1;;12625:6:0;-1:-1:-1;12530:151:0;;12698:217;12800:2;12797:1;12794;12779:24;12841:1;12835:8;12824:19;;12490:579;;13096:7;13088:44;;;;;-1:-1:-1;;;13088:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;13242:10;;13227:51;;;-1:-1:-1;;;13227:51:0;;13272:4;13227:51;;;;;;13207:17;;-1:-1:-1;;;;;13242:10:0;;13227:36;;:51;;;;;;;;;;;;;;13242:10;13227:51;;;5:2:-1;;;;30:1;27;20:12;5:2;13227:51:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;13227:51:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;13227:51:0;;-1:-1:-1;13288:18:0;13309:33;13227:51;13328:13;13309:4;:33::i;:::-;13288:54;;13367:33;13372:12;;13386:13;13367:4;:33::i;:::-;13352:12;:48;13417:13;12141:1296;-1:-1:-1;;;;;;;12141:1296:0:o;6151:201:10:-;6240:4;6256:19;;:::i;:::-;6278:32;6294:6;6302:7;5645:10;;:::i;:::-;5941:14;5958:22;447:4;5973:6;5958:4;:22::i;:::-;5941:39;;5997:41;;;;;;;;6012:24;6017:9;6028:7;6012:4;:24::i;:::-;5997:41;;5990:48;5564:481;-1:-1:-1;;;;5564:481:10:o;215:1318:1:-;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;215:1318:1;;;-1:-1:-1;215:1318:1;:::i;:::-;;;;;;;;;;;-1:-1:-1;215:1318:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;-1:-1:-1;215:1318:1;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;

Swarm Source

bzzr://1869b1e87ec27eb5cc176f9704347773d7449d0463c5d57b6bc4ad7af1a3d83a

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ 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.