ethPM Registry Explorer

Package Name
compound
Version
1.0.0
Manifest Version
2
Manifest URI
ipfs://QmYvsyuxjj9mKmCvn3jrdfnaHYwFsyHXUu7kETrN4dBhE6

Description

Compound finance v2 smart contracts and mainnet CEr20 token deployments.

License

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.

Keywords

compound, finance, defi, solidity

Links

documentation
https://compound.finance/developers
repo
https://github.com/compound-finance/compound-protocol/
website
https://compound.finance/

Sources

./CErc20.sol
pragma solidity ^0.5.8;

import "./CToken.sol";

/**
 * @title Compound's CErc20 Contract
 * @notice CTokens which wrap an EIP-20 underlying
 * @author Compound
 */
contract CErc20 is CToken {

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

    /**
     * @notice Construct a 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
     */
    constructor(address underlying_,
                ComptrollerInterface comptroller_,
                InterestRateModel interestRateModel_,
                uint initialExchangeRateMantissa_,
                string memory name_,
                string memory symbol_,
                uint decimals_) public
    CToken(comptroller_, interestRateModel_, initialExchangeRateMantissa_, name_, symbol_, decimals_) {
        // Set underlying
        underlying = underlying_;
        EIP20Interface(underlying).totalSupply(); // Sanity check the underlying
    }

    /*** 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) {
        return mintInternal(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 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) {
        return repayBorrowInternal(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 0=success, otherwise a failure (see ErrorReporter.sol for details)
     */
    function repayBorrowBehalf(address borrower, uint repayAmount) external returns (uint) {
        return repayBorrowBehalfInternal(borrower, repayAmount);
    }

    /**
     * @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 0=success, otherwise a failure (see ErrorReporter.sol for details)
     */
    function liquidateBorrow(address borrower, uint repayAmount, CToken cTokenCollateral) external returns (uint) {
        return liquidateBorrowInternal(borrower, repayAmount, cTokenCollateral);
    }

    /*** 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 tokens owned by this contract
     */
    function getCashPrior() internal view returns (uint) {
        EIP20Interface token = EIP20Interface(underlying);
        return token.balanceOf(address(this));
    }

    /**
     * @dev Checks whether or not there is sufficient allowance for this contract to move amount from `from` and
     *      whether or not `from` has a balance of at least `amount`. Does NOT do a transfer.
     */
    function checkTransferIn(address from, uint amount) internal view returns (Error) {
        EIP20Interface token = EIP20Interface(underlying);

        if (token.allowance(from, address(this)) < amount) {
            return Error.TOKEN_INSUFFICIENT_ALLOWANCE;
        }

        if (token.balanceOf(from) < amount) {
            return Error.TOKEN_INSUFFICIENT_BALANCE;
        }

        return Error.NO_ERROR;
    }

    /**
     * @dev Similar to EIP20 transfer, except it handles a False result from `transferFrom` and returns an explanatory
     *      error code rather than reverting.  If caller has not called `checkTransferIn`, this may revert due to
     *      insufficient balance or insufficient allowance. If caller has called `checkTransferIn` prior to this call,
     *      and it returned Error.NO_ERROR, 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 doTransferIn(address from, uint amount) internal returns (Error) {
        EIP20NonStandardInterface token = EIP20NonStandardInterface(underlying);
        bool result;

        token.transferFrom(from, address(this), amount);

        // solium-disable-next-line security/no-inline-assembly
        assembly {
            switch returndatasize()
                case 0 {                      // This is a non-standard ERC-20
                    result := not(0)          // set result to true
                }
                case 32 {                     // This is a complaint ERC-20
                    returndatacopy(0, 0, 32)
                    result := mload(0)        // Set `result = returndata` of external call
                }
                default {                     // This is an excessively non-compliant ERC-20, revert.
                    revert(0, 0)
                }
        }

        if (!result) {
            return Error.TOKEN_TRANSFER_IN_FAILED;
        }

        return Error.NO_ERROR;
    }

    /**
     * @dev Similar to EIP20 transfer, except it handles a False result 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 returns (Error) {
        EIP20NonStandardInterface token = EIP20NonStandardInterface(underlying);
        bool result;

        token.transfer(to, amount);

        // solium-disable-next-line security/no-inline-assembly
        assembly {
            switch returndatasize()
                case 0 {                      // This is a non-standard ERC-20
                    result := not(0)          // set result to true
                }
                case 32 {                     // This is a complaint ERC-20
                    returndatacopy(0, 0, 32)
                    result := mload(0)        // Set `result = returndata` of external call
                }
                default {                     // This is an excessively non-compliant ERC-20, revert.
                    revert(0, 0)
                }
        }

        if (!result) {
            return Error.TOKEN_TRANSFER_OUT_FAILED;
        }

        return Error.NO_ERROR;
    }
}
./CEther.sol
pragma solidity ^0.5.8;

import "./CToken.sol";

/**
 * @title Compound's CEther Contract
 * @notice CToken which wraps Ether
 * @author Compound
 */
contract CEther is CToken {
    /**
     * @notice Construct a new CEther 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_ ERC-20 name of this token
     * @param symbol_ ERC-20 symbol of this token
     * @param decimals_ ERC-20 decimal precision of this token
     */
    constructor(ComptrollerInterface comptroller_,
                InterestRateModel interestRateModel_,
                uint initialExchangeRateMantissa_,
                string memory name_,
                string memory symbol_,
                uint decimals_) public
    CToken(comptroller_, interestRateModel_, initialExchangeRateMantissa_, name_, symbol_, decimals_) {}

    /*** User Interface ***/

    /**
     * @notice Sender supplies assets into the market and receives cTokens in exchange
     * @dev Reverts upon any failure
     */
    function mint() external payable {
        requireNoError(mintInternal(msg.value), "mint failed");
    }

    /**
     * @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
     * @dev Reverts upon any failure
     */
    function repayBorrow() external payable {
        requireNoError(repayBorrowInternal(msg.value), "repayBorrow failed");
    }

    /**
     * @notice Sender repays a borrow belonging to borrower
     * @dev Reverts upon any failure
     * @param borrower the account with the debt being payed off
     */
    function repayBorrowBehalf(address borrower) external payable {
        requireNoError(repayBorrowBehalfInternal(borrower, msg.value), "repayBorrowBehalf failed");
    }

    /**
     * @notice The sender liquidates the borrowers collateral.
     *  The collateral seized is transferred to the liquidator.
     * @dev Reverts upon any failure
     * @param borrower The borrower of this cToken to be liquidated
     * @param cTokenCollateral The market in which to seize collateral from the borrower
     */
    function liquidateBorrow(address borrower, CToken cTokenCollateral) external payable {
        requireNoError(liquidateBorrowInternal(borrower, msg.value, cTokenCollateral), "liquidateBorrow failed");
    }

    /**
     * @notice Send Ether to CEther to mint
     */
    function () external payable {
        requireNoError(mintInternal(msg.value), "mint failed");
    }

    /*** Safe Token ***/

    /**
     * @notice Gets balance of this contract in terms of Ether, before this message
     * @dev This excludes the value of the current message, if any
     * @return The quantity of Ether owned by this contract
     */
    function getCashPrior() internal view returns (uint) {
        (MathError err, uint startingBalance) = subUInt(address(this).balance, msg.value);
        require(err == MathError.NO_ERROR);
        return startingBalance;
    }

    /**
     * @notice Checks whether the requested transfer matches the `msg`
     * @dev Does NOT do a transfer
     * @param from Address sending the Ether
     * @param amount Amount of Ether being sent
     * @return Whether or not the transfer checks out
     */
    function checkTransferIn(address from, uint amount) internal view returns (Error) {
        // Sanity checks
        require(msg.sender == from, "sender mismatch");
        require(msg.value == amount, "value mismatch");
        return Error.NO_ERROR;
    }

    /**
     * @notice Perform the actual transfer in, which is a no-op
     * @param from Address sending the Ether
     * @param amount Amount of Ether being sent
     * @return Success
     */
    function doTransferIn(address from, uint amount) internal returns (Error) {
        // Sanity checks
        require(msg.sender == from, "sender mismatch");
        require(msg.value == amount, "value mismatch");
        return Error.NO_ERROR;
    }

    function doTransferOut(address payable to, uint amount) internal returns (Error) {
        /* Send the Ether, with minimal gas and revert on failure */
        to.transfer(amount);
        return Error.NO_ERROR;
    }

    function requireNoError(uint errCode, string memory message) internal pure {
        if (errCode == uint(Error.NO_ERROR)) {
            return;
        }

        bytes memory fullMessage = new bytes(bytes(message).length + 5);
        uint i;

        for (i = 0; i < bytes(message).length; i++) {
            fullMessage[i] = bytes(message)[i];
        }

        fullMessage[i+0] = byte(uint8(32));
        fullMessage[i+1] = byte(uint8(40));
        fullMessage[i+2] = byte(uint8(48 + ( errCode / 10 )));
        fullMessage[i+3] = byte(uint8(48 + ( errCode % 10 )));
        fullMessage[i+4] = byte(uint8(41));

        require(errCode == uint(Error.NO_ERROR), string(fullMessage));
    }
}
./CToken.sol
pragma solidity ^0.5.8;

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

/**
 * @title Compound's CToken Contract
 * @notice Abstract base for CTokens
 * @author Compound
 */
contract CToken is EIP20Interface, Exponential, TokenErrorReporter, ReentrancyGuard {
    /**
     * @notice Indicator that this is a CToken contract (for inspection)
     */
    bool public constant isCToken = true;

    /**
     * @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
     */
    uint public decimals;

    /**
     * @notice Maximum borrow rate that can ever be applied (.0005% / block)
     */
    uint constant borrowRateMaxMantissa = 5e14;

    /**
     * @notice Maximum fraction of interest that can be set aside for reserves
     */
    uint 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 public 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 total earned interest 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
     */
    uint256 public totalSupply;

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

    /**
     * @notice Approved token transfer amounts on behalf of others
     */
    mapping (address => mapping (address => uint256)) 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) accountBorrows;


    /*** Market Events ***/

    /**
     * @notice Event emitted when interest is accrued
     */
    event AccrueInterest(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 reduced
     */
    event ReservesReduced(address admin, uint reduceAmount, uint newTotalReserves);


    /**
     * @notice Construct a new 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
     */
    constructor(ComptrollerInterface comptroller_,
                InterestRateModel interestRateModel_,
                uint initialExchangeRateMantissa_,
                string memory name_,
                string memory symbol_,
                uint decimals_) internal {
        // Set admin to msg.sender
        admin = msg.sender;

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

    /**
     * @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) {
        /* Fail if transfer not allowed */
        uint allowed = comptroller.transferAllowed(address(this), src, dst, tokens);
        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 */
        MathError mathErr;
        uint allowanceNew;
        uint srcTokensNew;
        uint dstTokensNew;

        (mathErr, allowanceNew) = subUInt(startingAllowance, tokens);
        if (mathErr != MathError.NO_ERROR) {
            return fail(Error.MATH_ERROR, FailureInfo.TRANSFER_NOT_ALLOWED);
        }

        (mathErr, srcTokensNew) = subUInt(accountTokens[src], tokens);
        if (mathErr != MathError.NO_ERROR) {
            return fail(Error.MATH_ERROR, FailureInfo.TRANSFER_NOT_ENOUGH);
        }

        (mathErr, dstTokensNew) = addUInt(accountTokens[dst], tokens);
        if (mathErr != MathError.NO_ERROR) {
            return fail(Error.MATH_ERROR, FailureInfo.TRANSFER_TOO_MUCH);
        }

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

        accountTokens[src] = srcTokensNew;
        accountTokens[dst] = dstTokensNew;

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

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

        /* We call the defense hook (which checks for under-collateralization) */
        comptroller.transferVerify(address(this), src, dst, tokens);

        return uint(Error.NO_ERROR);
    }

    /**
     * @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()});
        (MathError mErr, uint balance) = mulScalarTruncate(exchangeRate, accountTokens[owner]);
        require(mErr == MathError.NO_ERROR);
        return balance;
    }

    /**
     * @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 = accountTokens[account];
        uint borrowBalance;
        uint exchangeRateMantissa;

        MathError mErr;

        (mErr, borrowBalance) = borrowBalanceStoredInternal(account);
        if (mErr != MathError.NO_ERROR) {
            return (uint(Error.MATH_ERROR), 0, 0, 0);
        }

        (mErr, exchangeRateMantissa) = exchangeRateStoredInternal();
        if (mErr != MathError.NO_ERROR) {
            return (uint(Error.MATH_ERROR), 0, 0, 0);
        }

        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) {
        (uint opaqueErr, uint borrowRateMantissa) = interestRateModel.getBorrowRate(getCashPrior(), totalBorrows, totalReserves);
        require(opaqueErr == 0, "borrowRatePerBlock: interestRateModel.borrowRate failed"); // semi-opaque
        return borrowRateMantissa;
    }

    /**
     * @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) {
        /* We calculate the supply rate:
         *  underlying = totalSupply × exchangeRate
         *  borrowsPer = totalBorrows ÷ underlying
         *  supplyRate = borrowRate × (1-reserveFactor) × borrowsPer
         */
        uint exchangeRateMantissa = exchangeRateStored();

        (uint e0, uint borrowRateMantissa) = interestRateModel.getBorrowRate(getCashPrior(), totalBorrows, totalReserves);
        require(e0 == 0, "supplyRatePerBlock: calculating borrowRate failed"); // semi-opaque

        (MathError e1, Exp memory underlying) = mulScalar(Exp({mantissa: exchangeRateMantissa}), totalSupply);
        require(e1 == MathError.NO_ERROR, "supplyRatePerBlock: calculating underlying failed");

        (MathError e2, Exp memory borrowsPer) = divScalarByExp(totalBorrows, underlying);
        require(e2 == MathError.NO_ERROR, "supplyRatePerBlock: calculating borrowsPer failed");

        (MathError e3, Exp memory oneMinusReserveFactor) = subExp(Exp({mantissa: mantissaOne}), Exp({mantissa: reserveFactorMantissa}));
        require(e3 == MathError.NO_ERROR, "supplyRatePerBlock: calculating oneMinusReserveFactor failed");

        (MathError e4, Exp memory supplyRate) = mulExp3(Exp({mantissa: borrowRateMantissa}), oneMinusReserveFactor, borrowsPer);
        require(e4 == MathError.NO_ERROR, "supplyRatePerBlock: calculating supplyRate failed");

        return supplyRate.mantissa;
    }

    /**
     * @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) {
        (MathError err, uint result) = borrowBalanceStoredInternal(account);
        require(err == MathError.NO_ERROR, "borrowBalanceStored: borrowBalanceStoredInternal failed");
        return result;
    }

    /**
     * @notice Return the borrow balance of account based on stored data
     * @param account The address whose balance should be calculated
     * @return (error code, the calculated balance or 0 if error code is non-zero)
     */
    function borrowBalanceStoredInternal(address account) internal view returns (MathError, uint) {
        /* Note: we do not assert that the market is up to date */
        MathError mathErr;
        uint principalTimesIndex;
        uint result;

        /* 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 (MathError.NO_ERROR, 0);
        }

        /* Calculate new borrow balance using the interest index:
         *  recentBorrowBalance = borrower.borrowBalance * market.borrowIndex / borrower.borrowIndex
         */
        (mathErr, principalTimesIndex) = mulUInt(borrowSnapshot.principal, borrowIndex);
        if (mathErr != MathError.NO_ERROR) {
            return (mathErr, 0);
        }

        (mathErr, result) = divUInt(principalTimesIndex, borrowSnapshot.interestIndex);
        if (mathErr != MathError.NO_ERROR) {
            return (mathErr, 0);
        }

        return (MathError.NO_ERROR, 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) {
        (MathError err, uint result) = exchangeRateStoredInternal();
        require(err == MathError.NO_ERROR, "exchangeRateStored: exchangeRateStoredInternal failed");
        return result;
    }

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

            (mathErr, cashPlusBorrowsMinusReserves) = addThenSubUInt(totalCash, totalBorrows, totalReserves);
            if (mathErr != MathError.NO_ERROR) {
                return (mathErr, 0);
            }

            (mathErr, exchangeRate) = getExp(cashPlusBorrowsMinusReserves, totalSupply);
            if (mathErr != MathError.NO_ERROR) {
                return (mathErr, 0);
            }

            return (MathError.NO_ERROR, exchangeRate.mantissa);
        }
    }

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

    struct AccrueInterestLocalVars {
        MathError mathErr;
        uint opaqueErr;
        uint borrowRateMantissa;
        uint currentBlockNumber;
        uint blockDelta;

        Exp simpleInterestFactor;

        uint interestAccumulated;
        uint totalBorrowsNew;
        uint totalReservesNew;
        uint borrowIndexNew;
    }

    /**
      * @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) {
        AccrueInterestLocalVars memory vars;

        /* Calculate the current borrow interest rate */
        (vars.opaqueErr, vars.borrowRateMantissa) = interestRateModel.getBorrowRate(getCashPrior(), totalBorrows, totalReserves);
        require(vars.borrowRateMantissa <= borrowRateMaxMantissa, "borrow rate is absurdly high");
        if (vars.opaqueErr != 0) {
            return failOpaque(Error.INTEREST_RATE_MODEL_ERROR, FailureInfo.ACCRUE_INTEREST_BORROW_RATE_CALCULATION_FAILED, vars.opaqueErr);
        }

        /* Remember the initial block number */
        vars.currentBlockNumber = getBlockNumber();

        /* Calculate the number of blocks elapsed since the last accrual */
        (vars.mathErr, vars.blockDelta) = subUInt(vars.currentBlockNumber, accrualBlockNumber);
        assert(vars.mathErr == MathError.NO_ERROR); // Block delta should always succeed and if it doesn't, blow up.

        /*
         * 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
         */
        (vars.mathErr, vars.simpleInterestFactor) = mulScalar(Exp({mantissa: vars.borrowRateMantissa}), vars.blockDelta);
        if (vars.mathErr != MathError.NO_ERROR) {
            return failOpaque(Error.MATH_ERROR, FailureInfo.ACCRUE_INTEREST_SIMPLE_INTEREST_FACTOR_CALCULATION_FAILED, uint(vars.mathErr));
        }

        (vars.mathErr, vars.interestAccumulated) = mulScalarTruncate(vars.simpleInterestFactor, totalBorrows);
        if (vars.mathErr != MathError.NO_ERROR) {
            return failOpaque(Error.MATH_ERROR, FailureInfo.ACCRUE_INTEREST_ACCUMULATED_INTEREST_CALCULATION_FAILED, uint(vars.mathErr));
        }

        (vars.mathErr, vars.totalBorrowsNew) = addUInt(vars.interestAccumulated, totalBorrows);
        if (vars.mathErr != MathError.NO_ERROR) {
            return failOpaque(Error.MATH_ERROR, FailureInfo.ACCRUE_INTEREST_NEW_TOTAL_BORROWS_CALCULATION_FAILED, uint(vars.mathErr));
        }

        (vars.mathErr, vars.totalReservesNew) = mulScalarTruncateAddUInt(Exp({mantissa: reserveFactorMantissa}), vars.interestAccumulated, totalReserves);
        if (vars.mathErr != MathError.NO_ERROR) {
            return failOpaque(Error.MATH_ERROR, FailureInfo.ACCRUE_INTEREST_NEW_TOTAL_RESERVES_CALCULATION_FAILED, uint(vars.mathErr));
        }

        (vars.mathErr, vars.borrowIndexNew) = mulScalarTruncateAddUInt(vars.simpleInterestFactor, borrowIndex, borrowIndex);
        if (vars.mathErr != MathError.NO_ERROR) {
            return failOpaque(Error.MATH_ERROR, FailureInfo.ACCRUE_INTEREST_NEW_BORROW_INDEX_CALCULATION_FAILED, uint(vars.mathErr));
        }

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

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

        /* We emit an AccrueInterest event */
        emit AccrueInterest(vars.interestAccumulated, vars.borrowIndexNew, totalBorrows);

        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 0=success, otherwise a failure (see ErrorReporter.sol for details)
     */
    function mintInternal(uint mintAmount) 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.MINT_ACCRUE_INTEREST_FAILED);
        }
        // mintFresh emits the actual Mint event if successful and logs on errors, so we don't need to
        return mintFresh(msg.sender, mintAmount);
    }

    struct MintLocalVars {
        Error err;
        MathError mathErr;
        uint exchangeRateMantissa;
        uint mintTokens;
        uint totalSupplyNew;
        uint accountTokensNew;
    }

    /**
     * @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 0=success, otherwise a failure (see ErrorReporter.sol for details)
     */
    function mintFresh(address minter, uint mintAmount) internal returns (uint) {
        /* 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);
        }

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

        MintLocalVars memory vars;

        /* Fail if checkTransferIn fails */
        vars.err = checkTransferIn(minter, mintAmount);
        if (vars.err != Error.NO_ERROR) {
            return fail(vars.err, FailureInfo.MINT_TRANSFER_IN_NOT_POSSIBLE);
        }

        /*
         * We get the current exchange rate and calculate the number of cTokens to be minted:
         *  mintTokens = mintAmount / exchangeRate
         */
        (vars.mathErr, vars.exchangeRateMantissa) = exchangeRateStoredInternal();
        if (vars.mathErr != MathError.NO_ERROR) {
            return failOpaque(Error.MATH_ERROR, FailureInfo.MINT_EXCHANGE_RATE_READ_FAILED, uint(vars.mathErr));
        }

        (vars.mathErr, vars.mintTokens) = divScalarByExpTruncate(mintAmount, Exp({mantissa: vars.exchangeRateMantissa}));
        if (vars.mathErr != MathError.NO_ERROR) {
            return failOpaque(Error.MATH_ERROR, FailureInfo.MINT_EXCHANGE_CALCULATION_FAILED, uint(vars.mathErr));
        }

        /*
         * We calculate the new total supply of cTokens and minter token balance, checking for overflow:
         *  totalSupplyNew = totalSupply + mintTokens
         *  accountTokensNew = accountTokens[minter] + mintTokens
         */
        (vars.mathErr, vars.totalSupplyNew) = addUInt(totalSupply, vars.mintTokens);
        if (vars.mathErr != MathError.NO_ERROR) {
            return failOpaque(Error.MATH_ERROR, FailureInfo.MINT_NEW_TOTAL_SUPPLY_CALCULATION_FAILED, uint(vars.mathErr));
        }

        (vars.mathErr, vars.accountTokensNew) = addUInt(accountTokens[minter], vars.mintTokens);
        if (vars.mathErr != MathError.NO_ERROR) {
            return failOpaque(Error.MATH_ERROR, FailureInfo.MINT_NEW_ACCOUNT_BALANCE_CALCULATION_FAILED, uint(vars.mathErr));
        }

        /////////////////////////
        // 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.
         *  On success, the cToken holds an additional mintAmount of cash.
         *  If doTransferIn fails despite the fact we checked pre-conditions,
         *   we revert because we can't be sure if side effects occurred.
         */
        vars.err = doTransferIn(minter, mintAmount);
        if (vars.err != Error.NO_ERROR) {
            return fail(vars.err, FailureInfo.MINT_TRANSFER_IN_FAILED);
        }

        /* We write previously calculated values into storage */
        totalSupply = vars.totalSupplyNew;
        accountTokens[minter] = vars.accountTokensNew;

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

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

        return uint(Error.NO_ERROR);
    }

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

    struct RedeemLocalVars {
        Error err;
        MathError mathErr;
        uint exchangeRateMantissa;
        uint redeemTokens;
        uint redeemAmount;
        uint totalSupplyNew;
        uint accountTokensNew;
    }

    /**
     * @notice User redeems cTokens in exchange for the underlying asset
     * @dev Assumes interest has already been accrued up to the current block
     * @param redeemer The address of the account which is redeeming the tokens
     * @param redeemTokensIn The number of cTokens to redeem into underlying (only one of redeemTokensIn or redeemAmountIn may be zero)
     * @param redeemAmountIn The number of cTokens to redeem into underlying (only one of redeemTokensIn or redeemAmountIn may be zero)
     * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
     */
    function redeemFresh(address payable redeemer, uint redeemTokensIn, uint redeemAmountIn) internal returns (uint) {
        require(redeemTokensIn == 0 || redeemAmountIn == 0, "one of redeemTokensIn or redeemAmountIn must be zero");

        RedeemLocalVars memory vars;

        /* exchangeRate = invoke Exchange Rate Stored() */
        (vars.mathErr, vars.exchangeRateMantissa) = exchangeRateStoredInternal();
        if (vars.mathErr != MathError.NO_ERROR) {
            return failOpaque(Error.MATH_ERROR, FailureInfo.REDEEM_EXCHANGE_RATE_READ_FAILED, uint(vars.mathErr));
        }

        /* 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.mathErr, vars.redeemAmount) = mulScalarTruncate(Exp({mantissa: vars.exchangeRateMantissa}), redeemTokensIn);
            if (vars.mathErr != MathError.NO_ERROR) {
                return failOpaque(Error.MATH_ERROR, FailureInfo.REDEEM_EXCHANGE_TOKENS_CALCULATION_FAILED, uint(vars.mathErr));
            }
        } else {
            /*
             * We get the current exchange rate and calculate the amount to be redeemed:
             *  redeemTokens = redeemAmountIn / exchangeRate
             *  redeemAmount = redeemAmountIn
             */

            (vars.mathErr, vars.redeemTokens) = divScalarByExpTruncate(redeemAmountIn, Exp({mantissa: vars.exchangeRateMantissa}));
            if (vars.mathErr != MathError.NO_ERROR) {
                return failOpaque(Error.MATH_ERROR, FailureInfo.REDEEM_EXCHANGE_AMOUNT_CALCULATION_FAILED, uint(vars.mathErr));
            }

            vars.redeemAmount = redeemAmountIn;
        }

        /* Fail if redeem not allowed */
        uint allowed = comptroller.redeemAllowed(address(this), redeemer, vars.redeemTokens);
        if (allowed != 0) {
            return failOpaque(Error.COMPTROLLER_REJECTION, FailureInfo.REDEEM_COMPTROLLER_REJECTION, allowed);
        }

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

        /*
         * We calculate the new total supply and redeemer balance, checking for underflow:
         *  totalSupplyNew = totalSupply - redeemTokens
         *  accountTokensNew = accountTokens[redeemer] - redeemTokens
         */
        (vars.mathErr, vars.totalSupplyNew) = subUInt(totalSupply, vars.redeemTokens);
        if (vars.mathErr != MathError.NO_ERROR) {
            return failOpaque(Error.MATH_ERROR, FailureInfo.REDEEM_NEW_TOTAL_SUPPLY_CALCULATION_FAILED, uint(vars.mathErr));
        }

        (vars.mathErr, vars.accountTokensNew) = subUInt(accountTokens[redeemer], vars.redeemTokens);
        if (vars.mathErr != MathError.NO_ERROR) {
            return failOpaque(Error.MATH_ERROR, FailureInfo.REDEEM_NEW_ACCOUNT_BALANCE_CALCULATION_FAILED, uint(vars.mathErr));
        }

        /* 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.
         *  If doTransferOut fails despite the fact we checked pre-conditions,
         *   we revert because we can't be sure if side effects occurred.
         */
        vars.err = doTransferOut(redeemer, vars.redeemAmount);
        require(vars.err == Error.NO_ERROR, "redeem transfer out failed");

        /* We write previously calculated values into storage */
        totalSupply = vars.totalSupplyNew;
        accountTokens[redeemer] = vars.accountTokensNew;

        /* 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 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 {
        Error err;
        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);
        }

        /* 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.mathErr, vars.accountBorrows) = borrowBalanceStoredInternal(borrower);
        if (vars.mathErr != MathError.NO_ERROR) {
            return failOpaque(Error.MATH_ERROR, FailureInfo.BORROW_ACCUMULATED_BALANCE_CALCULATION_FAILED, uint(vars.mathErr));
        }

        (vars.mathErr, vars.accountBorrowsNew) = addUInt(vars.accountBorrows, borrowAmount);
        if (vars.mathErr != MathError.NO_ERROR) {
            return failOpaque(Error.MATH_ERROR, FailureInfo.BORROW_NEW_ACCOUNT_BORROW_BALANCE_CALCULATION_FAILED, uint(vars.mathErr));
        }

        (vars.mathErr, vars.totalBorrowsNew) = addUInt(totalBorrows, borrowAmount);
        if (vars.mathErr != MathError.NO_ERROR) {
            return failOpaque(Error.MATH_ERROR, FailureInfo.BORROW_NEW_TOTAL_BALANCE_CALCULATION_FAILED, uint(vars.mathErr));
        }

        /////////////////////////
        // 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.
         *  If doTransferOut fails despite the fact we checked pre-conditions,
         *   we revert because we can't be sure if side effects occurred.
         */
        vars.err = doTransferOut(borrower, borrowAmount);
        require(vars.err == Error.NO_ERROR, "borrow transfer out failed");

        /* 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 */
        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 0=success, otherwise a failure (see ErrorReporter.sol for details)
     */
    function repayBorrowInternal(uint repayAmount) 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.REPAY_BORROW_ACCRUE_INTEREST_FAILED);
        }
        // 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 0=success, otherwise a failure (see ErrorReporter.sol for details)
     */
    function repayBorrowBehalfInternal(address borrower, uint repayAmount) 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.REPAY_BEHALF_ACCRUE_INTEREST_FAILED);
        }
        // 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;
    }

    /**
     * @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 0=success, otherwise a failure (see ErrorReporter.sol for details)
     */
    function repayBorrowFresh(address payer, address borrower, uint repayAmount) internal returns (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);
        }

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

        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.mathErr, vars.accountBorrows) = borrowBalanceStoredInternal(borrower);
        if (vars.mathErr != MathError.NO_ERROR) {
            return failOpaque(Error.MATH_ERROR, FailureInfo.REPAY_BORROW_ACCUMULATED_BALANCE_CALCULATION_FAILED, uint(vars.mathErr));
        }

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

        /* Fail if checkTransferIn fails */
        vars.err = checkTransferIn(payer, vars.repayAmount);
        if (vars.err != Error.NO_ERROR) {
            return fail(vars.err, FailureInfo.REPAY_BORROW_TRANSFER_IN_NOT_POSSIBLE);
        }

        /*
         * We calculate the new borrower and total borrow balances, failing on underflow:
         *  accountBorrowsNew = accountBorrows - repayAmount
         *  totalBorrowsNew = totalBorrows - repayAmount
         */
        (vars.mathErr, vars.accountBorrowsNew) = subUInt(vars.accountBorrows, vars.repayAmount);
        if (vars.mathErr != MathError.NO_ERROR) {
            return failOpaque(Error.MATH_ERROR, FailureInfo.REPAY_BORROW_NEW_ACCOUNT_BORROW_BALANCE_CALCULATION_FAILED, uint(vars.mathErr));
        }

        (vars.mathErr, vars.totalBorrowsNew) = subUInt(totalBorrows, vars.repayAmount);
        if (vars.mathErr != MathError.NO_ERROR) {
            return failOpaque(Error.MATH_ERROR, FailureInfo.REPAY_BORROW_NEW_TOTAL_BALANCE_CALCULATION_FAILED, uint(vars.mathErr));
        }

        /////////////////////////
        // 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.
         *  If doTransferIn fails despite the fact we checked pre-conditions,
         *   we revert because we can't be sure if side effects occurred.
         */
        vars.err = doTransferIn(payer, vars.repayAmount);
        require(vars.err == Error.NO_ERROR, "repay borrow transfer in failed");

        /* 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.repayAmount, vars.accountBorrowsNew, vars.totalBorrowsNew);

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

        return uint(Error.NO_ERROR);
    }

    /**
     * @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 0=success, otherwise a failure (see ErrorReporter.sol for details)
     */
    function liquidateBorrowInternal(address borrower, uint repayAmount, CToken cTokenCollateral) 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 liquidation failed
            return fail(Error(error), FailureInfo.LIQUIDATE_ACCRUE_BORROW_INTEREST_FAILED);
        }

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

        // 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 0=success, otherwise a failure (see ErrorReporter.sol for details)
     */
    function liquidateBorrowFresh(address liquidator, address borrower, uint repayAmount, CToken cTokenCollateral) internal returns (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);
        }

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

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

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

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

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

        /* We calculate the number of collateral tokens that will be seized */
        (uint amountSeizeError, uint seizeTokens) = comptroller.liquidateCalculateSeizeTokens(address(this), address(cTokenCollateral), repayAmount);
        if (amountSeizeError != 0) {
            return failOpaque(Error.COMPTROLLER_CALCULATION_ERROR, FailureInfo.LIQUIDATE_COMPTROLLER_CALCULATE_AMOUNT_SEIZE_FAILED, amountSeizeError);
        }

        /* Fail if seizeTokens > borrower collateral token balance */
        if (seizeTokens > cTokenCollateral.balanceOf(borrower)) {
            return fail(Error.TOKEN_INSUFFICIENT_BALANCE, FailureInfo.LIQUIDATE_SEIZE_TOO_MUCH);
        }

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

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

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

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

        return uint(Error.NO_ERROR);
    }

    /**
     * @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) {
        /* Fail if seize not allowed */
        uint allowed = comptroller.seizeAllowed(address(this), msg.sender, liquidator, borrower, seizeTokens);
        if (allowed != 0) {
            return failOpaque(Error.COMPTROLLER_REJECTION, FailureInfo.LIQUIDATE_SEIZE_COMPTROLLER_REJECTION, allowed);
        }

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

        MathError mathErr;
        uint borrowerTokensNew;
        uint liquidatorTokensNew;

        /*
         * We calculate the new borrower and liquidator token balances, failing on underflow/overflow:
         *  borrowerTokensNew = accountTokens[borrower] - seizeTokens
         *  liquidatorTokensNew = accountTokens[liquidator] + seizeTokens
         */
        (mathErr, borrowerTokensNew) = subUInt(accountTokens[borrower], seizeTokens);
        if (mathErr != MathError.NO_ERROR) {
            return failOpaque(Error.MATH_ERROR, FailureInfo.LIQUIDATE_SEIZE_BALANCE_DECREMENT_FAILED, uint(mathErr));
        }

        (mathErr, liquidatorTokensNew) = addUInt(accountTokens[liquidator], seizeTokens);
        if (mathErr != MathError.NO_ERROR) {
            return failOpaque(Error.MATH_ERROR, FailureInfo.LIQUIDATE_SEIZE_BALANCE_INCREMENT_FAILED, uint(mathErr));
        }

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

        /* We write the previously calculated values into storage */
        accountTokens[borrower] = borrowerTokensNew;
        accountTokens[liquidator] = liquidatorTokensNew;

        /* Emit a Transfer event */
        emit Transfer(borrower, liquidator, seizeTokens);

        /* We call the defense hook */
        comptroller.seizeVerify(address(this), msg.sender, liquidator, borrower, seizeTokens);

        return uint(Error.NO_ERROR);
    }


    /*** 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)
      *
      * TODO: Should we add a second arg to verify, like a checksum of `newAdmin` address?
      */
    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()) {
            // TODO: static_assert + no error code?
            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 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) {
        Error err;
        // 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()) {
            // TODO: static_assert + no error code?
            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)
        // TODO: I'm following the spec literally here but I think we should we just use SafeMath instead and fail on an error (which would be underflow)
        if (reduceAmount > totalReserves) {
            return fail(Error.BAD_INPUT, FailureInfo.REDUCE_RESERVES_VALIDATION);
        }

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

        totalReservesNew = totalReserves - reduceAmount;
        // We checked reduceAmount <= totalReserves above, so this should never revert.
        require(totalReservesNew <= totalReserves, "reduce reserves unexpected underflow");

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

        // invoke doTransferOut(reduceAmount, admin)
        err = doTransferOut(admin, reduceAmount);
        // we revert on the failure of this command
        require(err == Error.NO_ERROR, "reduce reserves transfer out failed");

        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()) {
            // TODO: static_assert + no error code?
            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 Checks whether or not there is sufficient allowance for this contract to move amount from `from` and
     *      whether or not `from` has a balance of at least `amount`. Does NOT do a transfer.
     */
    function checkTransferIn(address from, uint amount) internal view returns (Error);

    /**
     * @dev Performs a transfer in, ideally returning an explanatory error code upon failure rather than reverting.
     *  If caller has not called `checkTransferIn`, this may revert due to insufficient balance or insufficient allowance.
     *  If caller has called `checkTransferIn` successfully, this should not revert in normal conditions.
     */
    function doTransferIn(address from, uint amount) internal returns (Error);

    /**
     * @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 returns (Error);
}
./CarefulMath.sol
pragma solidity ^0.5.8;

/**
  * @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);
    }
}
./Comptroller.sol
pragma solidity ^0.5.8;

import "./CToken.sol";
import "./ErrorReporter.sol";
import "./Exponential.sol";
import "./PriceOracle.sol";
import "./ComptrollerInterface.sol";
import "./ComptrollerStorage.sol";
import "./Unitroller.sol";

/**
 * @title Compound's Comptroller Contract
 * @author Compound
 */
contract Comptroller is ComptrollerV1Storage, ComptrollerInterface, ComptrollerErrorReporter, Exponential {
    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 Official mapping of cTokens -> Market metadata
     * @dev Used e.g. to determine if a market is supported
     */
    mapping(address => Market) public markets;

    /**
     * @notice Emitted when an admin supports a market
     */
    event MarketListed(CToken cToken);

    /**
     * @notice Emitted when an account enters a market
     */
    event MarketEntered(CToken cToken, address account);

    /**
     * @notice Emitted when an account exits a market
     */
    event MarketExited(CToken cToken, address account);

    /**
     * @notice Emitted when close factor is changed by admin
     */
    event NewCloseFactor(uint oldCloseFactorMantissa, uint newCloseFactorMantissa);

    /**
     * @notice Emitted when a collateral factor is changed by admin
     */
    event NewCollateralFactor(CToken cToken, uint oldCollateralFactorMantissa, uint newCollateralFactorMantissa);

    /**
     * @notice Emitted when liquidation incentive is changed by admin
     */
    event NewLiquidationIncentive(uint oldLiquidationIncentiveMantissa, uint newLiquidationIncentiveMantissa);

    /**
     * @notice Emitted when maxAssets is changed by admin
     */
    event NewMaxAssets(uint oldMaxAssets, uint newMaxAssets);

    /**
     * @notice Emitted when price oracle is changed
     */
    event NewPriceOracle(PriceOracle oldPriceOracle, PriceOracle newPriceOracle);

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

    // closeFactorMantissa must be strictly greater than this value
    uint constant closeFactorMinMantissa = 5e16; // 0.05

    // closeFactorMantissa must not exceed this value
    uint constant closeFactorMaxMantissa = 9e17; // 0.9

    // No collateralFactorMantissa may exceed this value
    uint constant collateralFactorMaxMantissa = 9e17; // 0.9

    // liquidationIncentiveMantissa must be no less than this value
    uint constant liquidationIncentiveMinMantissa = mantissaOne;

    // liquidationIncentiveMantissa must be no greater than this value
    uint constant liquidationIncentiveMaxMantissa = 15e17; // 1.5

    constructor() public {
        admin = msg.sender;
    }

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

    /**
     * @notice Returns the assets an account has entered
     * @param account The address of the account to pull assets for
     * @return A dynamic list with the assets the account has entered
     */
    function getAssetsIn(address account) external view returns (CToken[] memory) {
        CToken[] memory assetsIn = accountAssets[account];

        return assetsIn;
    }

    /**
     * @notice Returns whether the given account is entered in the given asset
     * @param account The address of the account to check
     * @param cToken The cToken to check
     * @return True if the account is in the asset, otherwise false.
     */
    function checkMembership(address account, CToken cToken) external view returns (bool) {
        return markets[address(cToken)].accountMembership[account];
    }

    /**
     * @notice Add assets to be included in account liquidity calculation
     * @param cTokens The list of addresses of the cToken markets to be enabled
     * @return Success indicator for whether each corresponding market was entered
     */
    function enterMarkets(address[] memory cTokens) public returns (uint[] memory) {
        uint len = cTokens.length;

        uint[] memory results = new uint[](len);
        for (uint i = 0; i < len; i++) {
            CToken cToken = CToken(cTokens[i]);
            Market storage marketToJoin = markets[address(cToken)];

            if (!marketToJoin.isListed) {
                // if market is not listed, cannot join move along
                results[i] = uint(Error.MARKET_NOT_LISTED);
                continue;
            }

            if (marketToJoin.accountMembership[msg.sender] == true) {
                // if already joined, move along
                results[i] = uint(Error.NO_ERROR);
                continue;
            }

            if (accountAssets[msg.sender].length >= maxAssets)  {
                // if no space, cannot join, move along
                results[i] = uint(Error.TOO_MANY_ASSETS);
                continue;
            }

            // survived the gauntlet, add to list
            // NOTE: we store these somewhat redundantly as a significant optimization
            //  this avoids having to iterate through the list for the most common use cases
            //  that is, only when we need to perform liquidity checks
            //   and not whenever we want to check if an account is in a particular market
            marketToJoin.accountMembership[msg.sender] = true;
            accountAssets[msg.sender].push(cToken);

            emit MarketEntered(cToken, msg.sender);

            results[i] = uint(Error.NO_ERROR);
        }

        return results;
    }

    /**
     * @notice Removes asset from sender's account liquidity calculation
     * @dev Sender must not have an outstanding borrow balance in the asset,
     *  or be providing neccessary collateral for an outstanding borrow.
     * @param cTokenAddress The address of the asset to be removed
     * @return Whether or not the account successfully exited the market
     */
    function exitMarket(address cTokenAddress) external returns (uint) {
        CToken cToken = CToken(cTokenAddress);
        /* Get sender tokensHeld and amountOwed underlying from the cToken */
        (uint oErr, uint tokensHeld, uint amountOwed, ) = cToken.getAccountSnapshot(msg.sender);
        require(oErr == 0, "exitMarket: getAccountSnapshot failed"); // semi-opaque error code

        /* Fail if the sender has a borrow balance */
        if (amountOwed != 0) {
            return fail(Error.NONZERO_BORROW_BALANCE, FailureInfo.EXIT_MARKET_BALANCE_OWED);
        }

        /* Fail if the sender is not permitted to redeem all of their tokens */
        uint allowed = redeemAllowedInternal(cTokenAddress, msg.sender, tokensHeld);
        if (allowed != 0) {
            return failOpaque(Error.REJECTION, FailureInfo.EXIT_MARKET_REJECTION, allowed);
        }

        Market storage marketToExit = markets[address(cToken)];

        /* Return true if the sender is not already ‘in’ the market */
        if (!marketToExit.accountMembership[msg.sender]) {
            return uint(Error.NO_ERROR);
        }

        /* Set cToken account membership to false */
        delete marketToExit.accountMembership[msg.sender];

        /* Delete cToken from the account’s list of assets */
        // load into memory for faster iteration
        CToken[] memory userAssetList = accountAssets[msg.sender];
        uint len = userAssetList.length;
        uint assetIndex = len;
        for (uint i = 0; i < len; i++) {
            if (userAssetList[i] == cToken) {
                assetIndex = i;
                break;
            }
        }

        // We *must* have found the asset in the list or our redundant data structure is broken
        assert(assetIndex < len);

        // copy last item in list to location of item to be removed, reduce length by 1
        CToken[] storage storedList = accountAssets[msg.sender];
        storedList[assetIndex] = storedList[storedList.length - 1];
        storedList.length--;

        emit MarketExited(cToken, msg.sender);

        return uint(Error.NO_ERROR);
    }

    /*** Policy Hooks ***/

    /**
     * @notice Checks if the account should be allowed to mint tokens in the given market
     * @param cToken The market to verify the mint against
     * @param minter The account which would get the minted tokens
     * @param mintAmount The amount of underlying being supplied to the market in exchange for tokens
     * @return 0 if the mint is allowed, otherwise a semi-opaque error code (See ErrorReporter.sol)
     */
    function mintAllowed(address cToken, address minter, uint mintAmount) external returns (uint) {
        minter;       // currently unused
        mintAmount;   // currently unused

        if (!markets[cToken].isListed) {
            return uint(Error.MARKET_NOT_LISTED);
        }

        // *may include Policy Hook-type checks

        return uint(Error.NO_ERROR);
    }

    /**
     * @notice Validates mint and reverts on rejection. May emit logs.
     * @param cToken Asset being minted
     * @param minter The address minting the tokens
     * @param mintAmount The amount of the underlying asset being minted
     * @param mintTokens The number of tokens being minted
     */
    function mintVerify(address cToken, address minter, uint mintAmount, uint mintTokens) external {
        cToken;       // currently unused
        minter;       // currently unused
        mintAmount;   // currently unused
        mintTokens;   // currently unused

        if (false) {
            maxAssets = maxAssets; // not pure
        }
    }

    /**
     * @notice Checks if the account should be allowed to redeem tokens in the given market
     * @param cToken The market to verify the redeem against
     * @param redeemer The account which would redeem the tokens
     * @param redeemTokens The number of cTokens to exchange for the underlying asset in the market
     * @return 0 if the redeem is allowed, otherwise a semi-opaque error code (See ErrorReporter.sol)
     */
    function redeemAllowed(address cToken, address redeemer, uint redeemTokens) external returns (uint) {
        return redeemAllowedInternal(cToken, redeemer, redeemTokens);
    }

    function redeemAllowedInternal(address cToken, address redeemer, uint redeemTokens) internal view returns (uint) {
        if (!markets[cToken].isListed) {
            return uint(Error.MARKET_NOT_LISTED);
        }

        // *may include Policy Hook-type checks

        /* If the redeemer is not 'in' the market, then we can bypass the liquidity check */
        if (!markets[cToken].accountMembership[redeemer]) {
            return uint(Error.NO_ERROR);
        }

        /* Otherwise, perform a hypothetical liquidity check to guard against shortfall */
        (Error err, , uint shortfall) = getHypotheticalAccountLiquidityInternal(redeemer, CToken(cToken), redeemTokens, 0);
        if (err != Error.NO_ERROR) {
            return uint(err);
        }
        if (shortfall > 0) {
            return uint(Error.INSUFFICIENT_LIQUIDITY);
        }

        return uint(Error.NO_ERROR);
    }

    /**
     * @notice Validates redeem and reverts on rejection. May emit logs.
     * @param cToken Asset being redeemed
     * @param redeemer The address redeeming the tokens
     * @param redeemAmount The amount of the underlying asset being redeemed
     * @param redeemTokens The number of tokens being redeemed
     */
    function redeemVerify(address cToken, address redeemer, uint redeemAmount, uint redeemTokens) external {
        cToken;         // currently unused
        redeemer;       // currently unused
        redeemAmount;   // currently unused
        redeemTokens;   // currently unused

        // Require tokens is zero or amount is also zero
        if (redeemTokens == 0 && redeemAmount > 0) {
            revert("redeemTokens zero");
        }
    }

    /**
     * @notice Checks if the account should be allowed to borrow the underlying asset of the given market
     * @param cToken The market to verify the borrow against
     * @param borrower The account which would borrow the asset
     * @param borrowAmount The amount of underlying the account would borrow
     * @return 0 if the borrow is allowed, otherwise a semi-opaque error code (See ErrorReporter.sol)
     */
    function borrowAllowed(address cToken, address borrower, uint borrowAmount) external returns (uint) {
        if (!markets[cToken].isListed) {
            return uint(Error.MARKET_NOT_LISTED);
        }

        // *may include Policy Hook-type checks

        if (!markets[cToken].accountMembership[borrower]) {
            return uint(Error.MARKET_NOT_ENTERED);
        }

        if (oracle.getUnderlyingPrice(CToken(cToken)) == 0) {
            return uint(Error.PRICE_ERROR);
        }

        (Error err, , uint shortfall) = getHypotheticalAccountLiquidityInternal(borrower, CToken(cToken), 0, borrowAmount);
        if (err != Error.NO_ERROR) {
            return uint(err);
        }
        if (shortfall > 0) {
            return uint(Error.INSUFFICIENT_LIQUIDITY);
        }

        return uint(Error.NO_ERROR);
    }

    /**
     * @notice Validates borrow and reverts on rejection. May emit logs.
     * @param cToken Asset whose underlying is being borrowed
     * @param borrower The address borrowing the underlying
     * @param borrowAmount The amount of the underlying asset requested to borrow
     */
    function borrowVerify(address cToken, address borrower, uint borrowAmount) external {
        cToken;         // currently unused
        borrower;       // currently unused
        borrowAmount;   // currently unused

        if (false) {
            maxAssets = maxAssets; // not pure
        }
    }

    /**
     * @notice Checks if the account should be allowed to repay a borrow in the given market
     * @param cToken The market to verify the repay against
     * @param payer The account which would repay the asset
     * @param borrower The account which would borrowed the asset
     * @param repayAmount The amount of the underlying asset the account would repay
     * @return 0 if the repay is allowed, otherwise a semi-opaque error code (See ErrorReporter.sol)
     */
    function repayBorrowAllowed(
        address cToken,
        address payer,
        address borrower,
        uint repayAmount) external returns (uint) {
        payer;         // currently unused
        borrower;      // currently unused
        repayAmount;   // currently unused

        if (!markets[cToken].isListed) {
            return uint(Error.MARKET_NOT_LISTED);
        }

        // *may include Policy Hook-type checks

        return uint(Error.NO_ERROR);
    }

    /**
     * @notice Validates repayBorrow and reverts on rejection. May emit logs.
     * @param cToken Asset being repaid
     * @param payer The address repaying the borrow
     * @param borrower The address of the borrower
     * @param repayAmount The amount of underlying being repaid
     */
    function repayBorrowVerify(
        address cToken,
        address payer,
        address borrower,
        uint repayAmount,
        uint borrowerIndex) external {
        cToken;        // currently unused
        payer;         // currently unused
        borrower;      // currently unused
        repayAmount;   // currently unused
        borrowerIndex; // currently unused

        if (false) {
            maxAssets = maxAssets; // not pure
        }
    }

    /**
     * @notice Checks if the liquidation should be allowed to occur
     * @param cTokenBorrowed Asset which was borrowed by the borrower
     * @param cTokenCollateral Asset which was used as collateral and will be seized
     * @param liquidator The address repaying the borrow and seizing the collateral
     * @param borrower The address of the borrower
     * @param repayAmount The amount of underlying being repaid
     */
    function liquidateBorrowAllowed(
        address cTokenBorrowed,
        address cTokenCollateral,
        address liquidator,
        address borrower,
        uint repayAmount) external returns (uint) {
        liquidator;   // currently unused
        borrower;     // currently unused
        repayAmount;  // currently unused

        if (!markets[cTokenBorrowed].isListed || !markets[cTokenCollateral].isListed) {
            return uint(Error.MARKET_NOT_LISTED);
        }

        // *may include Policy Hook-type checks

        /* The borrower must have shortfall in order to be liquidatable */
        (Error err, , uint shortfall) = getAccountLiquidityInternal(borrower);
        if (err != Error.NO_ERROR) {
            return uint(err);
        }
        if (shortfall == 0) {
            return uint(Error.INSUFFICIENT_SHORTFALL);
        }

        /* The liquidator may not repay more than what is allowed by the closeFactor */
        uint borrowBalance = CToken(cTokenBorrowed).borrowBalanceStored(borrower);
        (MathError mathErr, uint maxClose) = mulScalarTruncate(Exp({mantissa: closeFactorMantissa}), borrowBalance);
        if (mathErr != MathError.NO_ERROR) {
            return uint(Error.MATH_ERROR);
        }
        if (repayAmount > maxClose) {
            return uint(Error.TOO_MUCH_REPAY);
        }

        return uint(Error.NO_ERROR);
    }

    /**
     * @notice Validates liquidateBorrow and reverts on rejection. May emit logs.
     * @param cTokenBorrowed Asset which was borrowed by the borrower
     * @param cTokenCollateral Asset which was used as collateral and will be seized
     * @param liquidator The address repaying the borrow and seizing the collateral
     * @param borrower The address of the borrower
     * @param repayAmount The amount of underlying being repaid
     */
    function liquidateBorrowVerify(
        address cTokenBorrowed,
        address cTokenCollateral,
        address liquidator,
        address borrower,
        uint repayAmount,
        uint seizeTokens) external {
        cTokenBorrowed;   // currently unused
        cTokenCollateral; // currently unused
        liquidator;       // currently unused
        borrower;         // currently unused
        repayAmount;      // currently unused
        seizeTokens;      // currently unused

        if (false) {
            maxAssets = maxAssets; // not pure
        }
    }

    /**
     * @notice Checks if the seizing of assets should be allowed to occur
     * @param cTokenCollateral Asset which was used as collateral and will be seized
     * @param cTokenBorrowed Asset which was borrowed by the borrower
     * @param liquidator The address repaying the borrow and seizing the collateral
     * @param borrower The address of the borrower
     * @param seizeTokens The number of collateral tokens to seize
     */
    function seizeAllowed(
        address cTokenCollateral,
        address cTokenBorrowed,
        address liquidator,
        address borrower,
        uint seizeTokens) external returns (uint) {
        liquidator;       // currently unused
        borrower;         // currently unused
        seizeTokens;      // currently unused

        if (!markets[cTokenCollateral].isListed || !markets[cTokenBorrowed].isListed) {
            return uint(Error.MARKET_NOT_LISTED);
        }

        if (CToken(cTokenCollateral).comptroller() != CToken(cTokenBorrowed).comptroller()) {
            return uint(Error.COMPTROLLER_MISMATCH);
        }

        // *may include Policy Hook-type checks

        return uint(Error.NO_ERROR);
    }

    /**
     * @notice Validates seize and reverts on rejection. May emit logs.
     * @param cTokenCollateral Asset which was used as collateral and will be seized
     * @param cTokenBorrowed Asset which was borrowed by the borrower
     * @param liquidator The address repaying the borrow and seizing the collateral
     * @param borrower The address of the borrower
     * @param seizeTokens The number of collateral tokens to seize
     */
    function seizeVerify(
        address cTokenCollateral,
        address cTokenBorrowed,
        address liquidator,
        address borrower,
        uint seizeTokens) external {
        cTokenCollateral; // currently unused
        cTokenBorrowed;   // currently unused
        liquidator;       // currently unused
        borrower;         // currently unused
        seizeTokens;      // currently unused

        if (false) {
            maxAssets = maxAssets; // not pure
        }
    }

    /**
     * @notice Checks if the account should be allowed to transfer tokens in the given market
     * @param cToken The market to verify the transfer against
     * @param src The account which sources the tokens
     * @param dst The account which receives the tokens
     * @param transferTokens The number of cTokens to transfer
     * @return 0 if the transfer is allowed, otherwise a semi-opaque error code (See ErrorReporter.sol)
     */
    function transferAllowed(address cToken, address src, address dst, uint transferTokens) external returns (uint) {
        cToken;         // currently unused
        src;            // currently unused
        dst;            // currently unused
        transferTokens; // currently unused

        // *may include Policy Hook-type checks

        // Currently the only consideration is whether or not
        //  the src is allowed to redeem this many tokens
        return redeemAllowedInternal(cToken, src, transferTokens);
    }

    /**
     * @notice Validates transfer and reverts on rejection. May emit logs.
     * @param cToken Asset being transferred
     * @param src The account which sources the tokens
     * @param dst The account which receives the tokens
     * @param transferTokens The number of cTokens to transfer
     */
    function transferVerify(address cToken, address src, address dst, uint transferTokens) external {
        cToken;         // currently unused
        src;            // currently unused
        dst;            // currently unused
        transferTokens; // currently unused

        if (false) {
            maxAssets = maxAssets; // not pure
        }
    }

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

    /**
     * @dev Local vars for avoiding stack-depth limits in calculating account liquidity.
     *  Note that `cTokenBalance` is the number of cTokens the account owns in the market,
     *  whereas `borrowBalance` is the amount of underlying that the account has borrowed.
     */
    struct AccountLiquidityLocalVars {
        uint sumCollateral;
        uint sumBorrowPlusEffects;
        uint cTokenBalance;
        uint borrowBalance;
        uint exchangeRateMantissa;
        uint oraclePriceMantissa;
        Exp collateralFactor;
        Exp exchangeRate;
        Exp oraclePrice;
        Exp tokensToEther;
    }

    /**
     * @notice Determine the current account liquidity wrt collateral requirements
     * @return (possible error code (semi-opaque),
                account liquidity in excess of collateral requirements,
     *          account shortfall below collateral requirements)
     */
    function getAccountLiquidity(address account) public view returns (uint, uint, uint) {
        (Error err, uint liquidity, uint shortfall) = getHypotheticalAccountLiquidityInternal(account, CToken(0), 0, 0);

        return (uint(err), liquidity, shortfall);
    }

    /**
     * @notice Determine the current account liquidity wrt collateral requirements
     * @return (possible error code,
                account liquidity in excess of collateral requirements,
     *          account shortfall below collateral requirements)
     */
    function getAccountLiquidityInternal(address account) internal view returns (Error, uint, uint) {
        return getHypotheticalAccountLiquidityInternal(account, CToken(0), 0, 0);
    }

    /**
     * @notice Determine what the account liquidity would be if the given amounts were redeemed/borrowed
     * @param cTokenModify The market to hypothetically redeem/borrow in
     * @param account The account to determine liquidity for
     * @param redeemTokens The number of tokens to hypothetically redeem
     * @param borrowAmount The amount of underlying to hypothetically borrow
     * @dev Note that we calculate the exchangeRateStored for each collateral cToken using stored data,
     *  without calculating accumulated interest.
     * @return (possible error code,
                hypothetical account liquidity in excess of collateral requirements,
     *          hypothetical account shortfall below collateral requirements)
     */
    function getHypotheticalAccountLiquidityInternal(
        address account,
        CToken cTokenModify,
        uint redeemTokens,
        uint borrowAmount) internal view returns (Error, uint, uint) {

        AccountLiquidityLocalVars memory vars; // Holds all our calculation results
        uint oErr;
        MathError mErr;

        // For each asset the account is in
        CToken[] memory assets = accountAssets[account];
        for (uint i = 0; i < assets.length; i++) {
            CToken asset = assets[i];

            // Read the balances and exchange rate from the cToken
            (oErr, vars.cTokenBalance, vars.borrowBalance, vars.exchangeRateMantissa) = asset.getAccountSnapshot(account);
            if (oErr != 0) { // semi-opaque error code, we assume NO_ERROR == 0 is invariant between upgrades
                return (Error.SNAPSHOT_ERROR, 0, 0);
            }
            vars.collateralFactor = Exp({mantissa: markets[address(asset)].collateralFactorMantissa});
            vars.exchangeRate = Exp({mantissa: vars.exchangeRateMantissa});

            // Get the normalized price of the asset
            vars.oraclePriceMantissa = oracle.getUnderlyingPrice(asset);
            if (vars.oraclePriceMantissa == 0) {
                return (Error.PRICE_ERROR, 0, 0);
            }
            vars.oraclePrice = Exp({mantissa: vars.oraclePriceMantissa});

            // Pre-compute a conversion factor from tokens -> ether (normalized price value)
            (mErr, vars.tokensToEther) = mulExp3(vars.collateralFactor, vars.exchangeRate, vars.oraclePrice);
            if (mErr != MathError.NO_ERROR) {
                return (Error.MATH_ERROR, 0, 0);
            }

            // sumCollateral += tokensToEther * cTokenBalance
            (mErr, vars.sumCollateral) = mulScalarTruncateAddUInt(vars.tokensToEther, vars.cTokenBalance, vars.sumCollateral);
            if (mErr != MathError.NO_ERROR) {
                return (Error.MATH_ERROR, 0, 0);
            }

            // sumBorrowPlusEffects += oraclePrice * borrowBalance
            (mErr, vars.sumBorrowPlusEffects) = mulScalarTruncateAddUInt(vars.oraclePrice, vars.borrowBalance, vars.sumBorrowPlusEffects);
            if (mErr != MathError.NO_ERROR) {
                return (Error.MATH_ERROR, 0, 0);
            }

            // Calculate effects of interacting with cTokenModify
            if (asset == cTokenModify) {
                // redeem effect
                // sumBorrowPlusEffects += tokensToEther * redeemTokens
                (mErr, vars.sumBorrowPlusEffects) = mulScalarTruncateAddUInt(vars.tokensToEther, redeemTokens, vars.sumBorrowPlusEffects);
                if (mErr != MathError.NO_ERROR) {
                    return (Error.MATH_ERROR, 0, 0);
                }

                // borrow effect
                // sumBorrowPlusEffects += oraclePrice * borrowAmount
                (mErr, vars.sumBorrowPlusEffects) = mulScalarTruncateAddUInt(vars.oraclePrice, borrowAmount, vars.sumBorrowPlusEffects);
                if (mErr != MathError.NO_ERROR) {
                    return (Error.MATH_ERROR, 0, 0);
                }
            }
        }

        // These are safe, as the underflow condition is checked first
        if (vars.sumCollateral > vars.sumBorrowPlusEffects) {
            return (Error.NO_ERROR, vars.sumCollateral - vars.sumBorrowPlusEffects, 0);
        } else {
            return (Error.NO_ERROR, 0, vars.sumBorrowPlusEffects - vars.sumCollateral);
        }
    }

    /**
     * @notice Calculate number of tokens of collateral asset to seize given an underlying amount
     * @dev Used in liquidation (called in cToken.liquidateBorrowFresh)
     * @param cTokenBorrowed The address of the borrowed cToken
     * @param cTokenCollateral The address of the collateral cToken
     * @param repayAmount The amount of cTokenBorrowed underlying to convert into cTokenCollateral tokens
     * @return (errorCode, number of cTokenCollateral tokens to be seized in a liquidation)
     */
    function liquidateCalculateSeizeTokens(address cTokenBorrowed, address cTokenCollateral, uint repayAmount) external view returns (uint, uint) {
        /* Read oracle prices for borrowed and collateral markets */
        uint priceBorrowedMantissa = oracle.getUnderlyingPrice(CToken(cTokenBorrowed));
        uint priceCollateralMantissa = oracle.getUnderlyingPrice(CToken(cTokenCollateral));
        if (priceBorrowedMantissa == 0 || priceCollateralMantissa == 0) {
            return (uint(Error.PRICE_ERROR), 0);
        }

        /*
         * Get the exchange rate and calculate the number of collateral tokens to seize:
         *  seizeAmount = repayAmount * liquidationIncentive * priceBorrowed / priceCollateral
         *  seizeTokens = seizeAmount / exchangeRate
         *   = repayAmount * (liquidationIncentive * priceBorrowed) / (priceCollateral * exchangeRate)
         */
        uint exchangeRateMantissa = CToken(cTokenCollateral).exchangeRateStored(); // Note: reverts on error
        uint seizeTokens;
        Exp memory numerator;
        Exp memory denominator;
        Exp memory ratio;
        MathError mathErr;

        (mathErr, numerator) = mulExp(liquidationIncentiveMantissa, priceBorrowedMantissa);
        if (mathErr != MathError.NO_ERROR) {
            return (uint(Error.MATH_ERROR), 0);
        }

        (mathErr, denominator) = mulExp(priceCollateralMantissa, exchangeRateMantissa);
        if (mathErr != MathError.NO_ERROR) {
            return (uint(Error.MATH_ERROR), 0);
        }

        (mathErr, ratio) = divExp(numerator, denominator);
        if (mathErr != MathError.NO_ERROR) {
            return (uint(Error.MATH_ERROR), 0);
        }

        (mathErr, seizeTokens) = mulScalarTruncate(ratio, repayAmount);
        if (mathErr != MathError.NO_ERROR) {
            return (uint(Error.MATH_ERROR), 0);
        }

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

    /*** Admin Functions ***/

    /**
      * @notice Sets a new price oracle for the comptroller
      * @dev Admin function to set a new price oracle
      * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
      */
    function _setPriceOracle(PriceOracle newOracle) public returns (uint) {
        // Check caller is admin OR currently initialzing as new unitroller implementation
        if (!adminOrInitializing()) {
            return fail(Error.UNAUTHORIZED, FailureInfo.SET_PRICE_ORACLE_OWNER_CHECK);
        }

        // Track the old oracle for the comptroller
        PriceOracle oldOracle = oracle;

        // Ensure invoke newOracle.isPriceOracle() returns true
        // require(newOracle.isPriceOracle(), "oracle method isPriceOracle returned false");

        // Set comptroller's oracle to newOracle
        oracle = newOracle;

        // Emit NewPriceOracle(oldOracle, newOracle)
        emit NewPriceOracle(oldOracle, newOracle);

        return uint(Error.NO_ERROR);
    }

    /**
      * @notice Sets the closeFactor used when liquidating borrows
      * @dev Admin function to set closeFactor
      * @param newCloseFactorMantissa New close factor, scaled by 1e18
      * @return uint 0=success, otherwise a failure. (See ErrorReporter for details)
      */
    function _setCloseFactor(uint newCloseFactorMantissa) external returns (uint256) {
        // Check caller is admin OR currently initialzing as new unitroller implementation
        if (!adminOrInitializing()) {
            return fail(Error.UNAUTHORIZED, FailureInfo.SET_CLOSE_FACTOR_OWNER_CHECK);
        }

        Exp memory newCloseFactorExp = Exp({mantissa: newCloseFactorMantissa});
        Exp memory lowLimit = Exp({mantissa: closeFactorMinMantissa});
        if (lessThanOrEqualExp(newCloseFactorExp, lowLimit)) {
            return fail(Error.INVALID_CLOSE_FACTOR, FailureInfo.SET_CLOSE_FACTOR_VALIDATION);
        }

        Exp memory highLimit = Exp({mantissa: closeFactorMaxMantissa});
        if (lessThanExp(highLimit, newCloseFactorExp)) {
            return fail(Error.INVALID_CLOSE_FACTOR, FailureInfo.SET_CLOSE_FACTOR_VALIDATION);
        }

        uint oldCloseFactorMantissa = closeFactorMantissa;
        closeFactorMantissa = newCloseFactorMantissa;
        emit NewCloseFactor(oldCloseFactorMantissa, closeFactorMantissa);

        return uint(Error.NO_ERROR);
    }

    /**
      * @notice Sets the collateralFactor for a market
      * @dev Admin function to set per-market collateralFactor
      * @param cToken The market to set the factor on
      * @param newCollateralFactorMantissa The new collateral factor, scaled by 1e18
      * @return uint 0=success, otherwise a failure. (See ErrorReporter for details)
      */
    function _setCollateralFactor(CToken cToken, uint newCollateralFactorMantissa) external returns (uint256) {
        // Check caller is admin
        if (msg.sender != admin) {
            return fail(Error.UNAUTHORIZED, FailureInfo.SET_COLLATERAL_FACTOR_OWNER_CHECK);
        }

        // Verify market is listed
        Market storage market = markets[address(cToken)];
        if (!market.isListed) {
            return fail(Error.MARKET_NOT_LISTED, FailureInfo.SET_COLLATERAL_FACTOR_NO_EXISTS);
        }

        Exp memory newCollateralFactorExp = Exp({mantissa: newCollateralFactorMantissa});

        // Check collateral factor <= 0.9
        Exp memory highLimit = Exp({mantissa: collateralFactorMaxMantissa});
        if (lessThanExp(highLimit, newCollateralFactorExp)) {
            return fail(Error.INVALID_COLLATERAL_FACTOR, FailureInfo.SET_COLLATERAL_FACTOR_VALIDATION);
        }

        // If collateral factor != 0, fail if price == 0
        if (newCollateralFactorMantissa != 0 && oracle.getUnderlyingPrice(cToken) == 0) {
            return fail(Error.PRICE_ERROR, FailureInfo.SET_COLLATERAL_FACTOR_WITHOUT_PRICE);
        }

        // Set market's collateral factor to new collateral factor, remember old value
        uint oldCollateralFactorMantissa = market.collateralFactorMantissa;
        market.collateralFactorMantissa = newCollateralFactorMantissa;

        // Emit event with asset, old collateral factor, and new collateral factor
        emit NewCollateralFactor(cToken, oldCollateralFactorMantissa, newCollateralFactorMantissa);

        return uint(Error.NO_ERROR);
    }

    /**
      * @notice Sets maxAssets which controls how many markets can be entered
      * @dev Admin function to set maxAssets
      * @param newMaxAssets New max assets
      * @return uint 0=success, otherwise a failure. (See ErrorReporter for details)
      */
    function _setMaxAssets(uint newMaxAssets) external returns (uint) {
        // Check caller is admin OR currently initialzing as new unitroller implementation
        if (!adminOrInitializing()) {
            return fail(Error.UNAUTHORIZED, FailureInfo.SET_MAX_ASSETS_OWNER_CHECK);
        }

        uint oldMaxAssets = maxAssets;
        maxAssets = newMaxAssets;
        emit NewMaxAssets(oldMaxAssets, newMaxAssets);

        return uint(Error.NO_ERROR);
    }

    /**
      * @notice Sets liquidationIncentive
      * @dev Admin function to set liquidationIncentive
      * @param newLiquidationIncentiveMantissa New liquidationIncentive scaled by 1e18
      * @return uint 0=success, otherwise a failure. (See ErrorReporter for details)
      */
    function _setLiquidationIncentive(uint newLiquidationIncentiveMantissa) external returns (uint) {
        // Check caller is admin OR currently initialzing as new unitroller implementation
        if (!adminOrInitializing()) {
            return fail(Error.UNAUTHORIZED, FailureInfo.SET_LIQUIDATION_INCENTIVE_OWNER_CHECK);
        }

        // Check de-scaled 1 <= newLiquidationDiscount <= 1.5
        Exp memory newLiquidationIncentive = Exp({mantissa: newLiquidationIncentiveMantissa});
        Exp memory minLiquidationIncentive = Exp({mantissa: liquidationIncentiveMinMantissa});
        if (lessThanExp(newLiquidationIncentive, minLiquidationIncentive)) {
            return fail(Error.INVALID_LIQUIDATION_INCENTIVE, FailureInfo.SET_LIQUIDATION_INCENTIVE_VALIDATION);
        }

        Exp memory maxLiquidationIncentive = Exp({mantissa: liquidationIncentiveMaxMantissa});
        if (lessThanExp(maxLiquidationIncentive, newLiquidationIncentive)) {
            return fail(Error.INVALID_LIQUIDATION_INCENTIVE, FailureInfo.SET_LIQUIDATION_INCENTIVE_VALIDATION);
        }

        // Save current value for use in log
        uint oldLiquidationIncentiveMantissa = liquidationIncentiveMantissa;

        // Set liquidation incentive to new incentive
        liquidationIncentiveMantissa = newLiquidationIncentiveMantissa;

        // Emit event with old incentive, new incentive
        emit NewLiquidationIncentive(oldLiquidationIncentiveMantissa, newLiquidationIncentiveMantissa);

        return uint(Error.NO_ERROR);
    }

    /**
      * @notice Add the market to the markets mapping and set it as listed
      * @dev Admin function to set isListed and add support for the market
      * @param cToken The address of the market (token) to list
      * @return uint 0=success, otherwise a failure. (See enum Error for details)
      */
    function _supportMarket(CToken cToken) external returns (uint) {
        if (msg.sender != admin) {
            return fail(Error.UNAUTHORIZED, FailureInfo.SUPPORT_MARKET_OWNER_CHECK);
        }

        if (markets[address(cToken)].isListed) {
            return fail(Error.MARKET_ALREADY_LISTED, FailureInfo.SUPPORT_MARKET_EXISTS);
        }

        cToken.isCToken(); // Sanity check to make sure its really a CToken

        markets[address(cToken)] = Market({isListed: true, collateralFactorMantissa: 0});
        emit MarketListed(cToken);

        return uint(Error.NO_ERROR);
    }

    function _become(Unitroller unitroller, PriceOracle _oracle, uint _closeFactorMantissa, uint _maxAssets, bool reinitializing) public {
        require(msg.sender == unitroller.admin(), "only unitroller admin can change brains");
        uint changeStatus = unitroller._acceptImplementation();

        require(changeStatus == 0, "change not authorized");

        if (!reinitializing) {
            Comptroller freshBrainedComptroller = Comptroller(address(unitroller));

            // Ensure invoke _setPriceOracle() = 0
            uint err = freshBrainedComptroller._setPriceOracle(_oracle);
            require (err == uint(Error.NO_ERROR), "set price oracle error");

            // Ensure invoke _setCloseFactor() = 0
            err = freshBrainedComptroller._setCloseFactor(_closeFactorMantissa);
            require (err == uint(Error.NO_ERROR), "set close factor error");

            // Ensure invoke _setMaxAssets() = 0
            err = freshBrainedComptroller._setMaxAssets(_maxAssets);
            require (err == uint(Error.NO_ERROR), "set max asssets error");

            // Ensure invoke _setLiquidationIncentive(liquidationIncentiveMinMantissa) = 0
            err = freshBrainedComptroller._setLiquidationIncentive(liquidationIncentiveMinMantissa);
            require (err == uint(Error.NO_ERROR), "set liquidation incentive error");
        }
    }

    /**
     * @dev Check that caller is admin or this contract is initializing itself as
     * the new implementation.
     * There should be no way to satisfy msg.sender == comptrollerImplementaiton
     * without tx.origin also being admin, but both are included for extra safety
     */
    function adminOrInitializing() internal view returns (bool) {
        bool initializing = (
                msg.sender == comptrollerImplementation
                &&
                //solium-disable-next-line security/no-tx-origin
                tx.origin == admin
        );
        bool isAdmin = msg.sender == admin;
        return isAdmin || initializing;
    }
}
./ComptrollerInterface.sol
pragma solidity ^0.5.8;

interface ComptrollerInterface {
    /**
     * @notice Marker function used for light validation when updating the comptroller of a market
     * @dev Implementations should simply return true.
     * @return true
     */
    function isComptroller() external view returns (bool);

    /*** 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);
}
./ComptrollerStorage.sol
pragma solidity ^0.5.8;

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;

}
./EIP20Interface.sol
pragma solidity ^0.5.8;

/**
 * @title ERC 20 Token Standard Interface
 *  https://eips.ethereum.org/EIPS/eip-20
 */
interface EIP20Interface {

    /**
      * @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);
}
./EIP20NonStandardInterface.sol
pragma solidity ^0.5.8;

/**
 * @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);
}
./ErrorReporter.sol
pragma solidity ^0.5.8;

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,
        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,
        ZUNUSED
    }

    /**
      * @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_ACCUMULATED_INTEREST_CALCULATION_FAILED,
        ACCRUE_INTEREST_BORROW_RATE_CALCULATION_FAILED,
        ACCRUE_INTEREST_NEW_BORROW_INDEX_CALCULATION_FAILED,
        ACCRUE_INTEREST_NEW_TOTAL_BORROWS_CALCULATION_FAILED,
        ACCRUE_INTEREST_NEW_TOTAL_RESERVES_CALCULATION_FAILED,
        ACCRUE_INTEREST_SIMPLE_INTEREST_FACTOR_CALCULATION_FAILED,
        BORROW_ACCUMULATED_BALANCE_CALCULATION_FAILED,
        BORROW_ACCRUE_INTEREST_FAILED,
        BORROW_CASH_NOT_AVAILABLE,
        BORROW_FRESHNESS_CHECK,
        BORROW_NEW_TOTAL_BALANCE_CALCULATION_FAILED,
        BORROW_NEW_ACCOUNT_BORROW_BALANCE_CALCULATION_FAILED,
        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_BALANCE_INCREMENT_FAILED,
        LIQUIDATE_SEIZE_BALANCE_DECREMENT_FAILED,
        LIQUIDATE_SEIZE_COMPTROLLER_REJECTION,
        LIQUIDATE_SEIZE_LIQUIDATOR_IS_BORROWER,
        LIQUIDATE_SEIZE_TOO_MUCH,
        MINT_ACCRUE_INTEREST_FAILED,
        MINT_COMPTROLLER_REJECTION,
        MINT_EXCHANGE_CALCULATION_FAILED,
        MINT_EXCHANGE_RATE_READ_FAILED,
        MINT_FRESHNESS_CHECK,
        MINT_NEW_ACCOUNT_BALANCE_CALCULATION_FAILED,
        MINT_NEW_TOTAL_SUPPLY_CALCULATION_FAILED,
        MINT_TRANSFER_IN_FAILED,
        MINT_TRANSFER_IN_NOT_POSSIBLE,
        REDEEM_ACCRUE_INTEREST_FAILED,
        REDEEM_COMPTROLLER_REJECTION,
        REDEEM_EXCHANGE_TOKENS_CALCULATION_FAILED,
        REDEEM_EXCHANGE_AMOUNT_CALCULATION_FAILED,
        REDEEM_EXCHANGE_RATE_READ_FAILED,
        REDEEM_FRESHNESS_CHECK,
        REDEEM_NEW_ACCOUNT_BALANCE_CALCULATION_FAILED,
        REDEEM_NEW_TOTAL_SUPPLY_CALCULATION_FAILED,
        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_ACCUMULATED_BALANCE_CALCULATION_FAILED,
        REPAY_BORROW_COMPTROLLER_REJECTION,
        REPAY_BORROW_FRESHNESS_CHECK,
        REPAY_BORROW_NEW_ACCOUNT_BORROW_BALANCE_CALCULATION_FAILED,
        REPAY_BORROW_NEW_TOTAL_BALANCE_CALCULATION_FAILED,
        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,
        TRANSFER_NOT_ENOUGH,
        TRANSFER_TOO_MUCH
    }

    /**
      * @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);
    }
}
./Exponential.sol
pragma solidity ^0.5.8;

import "./CarefulMath.sol";

/**
 * @title Exponential module for storing fixed-decision 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 halfExpScale = expScale/2;
    uint constant mantissaOne = expScale;

    struct Exp {
        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 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 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; //TODO: Add some simple tests and this in another PR yo.
    }

    /**
     * @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 Checks if left Exp > right Exp.
     */
    function greaterThanExp(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;
    }
}
./InterestRateModel.sol
pragma solidity ^0.5.8;

/**
  * @title The Compound InterestRateModel Interface
  * @author Compound
  * @notice Any interest rate model should derive from this contract.
  * @dev These functions are specifically not marked `pure` as implementations of this
  *      contract may read from storage variables.
  */
interface InterestRateModel {
    /**
      * @notice Gets the current borrow interest rate based on the given asset, total cash, total borrows
      *         and total reserves.
      * @dev The return value should be scaled by 1e18, thus a return value of
      *      `(true, 1000000000000)` implies an interest rate of 0.000001 or 0.0001% *per block*.
      * @param cash The total cash of the underlying asset in the CToken
      * @param borrows The total borrows of the underlying asset in the CToken
      * @param reserves The total reserves of the underlying asset in the CToken
      * @return Success or failure and the borrow interest rate per block scaled by 10e18
      */
    function getBorrowRate(uint cash, uint borrows, uint reserves) external view returns (uint, uint);

    /**
      * @notice Marker function used for light validation when updating the interest rate model of a market
      * @dev Marker function used for light validation when updating the interest rate model of a market. Implementations should simply return true.
      * @return Success or failure
      */
    function isInterestRateModel() external view returns (bool);
}
./Maximillion.sol
pragma solidity ^0.5.8;

import "./CEther.sol";

/**
 * @title Compound's Maximillion Contract
 * @author Compound
 */
contract Maximillion {
    /**
     * @notice The default cEther market to repay in
     */
    CEther public cEther;

    /**
     * @notice Construct a Maximillion to repay max in a CEther market
     */
    constructor(CEther cEther_) public {
        cEther = cEther_;
    }

    /**
     * @notice msg.sender sends Ether to repay an account's borrow in the cEther market
     * @dev The provided Ether is applied towards the borrow balance, any excess is refunded
     * @param borrower The address of the borrower account to repay on behalf of
     * @return The initial borrows before the repay
     */
    function repayBehalf(address borrower) public payable {
        return repayBehalfExplicit(borrower, cEther);
    }

    /**
     * @notice msg.sender sends Ether to repay an account's borrow in a cEther market
     * @dev The provided Ether is applied towards the borrow balance, any excess is refunded
     * @param borrower The address of the borrower account to repay on behalf of
     * @param cEther_ The address of the cEther contract to repay in
     * @return The initial borrows before the repay
     */
    function repayBehalfExplicit(address borrower, CEther cEther_) public payable {
        uint received = msg.value;
        uint borrows = cEther_.borrowBalanceCurrent(borrower);
        if (received > borrows) {
            cEther_.repayBorrowBehalf.value(borrows)(borrower);
            msg.sender.transfer(received - borrows);
        } else {
            cEther_.repayBorrowBehalf.value(received)(borrower);
        }
    }
}
./PriceOracle.sol
pragma solidity ^0.5.8;

import "./CToken.sol";

interface PriceOracle {
    /**
     * @notice Indicator that this is a PriceOracle contract (for inspection)
     */
    function isPriceOracle() external pure returns (bool);

    /**
      * @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);
}
./PriceOracleProxy.sol
pragma solidity ^0.5.8;

import "./CErc20.sol";
import "./CToken.sol";
import "./PriceOracle.sol";
import "./Comptroller.sol";
import "./SafeMath.sol";

interface V1PriceOracleInterface {
    function assetPrices(address asset) external view returns (uint);
}

contract PriceOracleProxy is PriceOracle {
    using SafeMath for uint256;

    /**
     * @notice The v1 price oracle, which will continue to serve prices for v1 assets
     */
    V1PriceOracleInterface public v1PriceOracle;

    /**
     * @notice The comptroller which is used to white-list assets the proxy will price
     * @dev Assets which are not white-listed will not be priced, to defend against abuse
     */
    Comptroller public comptroller;

    /**
     * @notice address of the cEther contract, which has a constant price
     */
    address public cEthAddress;

    /**
     * @notice address of the cUSDC contract, which we hand pick a key for
     */
    address public cUsdcAddress;

    /**
     * @notice address of the cDAI contract, which we hand pick a key for
     */
    address public cDaiAddress;

    /**
     * @notice address of the USDC contract, which we hand pick a key for
     */
    address constant usdcOracleKey = address(1);

    /**
     * @notice address of the DAI contract, which we hand pick a key for
     */
    address constant daiOracleKey = address(2);

    /**
     * @notice address of the asset which contains the USD/ETH price from Maker
     */
    address public makerUsdOracleKey;

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

    /**
     * @param comptroller_ The address of the comptroller, which will be consulted for market listing status
     * @param v1PriceOracle_ The address of the v1 price oracle, which will continue to operate and hold prices for collateral assets
     * @param cEthAddress_ The address of cETH, which will return a constant 1e18, since all prices relative to ether
     * @param cUsdcAddress_ The address of cUSDC, which will be read from a special oracle key
     * @param cDaiAddress_ The address of cDAI, which will be read from a special oracle key
     */
    constructor(address comptroller_,
                address v1PriceOracle_,
                address cEthAddress_,
                address cUsdcAddress_,
                address cDaiAddress_) public {
        comptroller = Comptroller(comptroller_);
        v1PriceOracle = V1PriceOracleInterface(v1PriceOracle_);

        cEthAddress = cEthAddress_;
        cUsdcAddress = cUsdcAddress_;
        cDaiAddress = cDaiAddress_;

        if (cDaiAddress_ != address(0)) {
            makerUsdOracleKey = CErc20(cDaiAddress_).underlying();
        }
    }

    /**
     * @notice Get the underlying price of a listed 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) public view returns (uint) {
        address cTokenAddress = address(cToken);
        (bool isListed, ) = comptroller.markets(cTokenAddress);

        if (!isListed) {
            // not white-listed, worthless
            return 0;
        }

        if (cTokenAddress == cEthAddress) {
            // ether always worth 1
            return 1e18;
        }

        if (cTokenAddress == cUsdcAddress) {
            // we assume USDC/USD = 1, and let DAI/ETH float based on the DAI/USDC ratio
            //  use the maker usd price (for a token w/ 6 decimals)
            return v1PriceOracle.assetPrices(makerUsdOracleKey).mul(1e12); // 1e(18 - 6)
        }

        if (cTokenAddress == cDaiAddress) {
            // check and bound the DAI/USDC posted price ratio
            //  and use that to scale the maker price (for a token w/ 18 decimals)
            uint makerUsdPrice = v1PriceOracle.assetPrices(makerUsdOracleKey);
            uint postedUsdcPrice = v1PriceOracle.assetPrices(usdcOracleKey);
            uint postedScaledDaiPrice = v1PriceOracle.assetPrices(daiOracleKey).mul(1e12);
            uint daiUsdcRatio = postedScaledDaiPrice.mul(1e18).div(postedUsdcPrice);

            if (daiUsdcRatio < 0.95e18) {
                return makerUsdPrice.mul(0.95e18).div(1e18);
            }

            if (daiUsdcRatio > 1.05e18) {
                return makerUsdPrice.mul(1.05e18).div(1e18);
            }

            return makerUsdPrice.mul(daiUsdcRatio).div(1e18);
        }

        // otherwise just read from v1 oracle
        address underlying = CErc20(cTokenAddress).underlying();
        return v1PriceOracle.assetPrices(underlying);
    }
}
./ReentrancyGuard.sol
pragma solidity ^0.5.8;

/**
 * @title Helps contracts guard against reentrancy attacks.
 * @author Remco Bloemen <remco@2π.com>, Eenae <alexey@mixbytes.io>
 * @dev If you mark a function `nonReentrant`, you should also
 * mark it `external`.
 */
contract ReentrancyGuard {
    /// @dev counter to allow mutex lock with only one SSTORE operation
    uint256 private _guardCounter;

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

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

// From https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/math/Math.sol
// Subject to the MIT license.

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     *
     * NOTE: This is a feature of the next version of OpenZeppelin Contracts.
     * @dev Get it via `npm install @openzeppelin/contracts@next`.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

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

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     * NOTE: This is a feature of the next version of OpenZeppelin Contracts.
     * @dev Get it via `npm install @openzeppelin/contracts@next`.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     *
     * NOTE: This is a feature of the next version of OpenZeppelin Contracts.
     * @dev Get it via `npm install @openzeppelin/contracts@next`.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}
./SimplePriceOracle.sol
pragma solidity ^0.5.8;

import "./PriceOracle.sol";
import "./CErc20.sol";

contract SimplePriceOracle is PriceOracle {
    mapping(address => uint) prices;
    bool public constant isPriceOracle = true;

    function getUnderlyingPrice(CToken cToken) public view returns (uint) {
        return prices[address(CErc20(address(cToken)).underlying())];
    }

    function setUnderlyingPrice(CToken cToken, uint underlyingPriceMantissa) public {
        prices[address(CErc20(address(cToken)).underlying())] = underlyingPriceMantissa;
    }

    function setDirectPrice(address a, uint price) public {
        prices[a] = price;
    }

    // v1 price oracle interface for use as backing of proxy
    function assetPrices(address asset) external view returns (uint) {
        return prices[asset];
    }
}
./Unitroller.sol
pragma solidity ^0.5.8;

import "./ErrorReporter.sol";
import "./ComptrollerStorage.sol";
/**
 * @title ComptrollerCore
 * @dev storage for the comptroller will be at this address, and
 * cTokens should reference this contract rather than a deployed implementation if
 *
 */
contract Unitroller is UnitrollerAdminStorage, ComptrollerErrorReporter {

    /**
      * @notice Emitted when pendingComptrollerImplementation is changed
      */
    event NewPendingImplementation(address oldPendingImplementation, address newPendingImplementation);

    /**
      * @notice Emitted when pendingComptrollerImplementation is accepted, which means comptroller implementation is updated
      */
    event NewImplementation(address oldImplementation, address newImplementation);

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

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

    constructor() public {
        // Set admin to caller
        admin = msg.sender;
    }

    /*** Admin Functions ***/
    function _setPendingImplementation(address newPendingImplementation) public returns (uint) {

        if (msg.sender != admin) {
            return fail(Error.UNAUTHORIZED, FailureInfo.SET_PENDING_IMPLEMENTATION_OWNER_CHECK);
        }

        address oldPendingImplementation = pendingComptrollerImplementation;

        pendingComptrollerImplementation = newPendingImplementation;

        emit NewPendingImplementation(oldPendingImplementation, pendingComptrollerImplementation);

        return uint(Error.NO_ERROR);
    }

    /**
    * @notice Accepts new implementation of comptroller. msg.sender must be pendingImplementation
    * @dev Admin function for new implementation to accept it's role as implementation
    * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
    */
    function _acceptImplementation() public returns (uint) {
        // Check caller is pendingImplementation and pendingImplementation ≠ address(0)
        if (msg.sender != pendingComptrollerImplementation || pendingComptrollerImplementation == address(0)) {
            return fail(Error.UNAUTHORIZED, FailureInfo.ACCEPT_PENDING_IMPLEMENTATION_ADDRESS_CHECK);
        }

        // Save current values for inclusion in log
        address oldImplementation = comptrollerImplementation;
        address oldPendingImplementation = pendingComptrollerImplementation;

        comptrollerImplementation = pendingComptrollerImplementation;

        pendingComptrollerImplementation = address(0);

        emit NewImplementation(oldImplementation, comptrollerImplementation);
        emit NewPendingImplementation(oldPendingImplementation, pendingComptrollerImplementation);

        return uint(Error.NO_ERROR);
    }


    /**
      * @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)
      *
      * TODO: Should we add a second arg to verify, like a checksum of `newAdmin` address?
      */
    function _setPendingAdmin(address newPendingAdmin) public 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() public 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);
    }

    /**
     * @dev Delegates execution to an implementation contract.
     * It returns to the external caller whatever the implementation returns
     * or forwards reverts.
     */
    function () payable external {
        // delegate all other functions to current implementation
        (bool success, ) = comptrollerImplementation.delegatecall(msg.data);

        // solium-disable-next-line security/no-inline-assembly
        assembly {
              let free_mem_ptr := mload(0x40)
              returndatacopy(free_mem_ptr, 0, returndatasize)

              switch success
              case 0 { revert(free_mem_ptr, returndatasize) }
              default { return(free_mem_ptr, returndatasize) }
        }
    }
}
./WhitePaperInterestRateModel.sol
pragma solidity ^0.5.8;

import "./Exponential.sol";
import "./InterestRateModel.sol";

/**
  * @title The Compound Standard Interest Rate Model with pluggable constants
  * @author Compound
  * @notice See Section 2.4 of the Compound Whitepaper
  */
contract WhitePaperInterestRateModel is InterestRateModel, Exponential {
    /**
     * @notice Indicator that this is an InterestRateModel contract (for inspection)
     */
    bool public constant isInterestRateModel = true;

    /**
     * @notice The multiplier of utilization rate that gives the slope of the interest rate
     */
    uint public multiplier;

    /**
     * @notice The base interest rate which is the y-intercept when utilization rate is 0
     */
    uint public baseRate;

    /**
     * @notice The approximate number of blocks per year that is assumed by the interest rate model
     */
    uint public constant blocksPerYear = 2102400;

    constructor(uint baseRate_, uint multiplier_) public {
        baseRate = baseRate_;
        multiplier = multiplier_;
    }

    enum IRError {
        NO_ERROR,
        FAILED_TO_ADD_CASH_PLUS_BORROWS,
        FAILED_TO_GET_EXP,
        FAILED_TO_MUL_UTILIZATION_RATE,
        FAILED_TO_ADD_BASE_RATE
    }

    /*
     * @dev Calculates the utilization rate (borrows / (cash + borrows)) as an Exp
     */
    function getUtilizationRate(uint cash, uint borrows) pure internal returns (IRError, Exp memory) {
        if (borrows == 0) {
            // Utilization rate is zero when there's no borrows
            return (IRError.NO_ERROR, Exp({mantissa: 0}));
        }

        (MathError err0, uint cashPlusBorrows) = addUInt(cash, borrows);
        if (err0 != MathError.NO_ERROR) {
            return (IRError.FAILED_TO_ADD_CASH_PLUS_BORROWS, Exp({mantissa: 0}));
        }

        (MathError err1, Exp memory utilizationRate) = getExp(borrows, cashPlusBorrows);
        if (err1 != MathError.NO_ERROR) {
            return (IRError.FAILED_TO_GET_EXP, Exp({mantissa: 0}));
        }

        return (IRError.NO_ERROR, utilizationRate);
    }

    /*
     * @dev Calculates the utilization and borrow rates for use by getBorrowRate function
     */
    function getUtilizationAndAnnualBorrowRate(uint cash, uint borrows) view internal returns (IRError, Exp memory, Exp memory) {
        (IRError err0, Exp memory utilizationRate) = getUtilizationRate(cash, borrows);
        if (err0 != IRError.NO_ERROR) {
            return (err0, Exp({mantissa: 0}), Exp({mantissa: 0}));
        }

        // Borrow Rate is 5% + UtilizationRate * 45% (baseRate + UtilizationRate * multiplier);
        // 45% of utilizationRate, is `rate * 45 / 100`
        (MathError err1, Exp memory utilizationRateMuled) = mulScalar(utilizationRate, multiplier);
        // `mulScalar` only overflows when the product is >= 2^256.
        // utilizationRate is a real number on the interval [0,1], which means that
        // utilizationRate.mantissa is in the interval [0e18,1e18], which means that 45 times
        // that is in the interval [0e18,45e18]. That interval has no intersection with 2^256, and therefore
        // this can never overflow for the standard rates.
        if (err1 != MathError.NO_ERROR) {
            return (IRError.FAILED_TO_MUL_UTILIZATION_RATE, Exp({mantissa: 0}), Exp({mantissa: 0}));
        }

        (MathError err2, Exp memory utilizationRateScaled) = divScalar(utilizationRateMuled, mantissaOne);
        // 100 is a constant, and therefore cannot be zero, which is the only error case of divScalar.
        assert(err2 == MathError.NO_ERROR);

        // Add the 5% for (5% + 45% * Ua)
        (MathError err3, Exp memory annualBorrowRate) = addExp(utilizationRateScaled, Exp({mantissa: baseRate}));
        // `addExp` only fails when the addition of mantissas overflow.
        // As per above, utilizationRateMuled is capped at 45e18,
        // and utilizationRateScaled is capped at 4.5e17. mantissaFivePercent = 0.5e17, and thus the addition
        // is capped at 5e17, which is less than 2^256. This only applies to the standard rates
        if (err3 != MathError.NO_ERROR) {
            return (IRError.FAILED_TO_ADD_BASE_RATE, Exp({mantissa: 0}), Exp({mantissa: 0}));
        }

        return (IRError.NO_ERROR, utilizationRate, annualBorrowRate);
    }

    /**
      * @notice Gets the current borrow interest rate based on the given asset, total cash, total borrows
      *         and total reserves.
      * @dev The return value should be scaled by 1e18, thus a return value of
      *      `(true, 1000000000000)` implies an interest rate of 0.000001 or 0.0001% *per block*.
      * @param cash The total cash of the underlying asset in the CToken
      * @param borrows The total borrows of the underlying asset in the CToken
      * @param _reserves The total reserves of the underlying asset in the CToken
      * @return Success or failure and the borrow interest rate per block scaled by 10e18
      */
    function getBorrowRate(uint cash, uint borrows, uint _reserves) public view returns (uint, uint) {
        _reserves; // pragma ignore unused argument

        (IRError err0, Exp memory _utilizationRate, Exp memory annualBorrowRate) = getUtilizationAndAnnualBorrowRate(cash, borrows);
        if (err0 != IRError.NO_ERROR) {
            return (uint(err0), 0);
        }

        // And then divide down by blocks per year.
        (MathError err1, Exp memory borrowRate) = divScalar(annualBorrowRate, blocksPerYear); // basis points * blocks per year
        // divScalar only fails when divisor is zero. This is clearly not the case.
        assert(err1 == MathError.NO_ERROR);

        _utilizationRate; // pragma ignore unused variable

        // Note: mantissa is the rate scaled 1e18, which matches the expected result
        return (uint(IRError.NO_ERROR), borrowRate.mantissa);
    }
}

Contract Types

CErc20
{"abi": [{"constant": true, "inputs": [], "name": "name", "outputs": [{"name": "", "type": "string"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "spender", "type": "address"}, {"name": "amount", "type": "uint256"}], "name": "approve", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "repayAmount", "type": "uint256"}], "name": "repayBorrow", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "reserveFactorMantissa", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "account", "type": "address"}], "name": "borrowBalanceCurrent", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "totalSupply", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "exchangeRateStored", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "src", "type": "address"}, {"name": "dst", "type": "address"}, {"name": "amount", "type": "uint256"}], "name": "transferFrom", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "borrower", "type": "address"}, {"name": "repayAmount", "type": "uint256"}], "name": "repayBorrowBehalf", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "pendingAdmin", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "decimals", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "owner", "type": "address"}], "name": "balanceOfUnderlying", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "getCash", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "newComptroller", "type": "address"}], "name": "_setComptroller", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "totalBorrows", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "comptroller", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "reduceAmount", "type": "uint256"}], "name": "_reduceReserves", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "initialExchangeRateMantissa", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "accrualBlockNumber", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "underlying", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "owner", "type": "address"}], "name": "balanceOf", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "totalBorrowsCurrent", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "redeemAmount", "type": "uint256"}], "name": "redeemUnderlying", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "totalReserves", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "symbol", "outputs": [{"name": "", "type": "string"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "account", "type": "address"}], "name": "borrowBalanceStored", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "mintAmount", "type": "uint256"}], "name": "mint", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "accrueInterest", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "dst", "type": "address"}, {"name": "amount", "type": "uint256"}], "name": "transfer", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "borrowIndex", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "supplyRatePerBlock", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "liquidator", "type": "address"}, {"name": "borrower", "type": "address"}, {"name": "seizeTokens", "type": "uint256"}], "name": "seize", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "newPendingAdmin", "type": "address"}], "name": "_setPendingAdmin", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "exchangeRateCurrent", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "account", "type": "address"}], "name": "getAccountSnapshot", "outputs": [{"name": "", "type": "uint256"}, {"name": "", "type": "uint256"}, {"name": "", "type": "uint256"}, {"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "borrowAmount", "type": "uint256"}], "name": "borrow", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "redeemTokens", "type": "uint256"}], "name": "redeem", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "owner", "type": "address"}, {"name": "spender", "type": "address"}], "name": "allowance", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "_acceptAdmin", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "newInterestRateModel", "type": "address"}], "name": "_setInterestRateModel", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "interestRateModel", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "borrower", "type": "address"}, {"name": "repayAmount", "type": "uint256"}, {"name": "cTokenCollateral", "type": "address"}], "name": "liquidateBorrow", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "admin", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "borrowRatePerBlock", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "newReserveFactorMantissa", "type": "uint256"}], "name": "_setReserveFactor", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "isCToken", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"inputs": [{"name": "underlying_", "type": "address"}, {"name": "comptroller_", "type": "address"}, {"name": "interestRateModel_", "type": "address"}, {"name": "initialExchangeRateMantissa_", "type": "uint256"}, {"name": "name_", "type": "string"}, {"name": "symbol_", "type": "string"}, {"name": "decimals_", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "interestAccumulated", "type": "uint256"}, {"indexed": false, "name": "borrowIndex", "type": "uint256"}, {"indexed": false, "name": "totalBorrows", "type": "uint256"}], "name": "AccrueInterest", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "minter", "type": "address"}, {"indexed": false, "name": "mintAmount", "type": "uint256"}, {"indexed": false, "name": "mintTokens", "type": "uint256"}], "name": "Mint", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "redeemer", "type": "address"}, {"indexed": false, "name": "redeemAmount", "type": "uint256"}, {"indexed": false, "name": "redeemTokens", "type": "uint256"}], "name": "Redeem", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "borrower", "type": "address"}, {"indexed": false, "name": "borrowAmount", "type": "uint256"}, {"indexed": false, "name": "accountBorrows", "type": "uint256"}, {"indexed": false, "name": "totalBorrows", "type": "uint256"}], "name": "Borrow", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "payer", "type": "address"}, {"indexed": false, "name": "borrower", "type": "address"}, {"indexed": false, "name": "repayAmount", "type": "uint256"}, {"indexed": false, "name": "accountBorrows", "type": "uint256"}, {"indexed": false, "name": "totalBorrows", "type": "uint256"}], "name": "RepayBorrow", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "liquidator", "type": "address"}, {"indexed": false, "name": "borrower", "type": "address"}, {"indexed": false, "name": "repayAmount", "type": "uint256"}, {"indexed": false, "name": "cTokenCollateral", "type": "address"}, {"indexed": false, "name": "seizeTokens", "type": "uint256"}], "name": "LiquidateBorrow", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "oldPendingAdmin", "type": "address"}, {"indexed": false, "name": "newPendingAdmin", "type": "address"}], "name": "NewPendingAdmin", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "oldAdmin", "type": "address"}, {"indexed": false, "name": "newAdmin", "type": "address"}], "name": "NewAdmin", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "oldComptroller", "type": "address"}, {"indexed": false, "name": "newComptroller", "type": "address"}], "name": "NewComptroller", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "oldInterestRateModel", "type": "address"}, {"indexed": false, "name": "newInterestRateModel", "type": "address"}], "name": "NewMarketInterestRateModel", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "oldReserveFactorMantissa", "type": "uint256"}, {"indexed": false, "name": "newReserveFactorMantissa", "type": "uint256"}], "name": "NewReserveFactor", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "admin", "type": "address"}, {"indexed": false, "name": "reduceAmount", "type": "uint256"}, {"indexed": false, "name": "newTotalReserves", "type": "uint256"}], "name": "ReservesReduced", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "error", "type": "uint256"}, {"indexed": false, "name": "info", "type": "uint256"}, {"indexed": false, "name": "detail", "type": "uint256"}], "name": "Failure", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "from", "type": "address"}, {"indexed": true, "name": "to", "type": "address"}, {"indexed": false, "name": "amount", "type": "uint256"}], "name": "Transfer", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "owner", "type": "address"}, {"indexed": true, "name": "spender", "type": "address"}, {"indexed": false, "name": "amount", "type": "uint256"}], "name": "Approval", "type": "event"}], "compiler": {"name": "solc", "settings": {"optimize": false}, "version": "0.5.10+commit.5a6ea5b1"}, "deployment_bytecode": {"bytecode": "0x60806040523480156200001157600080fd5b5060405162008ac538038062008ac5833981810160405260e08110156200003757600080fd5b810190808051906020019092919080519060200190929190805190602001909291908051906020019092919080516401000000008111156200007857600080fd5b828101905060208101848111156200008f57600080fd5b8151856001820283011164010000000082111715620000ad57600080fd5b50509291906020018051640100000000811115620000ca57600080fd5b82810190506020810184811115620000e157600080fd5b8151856001820283011164010000000082111715620000ff57600080fd5b505092919060200180519060200190929190505050858585858585600160008190555033600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083600881905550600060085411620001c7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603081526020018062008a956030913960400191505060405180910390fd5b6000620001da876200043360201b60201c565b905060006010811115620001ea57fe5b81146200025f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f53657474696e6720636f6d7074726f6c6c6572206661696c656400000000000081525060200191505060405180910390fd5b6200026f620006b360201b60201c565b600a81905550670de0b6b3a7640000600b819055506200029586620006bb60201b60201c565b905060006010811115620002a557fe5b8114620002fe576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602281526020018062008a736022913960400191505060405180910390fd5b836001908051906020019062000316929190620009e9565b5082600290805190602001906200032f929190620009e9565b50816003819055505050505050505086601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015620003e857600080fd5b505afa158015620003fd573d6000803e3d6000fd5b505050506040513d60208110156200041457600080fd5b8101908080519060200190929190505050505050505050505062000a98565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614620004a7576200049f6001603f6200097260201b60201c565b9050620006ae565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508273ffffffffffffffffffffffffffffffffffffffff16627e3dd26040518163ffffffff1660e01b815260040160206040518083038186803b1580156200051457600080fd5b505afa15801562000529573d6000803e3d6000fd5b505050506040513d60208110156200054057600080fd5b8101908080519060200190929190505050620005c4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f6d61726b6572206d6574686f642072657475726e65642066616c73650000000081525060200191505060405180910390fd5b82600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f7ac369dbd14fa5ea3f473ed67cc9d598964a77501540ba6751eb0b3decf5870d8184604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a160006010811115620006aa57fe5b9150505b919050565b600043905090565b600080600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614620007315762000728600160426200097260201b60201c565b9150506200096d565b62000741620006b360201b60201c565b600a541462000767576200075e600a60416200097260201b60201c565b9150506200096d565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508273ffffffffffffffffffffffffffffffffffffffff16632191f92a6040518163ffffffff1660e01b815260040160206040518083038186803b158015620007d357600080fd5b505afa158015620007e8573d6000803e3d6000fd5b505050506040513d6020811015620007ff57600080fd5b810190808051906020019092919050505062000883576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f6d61726b6572206d6574686f642072657475726e65642066616c73650000000081525060200191505060405180910390fd5b82600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fedffc32e068c7c95dfd4bdfd5c4d939a084d6b11c4199eac8436ed234d72f9268184604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a1600060108111156200096957fe5b9150505b919050565b60007f45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa0836010811115620009a257fe5b83604d811115620009af57fe5b600060405180848152602001838152602001828152602001935050505060405180910390a1826010811115620009e157fe5b905092915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1062000a2c57805160ff191683800117855562000a5d565b8280016001018555821562000a5d579182015b8281111562000a5c57825182559160200191906001019062000a3f565b5b50905062000a6c919062000a70565b5090565b62000a9591905b8082111562000a9157600081600090555060010162000a77565b5090565b90565b617fcb8062000aa86000396000f3fe608060405234801561001057600080fd5b506004361061028a5760003560e01c80638f840ddd1161015c578063c37f68e2116100ce578063f3fdb15a11610087578063f3fdb15a14610d44578063f5e3c46214610d8e578063f851a44014610e10578063f8f9da2814610e5a578063fca7820b14610e78578063fe9c44ae14610eba5761028a565b8063c37f68e214610b65578063c5ebeaec14610bd2578063db006a7514610c14578063dd62ed3e14610c56578063e9c714f214610cce578063f2b3abbd14610cec5761028a565b8063a9059cbb11610120578063a9059cbb146109cb578063aa5af0fd14610a31578063ae9d70b014610a4f578063b2a02ff114610a6d578063b71d1a0c14610aef578063bd6d894d14610b475761028a565b80638f840ddd1461087257806395d89b411461089057806395dd919314610913578063a0712d681461096b578063a6afed95146109ad5761028a565b80633af9e66911610200578063675d972c116101b9578063675d972c146107345780636c540baf146107525780636f307dc31461077057806370a08231146107ba57806373acee9814610812578063852a12e3146108305761028a565b80633af9e669146105bc5780633b1d21a2146106145780634576b5db1461063257806347bd37181461068a5780635fe3b567146106a8578063601a0bf1146106f25761028a565b806318160ddd1161025257806318160ddd14610430578063182df0f51461044e57806323b872dd1461046c5780632608f818146104f25780632678224714610554578063313ce5671461059e5761028a565b806306fdde031461028f578063095ea7b3146103125780630e75270214610378578063173b9904146103ba57806317bfdfbc146103d8575b600080fd5b610297610edc565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156102d75780820151818401526020810190506102bc565b50505050905090810190601f1680156103045780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61035e6004803603604081101561032857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610f7a565b604051808215151515815260200191505060405180910390f35b6103a46004803603602081101561038e57600080fd5b8101908080359060200190929190505050611071565b6040518082815260200191505060405180910390f35b6103c2611083565b6040518082815260200191505060405180910390f35b61041a600480360360208110156103ee57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611089565b6040518082815260200191505060405180910390f35b6104386111b1565b6040518082815260200191505060405180910390f35b6104566111b7565b6040518082815260200191505060405180910390f35b6104d86004803603606081101561048257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061123f565b604051808215151515815260200191505060405180910390f35b61053e6004803603604081101561050857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506112f2565b6040518082815260200191505060405180910390f35b61055c611306565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6105a661132c565b6040518082815260200191505060405180910390f35b6105fe600480360360208110156105d257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611332565b6040518082815260200191505060405180910390f35b61061c6113d2565b6040518082815260200191505060405180910390f35b6106746004803603602081101561064857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506113e1565b6040518082815260200191505060405180910390f35b610692611652565b6040518082815260200191505060405180910390f35b6106b0611658565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61071e6004803603602081101561070857600080fd5b810190808035906020019092919050505061167e565b6040518082815260200191505060405180910390f35b61073c61175d565b6040518082815260200191505060405180910390f35b61075a611763565b6040518082815260200191505060405180910390f35b610778611769565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6107fc600480360360208110156107d057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061178f565b6040518082815260200191505060405180910390f35b61081a6117d8565b6040518082815260200191505060405180910390f35b61085c6004803603602081101561084657600080fd5b81019080803590602001909291905050506118f8565b6040518082815260200191505060405180910390f35b61087a61190a565b6040518082815260200191505060405180910390f35b610898611910565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156108d85780820151818401526020810190506108bd565b50505050905090810190601f1680156109055780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6109556004803603602081101561092957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506119ae565b6040518082815260200191505060405180910390f35b6109976004803603602081101561098157600080fd5b8101908080359060200190929190505050611a39565b6040518082815260200191505060405180910390f35b6109b5611a4b565b6040518082815260200191505060405180910390f35b610a17600480360360408110156109e157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611f7e565b604051808215151515815260200191505060405180910390f35b610a39612030565b6040518082815260200191505060405180910390f35b610a57612036565b6040518082815260200191505060405180910390f35b610ad960048036036060811015610a8357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506123ed565b6040518082815260200191505060405180910390f35b610b3160048036036020811015610b0557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506129f4565b6040518082815260200191505060405180910390f35b610b4f612b73565b6040518082815260200191505060405180910390f35b610ba760048036036020811015610b7b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612c98565b6040518085815260200184815260200183815260200182815260200194505050505060405180910390f35b610bfe60048036036020811015610be857600080fd5b8101908080359060200190929190505050612dc0565b6040518082815260200191505060405180910390f35b610c4060048036036020811015610c2a57600080fd5b8101908080359060200190929190505050612dd2565b6040518082815260200191505060405180910390f35b610cb860048036036040811015610c6c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612de4565b6040518082815260200191505060405180910390f35b610cd6612e6b565b6040518082815260200191505060405180910390f35b610d2e60048036036020811015610d0257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613188565b6040518082815260200191505060405180910390f35b610d4c6131d8565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610dfa60048036036060811015610da457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506131fe565b6040518082815260200191505060405180910390f35b610e18613214565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610e6261323a565b6040518082815260200191505060405180910390f35b610ea460048036036020811015610e8e57600080fd5b8101908080359060200190929190505050613376565b6040518082815260200191505060405180910390f35b610ec2613455565b604051808215151515815260200191505060405180910390f35b60018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610f725780601f10610f4757610100808354040283529160200191610f72565b820191906000526020600020905b815481529060010190602001808311610f5557829003601f168201915b505050505081565b60008033905082601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925856040518082815260200191505060405180910390a3600191505092915050565b600061107c8261345a565b9050919050565b60095481565b600060016000808282540192505081905550600080549050600060108111156110ae57fe5b6110b6611a4b565b14611129576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f61636372756520696e746572657374206661696c65640000000000000000000081525060200191505060405180910390fd5b611132836119ae565b915060005481146111ab576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b50919050565b600e5481565b60008060006111c461353b565b91509150600060038111156111d557fe5b8260038111156111e157fe5b14611237576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526035815260200180617f0a6035913960400191505060405180910390fd5b809250505090565b6000600160008082825401925050819055506000805490506000601081111561126457fe5b61127033878787613610565b14915060005481146112ea576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b509392505050565b60006112fe8383613ce3565b905092915050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60035481565b600061133c617bb7565b604051806020016040528061134f612b73565b81525090506000806113a083600f60008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054613dc5565b91509150600060038111156113b157fe5b8260038111156113bd57fe5b146113c757600080fd5b809350505050919050565b60006113dc613e28565b905090565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461144b576114446001603f613f0e565b905061164d565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508273ffffffffffffffffffffffffffffffffffffffff16627e3dd26040518163ffffffff1660e01b815260040160206040518083038186803b1580156114b757600080fd5b505afa1580156114cb573d6000803e3d6000fd5b505050506040513d60208110156114e157600080fd5b8101908080519060200190929190505050611564576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f6d61726b6572206d6574686f642072657475726e65642066616c73650000000081525060200191505060405180910390fd5b82600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f7ac369dbd14fa5ea3f473ed67cc9d598964a77501540ba6751eb0b3decf5870d8184604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a16000601081111561164957fe5b9150505b919050565b600c5481565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006001600080828254019250508190555060008054905060006116a0611a4b565b9050600060108111156116af57fe5b81146116d3576116cb8160108111156116c457fe5b6030613f0e565b9250506116e0565b6116dc84613f82565b9250505b6000548114611757576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b50919050565b60085481565b600a5481565b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600f60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600060016000808282540192505081905550600080549050600060108111156117fd57fe5b611805611a4b565b14611878576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f61636372756520696e746572657374206661696c65640000000000000000000081525060200191505060405180910390fd5b600c54915060005481146118f4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b5090565b60006119038261420b565b9050919050565b600d5481565b60028054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156119a65780601f1061197b576101008083540402835291602001916119a6565b820191906000526020600020905b81548152906001019060200180831161198957829003601f168201915b505050505081565b60008060006119bc846142ed565b91509150600060038111156119cd57fe5b8260038111156119d957fe5b14611a2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526037815260200180617dfe6037913960400191505060405180910390fd5b8092505050919050565b6000611a44826143f8565b9050919050565b6000611a55617bca565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166315f24053611a9b613e28565b600c54600d546040518463ffffffff1660e01b8152600401808481526020018381526020018281526020019350505050604080518083038186803b158015611ae257600080fd5b505afa158015611af6573d6000803e3d6000fd5b505050506040513d6040811015611b0c57600080fd5b8101908080519060200190929190805190602001909291905050508260200183604001828152508281525050506601c6bf5263400081604001511115611bba576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f626f72726f772072617465206973206162737572646c7920686967680000000081525060200191505060405180910390fd5b6000816020015114611bdf57611bd76005600283602001516144d8565b915050611f7b565b611be761454c565b816060018181525050611c008160600151600a54614554565b826000018360800182815250826003811115611c1857fe5b6003811115611c2357fe5b815250505060006003811115611c3557fe5b81600001516003811115611c4557fe5b14611c4c57fe5b611c6c60405180602001604052808360400151815250826080015161457f565b809050826000018360a001829052826003811115611c8657fe5b6003811115611c9157fe5b815250505060006003811115611ca357fe5b81600001516003811115611cb357fe5b14611cdc57611cd46009600683600001516003811115611ccf57fe5b6144d8565b915050611f7b565b611cec8160a00151600c54613dc5565b826000018360c00182815250826003811115611d0457fe5b6003811115611d0f57fe5b815250505060006003811115611d2157fe5b81600001516003811115611d3157fe5b14611d5a57611d526009600183600001516003811115611d4d57fe5b6144d8565b915050611f7b565b611d6a8160c00151600c546145fd565b826000018360e00182815250826003811115611d8257fe5b6003811115611d8d57fe5b815250505060006003811115611d9f57fe5b81600001516003811115611daf57fe5b14611dd857611dd06009600483600001516003811115611dcb57fe5b6144d8565b915050611f7b565b611df960405180602001604052806009548152508260c00151600d5461462f565b82600001836101000182815250826003811115611e1257fe5b6003811115611e1d57fe5b815250505060006003811115611e2f57fe5b81600001516003811115611e3f57fe5b14611e6857611e606009600583600001516003811115611e5b57fe5b6144d8565b915050611f7b565b611e7b8160a00151600b54600b5461462f565b82600001836101200182815250826003811115611e9457fe5b6003811115611e9f57fe5b815250505060006003811115611eb157fe5b81600001516003811115611ec157fe5b14611eea57611ee26009600383600001516003811115611edd57fe5b6144d8565b915050611f7b565b8060600151600a81905550806101200151600b819055508060e00151600c81905550806101000151600d819055507f875352fb3fadeb8c0be7cbbe8ff761b308fa7033470cd0287f02f3436fd76cb98160c00151826101200151600c5460405180848152602001838152602001828152602001935050505060405180910390a160006010811115611f7757fe5b9150505b90565b60006001600080828254019250508190555060008054905060006010811115611fa357fe5b611faf33338787613610565b1491506000548114612029576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b5092915050565b600b5481565b6000806120416111b7565b9050600080600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166315f2405361208c613e28565b600c54600d546040518463ffffffff1660e01b8152600401808481526020018381526020018281526020019350505050604080518083038186803b1580156120d357600080fd5b505afa1580156120e7573d6000803e3d6000fd5b505050506040513d60408110156120fd57600080fd5b8101908080519060200190929190805190602001909291905050509150915060008214612175576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526031815260200180617e9d6031913960400191505060405180910390fd5b600061217f617bb7565b612199604051806020016040528087815250600e5461457f565b91509150600060038111156121aa57fe5b8260038111156121b657fe5b1461220c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526031815260200180617e356031913960400191505060405180910390fd5b6000612216617bb7565b612222600c548461469a565b915091506000600381111561223357fe5b82600381111561223f57fe5b14612295576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526031815260200180617d796031913960400191505060405180910390fd5b600061229f617bb7565b6122cf6040518060200160405280670de0b6b3a76400008152506040518060200160405280600954815250614716565b91509150600060038111156122e057fe5b8260038111156122ec57fe5b14612342576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603c815260200180617ece603c913960400191505060405180910390fd5b600061234c617bb7565b61236560405180602001604052808b8152508487614759565b915091506000600381111561237657fe5b82600381111561238257fe5b146123d8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526031815260200180617dcd6031913960400191505060405180910390fd5b80600001519b50505050505050505050505090565b6000600160008082825401925050819055506000805490506000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d02f735130338989896040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200195505050505050602060405180830381600087803b15801561254c57600080fd5b505af1158015612560573d6000803e3d6000fd5b505050506040513d602081101561257657600080fd5b81019080805190602001909291905050509050600081146125a65761259e6003601b836144d8565b925050612975565b8573ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156125ee576125e66006601c613f0e565b925050612975565b600080600061263c600f60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205488614554565b80935081945050506000600381111561265157fe5b83600381111561265d57fe5b146126855761267a6009601a85600381111561267557fe5b6144d8565b955050505050612975565b6126ce600f60008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054886145fd565b8092508194505050600060038111156126e357fe5b8360038111156126ef57fe5b146127175761270c6009601985600381111561270757fe5b6144d8565b955050505050612975565b81600f60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080600f60008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508873ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef896040518082815260200191505060405180910390a3600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636d35bf9130338c8c8c6040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200195505050505050600060405180830381600087803b15801561294957600080fd5b505af115801561295d573d6000803e3d6000fd5b505050506000601081111561296e57fe5b9550505050505b60005481146129ec576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b509392505050565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612a5e57612a5760016045613f0e565b9050612b6e565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905082600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a98184604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a160006010811115612b6a57fe5b9150505b919050565b60006001600080828254019250508190555060008054905060006010811115612b9857fe5b612ba0611a4b565b14612c13576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f61636372756520696e746572657374206661696c65640000000000000000000081525060200191505060405180910390fd5b612c1b6111b7565b91506000548114612c94576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b5090565b6000806000806000600f60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000806000612cf0896142ed565b809450819250505060006003811115612d0557fe5b816003811115612d1157fe5b14612d425760096010811115612d2357fe5b6000806000829250819150809050975097509750975050505050612db9565b612d4a61353b565b809350819250505060006003811115612d5f57fe5b816003811115612d6b57fe5b14612d9c5760096010811115612d7d57fe5b6000806000829250819150809050975097509750975050505050612db9565b60006010811115612da957fe5b8484849750975097509750505050505b9193509193565b6000612dcb826147bf565b9050919050565b6000612ddd8261489f565b9050919050565b6000601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141580612ef65750600073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b15612f0e57612f0760016000613f0e565b9050613185565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507ff9ffabca9c8276e99321725bcb43fb076a6c66a54b7f21c4e8146d8519b417dc82600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a17fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a981600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a16000601081111561318057fe5b925050505b90565b600080613193611a4b565b9050600060108111156131a257fe5b81146131c6576131be8160108111156131b757fe5b6040613f0e565b9150506131d3565b6131cf83614981565b9150505b919050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600061320b848484614c17565b90509392505050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166315f24053613285613e28565b600c54600d546040518463ffffffff1660e01b8152600401808481526020018381526020018281526020019350505050604080518083038186803b1580156132cc57600080fd5b505afa1580156132e0573d6000803e3d6000fd5b505050506040513d60408110156132f657600080fd5b810190808051906020019092919080519060200190929190505050915091506000821461336e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526037815260200180617e666037913960400191505060405180910390fd5b809250505090565b6000600160008082825401925050819055506000805490506000613398611a4b565b9050600060108111156133a757fe5b81146133cb576133c38160108111156133bc57fe5b6046613f0e565b9250506133d8565b6133d484614db1565b9250505b600054811461344f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b50919050565b600181565b600060016000808282540192505081905550600080549050600061347c611a4b565b90506000601081111561348b57fe5b81146134af576134a78160108111156134a057fe5b6036613f0e565b9250506134be565b6134ba333386614ec4565b9250505b6000548114613535576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b50919050565b6000806000600e5414156135575760006008549150915061360c565b6000613561613e28565b9050600061356d617bb7565b600061357e84600c54600d5461563c565b80945081925050506000600381111561359357fe5b81600381111561359f57fe5b146135b757806000809050955095505050505061360c565b6135c383600e54615698565b8093508192505050600060038111156135d857fe5b8160038111156135e457fe5b146135fc57806000809050955095505050505061360c565b6000826000015195509550505050505b9091565b600080600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bdcdc258308787876040518563ffffffff1660e01b8152600401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828152602001945050505050602060405180830381600087803b15801561372457600080fd5b505af1158015613738573d6000803e3d6000fd5b505050506040513d602081101561374e57600080fd5b810190808051906020019092919050505090506000811461377e576137766003604a836144d8565b915050613cdb565b8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156137c6576137be6002604b613f0e565b915050613cdb565b60008090508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff161415613827577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90506138a7565b601060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490505b6000806000806138b78589614554565b8094508195505050600060038111156138cc57fe5b8460038111156138d857fe5b146138f6576138e96009604b613f0e565b9650505050505050613cdb565b61393f600f60008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205489614554565b80935081955050506000600381111561395457fe5b84600381111561396057fe5b1461397e576139716009604c613f0e565b9650505050505050613cdb565b6139c7600f60008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054896145fd565b8092508195505050600060038111156139dc57fe5b8460038111156139e857fe5b14613a06576139f96009604d613f0e565b9650505050505050613cdb565b81600f60008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080600f60008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8514613b375782601060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b8873ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8a6040518082815260200191505060405180910390a3600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636a56947e308c8c8c6040518563ffffffff1660e01b8152600401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828152602001945050505050600060405180830381600087803b158015613cad57600080fd5b505af1158015613cc1573d6000803e3d6000fd5b5050505060006010811115613cd257fe5b96505050505050505b949350505050565b6000600160008082825401925050819055506000805490506000613d05611a4b565b905060006010811115613d1457fe5b8114613d3857613d30816010811115613d2957fe5b6035613f0e565b925050613d47565b613d43338686614ec4565b9250505b6000548114613dbe576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b5092915050565b6000806000613dd2617bb7565b613ddc868661457f565b9150915060006003811115613ded57fe5b826003811115613df957fe5b14613e0f57816000809050935093505050613e21565b6000613e1a8261576c565b9350935050505b9250929050565b600080601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015613ecd57600080fd5b505afa158015613ee1573d6000803e3d6000fd5b505050506040513d6020811015613ef757600080fd5b810190808051906020019092919050505091505090565b60007f45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa0836010811115613f3d57fe5b83604d811115613f4957fe5b600060405180848152602001838152602001828152602001935050505060405180910390a1826010811115613f7a57fe5b905092915050565b6000806000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614613ff157613fe860016031613f0e565b92505050614206565b613ff961454c565b600a54146140165761400d600a6033613f0e565b92505050614206565b8361401f613e28565b101561403a57614031600e6032613f0e565b92505050614206565b600d548411156140595761405060026034613f0e565b92505050614206565b83600d54039050600d548111156140bb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180617f736024913960400191505060405180910390fd5b80600d819055506140ee600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168561578b565b9150600060108111156140fd57fe5b82601081111561410957fe5b1461415f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526023815260200180617daa6023913960400191505060405180910390fd5b7f3bad0c59cf2f06e7314077049f48a93578cd16f5ef92329f1dab1420a99c177e600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168583604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828152602001935050505060405180910390a16000601081111561420157fe5b925050505b919050565b600060016000808282540192505081905550600080549050600061422d611a4b565b90506000601081111561423c57fe5b81146142605761425881601081111561425157fe5b6027613f0e565b925050614270565b61426c3360008661589e565b9250505b60005481146142e7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b50919050565b600080600080600080601160008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000816000015414156143575760008080905095509550505050506143f3565b6143678160000154600b54616092565b80945081955050506000600381111561437c57fe5b84600381111561438857fe5b146143a05783600080905095509550505050506143f3565b6143ae8382600101546160e5565b8093508195505050600060038111156143c357fe5b8460038111156143cf57fe5b146143e75783600080905095509550505050506143f3565b60008295509550505050505b915091565b600060016000808282540192505081905550600080549050600061441a611a4b565b90506000601081111561442957fe5b811461444d5761444581601081111561443e57fe5b601e613f0e565b92505061445b565b6144573385616119565b9250505b60005481146144d2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b50919050565b60007f45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa084601081111561450757fe5b84604d81111561451357fe5b8460405180848152602001838152602001828152602001935050505060405180910390a183601081111561454357fe5b90509392505050565b600043905090565b60008083831161456c57600083850391509150614578565b60036000809050915091505b9250929050565b6000614589617bb7565b60008061459a866000015186616092565b91509150600060038111156145ab57fe5b8260038111156145b757fe5b146145db5781604051806020016040528060008152508090509350935050506145f6565b60006040518060200160405280838152508090509350935050505b9250929050565b6000806000838501905084811061461b576000819250925050614628565b6002600080905092509250505b9250929050565b600080600061463c617bb7565b614646878761457f565b915091506000600381111561465757fe5b82600381111561466357fe5b1461467957816000809050935093505050614692565b61468b6146858261576c565b866145fd565b9350935050505b935093915050565b60006146a4617bb7565b6000806146b9670de0b6b3a764000087616092565b91509150600060038111156146ca57fe5b8260038111156146d657fe5b146146fa57816040518060200160405280600081525080905093509350505061470f565b614708818660000151615698565b9350935050505b9250929050565b6000614720617bb7565b60008061473586600001518660000151614554565b91509150816040518060200160405280838152508090509350935050509250929050565b6000614763617bb7565b600061476d617bb7565b61477787876167d2565b915091506000600381111561478857fe5b82600381111561479457fe5b146147a65781819350935050506147b7565b6147b081866167d2565b9350935050505b935093915050565b60006001600080828254019250508190555060008054905060006147e1611a4b565b9050600060108111156147f057fe5b81146148145761480c81601081111561480557fe5b6008613f0e565b925050614822565b61481e33856168f3565b9250505b6000548114614899576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b50919050565b60006001600080828254019250508190555060008054905060006148c1611a4b565b9050600060108111156148d057fe5b81146148f4576148ec8160108111156148e557fe5b6027613f0e565b925050614904565b6149003385600061589e565b9250505b600054811461497b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b50919050565b600080600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146149ed576149e560016042613f0e565b915050614c12565b6149f561454c565b600a5414614a1157614a09600a6041613f0e565b915050614c12565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508273ffffffffffffffffffffffffffffffffffffffff16632191f92a6040518163ffffffff1660e01b815260040160206040518083038186803b158015614a7c57600080fd5b505afa158015614a90573d6000803e3d6000fd5b505050506040513d6020811015614aa657600080fd5b8101908080519060200190929190505050614b29576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f6d61726b6572206d6574686f642072657475726e65642066616c73650000000081525060200191505060405180910390fd5b82600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fedffc32e068c7c95dfd4bdfd5c4d939a084d6b11c4199eac8436ed234d72f9268184604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a160006010811115614c0e57fe5b9150505b919050565b6000600160008082825401925050819055506000805490506000614c39611a4b565b905060006010811115614c4857fe5b8114614c6c57614c64816010811115614c5d57fe5b600f613f0e565b925050614d32565b8373ffffffffffffffffffffffffffffffffffffffff1663a6afed956040518163ffffffff1660e01b8152600401602060405180830381600087803b158015614cb457600080fd5b505af1158015614cc8573d6000803e3d6000fd5b505050506040513d6020811015614cde57600080fd5b8101908080519060200190929190505050905060006010811115614cfe57fe5b8114614d2257614d1a816010811115614d1357fe5b6010613f0e565b925050614d32565b614d2e33878787616ed5565b9250505b6000548114614da9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b509392505050565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614614e1b57614e1460016047613f0e565b9050614ebf565b614e2361454c565b600a5414614e3e57614e37600a6048613f0e565b9050614ebf565b670de0b6b3a7640000821115614e6157614e5a60026049613f0e565b9050614ebf565b60006009549050826009819055507faaa68312e2ea9d50e16af5068410ab56e1a1fd06037b1a35664812c30f8214608184604051808381526020018281526020019250505060405180910390a160006010811115614ebb57fe5b9150505b919050565b600080600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166324008a62308787876040518563ffffffff1660e01b8152600401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828152602001945050505050602060405180830381600087803b158015614fd857600080fd5b505af1158015614fec573d6000803e3d6000fd5b505050506040513d602081101561500257600080fd5b81019080805190602001909291905050509050600081146150325761502a60036038836144d8565b915050615635565b61503a61454c565b600a54146150565761504e600a6039613f0e565b915050615635565b61505e617c2e565b601160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101548160600181815250506150b3856142ed565b8260200183608001828152508260038111156150cb57fe5b60038111156150d657fe5b8152505050600060038111156150e857fe5b816020015160038111156150f857fe5b1461512257615119600960378360200151600381111561511457fe5b6144d8565b92505050615635565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff84141561515d578060800151816040018181525050615168565b838160400181815250505b615176868260400151617813565b8160000190601081111561518657fe5b9081601081111561519357fe5b81525050600060108111156151a457fe5b816000015160108111156151b457fe5b146151d1576151c88160000151603c613f0e565b92505050615635565b6151e381608001518260400151614554565b826020018360a001828152508260038111156151fb57fe5b600381111561520657fe5b81525050506000600381111561521857fe5b8160200151600381111561522857fe5b14615252576152496009603a8360200151600381111561524457fe5b6144d8565b92505050615635565b615262600c548260400151614554565b826020018360c0018281525082600381111561527a57fe5b600381111561528557fe5b81525050506000600381111561529757fe5b816020015160038111156152a757fe5b146152d1576152c86009603b836020015160038111156152c357fe5b6144d8565b92505050615635565b6152df868260400151617a0d565b816000019060108111156152ef57fe5b908160108111156152fc57fe5b815250506000601081111561530d57fe5b8160000151601081111561531d57fe5b14615390576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f726570617920626f72726f77207472616e7366657220696e206661696c65640081525060200191505060405180910390fd5b8060a00151601160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000181905550600b54601160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101819055508060c00151600c819055507f1a2a22cb034d26d1854bdc6666a5b91fe25efbbb5dcad3b0355478d6f5c362a1868683604001518460a001518560c00151604051808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018481526020018381526020018281526020019550505050505060405180910390a1600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631ededc91308888856040015186606001516040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200182815260200195505050505050600060405180830381600087803b15801561560b57600080fd5b505af115801561561f573d6000803e3d6000fd5b505050506000601081111561563057fe5b925050505b9392505050565b60008060008061564c87876145fd565b915091506000600381111561565d57fe5b82600381111561566957fe5b1461567f57816000809050935093505050615690565b6156898186614554565b9350935050505b935093915050565b60006156a2617bb7565b6000806156b786670de0b6b3a7640000616092565b91509150600060038111156156c857fe5b8260038111156156d457fe5b146156f8578160405180602001604052806000815250809050935093505050615765565b60008061570583886160e5565b915091506000600381111561571657fe5b82600381111561572257fe5b146157485781604051806020016040528060008152508090509550955050505050615765565b600060405180602001604052808381525080905095509550505050505b9250929050565b6000670de0b6b3a764000082600001518161578357fe5b049050919050565b600080601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060008173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb86866040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b15801561583c57600080fd5b505af1158015615850573d6000803e3d6000fd5b505050503d6000811461586a576020811461587457600080fd5b6000199150615880565b60206000803e60005191505b508061589157601092505050615898565b6000925050505b92915050565b6000808314806158ae5750600082145b615903576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526034815260200180617f3f6034913960400191505060405180910390fd5b61590b617c81565b61591361353b565b82602001836040018281525082600381111561592b57fe5b600381111561593657fe5b81525050506000600381111561594857fe5b8160200151600381111561595857fe5b14615981576159796009602b8360200151600381111561597457fe5b6144d8565b91505061608b565b6000841115615a2357838160600181815250506159b06040518060200160405280836040015181525085613dc5565b8260200183608001828152508260038111156159c857fe5b60038111156159d357fe5b8152505050600060038111156159e557fe5b816020015160038111156159f557fe5b14615a1e57615a166009602983602001516003811115615a1157fe5b6144d8565b91505061608b565b615ab8565b615a3f8360405180602001604052808460400151815250617b54565b826020018360600182815250826003811115615a5757fe5b6003811115615a6257fe5b815250505060006003811115615a7457fe5b81602001516003811115615a8457fe5b14615aad57615aa56009602a83602001516003811115615aa057fe5b6144d8565b91505061608b565b828160800181815250505b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663eabe7d91308885606001516040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b158015615b9b57600080fd5b505af1158015615baf573d6000803e3d6000fd5b505050506040513d6020811015615bc557600080fd5b8101908080519060200190929190505050905060008114615bf657615bed60036028836144d8565b9250505061608b565b615bfe61454c565b600a5414615c1b57615c12600a602c613f0e565b9250505061608b565b615c2b600e548360600151614554565b836020018460a00182815250826003811115615c4357fe5b6003811115615c4e57fe5b815250505060006003811115615c6057fe5b82602001516003811115615c7057fe5b14615c9a57615c916009602e84602001516003811115615c8c57fe5b6144d8565b9250505061608b565b615ce7600f60008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548360600151614554565b836020018460c00182815250826003811115615cff57fe5b6003811115615d0a57fe5b815250505060006003811115615d1c57fe5b82602001516003811115615d2c57fe5b14615d5657615d4d6009602d84602001516003811115615d4857fe5b6144d8565b9250505061608b565b8160800151615d63613e28565b1015615d7e57615d75600e602f613f0e565b9250505061608b565b615d8c86836080015161578b565b82600001906010811115615d9c57fe5b90816010811115615da957fe5b8152505060006010811115615dba57fe5b82600001516010811115615dca57fe5b14615e3d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f72656465656d207472616e73666572206f7574206661696c656400000000000081525060200191505060405180910390fd5b8160a00151600e819055508160c00151600f60008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055503073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84606001516040518082815260200191505060405180910390a37fe5b754fb1abb7f01b499791d0b820ae3b6af3424ac1c59768edb53f4ec31a9298683608001518460600151604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828152602001935050505060405180910390a1600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166351dff9893088856080015186606001516040518563ffffffff1660e01b8152600401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828152602001945050505050600060405180830381600087803b15801561606157600080fd5b505af1158015616075573d6000803e3d6000fd5b505050506000601081111561608657fe5b925050505b9392505050565b60008060008414156160ad57600080809050915091506160de565b60008385029050838582816160be57fe5b04146160d5576002600080905092509250506160de565b60008192509250505b9250929050565b6000806000831415616101576001600080905091509150616112565b600083858161610c57fe5b04915091505b9250929050565b600080600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634ef4c3e13086866040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1580156161f957600080fd5b505af115801561620d573d6000803e3d6000fd5b505050506040513d602081101561622357600080fd5b81019080805190602001909291905050509050600081146162535761624b6003601f836144d8565b9150506167cc565b61625b61454c565b600a54146162775761626f600a6022613f0e565b9150506167cc565b61627f617cd4565b6162898585617813565b8160000190601081111561629957fe5b908160108111156162a657fe5b81525050600060108111156162b757fe5b816000015160108111156162c757fe5b146162e4576162db81600001516026613f0e565b925050506167cc565b6162ec61353b565b82602001836040018281525082600381111561630457fe5b600381111561630f57fe5b81525050506000600381111561632157fe5b8160200151600381111561633157fe5b1461635b57616352600960218360200151600381111561634d57fe5b6144d8565b925050506167cc565b6163778460405180602001604052808460400151815250617b54565b82602001836060018281525082600381111561638f57fe5b600381111561639a57fe5b8152505050600060038111156163ac57fe5b816020015160038111156163bc57fe5b146163e6576163dd60096020836020015160038111156163d857fe5b6144d8565b925050506167cc565b6163f6600e5482606001516145fd565b82602001836080018281525082600381111561640e57fe5b600381111561641957fe5b81525050506000600381111561642b57fe5b8160200151600381111561643b57fe5b146164655761645c600960248360200151600381111561645757fe5b6144d8565b925050506167cc565b6164b2600f60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205482606001516145fd565b826020018360a001828152508260038111156164ca57fe5b60038111156164d557fe5b8152505050600060038111156164e757fe5b816020015160038111156164f757fe5b1461652157616518600960238360200151600381111561651357fe5b6144d8565b925050506167cc565b61652b8585617a0d565b8160000190601081111561653b57fe5b9081601081111561654857fe5b815250506000601081111561655957fe5b8160000151601081111561656957fe5b146165865761657d81600001516025613f0e565b925050506167cc565b8060800151600e819055508060a00151600f60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f85858360600151604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828152602001935050505060405180910390a18473ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83606001516040518082815260200191505060405180910390a3600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166341c728b930878785606001516040518563ffffffff1660e01b8152600401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828152602001945050505050600060405180830381600087803b1580156167a257600080fd5b505af11580156167b6573d6000803e3d6000fd5b50505050600060108111156167c757fe5b925050505b92915050565b60006167dc617bb7565b6000806167f186600001518660000151616092565b915091506000600381111561680257fe5b82600381111561680e57fe5b146168325781604051806020016040528060008152508090509350935050506168ec565b6000806168516002670de0b6b3a76400008161684a57fe5b04846145fd565b915091506000600381111561686257fe5b82600381111561686e57fe5b1461689457816040518060200160405280600081525080905095509550505050506168ec565b6000806168a983670de0b6b3a76400006160e5565b91509150600060038111156168ba57fe5b8260038111156168c657fe5b146168cd57fe5b6000604051806020016040528083815250809050975097505050505050505b9250929050565b600080600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663da3d454c3086866040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1580156169d357600080fd5b505af11580156169e7573d6000803e3d6000fd5b505050506040513d60208110156169fd57600080fd5b8101908080519060200190929190505050905060008114616a2d57616a256003600e836144d8565b915050616ecf565b616a3561454c565b600a5414616a5057616a48600a80613f0e565b915050616ecf565b82616a59613e28565b1015616a7357616a6b600e6009613f0e565b915050616ecf565b616a7b617d20565b616a84856142ed565b826020018360400182815250826003811115616a9c57fe5b6003811115616aa757fe5b815250505060006003811115616ab957fe5b81602001516003811115616ac957fe5b14616af357616aea6009600783602001516003811115616ae557fe5b6144d8565b92505050616ecf565b616b018160400151856145fd565b826020018360600182815250826003811115616b1957fe5b6003811115616b2457fe5b815250505060006003811115616b3657fe5b81602001516003811115616b4657fe5b14616b7057616b676009600c83602001516003811115616b6257fe5b6144d8565b92505050616ecf565b616b7c600c54856145fd565b826020018360800182815250826003811115616b9457fe5b6003811115616b9f57fe5b815250505060006003811115616bb157fe5b81602001516003811115616bc157fe5b14616beb57616be26009600b83602001516003811115616bdd57fe5b6144d8565b92505050616ecf565b616bf5858561578b565b81600001906010811115616c0557fe5b90816010811115616c1257fe5b8152505060006010811115616c2357fe5b81600001516010811115616c3357fe5b14616ca6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f626f72726f77207472616e73666572206f7574206661696c656400000000000081525060200191505060405180910390fd5b8060600151601160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000181905550600b54601160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101819055508060800151600c819055507f13ed6866d4e1ee6da46f845c46d7e54120883d75c5ea9a2dacc1c4ca8984ab80858583606001518460800151604051808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200184815260200183815260200182815260200194505050505060405180910390a1600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635c7786053087876040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050600060405180830381600087803b158015616ea557600080fd5b505af1158015616eb9573d6000803e3d6000fd5b5050505060006010811115616eca57fe5b925050505b92915050565b600080600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635fc7e71e30858989896040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200195505050505050602060405180830381600087803b15801561701d57600080fd5b505af1158015617031573d6000803e3d6000fd5b505050506040513d602081101561704757600080fd5b81019080805190602001909291905050509050600081146170775761706f60036012836144d8565b91505061780b565b61707f61454c565b600a541461709b57617093600a6016613f0e565b91505061780b565b6170a361454c565b8373ffffffffffffffffffffffffffffffffffffffff16636c540baf6040518163ffffffff1660e01b815260040160206040518083038186803b1580156170e957600080fd5b505afa1580156170fd573d6000803e3d6000fd5b505050506040513d602081101561711357600080fd5b81019080805190602001909291905050501461713d57617135600a6011613f0e565b91505061780b565b8573ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156171855761717d60066017613f0e565b91505061780b565b60008414156171a25761719a60076015613f0e565b91505061780b565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8414156171de576171d660076014613f0e565b91505061780b565b600080600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c488847b3087896040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604080518083038186803b1580156172bb57600080fd5b505afa1580156172cf573d6000803e3d6000fd5b505050506040513d60408110156172e557600080fd5b81019080805190602001909291908051906020019092919050505091509150600082146173235761731960046013846144d8565b935050505061780b565b8473ffffffffffffffffffffffffffffffffffffffff166370a08231886040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156173a057600080fd5b505afa1580156173b4573d6000803e3d6000fd5b505050506040513d60208110156173ca57600080fd5b81019080805190602001909291905050508111156173f8576173ee600d601d613f0e565b935050505061780b565b6000617405898989614ec4565b90506000601081111561741457fe5b811461743b5761743081601081111561742957fe5b6018613f0e565b94505050505061780b565b60008673ffffffffffffffffffffffffffffffffffffffff1663b2a02ff18b8b866040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1580156174f857600080fd5b505af115801561750c573d6000803e3d6000fd5b505050506040513d602081101561752257600080fd5b810190808051906020019092919050505090506000601081111561754257fe5b81146175b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f746f6b656e207365697a757265206661696c656400000000000000000000000081525060200191505060405180910390fd5b7f298637f684da70674f26509b10f07ec2fbc77a335ab1e7d6215a4b2484d8bb528a8a8a8a87604051808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018481526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019550505050505060405180910390a1600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166347ef3b3b30898d8d8d896040518763ffffffff1660e01b8152600401808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018381526020018281526020019650505050505050600060405180830381600087803b1580156177de57600080fd5b505af11580156177f2573d6000803e3d6000fd5b505050506000601081111561780357fe5b955050505050505b949350505050565b600080601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050828173ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e86306040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060206040518083038186803b1580156178ed57600080fd5b505afa158015617901573d6000803e3d6000fd5b505050506040513d602081101561791757600080fd5b8101908080519060200190929190505050101561793857600c915050617a07565b828173ffffffffffffffffffffffffffffffffffffffff166370a08231866040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156179b657600080fd5b505afa1580156179ca573d6000803e3d6000fd5b505050506040513d60208110156179e057600080fd5b81019080805190602001909291905050501015617a0157600d915050617a07565b60009150505b92915050565b600080601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060008173ffffffffffffffffffffffffffffffffffffffff166323b872dd8630876040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050600060405180830381600087803b158015617af257600080fd5b505af1158015617b06573d6000803e3d6000fd5b505050503d60008114617b205760208114617b2a57600080fd5b6000199150617b36565b60206000803e60005191505b5080617b4757600f92505050617b4e565b6000925050505b92915050565b6000806000617b61617bb7565b617b6b868661469a565b9150915060006003811115617b7c57fe5b826003811115617b8857fe5b14617b9e57816000809050935093505050617bb0565b6000617ba98261576c565b9350935050505b9250929050565b6040518060200160405280600081525090565b60405180610140016040528060006003811115617be357fe5b815260200160008152602001600081526020016000815260200160008152602001617c0c617d65565b8152602001600081526020016000815260200160008152602001600081525090565b6040518060e0016040528060006010811115617c4657fe5b815260200160006003811115617c5857fe5b815260200160008152602001600081526020016000815260200160008152602001600081525090565b6040518060e0016040528060006010811115617c9957fe5b815260200160006003811115617cab57fe5b815260200160008152602001600081526020016000815260200160008152602001600081525090565b6040518060c0016040528060006010811115617cec57fe5b815260200160006003811115617cfe57fe5b8152602001600081526020016000815260200160008152602001600081525090565b6040518060a0016040528060006010811115617d3857fe5b815260200160006003811115617d4a57fe5b81526020016000815260200160008152602001600081525090565b604051806020016040528060008152509056fe737570706c7952617465506572426c6f636b3a2063616c63756c6174696e6720626f72726f7773506572206661696c6564726564756365207265736572766573207472616e73666572206f7574206661696c6564737570706c7952617465506572426c6f636b3a2063616c63756c6174696e6720737570706c7952617465206661696c6564626f72726f7742616c616e636553746f7265643a20626f72726f7742616c616e636553746f726564496e7465726e616c206661696c6564737570706c7952617465506572426c6f636b3a2063616c63756c6174696e6720756e6465726c79696e67206661696c6564626f72726f7752617465506572426c6f636b3a20696e746572657374526174654d6f64656c2e626f72726f7752617465206661696c6564737570706c7952617465506572426c6f636b3a2063616c63756c6174696e6720626f72726f7752617465206661696c6564737570706c7952617465506572426c6f636b3a2063616c63756c6174696e67206f6e654d696e757352657365727665466163746f72206661696c656465786368616e67655261746553746f7265643a2065786368616e67655261746553746f726564496e7465726e616c206661696c65646f6e65206f662072656465656d546f6b656e73496e206f722072656465656d416d6f756e74496e206d757374206265207a65726f72656475636520726573657276657320756e657870656374656420756e646572666c6f77a265627a7a72305820b76eb00b52d0da88071035fa273abb07e6e0b748adc4dd04608fe19e1fc65c9664736f6c634300050a003253657474696e6720696e7465726573742072617465206d6f64656c206661696c6564496e697469616c2065786368616e67652072617465206d7573742062652067726561746572207468616e207a65726f2e"}, "natspec": {"author": "Compound", "methods": {"_acceptAdmin()": {"details": "Admin function for pending admin to accept role and update admin", "return": "uint 0=success, otherwise a failure (see ErrorReporter.sol for details)"}, "_reduceReserves(uint256)": {"params": {"reduceAmount": "Amount of reduction to reserves"}, "return": "uint 0=success, otherwise a failure (see ErrorReporter.sol for details)"}, "_setComptroller(address)": {"details": "Admin function to set a new comptroller", "return": "uint 0=success, otherwise a failure (see ErrorReporter.sol for details)"}, "_setInterestRateModel(address)": {"details": "Admin function to accrue interest and update the interest rate model", "params": {"newInterestRateModel": "the new interest rate model to use"}, "return": "uint 0=success, otherwise a failure (see ErrorReporter.sol for details)"}, "_setPendingAdmin(address)": {"details": "Admin function to begin change of admin. The newPendingAdmin must call `_acceptAdmin` to finalize the transfer.", "params": {"newPendingAdmin": "New pending admin."}, "return": "uint 0=success, otherwise a failure (see ErrorReporter.sol for details)      * TODO: Should we add a second arg to verify, like a checksum of `newAdmin` address?"}, "_setReserveFactor(uint256)": {"details": "Admin function to accrue interest and set a new reserve factor", "return": "uint 0=success, otherwise a failure (see ErrorReporter.sol for details)"}, "accrueInterest()": {"details": "This calculates interest accrued from the last checkpointed block     up to the current block and writes new checkpoint to storage."}, "allowance(address,address)": {"params": {"owner": "The address of the account which owns the tokens to be spent", "spender": "The address of the account which may transfer tokens"}, "return": "The number of tokens allowed to be spent (-1 means infinite)"}, "approve(address,uint256)": {"details": "This will overwrite the approval amount for `spender` and is subject to issues noted [here](https://eips.ethereum.org/EIPS/eip-20#approve)", "params": {"amount": "The number of tokens that are approved (-1 means infinite)", "spender": "The address of the account which may transfer tokens"}, "return": "Whether or not the approval succeeded"}, "balanceOf(address)": {"params": {"owner": "The address of the account to query"}, "return": "The number of tokens owned by `owner`"}, "balanceOfUnderlying(address)": {"details": "This also accrues interest in a transaction", "params": {"owner": "The address of the account to query"}, "return": "The amount of underlying owned by `owner`"}, "borrow(uint256)": {"params": {"borrowAmount": "The amount of the underlying asset to borrow"}, "return": "uint 0=success, otherwise a failure (see ErrorReporter.sol for details)"}, "borrowBalanceCurrent(address)": {"params": {"account": "The address whose balance should be calculated after updating borrowIndex"}, "return": "The calculated balance"}, "borrowBalanceStored(address)": {"params": {"account": "The address whose balance should be calculated"}, "return": "The calculated balance"}, "borrowRatePerBlock()": {"return": "The borrow interest rate per block, scaled by 1e18"}, "constructor": {"params": {"comptroller_": "The address of the Comptroller", "decimals_": "ERC-20 decimal precision of this token", "initialExchangeRateMantissa_": "The initial exchange rate, scaled by 1e18", "interestRateModel_": "The address of the interest rate model", "name_": "ERC-20 name of this token", "symbol_": "ERC-20 symbol of this token", "underlying_": "The address of the underlying asset"}}, "exchangeRateCurrent()": {"return": "Calculated exchange rate scaled by 1e18"}, "exchangeRateStored()": {"details": "This function does not accrue interest before calculating the exchange rate", "return": "Calculated exchange rate scaled by 1e18"}, "getAccountSnapshot(address)": {"details": "This is used by comptroller to more efficiently perform liquidity checks.", "params": {"account": "Address of the account to snapshot"}, "return": "(possible error, token balance, borrow balance, exchange rate mantissa)"}, "getCash()": {"return": "The quantity of underlying asset owned by this contract"}, "liquidateBorrow(address,uint256,address)": {"params": {"borrower": "The borrower of this cToken to be liquidated", "cTokenCollateral": "The market in which to seize collateral from the borrower", "repayAmount": "The amount of the underlying borrowed asset to repay"}, "return": "uint 0=success, otherwise a failure (see ErrorReporter.sol for details)"}, "mint(uint256)": {"details": "Accrues interest whether or not the operation succeeds, unless reverted", "params": {"mintAmount": "The amount of the underlying asset to supply"}, "return": "uint 0=success, otherwise a failure (see ErrorReporter.sol for details)"}, "redeem(uint256)": {"details": "Accrues interest whether or not the operation succeeds, unless reverted", "params": {"redeemTokens": "The number of cTokens to redeem into underlying"}, "return": "uint 0=success, otherwise a failure (see ErrorReporter.sol for details)"}, "redeemUnderlying(uint256)": {"details": "Accrues interest whether or not the operation succeeds, unless reverted", "params": {"redeemAmount": "The amount of underlying to redeem"}, "return": "uint 0=success, otherwise a failure (see ErrorReporter.sol for details)"}, "repayBorrow(uint256)": {"params": {"repayAmount": "The amount to repay"}, "return": "uint 0=success, otherwise a failure (see ErrorReporter.sol for details)"}, "repayBorrowBehalf(address,uint256)": {"params": {"borrower": "the account with the debt being payed off", "repayAmount": "The amount to repay"}, "return": "uint 0=success, otherwise a failure (see ErrorReporter.sol for details)"}, "seize(address,address,uint256)": {"details": "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.", "params": {"borrower": "The account having collateral seized", "liquidator": "The account receiving seized collateral", "seizeTokens": "The number of cTokens to seize"}, "return": "uint 0=success, otherwise a failure (see ErrorReporter.sol for details)"}, "supplyRatePerBlock()": {"return": "The supply interest rate per block, scaled by 1e18"}, "totalBorrowsCurrent()": {"return": "The total borrows with interest"}, "transfer(address,uint256)": {"params": {"amount": "The number of tokens to transfer", "dst": "The address of the destination account"}, "return": "Whether or not the transfer succeeded"}, "transferFrom(address,address,uint256)": {"params": {"amount": "The number of tokens to transfer", "dst": "The address of the destination account", "src": "The address of the source account"}, "return": "Whether or not the transfer succeeded"}}, "title": "Compound's CErc20 Contract"}, "runtime_bytecode": {"bytecode": "0x608060405234801561001057600080fd5b506004361061028a5760003560e01c80638f840ddd1161015c578063c37f68e2116100ce578063f3fdb15a11610087578063f3fdb15a14610d44578063f5e3c46214610d8e578063f851a44014610e10578063f8f9da2814610e5a578063fca7820b14610e78578063fe9c44ae14610eba5761028a565b8063c37f68e214610b65578063c5ebeaec14610bd2578063db006a7514610c14578063dd62ed3e14610c56578063e9c714f214610cce578063f2b3abbd14610cec5761028a565b8063a9059cbb11610120578063a9059cbb146109cb578063aa5af0fd14610a31578063ae9d70b014610a4f578063b2a02ff114610a6d578063b71d1a0c14610aef578063bd6d894d14610b475761028a565b80638f840ddd1461087257806395d89b411461089057806395dd919314610913578063a0712d681461096b578063a6afed95146109ad5761028a565b80633af9e66911610200578063675d972c116101b9578063675d972c146107345780636c540baf146107525780636f307dc31461077057806370a08231146107ba57806373acee9814610812578063852a12e3146108305761028a565b80633af9e669146105bc5780633b1d21a2146106145780634576b5db1461063257806347bd37181461068a5780635fe3b567146106a8578063601a0bf1146106f25761028a565b806318160ddd1161025257806318160ddd14610430578063182df0f51461044e57806323b872dd1461046c5780632608f818146104f25780632678224714610554578063313ce5671461059e5761028a565b806306fdde031461028f578063095ea7b3146103125780630e75270214610378578063173b9904146103ba57806317bfdfbc146103d8575b600080fd5b610297610edc565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156102d75780820151818401526020810190506102bc565b50505050905090810190601f1680156103045780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61035e6004803603604081101561032857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610f7a565b604051808215151515815260200191505060405180910390f35b6103a46004803603602081101561038e57600080fd5b8101908080359060200190929190505050611071565b6040518082815260200191505060405180910390f35b6103c2611083565b6040518082815260200191505060405180910390f35b61041a600480360360208110156103ee57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611089565b6040518082815260200191505060405180910390f35b6104386111b1565b6040518082815260200191505060405180910390f35b6104566111b7565b6040518082815260200191505060405180910390f35b6104d86004803603606081101561048257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061123f565b604051808215151515815260200191505060405180910390f35b61053e6004803603604081101561050857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506112f2565b6040518082815260200191505060405180910390f35b61055c611306565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6105a661132c565b6040518082815260200191505060405180910390f35b6105fe600480360360208110156105d257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611332565b6040518082815260200191505060405180910390f35b61061c6113d2565b6040518082815260200191505060405180910390f35b6106746004803603602081101561064857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506113e1565b6040518082815260200191505060405180910390f35b610692611652565b6040518082815260200191505060405180910390f35b6106b0611658565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61071e6004803603602081101561070857600080fd5b810190808035906020019092919050505061167e565b6040518082815260200191505060405180910390f35b61073c61175d565b6040518082815260200191505060405180910390f35b61075a611763565b6040518082815260200191505060405180910390f35b610778611769565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6107fc600480360360208110156107d057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061178f565b6040518082815260200191505060405180910390f35b61081a6117d8565b6040518082815260200191505060405180910390f35b61085c6004803603602081101561084657600080fd5b81019080803590602001909291905050506118f8565b6040518082815260200191505060405180910390f35b61087a61190a565b6040518082815260200191505060405180910390f35b610898611910565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156108d85780820151818401526020810190506108bd565b50505050905090810190601f1680156109055780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6109556004803603602081101561092957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506119ae565b6040518082815260200191505060405180910390f35b6109976004803603602081101561098157600080fd5b8101908080359060200190929190505050611a39565b6040518082815260200191505060405180910390f35b6109b5611a4b565b6040518082815260200191505060405180910390f35b610a17600480360360408110156109e157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611f7e565b604051808215151515815260200191505060405180910390f35b610a39612030565b6040518082815260200191505060405180910390f35b610a57612036565b6040518082815260200191505060405180910390f35b610ad960048036036060811015610a8357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506123ed565b6040518082815260200191505060405180910390f35b610b3160048036036020811015610b0557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506129f4565b6040518082815260200191505060405180910390f35b610b4f612b73565b6040518082815260200191505060405180910390f35b610ba760048036036020811015610b7b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612c98565b6040518085815260200184815260200183815260200182815260200194505050505060405180910390f35b610bfe60048036036020811015610be857600080fd5b8101908080359060200190929190505050612dc0565b6040518082815260200191505060405180910390f35b610c4060048036036020811015610c2a57600080fd5b8101908080359060200190929190505050612dd2565b6040518082815260200191505060405180910390f35b610cb860048036036040811015610c6c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612de4565b6040518082815260200191505060405180910390f35b610cd6612e6b565b6040518082815260200191505060405180910390f35b610d2e60048036036020811015610d0257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613188565b6040518082815260200191505060405180910390f35b610d4c6131d8565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610dfa60048036036060811015610da457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506131fe565b6040518082815260200191505060405180910390f35b610e18613214565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610e6261323a565b6040518082815260200191505060405180910390f35b610ea460048036036020811015610e8e57600080fd5b8101908080359060200190929190505050613376565b6040518082815260200191505060405180910390f35b610ec2613455565b604051808215151515815260200191505060405180910390f35b60018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610f725780601f10610f4757610100808354040283529160200191610f72565b820191906000526020600020905b815481529060010190602001808311610f5557829003601f168201915b505050505081565b60008033905082601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925856040518082815260200191505060405180910390a3600191505092915050565b600061107c8261345a565b9050919050565b60095481565b600060016000808282540192505081905550600080549050600060108111156110ae57fe5b6110b6611a4b565b14611129576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f61636372756520696e746572657374206661696c65640000000000000000000081525060200191505060405180910390fd5b611132836119ae565b915060005481146111ab576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b50919050565b600e5481565b60008060006111c461353b565b91509150600060038111156111d557fe5b8260038111156111e157fe5b14611237576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526035815260200180617f0a6035913960400191505060405180910390fd5b809250505090565b6000600160008082825401925050819055506000805490506000601081111561126457fe5b61127033878787613610565b14915060005481146112ea576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b509392505050565b60006112fe8383613ce3565b905092915050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60035481565b600061133c617bb7565b604051806020016040528061134f612b73565b81525090506000806113a083600f60008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054613dc5565b91509150600060038111156113b157fe5b8260038111156113bd57fe5b146113c757600080fd5b809350505050919050565b60006113dc613e28565b905090565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461144b576114446001603f613f0e565b905061164d565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508273ffffffffffffffffffffffffffffffffffffffff16627e3dd26040518163ffffffff1660e01b815260040160206040518083038186803b1580156114b757600080fd5b505afa1580156114cb573d6000803e3d6000fd5b505050506040513d60208110156114e157600080fd5b8101908080519060200190929190505050611564576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f6d61726b6572206d6574686f642072657475726e65642066616c73650000000081525060200191505060405180910390fd5b82600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f7ac369dbd14fa5ea3f473ed67cc9d598964a77501540ba6751eb0b3decf5870d8184604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a16000601081111561164957fe5b9150505b919050565b600c5481565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006001600080828254019250508190555060008054905060006116a0611a4b565b9050600060108111156116af57fe5b81146116d3576116cb8160108111156116c457fe5b6030613f0e565b9250506116e0565b6116dc84613f82565b9250505b6000548114611757576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b50919050565b60085481565b600a5481565b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600f60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600060016000808282540192505081905550600080549050600060108111156117fd57fe5b611805611a4b565b14611878576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f61636372756520696e746572657374206661696c65640000000000000000000081525060200191505060405180910390fd5b600c54915060005481146118f4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b5090565b60006119038261420b565b9050919050565b600d5481565b60028054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156119a65780601f1061197b576101008083540402835291602001916119a6565b820191906000526020600020905b81548152906001019060200180831161198957829003601f168201915b505050505081565b60008060006119bc846142ed565b91509150600060038111156119cd57fe5b8260038111156119d957fe5b14611a2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526037815260200180617dfe6037913960400191505060405180910390fd5b8092505050919050565b6000611a44826143f8565b9050919050565b6000611a55617bca565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166315f24053611a9b613e28565b600c54600d546040518463ffffffff1660e01b8152600401808481526020018381526020018281526020019350505050604080518083038186803b158015611ae257600080fd5b505afa158015611af6573d6000803e3d6000fd5b505050506040513d6040811015611b0c57600080fd5b8101908080519060200190929190805190602001909291905050508260200183604001828152508281525050506601c6bf5263400081604001511115611bba576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f626f72726f772072617465206973206162737572646c7920686967680000000081525060200191505060405180910390fd5b6000816020015114611bdf57611bd76005600283602001516144d8565b915050611f7b565b611be761454c565b816060018181525050611c008160600151600a54614554565b826000018360800182815250826003811115611c1857fe5b6003811115611c2357fe5b815250505060006003811115611c3557fe5b81600001516003811115611c4557fe5b14611c4c57fe5b611c6c60405180602001604052808360400151815250826080015161457f565b809050826000018360a001829052826003811115611c8657fe5b6003811115611c9157fe5b815250505060006003811115611ca357fe5b81600001516003811115611cb357fe5b14611cdc57611cd46009600683600001516003811115611ccf57fe5b6144d8565b915050611f7b565b611cec8160a00151600c54613dc5565b826000018360c00182815250826003811115611d0457fe5b6003811115611d0f57fe5b815250505060006003811115611d2157fe5b81600001516003811115611d3157fe5b14611d5a57611d526009600183600001516003811115611d4d57fe5b6144d8565b915050611f7b565b611d6a8160c00151600c546145fd565b826000018360e00182815250826003811115611d8257fe5b6003811115611d8d57fe5b815250505060006003811115611d9f57fe5b81600001516003811115611daf57fe5b14611dd857611dd06009600483600001516003811115611dcb57fe5b6144d8565b915050611f7b565b611df960405180602001604052806009548152508260c00151600d5461462f565b82600001836101000182815250826003811115611e1257fe5b6003811115611e1d57fe5b815250505060006003811115611e2f57fe5b81600001516003811115611e3f57fe5b14611e6857611e606009600583600001516003811115611e5b57fe5b6144d8565b915050611f7b565b611e7b8160a00151600b54600b5461462f565b82600001836101200182815250826003811115611e9457fe5b6003811115611e9f57fe5b815250505060006003811115611eb157fe5b81600001516003811115611ec157fe5b14611eea57611ee26009600383600001516003811115611edd57fe5b6144d8565b915050611f7b565b8060600151600a81905550806101200151600b819055508060e00151600c81905550806101000151600d819055507f875352fb3fadeb8c0be7cbbe8ff761b308fa7033470cd0287f02f3436fd76cb98160c00151826101200151600c5460405180848152602001838152602001828152602001935050505060405180910390a160006010811115611f7757fe5b9150505b90565b60006001600080828254019250508190555060008054905060006010811115611fa357fe5b611faf33338787613610565b1491506000548114612029576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b5092915050565b600b5481565b6000806120416111b7565b9050600080600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166315f2405361208c613e28565b600c54600d546040518463ffffffff1660e01b8152600401808481526020018381526020018281526020019350505050604080518083038186803b1580156120d357600080fd5b505afa1580156120e7573d6000803e3d6000fd5b505050506040513d60408110156120fd57600080fd5b8101908080519060200190929190805190602001909291905050509150915060008214612175576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526031815260200180617e9d6031913960400191505060405180910390fd5b600061217f617bb7565b612199604051806020016040528087815250600e5461457f565b91509150600060038111156121aa57fe5b8260038111156121b657fe5b1461220c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526031815260200180617e356031913960400191505060405180910390fd5b6000612216617bb7565b612222600c548461469a565b915091506000600381111561223357fe5b82600381111561223f57fe5b14612295576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526031815260200180617d796031913960400191505060405180910390fd5b600061229f617bb7565b6122cf6040518060200160405280670de0b6b3a76400008152506040518060200160405280600954815250614716565b91509150600060038111156122e057fe5b8260038111156122ec57fe5b14612342576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603c815260200180617ece603c913960400191505060405180910390fd5b600061234c617bb7565b61236560405180602001604052808b8152508487614759565b915091506000600381111561237657fe5b82600381111561238257fe5b146123d8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526031815260200180617dcd6031913960400191505060405180910390fd5b80600001519b50505050505050505050505090565b6000600160008082825401925050819055506000805490506000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d02f735130338989896040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200195505050505050602060405180830381600087803b15801561254c57600080fd5b505af1158015612560573d6000803e3d6000fd5b505050506040513d602081101561257657600080fd5b81019080805190602001909291905050509050600081146125a65761259e6003601b836144d8565b925050612975565b8573ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156125ee576125e66006601c613f0e565b925050612975565b600080600061263c600f60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205488614554565b80935081945050506000600381111561265157fe5b83600381111561265d57fe5b146126855761267a6009601a85600381111561267557fe5b6144d8565b955050505050612975565b6126ce600f60008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054886145fd565b8092508194505050600060038111156126e357fe5b8360038111156126ef57fe5b146127175761270c6009601985600381111561270757fe5b6144d8565b955050505050612975565b81600f60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080600f60008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508873ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef896040518082815260200191505060405180910390a3600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636d35bf9130338c8c8c6040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200195505050505050600060405180830381600087803b15801561294957600080fd5b505af115801561295d573d6000803e3d6000fd5b505050506000601081111561296e57fe5b9550505050505b60005481146129ec576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b509392505050565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612a5e57612a5760016045613f0e565b9050612b6e565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905082600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a98184604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a160006010811115612b6a57fe5b9150505b919050565b60006001600080828254019250508190555060008054905060006010811115612b9857fe5b612ba0611a4b565b14612c13576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f61636372756520696e746572657374206661696c65640000000000000000000081525060200191505060405180910390fd5b612c1b6111b7565b91506000548114612c94576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b5090565b6000806000806000600f60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000806000612cf0896142ed565b809450819250505060006003811115612d0557fe5b816003811115612d1157fe5b14612d425760096010811115612d2357fe5b6000806000829250819150809050975097509750975050505050612db9565b612d4a61353b565b809350819250505060006003811115612d5f57fe5b816003811115612d6b57fe5b14612d9c5760096010811115612d7d57fe5b6000806000829250819150809050975097509750975050505050612db9565b60006010811115612da957fe5b8484849750975097509750505050505b9193509193565b6000612dcb826147bf565b9050919050565b6000612ddd8261489f565b9050919050565b6000601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141580612ef65750600073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b15612f0e57612f0760016000613f0e565b9050613185565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507ff9ffabca9c8276e99321725bcb43fb076a6c66a54b7f21c4e8146d8519b417dc82600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a17fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a981600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a16000601081111561318057fe5b925050505b90565b600080613193611a4b565b9050600060108111156131a257fe5b81146131c6576131be8160108111156131b757fe5b6040613f0e565b9150506131d3565b6131cf83614981565b9150505b919050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600061320b848484614c17565b90509392505050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166315f24053613285613e28565b600c54600d546040518463ffffffff1660e01b8152600401808481526020018381526020018281526020019350505050604080518083038186803b1580156132cc57600080fd5b505afa1580156132e0573d6000803e3d6000fd5b505050506040513d60408110156132f657600080fd5b810190808051906020019092919080519060200190929190505050915091506000821461336e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526037815260200180617e666037913960400191505060405180910390fd5b809250505090565b6000600160008082825401925050819055506000805490506000613398611a4b565b9050600060108111156133a757fe5b81146133cb576133c38160108111156133bc57fe5b6046613f0e565b9250506133d8565b6133d484614db1565b9250505b600054811461344f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b50919050565b600181565b600060016000808282540192505081905550600080549050600061347c611a4b565b90506000601081111561348b57fe5b81146134af576134a78160108111156134a057fe5b6036613f0e565b9250506134be565b6134ba333386614ec4565b9250505b6000548114613535576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b50919050565b6000806000600e5414156135575760006008549150915061360c565b6000613561613e28565b9050600061356d617bb7565b600061357e84600c54600d5461563c565b80945081925050506000600381111561359357fe5b81600381111561359f57fe5b146135b757806000809050955095505050505061360c565b6135c383600e54615698565b8093508192505050600060038111156135d857fe5b8160038111156135e457fe5b146135fc57806000809050955095505050505061360c565b6000826000015195509550505050505b9091565b600080600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bdcdc258308787876040518563ffffffff1660e01b8152600401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828152602001945050505050602060405180830381600087803b15801561372457600080fd5b505af1158015613738573d6000803e3d6000fd5b505050506040513d602081101561374e57600080fd5b810190808051906020019092919050505090506000811461377e576137766003604a836144d8565b915050613cdb565b8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156137c6576137be6002604b613f0e565b915050613cdb565b60008090508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff161415613827577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90506138a7565b601060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490505b6000806000806138b78589614554565b8094508195505050600060038111156138cc57fe5b8460038111156138d857fe5b146138f6576138e96009604b613f0e565b9650505050505050613cdb565b61393f600f60008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205489614554565b80935081955050506000600381111561395457fe5b84600381111561396057fe5b1461397e576139716009604c613f0e565b9650505050505050613cdb565b6139c7600f60008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054896145fd565b8092508195505050600060038111156139dc57fe5b8460038111156139e857fe5b14613a06576139f96009604d613f0e565b9650505050505050613cdb565b81600f60008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080600f60008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8514613b375782601060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b8873ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8a6040518082815260200191505060405180910390a3600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636a56947e308c8c8c6040518563ffffffff1660e01b8152600401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828152602001945050505050600060405180830381600087803b158015613cad57600080fd5b505af1158015613cc1573d6000803e3d6000fd5b5050505060006010811115613cd257fe5b96505050505050505b949350505050565b6000600160008082825401925050819055506000805490506000613d05611a4b565b905060006010811115613d1457fe5b8114613d3857613d30816010811115613d2957fe5b6035613f0e565b925050613d47565b613d43338686614ec4565b9250505b6000548114613dbe576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b5092915050565b6000806000613dd2617bb7565b613ddc868661457f565b9150915060006003811115613ded57fe5b826003811115613df957fe5b14613e0f57816000809050935093505050613e21565b6000613e1a8261576c565b9350935050505b9250929050565b600080601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015613ecd57600080fd5b505afa158015613ee1573d6000803e3d6000fd5b505050506040513d6020811015613ef757600080fd5b810190808051906020019092919050505091505090565b60007f45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa0836010811115613f3d57fe5b83604d811115613f4957fe5b600060405180848152602001838152602001828152602001935050505060405180910390a1826010811115613f7a57fe5b905092915050565b6000806000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614613ff157613fe860016031613f0e565b92505050614206565b613ff961454c565b600a54146140165761400d600a6033613f0e565b92505050614206565b8361401f613e28565b101561403a57614031600e6032613f0e565b92505050614206565b600d548411156140595761405060026034613f0e565b92505050614206565b83600d54039050600d548111156140bb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180617f736024913960400191505060405180910390fd5b80600d819055506140ee600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168561578b565b9150600060108111156140fd57fe5b82601081111561410957fe5b1461415f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526023815260200180617daa6023913960400191505060405180910390fd5b7f3bad0c59cf2f06e7314077049f48a93578cd16f5ef92329f1dab1420a99c177e600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168583604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828152602001935050505060405180910390a16000601081111561420157fe5b925050505b919050565b600060016000808282540192505081905550600080549050600061422d611a4b565b90506000601081111561423c57fe5b81146142605761425881601081111561425157fe5b6027613f0e565b925050614270565b61426c3360008661589e565b9250505b60005481146142e7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b50919050565b600080600080600080601160008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000816000015414156143575760008080905095509550505050506143f3565b6143678160000154600b54616092565b80945081955050506000600381111561437c57fe5b84600381111561438857fe5b146143a05783600080905095509550505050506143f3565b6143ae8382600101546160e5565b8093508195505050600060038111156143c357fe5b8460038111156143cf57fe5b146143e75783600080905095509550505050506143f3565b60008295509550505050505b915091565b600060016000808282540192505081905550600080549050600061441a611a4b565b90506000601081111561442957fe5b811461444d5761444581601081111561443e57fe5b601e613f0e565b92505061445b565b6144573385616119565b9250505b60005481146144d2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b50919050565b60007f45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa084601081111561450757fe5b84604d81111561451357fe5b8460405180848152602001838152602001828152602001935050505060405180910390a183601081111561454357fe5b90509392505050565b600043905090565b60008083831161456c57600083850391509150614578565b60036000809050915091505b9250929050565b6000614589617bb7565b60008061459a866000015186616092565b91509150600060038111156145ab57fe5b8260038111156145b757fe5b146145db5781604051806020016040528060008152508090509350935050506145f6565b60006040518060200160405280838152508090509350935050505b9250929050565b6000806000838501905084811061461b576000819250925050614628565b6002600080905092509250505b9250929050565b600080600061463c617bb7565b614646878761457f565b915091506000600381111561465757fe5b82600381111561466357fe5b1461467957816000809050935093505050614692565b61468b6146858261576c565b866145fd565b9350935050505b935093915050565b60006146a4617bb7565b6000806146b9670de0b6b3a764000087616092565b91509150600060038111156146ca57fe5b8260038111156146d657fe5b146146fa57816040518060200160405280600081525080905093509350505061470f565b614708818660000151615698565b9350935050505b9250929050565b6000614720617bb7565b60008061473586600001518660000151614554565b91509150816040518060200160405280838152508090509350935050509250929050565b6000614763617bb7565b600061476d617bb7565b61477787876167d2565b915091506000600381111561478857fe5b82600381111561479457fe5b146147a65781819350935050506147b7565b6147b081866167d2565b9350935050505b935093915050565b60006001600080828254019250508190555060008054905060006147e1611a4b565b9050600060108111156147f057fe5b81146148145761480c81601081111561480557fe5b6008613f0e565b925050614822565b61481e33856168f3565b9250505b6000548114614899576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b50919050565b60006001600080828254019250508190555060008054905060006148c1611a4b565b9050600060108111156148d057fe5b81146148f4576148ec8160108111156148e557fe5b6027613f0e565b925050614904565b6149003385600061589e565b9250505b600054811461497b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b50919050565b600080600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146149ed576149e560016042613f0e565b915050614c12565b6149f561454c565b600a5414614a1157614a09600a6041613f0e565b915050614c12565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508273ffffffffffffffffffffffffffffffffffffffff16632191f92a6040518163ffffffff1660e01b815260040160206040518083038186803b158015614a7c57600080fd5b505afa158015614a90573d6000803e3d6000fd5b505050506040513d6020811015614aa657600080fd5b8101908080519060200190929190505050614b29576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f6d61726b6572206d6574686f642072657475726e65642066616c73650000000081525060200191505060405180910390fd5b82600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fedffc32e068c7c95dfd4bdfd5c4d939a084d6b11c4199eac8436ed234d72f9268184604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a160006010811115614c0e57fe5b9150505b919050565b6000600160008082825401925050819055506000805490506000614c39611a4b565b905060006010811115614c4857fe5b8114614c6c57614c64816010811115614c5d57fe5b600f613f0e565b925050614d32565b8373ffffffffffffffffffffffffffffffffffffffff1663a6afed956040518163ffffffff1660e01b8152600401602060405180830381600087803b158015614cb457600080fd5b505af1158015614cc8573d6000803e3d6000fd5b505050506040513d6020811015614cde57600080fd5b8101908080519060200190929190505050905060006010811115614cfe57fe5b8114614d2257614d1a816010811115614d1357fe5b6010613f0e565b925050614d32565b614d2e33878787616ed5565b9250505b6000548114614da9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b509392505050565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614614e1b57614e1460016047613f0e565b9050614ebf565b614e2361454c565b600a5414614e3e57614e37600a6048613f0e565b9050614ebf565b670de0b6b3a7640000821115614e6157614e5a60026049613f0e565b9050614ebf565b60006009549050826009819055507faaa68312e2ea9d50e16af5068410ab56e1a1fd06037b1a35664812c30f8214608184604051808381526020018281526020019250505060405180910390a160006010811115614ebb57fe5b9150505b919050565b600080600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166324008a62308787876040518563ffffffff1660e01b8152600401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828152602001945050505050602060405180830381600087803b158015614fd857600080fd5b505af1158015614fec573d6000803e3d6000fd5b505050506040513d602081101561500257600080fd5b81019080805190602001909291905050509050600081146150325761502a60036038836144d8565b915050615635565b61503a61454c565b600a54146150565761504e600a6039613f0e565b915050615635565b61505e617c2e565b601160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101548160600181815250506150b3856142ed565b8260200183608001828152508260038111156150cb57fe5b60038111156150d657fe5b8152505050600060038111156150e857fe5b816020015160038111156150f857fe5b1461512257615119600960378360200151600381111561511457fe5b6144d8565b92505050615635565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff84141561515d578060800151816040018181525050615168565b838160400181815250505b615176868260400151617813565b8160000190601081111561518657fe5b9081601081111561519357fe5b81525050600060108111156151a457fe5b816000015160108111156151b457fe5b146151d1576151c88160000151603c613f0e565b92505050615635565b6151e381608001518260400151614554565b826020018360a001828152508260038111156151fb57fe5b600381111561520657fe5b81525050506000600381111561521857fe5b8160200151600381111561522857fe5b14615252576152496009603a8360200151600381111561524457fe5b6144d8565b92505050615635565b615262600c548260400151614554565b826020018360c0018281525082600381111561527a57fe5b600381111561528557fe5b81525050506000600381111561529757fe5b816020015160038111156152a757fe5b146152d1576152c86009603b836020015160038111156152c357fe5b6144d8565b92505050615635565b6152df868260400151617a0d565b816000019060108111156152ef57fe5b908160108111156152fc57fe5b815250506000601081111561530d57fe5b8160000151601081111561531d57fe5b14615390576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f726570617920626f72726f77207472616e7366657220696e206661696c65640081525060200191505060405180910390fd5b8060a00151601160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000181905550600b54601160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101819055508060c00151600c819055507f1a2a22cb034d26d1854bdc6666a5b91fe25efbbb5dcad3b0355478d6f5c362a1868683604001518460a001518560c00151604051808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018481526020018381526020018281526020019550505050505060405180910390a1600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631ededc91308888856040015186606001516040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200182815260200195505050505050600060405180830381600087803b15801561560b57600080fd5b505af115801561561f573d6000803e3d6000fd5b505050506000601081111561563057fe5b925050505b9392505050565b60008060008061564c87876145fd565b915091506000600381111561565d57fe5b82600381111561566957fe5b1461567f57816000809050935093505050615690565b6156898186614554565b9350935050505b935093915050565b60006156a2617bb7565b6000806156b786670de0b6b3a7640000616092565b91509150600060038111156156c857fe5b8260038111156156d457fe5b146156f8578160405180602001604052806000815250809050935093505050615765565b60008061570583886160e5565b915091506000600381111561571657fe5b82600381111561572257fe5b146157485781604051806020016040528060008152508090509550955050505050615765565b600060405180602001604052808381525080905095509550505050505b9250929050565b6000670de0b6b3a764000082600001518161578357fe5b049050919050565b600080601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060008173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb86866040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050600060405180830381600087803b15801561583c57600080fd5b505af1158015615850573d6000803e3d6000fd5b505050503d6000811461586a576020811461587457600080fd5b6000199150615880565b60206000803e60005191505b508061589157601092505050615898565b6000925050505b92915050565b6000808314806158ae5750600082145b615903576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526034815260200180617f3f6034913960400191505060405180910390fd5b61590b617c81565b61591361353b565b82602001836040018281525082600381111561592b57fe5b600381111561593657fe5b81525050506000600381111561594857fe5b8160200151600381111561595857fe5b14615981576159796009602b8360200151600381111561597457fe5b6144d8565b91505061608b565b6000841115615a2357838160600181815250506159b06040518060200160405280836040015181525085613dc5565b8260200183608001828152508260038111156159c857fe5b60038111156159d357fe5b8152505050600060038111156159e557fe5b816020015160038111156159f557fe5b14615a1e57615a166009602983602001516003811115615a1157fe5b6144d8565b91505061608b565b615ab8565b615a3f8360405180602001604052808460400151815250617b54565b826020018360600182815250826003811115615a5757fe5b6003811115615a6257fe5b815250505060006003811115615a7457fe5b81602001516003811115615a8457fe5b14615aad57615aa56009602a83602001516003811115615aa057fe5b6144d8565b91505061608b565b828160800181815250505b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663eabe7d91308885606001516040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b158015615b9b57600080fd5b505af1158015615baf573d6000803e3d6000fd5b505050506040513d6020811015615bc557600080fd5b8101908080519060200190929190505050905060008114615bf657615bed60036028836144d8565b9250505061608b565b615bfe61454c565b600a5414615c1b57615c12600a602c613f0e565b9250505061608b565b615c2b600e548360600151614554565b836020018460a00182815250826003811115615c4357fe5b6003811115615c4e57fe5b815250505060006003811115615c6057fe5b82602001516003811115615c7057fe5b14615c9a57615c916009602e84602001516003811115615c8c57fe5b6144d8565b9250505061608b565b615ce7600f60008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548360600151614554565b836020018460c00182815250826003811115615cff57fe5b6003811115615d0a57fe5b815250505060006003811115615d1c57fe5b82602001516003811115615d2c57fe5b14615d5657615d4d6009602d84602001516003811115615d4857fe5b6144d8565b9250505061608b565b8160800151615d63613e28565b1015615d7e57615d75600e602f613f0e565b9250505061608b565b615d8c86836080015161578b565b82600001906010811115615d9c57fe5b90816010811115615da957fe5b8152505060006010811115615dba57fe5b82600001516010811115615dca57fe5b14615e3d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f72656465656d207472616e73666572206f7574206661696c656400000000000081525060200191505060405180910390fd5b8160a00151600e819055508160c00151600f60008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055503073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84606001516040518082815260200191505060405180910390a37fe5b754fb1abb7f01b499791d0b820ae3b6af3424ac1c59768edb53f4ec31a9298683608001518460600151604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828152602001935050505060405180910390a1600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166351dff9893088856080015186606001516040518563ffffffff1660e01b8152600401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828152602001945050505050600060405180830381600087803b15801561606157600080fd5b505af1158015616075573d6000803e3d6000fd5b505050506000601081111561608657fe5b925050505b9392505050565b60008060008414156160ad57600080809050915091506160de565b60008385029050838582816160be57fe5b04146160d5576002600080905092509250506160de565b60008192509250505b9250929050565b6000806000831415616101576001600080905091509150616112565b600083858161610c57fe5b04915091505b9250929050565b600080600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634ef4c3e13086866040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1580156161f957600080fd5b505af115801561620d573d6000803e3d6000fd5b505050506040513d602081101561622357600080fd5b81019080805190602001909291905050509050600081146162535761624b6003601f836144d8565b9150506167cc565b61625b61454c565b600a54146162775761626f600a6022613f0e565b9150506167cc565b61627f617cd4565b6162898585617813565b8160000190601081111561629957fe5b908160108111156162a657fe5b81525050600060108111156162b757fe5b816000015160108111156162c757fe5b146162e4576162db81600001516026613f0e565b925050506167cc565b6162ec61353b565b82602001836040018281525082600381111561630457fe5b600381111561630f57fe5b81525050506000600381111561632157fe5b8160200151600381111561633157fe5b1461635b57616352600960218360200151600381111561634d57fe5b6144d8565b925050506167cc565b6163778460405180602001604052808460400151815250617b54565b82602001836060018281525082600381111561638f57fe5b600381111561639a57fe5b8152505050600060038111156163ac57fe5b816020015160038111156163bc57fe5b146163e6576163dd60096020836020015160038111156163d857fe5b6144d8565b925050506167cc565b6163f6600e5482606001516145fd565b82602001836080018281525082600381111561640e57fe5b600381111561641957fe5b81525050506000600381111561642b57fe5b8160200151600381111561643b57fe5b146164655761645c600960248360200151600381111561645757fe5b6144d8565b925050506167cc565b6164b2600f60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205482606001516145fd565b826020018360a001828152508260038111156164ca57fe5b60038111156164d557fe5b8152505050600060038111156164e757fe5b816020015160038111156164f757fe5b1461652157616518600960238360200151600381111561651357fe5b6144d8565b925050506167cc565b61652b8585617a0d565b8160000190601081111561653b57fe5b9081601081111561654857fe5b815250506000601081111561655957fe5b8160000151601081111561656957fe5b146165865761657d81600001516025613f0e565b925050506167cc565b8060800151600e819055508060a00151600f60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f85858360600151604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828152602001935050505060405180910390a18473ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83606001516040518082815260200191505060405180910390a3600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166341c728b930878785606001516040518563ffffffff1660e01b8152600401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828152602001945050505050600060405180830381600087803b1580156167a257600080fd5b505af11580156167b6573d6000803e3d6000fd5b50505050600060108111156167c757fe5b925050505b92915050565b60006167dc617bb7565b6000806167f186600001518660000151616092565b915091506000600381111561680257fe5b82600381111561680e57fe5b146168325781604051806020016040528060008152508090509350935050506168ec565b6000806168516002670de0b6b3a76400008161684a57fe5b04846145fd565b915091506000600381111561686257fe5b82600381111561686e57fe5b1461689457816040518060200160405280600081525080905095509550505050506168ec565b6000806168a983670de0b6b3a76400006160e5565b91509150600060038111156168ba57fe5b8260038111156168c657fe5b146168cd57fe5b6000604051806020016040528083815250809050975097505050505050505b9250929050565b600080600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663da3d454c3086866040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1580156169d357600080fd5b505af11580156169e7573d6000803e3d6000fd5b505050506040513d60208110156169fd57600080fd5b8101908080519060200190929190505050905060008114616a2d57616a256003600e836144d8565b915050616ecf565b616a3561454c565b600a5414616a5057616a48600a80613f0e565b915050616ecf565b82616a59613e28565b1015616a7357616a6b600e6009613f0e565b915050616ecf565b616a7b617d20565b616a84856142ed565b826020018360400182815250826003811115616a9c57fe5b6003811115616aa757fe5b815250505060006003811115616ab957fe5b81602001516003811115616ac957fe5b14616af357616aea6009600783602001516003811115616ae557fe5b6144d8565b92505050616ecf565b616b018160400151856145fd565b826020018360600182815250826003811115616b1957fe5b6003811115616b2457fe5b815250505060006003811115616b3657fe5b81602001516003811115616b4657fe5b14616b7057616b676009600c83602001516003811115616b6257fe5b6144d8565b92505050616ecf565b616b7c600c54856145fd565b826020018360800182815250826003811115616b9457fe5b6003811115616b9f57fe5b815250505060006003811115616bb157fe5b81602001516003811115616bc157fe5b14616beb57616be26009600b83602001516003811115616bdd57fe5b6144d8565b92505050616ecf565b616bf5858561578b565b81600001906010811115616c0557fe5b90816010811115616c1257fe5b8152505060006010811115616c2357fe5b81600001516010811115616c3357fe5b14616ca6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f626f72726f77207472616e73666572206f7574206661696c656400000000000081525060200191505060405180910390fd5b8060600151601160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000181905550600b54601160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101819055508060800151600c819055507f13ed6866d4e1ee6da46f845c46d7e54120883d75c5ea9a2dacc1c4ca8984ab80858583606001518460800151604051808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200184815260200183815260200182815260200194505050505060405180910390a1600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635c7786053087876040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050600060405180830381600087803b158015616ea557600080fd5b505af1158015616eb9573d6000803e3d6000fd5b5050505060006010811115616eca57fe5b925050505b92915050565b600080600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635fc7e71e30858989896040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200195505050505050602060405180830381600087803b15801561701d57600080fd5b505af1158015617031573d6000803e3d6000fd5b505050506040513d602081101561704757600080fd5b81019080805190602001909291905050509050600081146170775761706f60036012836144d8565b91505061780b565b61707f61454c565b600a541461709b57617093600a6016613f0e565b91505061780b565b6170a361454c565b8373ffffffffffffffffffffffffffffffffffffffff16636c540baf6040518163ffffffff1660e01b815260040160206040518083038186803b1580156170e957600080fd5b505afa1580156170fd573d6000803e3d6000fd5b505050506040513d602081101561711357600080fd5b81019080805190602001909291905050501461713d57617135600a6011613f0e565b91505061780b565b8573ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156171855761717d60066017613f0e565b91505061780b565b60008414156171a25761719a60076015613f0e565b91505061780b565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8414156171de576171d660076014613f0e565b91505061780b565b600080600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c488847b3087896040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604080518083038186803b1580156172bb57600080fd5b505afa1580156172cf573d6000803e3d6000fd5b505050506040513d60408110156172e557600080fd5b81019080805190602001909291908051906020019092919050505091509150600082146173235761731960046013846144d8565b935050505061780b565b8473ffffffffffffffffffffffffffffffffffffffff166370a08231886040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156173a057600080fd5b505afa1580156173b4573d6000803e3d6000fd5b505050506040513d60208110156173ca57600080fd5b81019080805190602001909291905050508111156173f8576173ee600d601d613f0e565b935050505061780b565b6000617405898989614ec4565b90506000601081111561741457fe5b811461743b5761743081601081111561742957fe5b6018613f0e565b94505050505061780b565b60008673ffffffffffffffffffffffffffffffffffffffff1663b2a02ff18b8b866040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1580156174f857600080fd5b505af115801561750c573d6000803e3d6000fd5b505050506040513d602081101561752257600080fd5b810190808051906020019092919050505090506000601081111561754257fe5b81146175b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f746f6b656e207365697a757265206661696c656400000000000000000000000081525060200191505060405180910390fd5b7f298637f684da70674f26509b10f07ec2fbc77a335ab1e7d6215a4b2484d8bb528a8a8a8a87604051808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018481526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019550505050505060405180910390a1600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166347ef3b3b30898d8d8d896040518763ffffffff1660e01b8152600401808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018381526020018281526020019650505050505050600060405180830381600087803b1580156177de57600080fd5b505af11580156177f2573d6000803e3d6000fd5b505050506000601081111561780357fe5b955050505050505b949350505050565b600080601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050828173ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e86306040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060206040518083038186803b1580156178ed57600080fd5b505afa158015617901573d6000803e3d6000fd5b505050506040513d602081101561791757600080fd5b8101908080519060200190929190505050101561793857600c915050617a07565b828173ffffffffffffffffffffffffffffffffffffffff166370a08231866040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156179b657600080fd5b505afa1580156179ca573d6000803e3d6000fd5b505050506040513d60208110156179e057600080fd5b81019080805190602001909291905050501015617a0157600d915050617a07565b60009150505b92915050565b600080601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060008173ffffffffffffffffffffffffffffffffffffffff166323b872dd8630876040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050600060405180830381600087803b158015617af257600080fd5b505af1158015617b06573d6000803e3d6000fd5b505050503d60008114617b205760208114617b2a57600080fd5b6000199150617b36565b60206000803e60005191505b5080617b4757600f92505050617b4e565b6000925050505b92915050565b6000806000617b61617bb7565b617b6b868661469a565b9150915060006003811115617b7c57fe5b826003811115617b8857fe5b14617b9e57816000809050935093505050617bb0565b6000617ba98261576c565b9350935050505b9250929050565b6040518060200160405280600081525090565b60405180610140016040528060006003811115617be357fe5b815260200160008152602001600081526020016000815260200160008152602001617c0c617d65565b8152602001600081526020016000815260200160008152602001600081525090565b6040518060e0016040528060006010811115617c4657fe5b815260200160006003811115617c5857fe5b815260200160008152602001600081526020016000815260200160008152602001600081525090565b6040518060e0016040528060006010811115617c9957fe5b815260200160006003811115617cab57fe5b815260200160008152602001600081526020016000815260200160008152602001600081525090565b6040518060c0016040528060006010811115617cec57fe5b815260200160006003811115617cfe57fe5b8152602001600081526020016000815260200160008152602001600081525090565b6040518060a0016040528060006010811115617d3857fe5b815260200160006003811115617d4a57fe5b81526020016000815260200160008152602001600081525090565b604051806020016040528060008152509056fe737570706c7952617465506572426c6f636b3a2063616c63756c6174696e6720626f72726f7773506572206661696c6564726564756365207265736572766573207472616e73666572206f7574206661696c6564737570706c7952617465506572426c6f636b3a2063616c63756c6174696e6720737570706c7952617465206661696c6564626f72726f7742616c616e636553746f7265643a20626f72726f7742616c616e636553746f726564496e7465726e616c206661696c6564737570706c7952617465506572426c6f636b3a2063616c63756c6174696e6720756e6465726c79696e67206661696c6564626f72726f7752617465506572426c6f636b3a20696e746572657374526174654d6f64656c2e626f72726f7752617465206661696c6564737570706c7952617465506572426c6f636b3a2063616c63756c6174696e6720626f72726f7752617465206661696c6564737570706c7952617465506572426c6f636b3a2063616c63756c6174696e67206f6e654d696e757352657365727665466163746f72206661696c656465786368616e67655261746553746f7265643a2065786368616e67655261746553746f726564496e7465726e616c206661696c65646f6e65206f662072656465656d546f6b656e73496e206f722072656465656d416d6f756e74496e206d757374206265207a65726f72656475636520726573657276657320756e657870656374656420756e646572666c6f77a265627a7a72305820b76eb00b52d0da88071035fa273abb07e6e0b748adc4dd04608fe19e1fc65c9664736f6c634300050a0032"}}
CEther
{"abi": [{"constant": true, "inputs": [], "name": "name", "outputs": [{"name": "", "type": "string"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "spender", "type": "address"}, {"name": "amount", "type": "uint256"}], "name": "approve", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "mint", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function"}, {"constant": true, "inputs": [], "name": "reserveFactorMantissa", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "account", "type": "address"}], "name": "borrowBalanceCurrent", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "totalSupply", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "exchangeRateStored", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "src", "type": "address"}, {"name": "dst", "type": "address"}, {"name": "amount", "type": "uint256"}], "name": "transferFrom", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "pendingAdmin", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "decimals", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "owner", "type": "address"}], "name": "balanceOfUnderlying", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "getCash", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "newComptroller", "type": "address"}], "name": "_setComptroller", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "totalBorrows", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "repayBorrow", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function"}, {"constant": true, "inputs": [], "name": "comptroller", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "reduceAmount", "type": "uint256"}], "name": "_reduceReserves", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "initialExchangeRateMantissa", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "accrualBlockNumber", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "owner", "type": "address"}], "name": "balanceOf", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "totalBorrowsCurrent", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "redeemAmount", "type": "uint256"}], "name": "redeemUnderlying", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "totalReserves", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "symbol", "outputs": [{"name": "", "type": "string"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "account", "type": "address"}], "name": "borrowBalanceStored", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "accrueInterest", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "dst", "type": "address"}, {"name": "amount", "type": "uint256"}], "name": "transfer", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "borrowIndex", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "borrower", "type": "address"}, {"name": "cTokenCollateral", "type": "address"}], "name": "liquidateBorrow", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function"}, {"constant": true, "inputs": [], "name": "supplyRatePerBlock", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "liquidator", "type": "address"}, {"name": "borrower", "type": "address"}, {"name": "seizeTokens", "type": "uint256"}], "name": "seize", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "newPendingAdmin", "type": "address"}], "name": "_setPendingAdmin", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "exchangeRateCurrent", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "account", "type": "address"}], "name": "getAccountSnapshot", "outputs": [{"name": "", "type": "uint256"}, {"name": "", "type": "uint256"}, {"name": "", "type": "uint256"}, {"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "borrowAmount", "type": "uint256"}], "name": "borrow", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "redeemTokens", "type": "uint256"}], "name": "redeem", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "owner", "type": "address"}, {"name": "spender", "type": "address"}], "name": "allowance", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "borrower", "type": "address"}], "name": "repayBorrowBehalf", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function"}, {"constant": false, "inputs": [], "name": "_acceptAdmin", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "newInterestRateModel", "type": "address"}], "name": "_setInterestRateModel", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "interestRateModel", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "admin", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "borrowRatePerBlock", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "newReserveFactorMantissa", "type": "uint256"}], "name": "_setReserveFactor", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "isCToken", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"inputs": [{"name": "comptroller_", "type": "address"}, {"name": "interestRateModel_", "type": "address"}, {"name": "initialExchangeRateMantissa_", "type": "uint256"}, {"name": "name_", "type": "string"}, {"name": "symbol_", "type": "string"}, {"name": "decimals_", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"payable": true, "stateMutability": "payable", "type": "fallback"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "interestAccumulated", "type": "uint256"}, {"indexed": false, "name": "borrowIndex", "type": "uint256"}, {"indexed": false, "name": "totalBorrows", "type": "uint256"}], "name": "AccrueInterest", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "minter", "type": "address"}, {"indexed": false, "name": "mintAmount", "type": "uint256"}, {"indexed": false, "name": "mintTokens", "type": "uint256"}], "name": "Mint", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "redeemer", "type": "address"}, {"indexed": false, "name": "redeemAmount", "type": "uint256"}, {"indexed": false, "name": "redeemTokens", "type": "uint256"}], "name": "Redeem", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "borrower", "type": "address"}, {"indexed": false, "name": "borrowAmount", "type": "uint256"}, {"indexed": false, "name": "accountBorrows", "type": "uint256"}, {"indexed": false, "name": "totalBorrows", "type": "uint256"}], "name": "Borrow", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "payer", "type": "address"}, {"indexed": false, "name": "borrower", "type": "address"}, {"indexed": false, "name": "repayAmount", "type": "uint256"}, {"indexed": false, "name": "accountBorrows", "type": "uint256"}, {"indexed": false, "name": "totalBorrows", "type": "uint256"}], "name": "RepayBorrow", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "liquidator", "type": "address"}, {"indexed": false, "name": "borrower", "type": "address"}, {"indexed": false, "name": "repayAmount", "type": "uint256"}, {"indexed": false, "name": "cTokenCollateral", "type": "address"}, {"indexed": false, "name": "seizeTokens", "type": "uint256"}], "name": "LiquidateBorrow", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "oldPendingAdmin", "type": "address"}, {"indexed": false, "name": "newPendingAdmin", "type": "address"}], "name": "NewPendingAdmin", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "oldAdmin", "type": "address"}, {"indexed": false, "name": "newAdmin", "type": "address"}], "name": "NewAdmin", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "oldComptroller", "type": "address"}, {"indexed": false, "name": "newComptroller", "type": "address"}], "name": "NewComptroller", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "oldInterestRateModel", "type": "address"}, {"indexed": false, "name": "newInterestRateModel", "type": "address"}], "name": "NewMarketInterestRateModel", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "oldReserveFactorMantissa", "type": "uint256"}, {"indexed": false, "name": "newReserveFactorMantissa", "type": "uint256"}], "name": "NewReserveFactor", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "admin", "type": "address"}, {"indexed": false, "name": "reduceAmount", "type": "uint256"}, {"indexed": false, "name": "newTotalReserves", "type": "uint256"}], "name": "ReservesReduced", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "error", "type": "uint256"}, {"indexed": false, "name": "info", "type": "uint256"}, {"indexed": false, "name": "detail", "type": "uint256"}], "name": "Failure", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "from", "type": "address"}, {"indexed": true, "name": "to", "type": "address"}, {"indexed": false, "name": "amount", "type": "uint256"}], "name": "Transfer", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "owner", "type": "address"}, {"indexed": true, "name": "spender", "type": "address"}, {"indexed": false, "name": "amount", "type": "uint256"}], "name": "Approval", "type": "event"}], "compiler": {"name": "solc", "settings": {"optimize": false}, "version": "0.5.10+commit.5a6ea5b1"}, "deployment_bytecode": {"bytecode": "0x60806040523480156200001157600080fd5b5060405162008c6d38038062008c6d833981810160405260c08110156200003757600080fd5b8101908080519060200190929190805190602001909291908051906020019092919080516401000000008111156200006e57600080fd5b828101905060208101848111156200008557600080fd5b8151856001820283011164010000000082111715620000a357600080fd5b50509291906020018051640100000000811115620000c057600080fd5b82810190506020810184811115620000d757600080fd5b8151856001820283011164010000000082111715620000f557600080fd5b505092919060200180519060200190929190505050858585858585600160008190555033600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083600881905550600060085411620001bd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603081526020018062008c3d6030913960400191505060405180910390fd5b6000620001d0876200034060201b60201c565b905060006010811115620001e057fe5b811462000255576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f53657474696e6720636f6d7074726f6c6c6572206661696c656400000000000081525060200191505060405180910390fd5b62000265620005c060201b60201c565b600a81905550670de0b6b3a7640000600b819055506200028b86620005c860201b60201c565b9050600060108111156200029b57fe5b8114620002f4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602281526020018062008c1b6022913960400191505060405180910390fd5b83600190805190602001906200030c929190620008f6565b50826002908051906020019062000325929190620008f6565b508160038190555050505050505050505050505050620009a5565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614620003b457620003ac6001603f6200087f60201b60201c565b9050620005bb565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508273ffffffffffffffffffffffffffffffffffffffff16627e3dd26040518163ffffffff1660e01b815260040160206040518083038186803b1580156200042157600080fd5b505afa15801562000436573d6000803e3d6000fd5b505050506040513d60208110156200044d57600080fd5b8101908080519060200190929190505050620004d1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f6d61726b6572206d6574686f642072657475726e65642066616c73650000000081525060200191505060405180910390fd5b82600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f7ac369dbd14fa5ea3f473ed67cc9d598964a77501540ba6751eb0b3decf5870d8184604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a160006010811115620005b757fe5b9150505b919050565b600043905090565b600080600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146200063e5762000635600160426200087f60201b60201c565b9150506200087a565b6200064e620005c060201b60201c565b600a541462000674576200066b600a60416200087f60201b60201c565b9150506200087a565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508273ffffffffffffffffffffffffffffffffffffffff16632191f92a6040518163ffffffff1660e01b815260040160206040518083038186803b158015620006e057600080fd5b505afa158015620006f5573d6000803e3d6000fd5b505050506040513d60208110156200070c57600080fd5b810190808051906020019092919050505062000790576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f6d61726b6572206d6574686f642072657475726e65642066616c73650000000081525060200191505060405180910390fd5b82600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fedffc32e068c7c95dfd4bdfd5c4d939a084d6b11c4199eac8436ed234d72f9268184604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a1600060108111156200087657fe5b9150505b919050565b60007f45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa0836010811115620008af57fe5b83604d811115620008bc57fe5b600060405180848152602001838152602001828152602001935050505060405180910390a1826010811115620008ee57fe5b905092915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200093957805160ff19168380011785556200096a565b828001600101855582156200096a579182015b82811115620009695782518255916020019190600101906200094c565b5b5090506200097991906200097d565b5090565b620009a291905b808211156200099e57600081600090555060010162000984565b5090565b90565b61826680620009b56000396000f3fe6080604052600436106102725760003560e01c80638f840ddd1161014f578063c37f68e2116100c1578063f2b3abbd1161007a578063f2b3abbd14610e6b578063f3fdb15a14610ed0578063f851a44014610f27578063f8f9da2814610f7e578063fca7820b14610fa9578063fe9c44ae14610ff857610272565b8063c37f68e214610c5f578063c5ebeaec14610cd9578063db006a7514610d28578063dd62ed3e14610d77578063e597461914610dfc578063e9c714f214610e4057610272565b8063aa5af0fd11610113578063aa5af0fd14610a86578063aae40a2a14610ab1578063ae9d70b014610b15578063b2a02ff114610b40578063b71d1a0c14610bcf578063bd6d894d14610c3457610272565b80638f840ddd146108c857806395d89b41146108f357806395dd919314610983578063a6afed95146109e8578063a9059cbb14610a1357610272565b80633b1d21a2116101e8578063601a0bf1116101ac578063601a0bf114610744578063675d972c146107935780636c540baf146107be57806370a08231146107e957806373acee981461084e578063852a12e31461087957610272565b80633b1d21a2146106285780634576b5db1461065357806347bd3718146106b85780634e4d9fea146106e35780635fe3b567146106ed57610272565b806318160ddd1161023a57806318160ddd14610458578063182df0f51461048357806323b872dd146104ae5780632678224714610541578063313ce567146105985780633af9e669146105c357610272565b806306fdde03146102bb578063095ea7b31461034b5780631249c58b146103be578063173b9904146103c857806317bfdfbc146103f3575b6102b961027e34611027565b6040518060400160405280600b81526020017f6d696e74206661696c6564000000000000000000000000000000000000000000815250611107565b005b3480156102c757600080fd5b506102d06113ef565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156103105780820151818401526020810190506102f5565b50505050905090810190601f16801561033d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561035757600080fd5b506103a46004803603604081101561036e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061148d565b604051808215151515815260200191505060405180910390f35b6103c6611584565b005b3480156103d457600080fd5b506103dd6115cd565b6040518082815260200191505060405180910390f35b3480156103ff57600080fd5b506104426004803603602081101561041657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506115d3565b6040518082815260200191505060405180910390f35b34801561046457600080fd5b5061046d6116fb565b6040518082815260200191505060405180910390f35b34801561048f57600080fd5b50610498611701565b6040518082815260200191505060405180910390f35b3480156104ba57600080fd5b50610527600480360360608110156104d157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611789565b604051808215151515815260200191505060405180910390f35b34801561054d57600080fd5b5061055661183c565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156105a457600080fd5b506105ad611862565b6040518082815260200191505060405180910390f35b3480156105cf57600080fd5b50610612600480360360208110156105e657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611868565b6040518082815260200191505060405180910390f35b34801561063457600080fd5b5061063d611908565b6040518082815260200191505060405180910390f35b34801561065f57600080fd5b506106a26004803603602081101561067657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611917565b6040518082815260200191505060405180910390f35b3480156106c457600080fd5b506106cd611b88565b6040518082815260200191505060405180910390f35b6106eb611b8e565b005b3480156106f957600080fd5b50610702611bd7565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561075057600080fd5b5061077d6004803603602081101561076757600080fd5b8101908080359060200190929190505050611bfd565b6040518082815260200191505060405180910390f35b34801561079f57600080fd5b506107a8611cdc565b6040518082815260200191505060405180910390f35b3480156107ca57600080fd5b506107d3611ce2565b6040518082815260200191505060405180910390f35b3480156107f557600080fd5b506108386004803603602081101561080c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611ce8565b6040518082815260200191505060405180910390f35b34801561085a57600080fd5b50610863611d31565b6040518082815260200191505060405180910390f35b34801561088557600080fd5b506108b26004803603602081101561089c57600080fd5b8101908080359060200190929190505050611e51565b6040518082815260200191505060405180910390f35b3480156108d457600080fd5b506108dd611e63565b6040518082815260200191505060405180910390f35b3480156108ff57600080fd5b50610908611e69565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561094857808201518184015260208101905061092d565b50505050905090810190601f1680156109755780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561098f57600080fd5b506109d2600480360360208110156109a657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611f07565b6040518082815260200191505060405180910390f35b3480156109f457600080fd5b506109fd611f92565b6040518082815260200191505060405180910390f35b348015610a1f57600080fd5b50610a6c60048036036040811015610a3657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506124c5565b604051808215151515815260200191505060405180910390f35b348015610a9257600080fd5b50610a9b612577565b6040518082815260200191505060405180910390f35b610b1360048036036040811015610ac757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061257d565b005b348015610b2157600080fd5b50610b2a6125ca565b6040518082815260200191505060405180910390f35b348015610b4c57600080fd5b50610bb960048036036060811015610b6357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050612981565b6040518082815260200191505060405180910390f35b348015610bdb57600080fd5b50610c1e60048036036020811015610bf257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612f88565b6040518082815260200191505060405180910390f35b348015610c4057600080fd5b50610c49613107565b6040518082815260200191505060405180910390f35b348015610c6b57600080fd5b50610cae60048036036020811015610c8257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061322c565b6040518085815260200184815260200183815260200182815260200194505050505060405180910390f35b348015610ce557600080fd5b50610d1260048036036020811015610cfc57600080fd5b8101908080359060200190929190505050613354565b6040518082815260200191505060405180910390f35b348015610d3457600080fd5b50610d6160048036036020811015610d4b57600080fd5b8101908080359060200190929190505050613366565b6040518082815260200191505060405180910390f35b348015610d8357600080fd5b50610de660048036036040811015610d9a57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613378565b6040518082815260200191505060405180910390f35b610e3e60048036036020811015610e1257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506133ff565b005b348015610e4c57600080fd5b50610e5561344a565b6040518082815260200191505060405180910390f35b348015610e7757600080fd5b50610eba60048036036020811015610e8e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613767565b6040518082815260200191505060405180910390f35b348015610edc57600080fd5b50610ee56137b7565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610f3357600080fd5b50610f3c6137dd565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610f8a57600080fd5b50610f93613803565b6040518082815260200191505060405180910390f35b348015610fb557600080fd5b50610fe260048036036020811015610fcc57600080fd5b810190808035906020019092919050505061393f565b6040518082815260200191505060405180910390f35b34801561100457600080fd5b5061100d613a1e565b604051808215151515815260200191505060405180910390f35b6000600160008082825401925050819055506000805490506000611049611f92565b90506000601081111561105857fe5b811461107c5761107481601081111561106d57fe5b601e613a23565b92505061108a565b6110863385613a97565b9250505b6000548114611101576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b50919050565b6000601081111561111457fe5b821415611120576113eb565b606060058251016040519080825280601f01601f1916602001820160405280156111595781602001600182028038833980820191505090505b50905060008090505b82518110156111ca5782818151811061117757fe5b602001015160f81c60f81b82828151811061118e57fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508080600101915050611162565b602060f81b8260008301815181106111de57fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350602860f81b82600183018151811061122157fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a848161125a57fe5b0460300160f81b82600283018151811061127057fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a84816112a957fe5b0660300160f81b8260038301815181106112bf57fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350602960f81b82600483018151811061130257fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000601081111561133e57fe5b841482906113e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156113ac578082015181840152602081019050611391565b50505050905090810190601f1680156113d95780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5050505b5050565b60018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156114855780601f1061145a57610100808354040283529160200191611485565b820191906000526020600020905b81548152906001019060200180831161146857829003601f168201915b505050505081565b60008033905082601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925856040518082815260200191505060405180910390a3600191505092915050565b6115cb61159034611027565b6040518060400160405280600b81526020017f6d696e74206661696c6564000000000000000000000000000000000000000000815250611107565b565b60095481565b600060016000808282540192505081905550600080549050600060108111156115f857fe5b611600611f92565b14611673576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f61636372756520696e746572657374206661696c65640000000000000000000081525060200191505060405180910390fd5b61167c83611f07565b915060005481146116f5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b50919050565b600e5481565b600080600061170e614150565b915091506000600381111561171f57fe5b82600381111561172b57fe5b14611781576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260358152602001806181a56035913960400191505060405180910390fd5b809250505090565b600060016000808282540192505081905550600080549050600060108111156117ae57fe5b6117ba33878787614225565b1491506000548114611834576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b509392505050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60035481565b6000611872617e52565b6040518060200160405280611885613107565b81525090506000806118d683600f60008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546148f8565b91509150600060038111156118e757fe5b8260038111156118f357fe5b146118fd57600080fd5b809350505050919050565b600061191261495b565b905090565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146119815761197a6001603f613a23565b9050611b83565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508273ffffffffffffffffffffffffffffffffffffffff16627e3dd26040518163ffffffff1660e01b815260040160206040518083038186803b1580156119ed57600080fd5b505afa158015611a01573d6000803e3d6000fd5b505050506040513d6020811015611a1757600080fd5b8101908080519060200190929190505050611a9a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f6d61726b6572206d6574686f642072657475726e65642066616c73650000000081525060200191505060405180910390fd5b82600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f7ac369dbd14fa5ea3f473ed67cc9d598964a77501540ba6751eb0b3decf5870d8184604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a160006010811115611b7f57fe5b9150505b919050565b600c5481565b611bd5611b9a346149b0565b6040518060400160405280601281526020017f7265706179426f72726f77206661696c65640000000000000000000000000000815250611107565b565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600160008082825401925050819055506000805490506000611c1f611f92565b905060006010811115611c2e57fe5b8114611c5257611c4a816010811115611c4357fe5b6030613a23565b925050611c5f565b611c5b84614a91565b9250505b6000548114611cd6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b50919050565b60085481565b600a5481565b6000600f60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60006001600080828254019250508190555060008054905060006010811115611d5657fe5b611d5e611f92565b14611dd1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f61636372756520696e746572657374206661696c65640000000000000000000081525060200191505060405180910390fd5b600c5491506000548114611e4d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b5090565b6000611e5c82614d1a565b9050919050565b600d5481565b60028054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015611eff5780601f10611ed457610100808354040283529160200191611eff565b820191906000526020600020905b815481529060010190602001808311611ee257829003601f168201915b505050505081565b6000806000611f1584614dfc565b9150915060006003811115611f2657fe5b826003811115611f3257fe5b14611f88576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260378152602001806180996037913960400191505060405180910390fd5b8092505050919050565b6000611f9c617e65565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166315f24053611fe261495b565b600c54600d546040518463ffffffff1660e01b8152600401808481526020018381526020018281526020019350505050604080518083038186803b15801561202957600080fd5b505afa15801561203d573d6000803e3d6000fd5b505050506040513d604081101561205357600080fd5b8101908080519060200190929190805190602001909291905050508260200183604001828152508281525050506601c6bf5263400081604001511115612101576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f626f72726f772072617465206973206162737572646c7920686967680000000081525060200191505060405180910390fd5b60008160200151146121265761211e600560028360200151614f07565b9150506124c2565b61212e614f7b565b8160600181815250506121478160600151600a54614f83565b82600001836080018281525082600381111561215f57fe5b600381111561216a57fe5b81525050506000600381111561217c57fe5b8160000151600381111561218c57fe5b1461219357fe5b6121b3604051806020016040528083604001518152508260800151614fae565b809050826000018360a0018290528260038111156121cd57fe5b60038111156121d857fe5b8152505050600060038111156121ea57fe5b816000015160038111156121fa57fe5b146122235761221b600960068360000151600381111561221657fe5b614f07565b9150506124c2565b6122338160a00151600c546148f8565b826000018360c0018281525082600381111561224b57fe5b600381111561225657fe5b81525050506000600381111561226857fe5b8160000151600381111561227857fe5b146122a157612299600960018360000151600381111561229457fe5b614f07565b9150506124c2565b6122b18160c00151600c5461502c565b826000018360e001828152508260038111156122c957fe5b60038111156122d457fe5b8152505050600060038111156122e657fe5b816000015160038111156122f657fe5b1461231f57612317600960048360000151600381111561231257fe5b614f07565b9150506124c2565b61234060405180602001604052806009548152508260c00151600d5461505e565b8260000183610100018281525082600381111561235957fe5b600381111561236457fe5b81525050506000600381111561237657fe5b8160000151600381111561238657fe5b146123af576123a760096005836000015160038111156123a257fe5b614f07565b9150506124c2565b6123c28160a00151600b54600b5461505e565b826000018361012001828152508260038111156123db57fe5b60038111156123e657fe5b8152505050600060038111156123f857fe5b8160000151600381111561240857fe5b1461243157612429600960038360000151600381111561242457fe5b614f07565b9150506124c2565b8060600151600a81905550806101200151600b819055508060e00151600c81905550806101000151600d819055507f875352fb3fadeb8c0be7cbbe8ff761b308fa7033470cd0287f02f3436fd76cb98160c00151826101200151600c5460405180848152602001838152602001828152602001935050505060405180910390a1600060108111156124be57fe5b9150505b90565b600060016000808282540192505081905550600080549050600060108111156124ea57fe5b6124f633338787614225565b1491506000548114612570576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b5092915050565b600b5481565b6125c661258b8334846150c9565b6040518060400160405280601681526020017f6c6971756964617465426f72726f77206661696c656400000000000000000000815250611107565b5050565b6000806125d5611701565b9050600080600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166315f2405361262061495b565b600c54600d546040518463ffffffff1660e01b8152600401808481526020018381526020018281526020019350505050604080518083038186803b15801561266757600080fd5b505afa15801561267b573d6000803e3d6000fd5b505050506040513d604081101561269157600080fd5b8101908080519060200190929190805190602001909291905050509150915060008214612709576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260318152602001806181386031913960400191505060405180910390fd5b6000612713617e52565b61272d604051806020016040528087815250600e54614fae565b915091506000600381111561273e57fe5b82600381111561274a57fe5b146127a0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260318152602001806180d06031913960400191505060405180910390fd5b60006127aa617e52565b6127b6600c5484615263565b91509150600060038111156127c757fe5b8260038111156127d357fe5b14612829576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260318152602001806180146031913960400191505060405180910390fd5b6000612833617e52565b6128636040518060200160405280670de0b6b3a764000081525060405180602001604052806009548152506152df565b915091506000600381111561287457fe5b82600381111561288057fe5b146128d6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603c815260200180618169603c913960400191505060405180910390fd5b60006128e0617e52565b6128f960405180602001604052808b8152508487615322565b915091506000600381111561290a57fe5b82600381111561291657fe5b1461296c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260318152602001806180686031913960400191505060405180910390fd5b80600001519b50505050505050505050505090565b6000600160008082825401925050819055506000805490506000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d02f735130338989896040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200195505050505050602060405180830381600087803b158015612ae057600080fd5b505af1158015612af4573d6000803e3d6000fd5b505050506040513d6020811015612b0a57600080fd5b8101908080519060200190929190505050905060008114612b3a57612b326003601b83614f07565b925050612f09565b8573ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415612b8257612b7a6006601c613a23565b925050612f09565b6000806000612bd0600f60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205488614f83565b809350819450505060006003811115612be557fe5b836003811115612bf157fe5b14612c1957612c0e6009601a856003811115612c0957fe5b614f07565b955050505050612f09565b612c62600f60008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548861502c565b809250819450505060006003811115612c7757fe5b836003811115612c8357fe5b14612cab57612ca060096019856003811115612c9b57fe5b614f07565b955050505050612f09565b81600f60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080600f60008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508873ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef896040518082815260200191505060405180910390a3600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636d35bf9130338c8c8c6040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200195505050505050600060405180830381600087803b158015612edd57600080fd5b505af1158015612ef1573d6000803e3d6000fd5b5050505060006010811115612f0257fe5b9550505050505b6000548114612f80576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b509392505050565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612ff257612feb60016045613a23565b9050613102565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905082600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a98184604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a1600060108111156130fe57fe5b9150505b919050565b6000600160008082825401925050819055506000805490506000601081111561312c57fe5b613134611f92565b146131a7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f61636372756520696e746572657374206661696c65640000000000000000000081525060200191505060405180910390fd5b6131af611701565b91506000548114613228576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b5090565b6000806000806000600f60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600080600061328489614dfc565b80945081925050506000600381111561329957fe5b8160038111156132a557fe5b146132d657600960108111156132b757fe5b600080600082925081915080905097509750975097505050505061334d565b6132de614150565b8093508192505050600060038111156132f357fe5b8160038111156132ff57fe5b14613330576009601081111561331157fe5b600080600082925081915080905097509750975097505050505061334d565b6000601081111561333d57fe5b8484849750975097509750505050505b9193509193565b600061335f82615388565b9050919050565b600061337182615468565b9050919050565b6000601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b61344761340c823461554a565b6040518060400160405280601881526020017f7265706179426f72726f77426568616c66206661696c65640000000000000000815250611107565b50565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415806134d55750600073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b156134ed576134e660016000613a23565b9050613764565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507ff9ffabca9c8276e99321725bcb43fb076a6c66a54b7f21c4e8146d8519b417dc82600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a17fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a981600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a16000601081111561375f57fe5b925050505b90565b600080613772611f92565b90506000601081111561378157fe5b81146137a55761379d81601081111561379657fe5b6040613a23565b9150506137b2565b6137ae8361562c565b9150505b919050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166315f2405361384e61495b565b600c54600d546040518463ffffffff1660e01b8152600401808481526020018381526020018281526020019350505050604080518083038186803b15801561389557600080fd5b505afa1580156138a9573d6000803e3d6000fd5b505050506040513d60408110156138bf57600080fd5b8101908080519060200190929190805190602001909291905050509150915060008214613937576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260378152602001806181016037913960400191505060405180910390fd5b809250505090565b6000600160008082825401925050819055506000805490506000613961611f92565b90506000601081111561397057fe5b81146139945761398c81601081111561398557fe5b6046613a23565b9250506139a1565b61399d846158c2565b9250505b6000548114613a18576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b50919050565b600181565b60007f45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa0836010811115613a5257fe5b83604d811115613a5e57fe5b600060405180848152602001838152602001828152602001935050505060405180910390a1826010811115613a8f57fe5b905092915050565b600080600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634ef4c3e13086866040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b158015613b7757600080fd5b505af1158015613b8b573d6000803e3d6000fd5b505050506040513d6020811015613ba157600080fd5b8101908080519060200190929190505050905060008114613bd157613bc96003601f83614f07565b91505061414a565b613bd9614f7b565b600a5414613bf557613bed600a6022613a23565b91505061414a565b613bfd617ec9565b613c0785856159d5565b81600001906010811115613c1757fe5b90816010811115613c2457fe5b8152505060006010811115613c3557fe5b81600001516010811115613c4557fe5b14613c6257613c5981600001516026613a23565b9250505061414a565b613c6a614150565b826020018360400182815250826003811115613c8257fe5b6003811115613c8d57fe5b815250505060006003811115613c9f57fe5b81602001516003811115613caf57fe5b14613cd957613cd06009602183602001516003811115613ccb57fe5b614f07565b9250505061414a565b613cf58460405180602001604052808460400151815250615af7565b826020018360600182815250826003811115613d0d57fe5b6003811115613d1857fe5b815250505060006003811115613d2a57fe5b81602001516003811115613d3a57fe5b14613d6457613d5b6009602083602001516003811115613d5657fe5b614f07565b9250505061414a565b613d74600e54826060015161502c565b826020018360800182815250826003811115613d8c57fe5b6003811115613d9757fe5b815250505060006003811115613da957fe5b81602001516003811115613db957fe5b14613de357613dda6009602483602001516003811115613dd557fe5b614f07565b9250505061414a565b613e30600f60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054826060015161502c565b826020018360a00182815250826003811115613e4857fe5b6003811115613e5357fe5b815250505060006003811115613e6557fe5b81602001516003811115613e7557fe5b14613e9f57613e966009602383602001516003811115613e9157fe5b614f07565b9250505061414a565b613ea98585615b5a565b81600001906010811115613eb957fe5b90816010811115613ec657fe5b8152505060006010811115613ed757fe5b81600001516010811115613ee757fe5b14613f0457613efb81600001516025613a23565b9250505061414a565b8060800151600e819055508060a00151600f60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f85858360600151604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828152602001935050505060405180910390a18473ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83606001516040518082815260200191505060405180910390a3600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166341c728b930878785606001516040518563ffffffff1660e01b8152600401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828152602001945050505050600060405180830381600087803b15801561412057600080fd5b505af1158015614134573d6000803e3d6000fd5b505050506000601081111561414557fe5b925050505b92915050565b6000806000600e54141561416c57600060085491509150614221565b600061417661495b565b90506000614182617e52565b600061419384600c54600d54615c7c565b8094508192505050600060038111156141a857fe5b8160038111156141b457fe5b146141cc578060008090509550955050505050614221565b6141d883600e54615cd8565b8093508192505050600060038111156141ed57fe5b8160038111156141f957fe5b14614211578060008090509550955050505050614221565b6000826000015195509550505050505b9091565b600080600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bdcdc258308787876040518563ffffffff1660e01b8152600401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828152602001945050505050602060405180830381600087803b15801561433957600080fd5b505af115801561434d573d6000803e3d6000fd5b505050506040513d602081101561436357600080fd5b81019080805190602001909291905050509050600081146143935761438b6003604a83614f07565b9150506148f0565b8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156143db576143d36002604b613a23565b9150506148f0565b60008090508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff16141561443c577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90506144bc565b601060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490505b6000806000806144cc8589614f83565b8094508195505050600060038111156144e157fe5b8460038111156144ed57fe5b1461450b576144fe6009604b613a23565b96505050505050506148f0565b614554600f60008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205489614f83565b80935081955050506000600381111561456957fe5b84600381111561457557fe5b14614593576145866009604c613a23565b96505050505050506148f0565b6145dc600f60008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548961502c565b8092508195505050600060038111156145f157fe5b8460038111156145fd57fe5b1461461b5761460e6009604d613a23565b96505050505050506148f0565b81600f60008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080600f60008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff851461474c5782601060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b8873ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8a6040518082815260200191505060405180910390a3600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636a56947e308c8c8c6040518563ffffffff1660e01b8152600401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828152602001945050505050600060405180830381600087803b1580156148c257600080fd5b505af11580156148d6573d6000803e3d6000fd5b50505050600060108111156148e757fe5b96505050505050505b949350505050565b6000806000614905617e52565b61490f8686614fae565b915091506000600381111561492057fe5b82600381111561492c57fe5b1461494257816000809050935093505050614954565b600061494d82615dac565b9350935050505b9250929050565b60008060006149813073ffffffffffffffffffffffffffffffffffffffff163134614f83565b915091506000600381111561499257fe5b82600381111561499e57fe5b146149a857600080fd5b809250505090565b60006001600080828254019250508190555060008054905060006149d2611f92565b9050600060108111156149e157fe5b8114614a05576149fd8160108111156149f657fe5b6036613a23565b925050614a14565b614a10333386615dcb565b9250505b6000548114614a8b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b50919050565b6000806000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614614b0057614af760016031613a23565b92505050614d15565b614b08614f7b565b600a5414614b2557614b1c600a6033613a23565b92505050614d15565b83614b2e61495b565b1015614b4957614b40600e6032613a23565b92505050614d15565b600d54841115614b6857614b5f60026034613a23565b92505050614d15565b83600d54039050600d54811115614bca576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602481526020018061820e6024913960400191505060405180910390fd5b80600d81905550614bfd600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1685616543565b915060006010811115614c0c57fe5b826010811115614c1857fe5b14614c6e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806180456023913960400191505060405180910390fd5b7f3bad0c59cf2f06e7314077049f48a93578cd16f5ef92329f1dab1420a99c177e600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168583604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828152602001935050505060405180910390a160006010811115614d1057fe5b925050505b919050565b6000600160008082825401925050819055506000805490506000614d3c611f92565b905060006010811115614d4b57fe5b8114614d6f57614d67816010811115614d6057fe5b6027613a23565b925050614d7f565b614d7b33600086616596565b9250505b6000548114614df6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b50919050565b600080600080600080601160008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600081600001541415614e66576000808090509550955050505050614f02565b614e768160000154600b54616d8a565b809450819550505060006003811115614e8b57fe5b846003811115614e9757fe5b14614eaf578360008090509550955050505050614f02565b614ebd838260010154616ddd565b809350819550505060006003811115614ed257fe5b846003811115614ede57fe5b14614ef6578360008090509550955050505050614f02565b60008295509550505050505b915091565b60007f45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa0846010811115614f3657fe5b84604d811115614f4257fe5b8460405180848152602001838152602001828152602001935050505060405180910390a1836010811115614f7257fe5b90509392505050565b600043905090565b600080838311614f9b57600083850391509150614fa7565b60036000809050915091505b9250929050565b6000614fb8617e52565b600080614fc9866000015186616d8a565b9150915060006003811115614fda57fe5b826003811115614fe657fe5b1461500a578160405180602001604052806000815250809050935093505050615025565b60006040518060200160405280838152508090509350935050505b9250929050565b6000806000838501905084811061504a576000819250925050615057565b6002600080905092509250505b9250929050565b600080600061506b617e52565b6150758787614fae565b915091506000600381111561508657fe5b82600381111561509257fe5b146150a8578160008090509350935050506150c1565b6150ba6150b482615dac565b8661502c565b9350935050505b935093915050565b60006001600080828254019250508190555060008054905060006150eb611f92565b9050600060108111156150fa57fe5b811461511e5761511681601081111561510f57fe5b600f613a23565b9250506151e4565b8373ffffffffffffffffffffffffffffffffffffffff1663a6afed956040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561516657600080fd5b505af115801561517a573d6000803e3d6000fd5b505050506040513d602081101561519057600080fd5b81019080805190602001909291905050509050600060108111156151b057fe5b81146151d4576151cc8160108111156151c557fe5b6010613a23565b9250506151e4565b6151e033878787616e11565b9250505b600054811461525b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b509392505050565b600061526d617e52565b600080615282670de0b6b3a764000087616d8a565b915091506000600381111561529357fe5b82600381111561529f57fe5b146152c35781604051806020016040528060008152508090509350935050506152d8565b6152d1818660000151615cd8565b9350935050505b9250929050565b60006152e9617e52565b6000806152fe86600001518660000151614f83565b91509150816040518060200160405280838152508090509350935050509250929050565b600061532c617e52565b6000615336617e52565b615340878761774f565b915091506000600381111561535157fe5b82600381111561535d57fe5b1461536f578181935093505050615380565b615379818661774f565b9350935050505b935093915050565b60006001600080828254019250508190555060008054905060006153aa611f92565b9050600060108111156153b957fe5b81146153dd576153d58160108111156153ce57fe5b6008613a23565b9250506153eb565b6153e73385617870565b9250505b6000548114615462576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b50919050565b600060016000808282540192505081905550600080549050600061548a611f92565b90506000601081111561549957fe5b81146154bd576154b58160108111156154ae57fe5b6027613a23565b9250506154cd565b6154c933856000616596565b9250505b6000548114615544576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b50919050565b600060016000808282540192505081905550600080549050600061556c611f92565b90506000601081111561557b57fe5b811461559f5761559781601081111561559057fe5b6035613a23565b9250506155ae565b6155aa338686615dcb565b9250505b6000548114615625576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b5092915050565b600080600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146156985761569060016042613a23565b9150506158bd565b6156a0614f7b565b600a54146156bc576156b4600a6041613a23565b9150506158bd565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508273ffffffffffffffffffffffffffffffffffffffff16632191f92a6040518163ffffffff1660e01b815260040160206040518083038186803b15801561572757600080fd5b505afa15801561573b573d6000803e3d6000fd5b505050506040513d602081101561575157600080fd5b81019080805190602001909291905050506157d4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f6d61726b6572206d6574686f642072657475726e65642066616c73650000000081525060200191505060405180910390fd5b82600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fedffc32e068c7c95dfd4bdfd5c4d939a084d6b11c4199eac8436ed234d72f9268184604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a1600060108111156158b957fe5b9150505b919050565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461592c5761592560016047613a23565b90506159d0565b615934614f7b565b600a541461594f57615948600a6048613a23565b90506159d0565b670de0b6b3a76400008211156159725761596b60026049613a23565b90506159d0565b60006009549050826009819055507faaa68312e2ea9d50e16af5068410ab56e1a1fd06037b1a35664812c30f8214608184604051808381526020018281526020019250505060405180910390a1600060108111156159cc57fe5b9150505b919050565b60008273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614615a78576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f73656e646572206d69736d61746368000000000000000000000000000000000081525060200191505060405180910390fd5b813414615aed576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f76616c7565206d69736d6174636800000000000000000000000000000000000081525060200191505060405180910390fd5b6000905092915050565b6000806000615b04617e52565b615b0e8686615263565b9150915060006003811115615b1f57fe5b826003811115615b2b57fe5b14615b4157816000809050935093505050615b53565b6000615b4c82615dac565b9350935050505b9250929050565b60008273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614615bfd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f73656e646572206d69736d61746368000000000000000000000000000000000081525060200191505060405180910390fd5b813414615c72576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f76616c7565206d69736d6174636800000000000000000000000000000000000081525060200191505060405180910390fd5b6000905092915050565b600080600080615c8c878761502c565b9150915060006003811115615c9d57fe5b826003811115615ca957fe5b14615cbf57816000809050935093505050615cd0565b615cc98186614f83565b9350935050505b935093915050565b6000615ce2617e52565b600080615cf786670de0b6b3a7640000616d8a565b9150915060006003811115615d0857fe5b826003811115615d1457fe5b14615d38578160405180602001604052806000815250809050935093505050615da5565b600080615d458388616ddd565b9150915060006003811115615d5657fe5b826003811115615d6257fe5b14615d885781604051806020016040528060008152508090509550955050505050615da5565b600060405180602001604052808381525080905095509550505050505b9250929050565b6000670de0b6b3a7640000826000015181615dc357fe5b049050919050565b600080600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166324008a62308787876040518563ffffffff1660e01b8152600401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828152602001945050505050602060405180830381600087803b158015615edf57600080fd5b505af1158015615ef3573d6000803e3d6000fd5b505050506040513d6020811015615f0957600080fd5b8101908080519060200190929190505050905060008114615f3957615f316003603883614f07565b91505061653c565b615f41614f7b565b600a5414615f5d57615f55600a6039613a23565b91505061653c565b615f65617f15565b601160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010154816060018181525050615fba85614dfc565b826020018360800182815250826003811115615fd257fe5b6003811115615fdd57fe5b815250505060006003811115615fef57fe5b81602001516003811115615fff57fe5b1461602957616020600960378360200151600381111561601b57fe5b614f07565b9250505061653c565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff84141561606457806080015181604001818152505061606f565b838160400181815250505b61607d8682604001516159d5565b8160000190601081111561608d57fe5b9081601081111561609a57fe5b81525050600060108111156160ab57fe5b816000015160108111156160bb57fe5b146160d8576160cf8160000151603c613a23565b9250505061653c565b6160ea81608001518260400151614f83565b826020018360a0018281525082600381111561610257fe5b600381111561610d57fe5b81525050506000600381111561611f57fe5b8160200151600381111561612f57fe5b14616159576161506009603a8360200151600381111561614b57fe5b614f07565b9250505061653c565b616169600c548260400151614f83565b826020018360c0018281525082600381111561618157fe5b600381111561618c57fe5b81525050506000600381111561619e57fe5b816020015160038111156161ae57fe5b146161d8576161cf6009603b836020015160038111156161ca57fe5b614f07565b9250505061653c565b6161e6868260400151615b5a565b816000019060108111156161f657fe5b9081601081111561620357fe5b815250506000601081111561621457fe5b8160000151601081111561622457fe5b14616297576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f726570617920626f72726f77207472616e7366657220696e206661696c65640081525060200191505060405180910390fd5b8060a00151601160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000181905550600b54601160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101819055508060c00151600c819055507f1a2a22cb034d26d1854bdc6666a5b91fe25efbbb5dcad3b0355478d6f5c362a1868683604001518460a001518560c00151604051808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018481526020018381526020018281526020019550505050505060405180910390a1600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631ededc91308888856040015186606001516040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200182815260200195505050505050600060405180830381600087803b15801561651257600080fd5b505af1158015616526573d6000803e3d6000fd5b505050506000601081111561653757fe5b925050505b9392505050565b60008273ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f1935050505015801561658b573d6000803e3d6000fd5b506000905092915050565b6000808314806165a65750600082145b6165fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260348152602001806181da6034913960400191505060405180910390fd5b616603617f68565b61660b614150565b82602001836040018281525082600381111561662357fe5b600381111561662e57fe5b81525050506000600381111561664057fe5b8160200151600381111561665057fe5b14616679576166716009602b8360200151600381111561666c57fe5b614f07565b915050616d83565b600084111561671b57838160600181815250506166a860405180602001604052808360400151815250856148f8565b8260200183608001828152508260038111156166c057fe5b60038111156166cb57fe5b8152505050600060038111156166dd57fe5b816020015160038111156166ed57fe5b146167165761670e600960298360200151600381111561670957fe5b614f07565b915050616d83565b6167b0565b6167378360405180602001604052808460400151815250615af7565b82602001836060018281525082600381111561674f57fe5b600381111561675a57fe5b81525050506000600381111561676c57fe5b8160200151600381111561677c57fe5b146167a55761679d6009602a8360200151600381111561679857fe5b614f07565b915050616d83565b828160800181815250505b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663eabe7d91308885606001516040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b15801561689357600080fd5b505af11580156168a7573d6000803e3d6000fd5b505050506040513d60208110156168bd57600080fd5b81019080805190602001909291905050509050600081146168ee576168e56003602883614f07565b92505050616d83565b6168f6614f7b565b600a54146169135761690a600a602c613a23565b92505050616d83565b616923600e548360600151614f83565b836020018460a0018281525082600381111561693b57fe5b600381111561694657fe5b81525050506000600381111561695857fe5b8260200151600381111561696857fe5b14616992576169896009602e8460200151600381111561698457fe5b614f07565b92505050616d83565b6169df600f60008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548360600151614f83565b836020018460c001828152508260038111156169f757fe5b6003811115616a0257fe5b815250505060006003811115616a1457fe5b82602001516003811115616a2457fe5b14616a4e57616a456009602d84602001516003811115616a4057fe5b614f07565b92505050616d83565b8160800151616a5b61495b565b1015616a7657616a6d600e602f613a23565b92505050616d83565b616a84868360800151616543565b82600001906010811115616a9457fe5b90816010811115616aa157fe5b8152505060006010811115616ab257fe5b82600001516010811115616ac257fe5b14616b35576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f72656465656d207472616e73666572206f7574206661696c656400000000000081525060200191505060405180910390fd5b8160a00151600e819055508160c00151600f60008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055503073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84606001516040518082815260200191505060405180910390a37fe5b754fb1abb7f01b499791d0b820ae3b6af3424ac1c59768edb53f4ec31a9298683608001518460600151604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828152602001935050505060405180910390a1600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166351dff9893088856080015186606001516040518563ffffffff1660e01b8152600401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828152602001945050505050600060405180830381600087803b158015616d5957600080fd5b505af1158015616d6d573d6000803e3d6000fd5b5050505060006010811115616d7e57fe5b925050505b9392505050565b6000806000841415616da55760008080905091509150616dd6565b6000838502905083858281616db657fe5b0414616dcd57600260008090509250925050616dd6565b60008192509250505b9250929050565b6000806000831415616df9576001600080905091509150616e0a565b6000838581616e0457fe5b04915091505b9250929050565b600080600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635fc7e71e30858989896040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200195505050505050602060405180830381600087803b158015616f5957600080fd5b505af1158015616f6d573d6000803e3d6000fd5b505050506040513d6020811015616f8357600080fd5b8101908080519060200190929190505050905060008114616fb357616fab6003601283614f07565b915050617747565b616fbb614f7b565b600a5414616fd757616fcf600a6016613a23565b915050617747565b616fdf614f7b565b8373ffffffffffffffffffffffffffffffffffffffff16636c540baf6040518163ffffffff1660e01b815260040160206040518083038186803b15801561702557600080fd5b505afa158015617039573d6000803e3d6000fd5b505050506040513d602081101561704f57600080fd5b81019080805190602001909291905050501461707957617071600a6011613a23565b915050617747565b8573ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156170c1576170b960066017613a23565b915050617747565b60008414156170de576170d660076015613a23565b915050617747565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff84141561711a5761711260076014613a23565b915050617747565b600080600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c488847b3087896040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604080518083038186803b1580156171f757600080fd5b505afa15801561720b573d6000803e3d6000fd5b505050506040513d604081101561722157600080fd5b810190808051906020019092919080519060200190929190505050915091506000821461725f576172556004601384614f07565b9350505050617747565b8473ffffffffffffffffffffffffffffffffffffffff166370a08231886040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156172dc57600080fd5b505afa1580156172f0573d6000803e3d6000fd5b505050506040513d602081101561730657600080fd5b81019080805190602001909291905050508111156173345761732a600d601d613a23565b9350505050617747565b6000617341898989615dcb565b90506000601081111561735057fe5b81146173775761736c81601081111561736557fe5b6018613a23565b945050505050617747565b60008673ffffffffffffffffffffffffffffffffffffffff1663b2a02ff18b8b866040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b15801561743457600080fd5b505af1158015617448573d6000803e3d6000fd5b505050506040513d602081101561745e57600080fd5b810190808051906020019092919050505090506000601081111561747e57fe5b81146174f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f746f6b656e207365697a757265206661696c656400000000000000000000000081525060200191505060405180910390fd5b7f298637f684da70674f26509b10f07ec2fbc77a335ab1e7d6215a4b2484d8bb528a8a8a8a87604051808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018481526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019550505050505060405180910390a1600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166347ef3b3b30898d8d8d896040518763ffffffff1660e01b8152600401808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018381526020018281526020019650505050505050600060405180830381600087803b15801561771a57600080fd5b505af115801561772e573d6000803e3d6000fd5b505050506000601081111561773f57fe5b955050505050505b949350505050565b6000617759617e52565b60008061776e86600001518660000151616d8a565b915091506000600381111561777f57fe5b82600381111561778b57fe5b146177af578160405180602001604052806000815250809050935093505050617869565b6000806177ce6002670de0b6b3a7640000816177c757fe5b048461502c565b91509150600060038111156177df57fe5b8260038111156177eb57fe5b146178115781604051806020016040528060008152508090509550955050505050617869565b60008061782683670de0b6b3a7640000616ddd565b915091506000600381111561783757fe5b82600381111561784357fe5b1461784a57fe5b6000604051806020016040528083815250809050975097505050505050505b9250929050565b600080600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663da3d454c3086866040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b15801561795057600080fd5b505af1158015617964573d6000803e3d6000fd5b505050506040513d602081101561797a57600080fd5b81019080805190602001909291905050509050600081146179aa576179a26003600e83614f07565b915050617e4c565b6179b2614f7b565b600a54146179cd576179c5600a80613a23565b915050617e4c565b826179d661495b565b10156179f0576179e8600e6009613a23565b915050617e4c565b6179f8617fbb565b617a0185614dfc565b826020018360400182815250826003811115617a1957fe5b6003811115617a2457fe5b815250505060006003811115617a3657fe5b81602001516003811115617a4657fe5b14617a7057617a676009600783602001516003811115617a6257fe5b614f07565b92505050617e4c565b617a7e81604001518561502c565b826020018360600182815250826003811115617a9657fe5b6003811115617aa157fe5b815250505060006003811115617ab357fe5b81602001516003811115617ac357fe5b14617aed57617ae46009600c83602001516003811115617adf57fe5b614f07565b92505050617e4c565b617af9600c548561502c565b826020018360800182815250826003811115617b1157fe5b6003811115617b1c57fe5b815250505060006003811115617b2e57fe5b81602001516003811115617b3e57fe5b14617b6857617b5f6009600b83602001516003811115617b5a57fe5b614f07565b92505050617e4c565b617b728585616543565b81600001906010811115617b8257fe5b90816010811115617b8f57fe5b8152505060006010811115617ba057fe5b81600001516010811115617bb057fe5b14617c23576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f626f72726f77207472616e73666572206f7574206661696c656400000000000081525060200191505060405180910390fd5b8060600151601160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000181905550600b54601160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101819055508060800151600c819055507f13ed6866d4e1ee6da46f845c46d7e54120883d75c5ea9a2dacc1c4ca8984ab80858583606001518460800151604051808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200184815260200183815260200182815260200194505050505060405180910390a1600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635c7786053087876040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050600060405180830381600087803b158015617e2257600080fd5b505af1158015617e36573d6000803e3d6000fd5b5050505060006010811115617e4757fe5b925050505b92915050565b6040518060200160405280600081525090565b60405180610140016040528060006003811115617e7e57fe5b815260200160008152602001600081526020016000815260200160008152602001617ea7618000565b8152602001600081526020016000815260200160008152602001600081525090565b6040518060c0016040528060006010811115617ee157fe5b815260200160006003811115617ef357fe5b8152602001600081526020016000815260200160008152602001600081525090565b6040518060e0016040528060006010811115617f2d57fe5b815260200160006003811115617f3f57fe5b815260200160008152602001600081526020016000815260200160008152602001600081525090565b6040518060e0016040528060006010811115617f8057fe5b815260200160006003811115617f9257fe5b815260200160008152602001600081526020016000815260200160008152602001600081525090565b6040518060a0016040528060006010811115617fd357fe5b815260200160006003811115617fe557fe5b81526020016000815260200160008152602001600081525090565b604051806020016040528060008152509056fe737570706c7952617465506572426c6f636b3a2063616c63756c6174696e6720626f72726f7773506572206661696c6564726564756365207265736572766573207472616e73666572206f7574206661696c6564737570706c7952617465506572426c6f636b3a2063616c63756c6174696e6720737570706c7952617465206661696c6564626f72726f7742616c616e636553746f7265643a20626f72726f7742616c616e636553746f726564496e7465726e616c206661696c6564737570706c7952617465506572426c6f636b3a2063616c63756c6174696e6720756e6465726c79696e67206661696c6564626f72726f7752617465506572426c6f636b3a20696e746572657374526174654d6f64656c2e626f72726f7752617465206661696c6564737570706c7952617465506572426c6f636b3a2063616c63756c6174696e6720626f72726f7752617465206661696c6564737570706c7952617465506572426c6f636b3a2063616c63756c6174696e67206f6e654d696e757352657365727665466163746f72206661696c656465786368616e67655261746553746f7265643a2065786368616e67655261746553746f726564496e7465726e616c206661696c65646f6e65206f662072656465656d546f6b656e73496e206f722072656465656d416d6f756e74496e206d757374206265207a65726f72656475636520726573657276657320756e657870656374656420756e646572666c6f77a265627a7a7230582006a49a9565b1df13c86cb4169d33264cd207f3ef002910722b153a4ead29196e64736f6c634300050a003253657474696e6720696e7465726573742072617465206d6f64656c206661696c6564496e697469616c2065786368616e67652072617465206d7573742062652067726561746572207468616e207a65726f2e"}, "natspec": {"author": "Compound", "methods": {"_acceptAdmin()": {"details": "Admin function for pending admin to accept role and update admin", "return": "uint 0=success, otherwise a failure (see ErrorReporter.sol for details)"}, "_reduceReserves(uint256)": {"params": {"reduceAmount": "Amount of reduction to reserves"}, "return": "uint 0=success, otherwise a failure (see ErrorReporter.sol for details)"}, "_setComptroller(address)": {"details": "Admin function to set a new comptroller", "return": "uint 0=success, otherwise a failure (see ErrorReporter.sol for details)"}, "_setInterestRateModel(address)": {"details": "Admin function to accrue interest and update the interest rate model", "params": {"newInterestRateModel": "the new interest rate model to use"}, "return": "uint 0=success, otherwise a failure (see ErrorReporter.sol for details)"}, "_setPendingAdmin(address)": {"details": "Admin function to begin change of admin. The newPendingAdmin must call `_acceptAdmin` to finalize the transfer.", "params": {"newPendingAdmin": "New pending admin."}, "return": "uint 0=success, otherwise a failure (see ErrorReporter.sol for details)      * TODO: Should we add a second arg to verify, like a checksum of `newAdmin` address?"}, "_setReserveFactor(uint256)": {"details": "Admin function to accrue interest and set a new reserve factor", "return": "uint 0=success, otherwise a failure (see ErrorReporter.sol for details)"}, "accrueInterest()": {"details": "This calculates interest accrued from the last checkpointed block     up to the current block and writes new checkpoint to storage."}, "allowance(address,address)": {"params": {"owner": "The address of the account which owns the tokens to be spent", "spender": "The address of the account which may transfer tokens"}, "return": "The number of tokens allowed to be spent (-1 means infinite)"}, "approve(address,uint256)": {"details": "This will overwrite the approval amount for `spender` and is subject to issues noted [here](https://eips.ethereum.org/EIPS/eip-20#approve)", "params": {"amount": "The number of tokens that are approved (-1 means infinite)", "spender": "The address of the account which may transfer tokens"}, "return": "Whether or not the approval succeeded"}, "balanceOf(address)": {"params": {"owner": "The address of the account to query"}, "return": "The number of tokens owned by `owner`"}, "balanceOfUnderlying(address)": {"details": "This also accrues interest in a transaction", "params": {"owner": "The address of the account to query"}, "return": "The amount of underlying owned by `owner`"}, "borrow(uint256)": {"params": {"borrowAmount": "The amount of the underlying asset to borrow"}, "return": "uint 0=success, otherwise a failure (see ErrorReporter.sol for details)"}, "borrowBalanceCurrent(address)": {"params": {"account": "The address whose balance should be calculated after updating borrowIndex"}, "return": "The calculated balance"}, "borrowBalanceStored(address)": {"params": {"account": "The address whose balance should be calculated"}, "return": "The calculated balance"}, "borrowRatePerBlock()": {"return": "The borrow interest rate per block, scaled by 1e18"}, "constructor": {"params": {"comptroller_": "The address of the Comptroller", "decimals_": "ERC-20 decimal precision of this token", "initialExchangeRateMantissa_": "The initial exchange rate, scaled by 1e18", "interestRateModel_": "The address of the interest rate model", "name_": "ERC-20 name of this token", "symbol_": "ERC-20 symbol of this token"}}, "exchangeRateCurrent()": {"return": "Calculated exchange rate scaled by 1e18"}, "exchangeRateStored()": {"details": "This function does not accrue interest before calculating the exchange rate", "return": "Calculated exchange rate scaled by 1e18"}, "getAccountSnapshot(address)": {"details": "This is used by comptroller to more efficiently perform liquidity checks.", "params": {"account": "Address of the account to snapshot"}, "return": "(possible error, token balance, borrow balance, exchange rate mantissa)"}, "getCash()": {"return": "The quantity of underlying asset owned by this contract"}, "liquidateBorrow(address,address)": {"details": "Reverts upon any failure", "params": {"borrower": "The borrower of this cToken to be liquidated", "cTokenCollateral": "The market in which to seize collateral from the borrower"}}, "mint()": {"details": "Reverts upon any failure"}, "redeem(uint256)": {"details": "Accrues interest whether or not the operation succeeds, unless reverted", "params": {"redeemTokens": "The number of cTokens to redeem into underlying"}, "return": "uint 0=success, otherwise a failure (see ErrorReporter.sol for details)"}, "redeemUnderlying(uint256)": {"details": "Accrues interest whether or not the operation succeeds, unless reverted", "params": {"redeemAmount": "The amount of underlying to redeem"}, "return": "uint 0=success, otherwise a failure (see ErrorReporter.sol for details)"}, "repayBorrow()": {"details": "Reverts upon any failure"}, "repayBorrowBehalf(address)": {"details": "Reverts upon any failure", "params": {"borrower": "the account with the debt being payed off"}}, "seize(address,address,uint256)": {"details": "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.", "params": {"borrower": "The account having collateral seized", "liquidator": "The account receiving seized collateral", "seizeTokens": "The number of cTokens to seize"}, "return": "uint 0=success, otherwise a failure (see ErrorReporter.sol for details)"}, "supplyRatePerBlock()": {"return": "The supply interest rate per block, scaled by 1e18"}, "totalBorrowsCurrent()": {"return": "The total borrows with interest"}, "transfer(address,uint256)": {"params": {"amount": "The number of tokens to transfer", "dst": "The address of the destination account"}, "return": "Whether or not the transfer succeeded"}, "transferFrom(address,address,uint256)": {"params": {"amount": "The number of tokens to transfer", "dst": "The address of the destination account", "src": "The address of the source account"}, "return": "Whether or not the transfer succeeded"}}, "title": "Compound's CEther Contract"}, "runtime_bytecode": {"bytecode": "0x6080604052600436106102725760003560e01c80638f840ddd1161014f578063c37f68e2116100c1578063f2b3abbd1161007a578063f2b3abbd14610e6b578063f3fdb15a14610ed0578063f851a44014610f27578063f8f9da2814610f7e578063fca7820b14610fa9578063fe9c44ae14610ff857610272565b8063c37f68e214610c5f578063c5ebeaec14610cd9578063db006a7514610d28578063dd62ed3e14610d77578063e597461914610dfc578063e9c714f214610e4057610272565b8063aa5af0fd11610113578063aa5af0fd14610a86578063aae40a2a14610ab1578063ae9d70b014610b15578063b2a02ff114610b40578063b71d1a0c14610bcf578063bd6d894d14610c3457610272565b80638f840ddd146108c857806395d89b41146108f357806395dd919314610983578063a6afed95146109e8578063a9059cbb14610a1357610272565b80633b1d21a2116101e8578063601a0bf1116101ac578063601a0bf114610744578063675d972c146107935780636c540baf146107be57806370a08231146107e957806373acee981461084e578063852a12e31461087957610272565b80633b1d21a2146106285780634576b5db1461065357806347bd3718146106b85780634e4d9fea146106e35780635fe3b567146106ed57610272565b806318160ddd1161023a57806318160ddd14610458578063182df0f51461048357806323b872dd146104ae5780632678224714610541578063313ce567146105985780633af9e669146105c357610272565b806306fdde03146102bb578063095ea7b31461034b5780631249c58b146103be578063173b9904146103c857806317bfdfbc146103f3575b6102b961027e34611027565b6040518060400160405280600b81526020017f6d696e74206661696c6564000000000000000000000000000000000000000000815250611107565b005b3480156102c757600080fd5b506102d06113ef565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156103105780820151818401526020810190506102f5565b50505050905090810190601f16801561033d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561035757600080fd5b506103a46004803603604081101561036e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061148d565b604051808215151515815260200191505060405180910390f35b6103c6611584565b005b3480156103d457600080fd5b506103dd6115cd565b6040518082815260200191505060405180910390f35b3480156103ff57600080fd5b506104426004803603602081101561041657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506115d3565b6040518082815260200191505060405180910390f35b34801561046457600080fd5b5061046d6116fb565b6040518082815260200191505060405180910390f35b34801561048f57600080fd5b50610498611701565b6040518082815260200191505060405180910390f35b3480156104ba57600080fd5b50610527600480360360608110156104d157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611789565b604051808215151515815260200191505060405180910390f35b34801561054d57600080fd5b5061055661183c565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156105a457600080fd5b506105ad611862565b6040518082815260200191505060405180910390f35b3480156105cf57600080fd5b50610612600480360360208110156105e657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611868565b6040518082815260200191505060405180910390f35b34801561063457600080fd5b5061063d611908565b6040518082815260200191505060405180910390f35b34801561065f57600080fd5b506106a26004803603602081101561067657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611917565b6040518082815260200191505060405180910390f35b3480156106c457600080fd5b506106cd611b88565b6040518082815260200191505060405180910390f35b6106eb611b8e565b005b3480156106f957600080fd5b50610702611bd7565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561075057600080fd5b5061077d6004803603602081101561076757600080fd5b8101908080359060200190929190505050611bfd565b6040518082815260200191505060405180910390f35b34801561079f57600080fd5b506107a8611cdc565b6040518082815260200191505060405180910390f35b3480156107ca57600080fd5b506107d3611ce2565b6040518082815260200191505060405180910390f35b3480156107f557600080fd5b506108386004803603602081101561080c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611ce8565b6040518082815260200191505060405180910390f35b34801561085a57600080fd5b50610863611d31565b6040518082815260200191505060405180910390f35b34801561088557600080fd5b506108b26004803603602081101561089c57600080fd5b8101908080359060200190929190505050611e51565b6040518082815260200191505060405180910390f35b3480156108d457600080fd5b506108dd611e63565b6040518082815260200191505060405180910390f35b3480156108ff57600080fd5b50610908611e69565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561094857808201518184015260208101905061092d565b50505050905090810190601f1680156109755780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561098f57600080fd5b506109d2600480360360208110156109a657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611f07565b6040518082815260200191505060405180910390f35b3480156109f457600080fd5b506109fd611f92565b6040518082815260200191505060405180910390f35b348015610a1f57600080fd5b50610a6c60048036036040811015610a3657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506124c5565b604051808215151515815260200191505060405180910390f35b348015610a9257600080fd5b50610a9b612577565b6040518082815260200191505060405180910390f35b610b1360048036036040811015610ac757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061257d565b005b348015610b2157600080fd5b50610b2a6125ca565b6040518082815260200191505060405180910390f35b348015610b4c57600080fd5b50610bb960048036036060811015610b6357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050612981565b6040518082815260200191505060405180910390f35b348015610bdb57600080fd5b50610c1e60048036036020811015610bf257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612f88565b6040518082815260200191505060405180910390f35b348015610c4057600080fd5b50610c49613107565b6040518082815260200191505060405180910390f35b348015610c6b57600080fd5b50610cae60048036036020811015610c8257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061322c565b6040518085815260200184815260200183815260200182815260200194505050505060405180910390f35b348015610ce557600080fd5b50610d1260048036036020811015610cfc57600080fd5b8101908080359060200190929190505050613354565b6040518082815260200191505060405180910390f35b348015610d3457600080fd5b50610d6160048036036020811015610d4b57600080fd5b8101908080359060200190929190505050613366565b6040518082815260200191505060405180910390f35b348015610d8357600080fd5b50610de660048036036040811015610d9a57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613378565b6040518082815260200191505060405180910390f35b610e3e60048036036020811015610e1257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506133ff565b005b348015610e4c57600080fd5b50610e5561344a565b6040518082815260200191505060405180910390f35b348015610e7757600080fd5b50610eba60048036036020811015610e8e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613767565b6040518082815260200191505060405180910390f35b348015610edc57600080fd5b50610ee56137b7565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610f3357600080fd5b50610f3c6137dd565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b348015610f8a57600080fd5b50610f93613803565b6040518082815260200191505060405180910390f35b348015610fb557600080fd5b50610fe260048036036020811015610fcc57600080fd5b810190808035906020019092919050505061393f565b6040518082815260200191505060405180910390f35b34801561100457600080fd5b5061100d613a1e565b604051808215151515815260200191505060405180910390f35b6000600160008082825401925050819055506000805490506000611049611f92565b90506000601081111561105857fe5b811461107c5761107481601081111561106d57fe5b601e613a23565b92505061108a565b6110863385613a97565b9250505b6000548114611101576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b50919050565b6000601081111561111457fe5b821415611120576113eb565b606060058251016040519080825280601f01601f1916602001820160405280156111595781602001600182028038833980820191505090505b50905060008090505b82518110156111ca5782818151811061117757fe5b602001015160f81c60f81b82828151811061118e57fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508080600101915050611162565b602060f81b8260008301815181106111de57fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350602860f81b82600183018151811061122157fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a848161125a57fe5b0460300160f81b82600283018151811061127057fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a84816112a957fe5b0660300160f81b8260038301815181106112bf57fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350602960f81b82600483018151811061130257fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000601081111561133e57fe5b841482906113e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156113ac578082015181840152602081019050611391565b50505050905090810190601f1680156113d95780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5050505b5050565b60018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156114855780601f1061145a57610100808354040283529160200191611485565b820191906000526020600020905b81548152906001019060200180831161146857829003601f168201915b505050505081565b60008033905082601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925856040518082815260200191505060405180910390a3600191505092915050565b6115cb61159034611027565b6040518060400160405280600b81526020017f6d696e74206661696c6564000000000000000000000000000000000000000000815250611107565b565b60095481565b600060016000808282540192505081905550600080549050600060108111156115f857fe5b611600611f92565b14611673576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f61636372756520696e746572657374206661696c65640000000000000000000081525060200191505060405180910390fd5b61167c83611f07565b915060005481146116f5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b50919050565b600e5481565b600080600061170e614150565b915091506000600381111561171f57fe5b82600381111561172b57fe5b14611781576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260358152602001806181a56035913960400191505060405180910390fd5b809250505090565b600060016000808282540192505081905550600080549050600060108111156117ae57fe5b6117ba33878787614225565b1491506000548114611834576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b509392505050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60035481565b6000611872617e52565b6040518060200160405280611885613107565b81525090506000806118d683600f60008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546148f8565b91509150600060038111156118e757fe5b8260038111156118f357fe5b146118fd57600080fd5b809350505050919050565b600061191261495b565b905090565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146119815761197a6001603f613a23565b9050611b83565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508273ffffffffffffffffffffffffffffffffffffffff16627e3dd26040518163ffffffff1660e01b815260040160206040518083038186803b1580156119ed57600080fd5b505afa158015611a01573d6000803e3d6000fd5b505050506040513d6020811015611a1757600080fd5b8101908080519060200190929190505050611a9a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f6d61726b6572206d6574686f642072657475726e65642066616c73650000000081525060200191505060405180910390fd5b82600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f7ac369dbd14fa5ea3f473ed67cc9d598964a77501540ba6751eb0b3decf5870d8184604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a160006010811115611b7f57fe5b9150505b919050565b600c5481565b611bd5611b9a346149b0565b6040518060400160405280601281526020017f7265706179426f72726f77206661696c65640000000000000000000000000000815250611107565b565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600160008082825401925050819055506000805490506000611c1f611f92565b905060006010811115611c2e57fe5b8114611c5257611c4a816010811115611c4357fe5b6030613a23565b925050611c5f565b611c5b84614a91565b9250505b6000548114611cd6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b50919050565b60085481565b600a5481565b6000600f60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60006001600080828254019250508190555060008054905060006010811115611d5657fe5b611d5e611f92565b14611dd1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f61636372756520696e746572657374206661696c65640000000000000000000081525060200191505060405180910390fd5b600c5491506000548114611e4d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b5090565b6000611e5c82614d1a565b9050919050565b600d5481565b60028054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015611eff5780601f10611ed457610100808354040283529160200191611eff565b820191906000526020600020905b815481529060010190602001808311611ee257829003601f168201915b505050505081565b6000806000611f1584614dfc565b9150915060006003811115611f2657fe5b826003811115611f3257fe5b14611f88576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260378152602001806180996037913960400191505060405180910390fd5b8092505050919050565b6000611f9c617e65565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166315f24053611fe261495b565b600c54600d546040518463ffffffff1660e01b8152600401808481526020018381526020018281526020019350505050604080518083038186803b15801561202957600080fd5b505afa15801561203d573d6000803e3d6000fd5b505050506040513d604081101561205357600080fd5b8101908080519060200190929190805190602001909291905050508260200183604001828152508281525050506601c6bf5263400081604001511115612101576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f626f72726f772072617465206973206162737572646c7920686967680000000081525060200191505060405180910390fd5b60008160200151146121265761211e600560028360200151614f07565b9150506124c2565b61212e614f7b565b8160600181815250506121478160600151600a54614f83565b82600001836080018281525082600381111561215f57fe5b600381111561216a57fe5b81525050506000600381111561217c57fe5b8160000151600381111561218c57fe5b1461219357fe5b6121b3604051806020016040528083604001518152508260800151614fae565b809050826000018360a0018290528260038111156121cd57fe5b60038111156121d857fe5b8152505050600060038111156121ea57fe5b816000015160038111156121fa57fe5b146122235761221b600960068360000151600381111561221657fe5b614f07565b9150506124c2565b6122338160a00151600c546148f8565b826000018360c0018281525082600381111561224b57fe5b600381111561225657fe5b81525050506000600381111561226857fe5b8160000151600381111561227857fe5b146122a157612299600960018360000151600381111561229457fe5b614f07565b9150506124c2565b6122b18160c00151600c5461502c565b826000018360e001828152508260038111156122c957fe5b60038111156122d457fe5b8152505050600060038111156122e657fe5b816000015160038111156122f657fe5b1461231f57612317600960048360000151600381111561231257fe5b614f07565b9150506124c2565b61234060405180602001604052806009548152508260c00151600d5461505e565b8260000183610100018281525082600381111561235957fe5b600381111561236457fe5b81525050506000600381111561237657fe5b8160000151600381111561238657fe5b146123af576123a760096005836000015160038111156123a257fe5b614f07565b9150506124c2565b6123c28160a00151600b54600b5461505e565b826000018361012001828152508260038111156123db57fe5b60038111156123e657fe5b8152505050600060038111156123f857fe5b8160000151600381111561240857fe5b1461243157612429600960038360000151600381111561242457fe5b614f07565b9150506124c2565b8060600151600a81905550806101200151600b819055508060e00151600c81905550806101000151600d819055507f875352fb3fadeb8c0be7cbbe8ff761b308fa7033470cd0287f02f3436fd76cb98160c00151826101200151600c5460405180848152602001838152602001828152602001935050505060405180910390a1600060108111156124be57fe5b9150505b90565b600060016000808282540192505081905550600080549050600060108111156124ea57fe5b6124f633338787614225565b1491506000548114612570576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b5092915050565b600b5481565b6125c661258b8334846150c9565b6040518060400160405280601681526020017f6c6971756964617465426f72726f77206661696c656400000000000000000000815250611107565b5050565b6000806125d5611701565b9050600080600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166315f2405361262061495b565b600c54600d546040518463ffffffff1660e01b8152600401808481526020018381526020018281526020019350505050604080518083038186803b15801561266757600080fd5b505afa15801561267b573d6000803e3d6000fd5b505050506040513d604081101561269157600080fd5b8101908080519060200190929190805190602001909291905050509150915060008214612709576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260318152602001806181386031913960400191505060405180910390fd5b6000612713617e52565b61272d604051806020016040528087815250600e54614fae565b915091506000600381111561273e57fe5b82600381111561274a57fe5b146127a0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260318152602001806180d06031913960400191505060405180910390fd5b60006127aa617e52565b6127b6600c5484615263565b91509150600060038111156127c757fe5b8260038111156127d357fe5b14612829576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260318152602001806180146031913960400191505060405180910390fd5b6000612833617e52565b6128636040518060200160405280670de0b6b3a764000081525060405180602001604052806009548152506152df565b915091506000600381111561287457fe5b82600381111561288057fe5b146128d6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603c815260200180618169603c913960400191505060405180910390fd5b60006128e0617e52565b6128f960405180602001604052808b8152508487615322565b915091506000600381111561290a57fe5b82600381111561291657fe5b1461296c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260318152602001806180686031913960400191505060405180910390fd5b80600001519b50505050505050505050505090565b6000600160008082825401925050819055506000805490506000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d02f735130338989896040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200195505050505050602060405180830381600087803b158015612ae057600080fd5b505af1158015612af4573d6000803e3d6000fd5b505050506040513d6020811015612b0a57600080fd5b8101908080519060200190929190505050905060008114612b3a57612b326003601b83614f07565b925050612f09565b8573ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415612b8257612b7a6006601c613a23565b925050612f09565b6000806000612bd0600f60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205488614f83565b809350819450505060006003811115612be557fe5b836003811115612bf157fe5b14612c1957612c0e6009601a856003811115612c0957fe5b614f07565b955050505050612f09565b612c62600f60008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548861502c565b809250819450505060006003811115612c7757fe5b836003811115612c8357fe5b14612cab57612ca060096019856003811115612c9b57fe5b614f07565b955050505050612f09565b81600f60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080600f60008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508873ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef896040518082815260200191505060405180910390a3600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636d35bf9130338c8c8c6040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200195505050505050600060405180830381600087803b158015612edd57600080fd5b505af1158015612ef1573d6000803e3d6000fd5b5050505060006010811115612f0257fe5b9550505050505b6000548114612f80576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b509392505050565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612ff257612feb60016045613a23565b9050613102565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905082600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a98184604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a1600060108111156130fe57fe5b9150505b919050565b6000600160008082825401925050819055506000805490506000601081111561312c57fe5b613134611f92565b146131a7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f61636372756520696e746572657374206661696c65640000000000000000000081525060200191505060405180910390fd5b6131af611701565b91506000548114613228576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b5090565b6000806000806000600f60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600080600061328489614dfc565b80945081925050506000600381111561329957fe5b8160038111156132a557fe5b146132d657600960108111156132b757fe5b600080600082925081915080905097509750975097505050505061334d565b6132de614150565b8093508192505050600060038111156132f357fe5b8160038111156132ff57fe5b14613330576009601081111561331157fe5b600080600082925081915080905097509750975097505050505061334d565b6000601081111561333d57fe5b8484849750975097509750505050505b9193509193565b600061335f82615388565b9050919050565b600061337182615468565b9050919050565b6000601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b61344761340c823461554a565b6040518060400160405280601881526020017f7265706179426f72726f77426568616c66206661696c65640000000000000000815250611107565b50565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415806134d55750600073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b156134ed576134e660016000613a23565b9050613764565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507ff9ffabca9c8276e99321725bcb43fb076a6c66a54b7f21c4e8146d8519b417dc82600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a17fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a981600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a16000601081111561375f57fe5b925050505b90565b600080613772611f92565b90506000601081111561378157fe5b81146137a55761379d81601081111561379657fe5b6040613a23565b9150506137b2565b6137ae8361562c565b9150505b919050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166315f2405361384e61495b565b600c54600d546040518463ffffffff1660e01b8152600401808481526020018381526020018281526020019350505050604080518083038186803b15801561389557600080fd5b505afa1580156138a9573d6000803e3d6000fd5b505050506040513d60408110156138bf57600080fd5b8101908080519060200190929190805190602001909291905050509150915060008214613937576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260378152602001806181016037913960400191505060405180910390fd5b809250505090565b6000600160008082825401925050819055506000805490506000613961611f92565b90506000601081111561397057fe5b81146139945761398c81601081111561398557fe5b6046613a23565b9250506139a1565b61399d846158c2565b9250505b6000548114613a18576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b50919050565b600181565b60007f45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa0836010811115613a5257fe5b83604d811115613a5e57fe5b600060405180848152602001838152602001828152602001935050505060405180910390a1826010811115613a8f57fe5b905092915050565b600080600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634ef4c3e13086866040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b158015613b7757600080fd5b505af1158015613b8b573d6000803e3d6000fd5b505050506040513d6020811015613ba157600080fd5b8101908080519060200190929190505050905060008114613bd157613bc96003601f83614f07565b91505061414a565b613bd9614f7b565b600a5414613bf557613bed600a6022613a23565b91505061414a565b613bfd617ec9565b613c0785856159d5565b81600001906010811115613c1757fe5b90816010811115613c2457fe5b8152505060006010811115613c3557fe5b81600001516010811115613c4557fe5b14613c6257613c5981600001516026613a23565b9250505061414a565b613c6a614150565b826020018360400182815250826003811115613c8257fe5b6003811115613c8d57fe5b815250505060006003811115613c9f57fe5b81602001516003811115613caf57fe5b14613cd957613cd06009602183602001516003811115613ccb57fe5b614f07565b9250505061414a565b613cf58460405180602001604052808460400151815250615af7565b826020018360600182815250826003811115613d0d57fe5b6003811115613d1857fe5b815250505060006003811115613d2a57fe5b81602001516003811115613d3a57fe5b14613d6457613d5b6009602083602001516003811115613d5657fe5b614f07565b9250505061414a565b613d74600e54826060015161502c565b826020018360800182815250826003811115613d8c57fe5b6003811115613d9757fe5b815250505060006003811115613da957fe5b81602001516003811115613db957fe5b14613de357613dda6009602483602001516003811115613dd557fe5b614f07565b9250505061414a565b613e30600f60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054826060015161502c565b826020018360a00182815250826003811115613e4857fe5b6003811115613e5357fe5b815250505060006003811115613e6557fe5b81602001516003811115613e7557fe5b14613e9f57613e966009602383602001516003811115613e9157fe5b614f07565b9250505061414a565b613ea98585615b5a565b81600001906010811115613eb957fe5b90816010811115613ec657fe5b8152505060006010811115613ed757fe5b81600001516010811115613ee757fe5b14613f0457613efb81600001516025613a23565b9250505061414a565b8060800151600e819055508060a00151600f60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f85858360600151604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828152602001935050505060405180910390a18473ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83606001516040518082815260200191505060405180910390a3600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166341c728b930878785606001516040518563ffffffff1660e01b8152600401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828152602001945050505050600060405180830381600087803b15801561412057600080fd5b505af1158015614134573d6000803e3d6000fd5b505050506000601081111561414557fe5b925050505b92915050565b6000806000600e54141561416c57600060085491509150614221565b600061417661495b565b90506000614182617e52565b600061419384600c54600d54615c7c565b8094508192505050600060038111156141a857fe5b8160038111156141b457fe5b146141cc578060008090509550955050505050614221565b6141d883600e54615cd8565b8093508192505050600060038111156141ed57fe5b8160038111156141f957fe5b14614211578060008090509550955050505050614221565b6000826000015195509550505050505b9091565b600080600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bdcdc258308787876040518563ffffffff1660e01b8152600401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828152602001945050505050602060405180830381600087803b15801561433957600080fd5b505af115801561434d573d6000803e3d6000fd5b505050506040513d602081101561436357600080fd5b81019080805190602001909291905050509050600081146143935761438b6003604a83614f07565b9150506148f0565b8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156143db576143d36002604b613a23565b9150506148f0565b60008090508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff16141561443c577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90506144bc565b601060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490505b6000806000806144cc8589614f83565b8094508195505050600060038111156144e157fe5b8460038111156144ed57fe5b1461450b576144fe6009604b613a23565b96505050505050506148f0565b614554600f60008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205489614f83565b80935081955050506000600381111561456957fe5b84600381111561457557fe5b14614593576145866009604c613a23565b96505050505050506148f0565b6145dc600f60008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548961502c565b8092508195505050600060038111156145f157fe5b8460038111156145fd57fe5b1461461b5761460e6009604d613a23565b96505050505050506148f0565b81600f60008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080600f60008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff851461474c5782601060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b8873ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8a6040518082815260200191505060405180910390a3600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636a56947e308c8c8c6040518563ffffffff1660e01b8152600401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828152602001945050505050600060405180830381600087803b1580156148c257600080fd5b505af11580156148d6573d6000803e3d6000fd5b50505050600060108111156148e757fe5b96505050505050505b949350505050565b6000806000614905617e52565b61490f8686614fae565b915091506000600381111561492057fe5b82600381111561492c57fe5b1461494257816000809050935093505050614954565b600061494d82615dac565b9350935050505b9250929050565b60008060006149813073ffffffffffffffffffffffffffffffffffffffff163134614f83565b915091506000600381111561499257fe5b82600381111561499e57fe5b146149a857600080fd5b809250505090565b60006001600080828254019250508190555060008054905060006149d2611f92565b9050600060108111156149e157fe5b8114614a05576149fd8160108111156149f657fe5b6036613a23565b925050614a14565b614a10333386615dcb565b9250505b6000548114614a8b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b50919050565b6000806000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614614b0057614af760016031613a23565b92505050614d15565b614b08614f7b565b600a5414614b2557614b1c600a6033613a23565b92505050614d15565b83614b2e61495b565b1015614b4957614b40600e6032613a23565b92505050614d15565b600d54841115614b6857614b5f60026034613a23565b92505050614d15565b83600d54039050600d54811115614bca576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602481526020018061820e6024913960400191505060405180910390fd5b80600d81905550614bfd600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1685616543565b915060006010811115614c0c57fe5b826010811115614c1857fe5b14614c6e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806180456023913960400191505060405180910390fd5b7f3bad0c59cf2f06e7314077049f48a93578cd16f5ef92329f1dab1420a99c177e600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168583604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828152602001935050505060405180910390a160006010811115614d1057fe5b925050505b919050565b6000600160008082825401925050819055506000805490506000614d3c611f92565b905060006010811115614d4b57fe5b8114614d6f57614d67816010811115614d6057fe5b6027613a23565b925050614d7f565b614d7b33600086616596565b9250505b6000548114614df6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b50919050565b600080600080600080601160008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050600081600001541415614e66576000808090509550955050505050614f02565b614e768160000154600b54616d8a565b809450819550505060006003811115614e8b57fe5b846003811115614e9757fe5b14614eaf578360008090509550955050505050614f02565b614ebd838260010154616ddd565b809350819550505060006003811115614ed257fe5b846003811115614ede57fe5b14614ef6578360008090509550955050505050614f02565b60008295509550505050505b915091565b60007f45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa0846010811115614f3657fe5b84604d811115614f4257fe5b8460405180848152602001838152602001828152602001935050505060405180910390a1836010811115614f7257fe5b90509392505050565b600043905090565b600080838311614f9b57600083850391509150614fa7565b60036000809050915091505b9250929050565b6000614fb8617e52565b600080614fc9866000015186616d8a565b9150915060006003811115614fda57fe5b826003811115614fe657fe5b1461500a578160405180602001604052806000815250809050935093505050615025565b60006040518060200160405280838152508090509350935050505b9250929050565b6000806000838501905084811061504a576000819250925050615057565b6002600080905092509250505b9250929050565b600080600061506b617e52565b6150758787614fae565b915091506000600381111561508657fe5b82600381111561509257fe5b146150a8578160008090509350935050506150c1565b6150ba6150b482615dac565b8661502c565b9350935050505b935093915050565b60006001600080828254019250508190555060008054905060006150eb611f92565b9050600060108111156150fa57fe5b811461511e5761511681601081111561510f57fe5b600f613a23565b9250506151e4565b8373ffffffffffffffffffffffffffffffffffffffff1663a6afed956040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561516657600080fd5b505af115801561517a573d6000803e3d6000fd5b505050506040513d602081101561519057600080fd5b81019080805190602001909291905050509050600060108111156151b057fe5b81146151d4576151cc8160108111156151c557fe5b6010613a23565b9250506151e4565b6151e033878787616e11565b9250505b600054811461525b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b509392505050565b600061526d617e52565b600080615282670de0b6b3a764000087616d8a565b915091506000600381111561529357fe5b82600381111561529f57fe5b146152c35781604051806020016040528060008152508090509350935050506152d8565b6152d1818660000151615cd8565b9350935050505b9250929050565b60006152e9617e52565b6000806152fe86600001518660000151614f83565b91509150816040518060200160405280838152508090509350935050509250929050565b600061532c617e52565b6000615336617e52565b615340878761774f565b915091506000600381111561535157fe5b82600381111561535d57fe5b1461536f578181935093505050615380565b615379818661774f565b9350935050505b935093915050565b60006001600080828254019250508190555060008054905060006153aa611f92565b9050600060108111156153b957fe5b81146153dd576153d58160108111156153ce57fe5b6008613a23565b9250506153eb565b6153e73385617870565b9250505b6000548114615462576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b50919050565b600060016000808282540192505081905550600080549050600061548a611f92565b90506000601081111561549957fe5b81146154bd576154b58160108111156154ae57fe5b6027613a23565b9250506154cd565b6154c933856000616596565b9250505b6000548114615544576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b50919050565b600060016000808282540192505081905550600080549050600061556c611f92565b90506000601081111561557b57fe5b811461559f5761559781601081111561559057fe5b6035613a23565b9250506155ae565b6155aa338686615dcb565b9250505b6000548114615625576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f72652d656e74657265640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b5092915050565b600080600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146156985761569060016042613a23565b9150506158bd565b6156a0614f7b565b600a54146156bc576156b4600a6041613a23565b9150506158bd565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508273ffffffffffffffffffffffffffffffffffffffff16632191f92a6040518163ffffffff1660e01b815260040160206040518083038186803b15801561572757600080fd5b505afa15801561573b573d6000803e3d6000fd5b505050506040513d602081101561575157600080fd5b81019080805190602001909291905050506157d4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f6d61726b6572206d6574686f642072657475726e65642066616c73650000000081525060200191505060405180910390fd5b82600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fedffc32e068c7c95dfd4bdfd5c4d939a084d6b11c4199eac8436ed234d72f9268184604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a1600060108111156158b957fe5b9150505b919050565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461592c5761592560016047613a23565b90506159d0565b615934614f7b565b600a541461594f57615948600a6048613a23565b90506159d0565b670de0b6b3a76400008211156159725761596b60026049613a23565b90506159d0565b60006009549050826009819055507faaa68312e2ea9d50e16af5068410ab56e1a1fd06037b1a35664812c30f8214608184604051808381526020018281526020019250505060405180910390a1600060108111156159cc57fe5b9150505b919050565b60008273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614615a78576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f73656e646572206d69736d61746368000000000000000000000000000000000081525060200191505060405180910390fd5b813414615aed576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f76616c7565206d69736d6174636800000000000000000000000000000000000081525060200191505060405180910390fd5b6000905092915050565b6000806000615b04617e52565b615b0e8686615263565b9150915060006003811115615b1f57fe5b826003811115615b2b57fe5b14615b4157816000809050935093505050615b53565b6000615b4c82615dac565b9350935050505b9250929050565b60008273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614615bfd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f73656e646572206d69736d61746368000000000000000000000000000000000081525060200191505060405180910390fd5b813414615c72576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f76616c7565206d69736d6174636800000000000000000000000000000000000081525060200191505060405180910390fd5b6000905092915050565b600080600080615c8c878761502c565b9150915060006003811115615c9d57fe5b826003811115615ca957fe5b14615cbf57816000809050935093505050615cd0565b615cc98186614f83565b9350935050505b935093915050565b6000615ce2617e52565b600080615cf786670de0b6b3a7640000616d8a565b9150915060006003811115615d0857fe5b826003811115615d1457fe5b14615d38578160405180602001604052806000815250809050935093505050615da5565b600080615d458388616ddd565b9150915060006003811115615d5657fe5b826003811115615d6257fe5b14615d885781604051806020016040528060008152508090509550955050505050615da5565b600060405180602001604052808381525080905095509550505050505b9250929050565b6000670de0b6b3a7640000826000015181615dc357fe5b049050919050565b600080600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166324008a62308787876040518563ffffffff1660e01b8152600401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828152602001945050505050602060405180830381600087803b158015615edf57600080fd5b505af1158015615ef3573d6000803e3d6000fd5b505050506040513d6020811015615f0957600080fd5b8101908080519060200190929190505050905060008114615f3957615f316003603883614f07565b91505061653c565b615f41614f7b565b600a5414615f5d57615f55600a6039613a23565b91505061653c565b615f65617f15565b601160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060010154816060018181525050615fba85614dfc565b826020018360800182815250826003811115615fd257fe5b6003811115615fdd57fe5b815250505060006003811115615fef57fe5b81602001516003811115615fff57fe5b1461602957616020600960378360200151600381111561601b57fe5b614f07565b9250505061653c565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff84141561606457806080015181604001818152505061606f565b838160400181815250505b61607d8682604001516159d5565b8160000190601081111561608d57fe5b9081601081111561609a57fe5b81525050600060108111156160ab57fe5b816000015160108111156160bb57fe5b146160d8576160cf8160000151603c613a23565b9250505061653c565b6160ea81608001518260400151614f83565b826020018360a0018281525082600381111561610257fe5b600381111561610d57fe5b81525050506000600381111561611f57fe5b8160200151600381111561612f57fe5b14616159576161506009603a8360200151600381111561614b57fe5b614f07565b9250505061653c565b616169600c548260400151614f83565b826020018360c0018281525082600381111561618157fe5b600381111561618c57fe5b81525050506000600381111561619e57fe5b816020015160038111156161ae57fe5b146161d8576161cf6009603b836020015160038111156161ca57fe5b614f07565b9250505061653c565b6161e6868260400151615b5a565b816000019060108111156161f657fe5b9081601081111561620357fe5b815250506000601081111561621457fe5b8160000151601081111561622457fe5b14616297576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f726570617920626f72726f77207472616e7366657220696e206661696c65640081525060200191505060405180910390fd5b8060a00151601160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000181905550600b54601160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101819055508060c00151600c819055507f1a2a22cb034d26d1854bdc6666a5b91fe25efbbb5dcad3b0355478d6f5c362a1868683604001518460a001518560c00151604051808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018481526020018381526020018281526020019550505050505060405180910390a1600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631ededc91308888856040015186606001516040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200182815260200195505050505050600060405180830381600087803b15801561651257600080fd5b505af1158015616526573d6000803e3d6000fd5b505050506000601081111561653757fe5b925050505b9392505050565b60008273ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f1935050505015801561658b573d6000803e3d6000fd5b506000905092915050565b6000808314806165a65750600082145b6165fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260348152602001806181da6034913960400191505060405180910390fd5b616603617f68565b61660b614150565b82602001836040018281525082600381111561662357fe5b600381111561662e57fe5b81525050506000600381111561664057fe5b8160200151600381111561665057fe5b14616679576166716009602b8360200151600381111561666c57fe5b614f07565b915050616d83565b600084111561671b57838160600181815250506166a860405180602001604052808360400151815250856148f8565b8260200183608001828152508260038111156166c057fe5b60038111156166cb57fe5b8152505050600060038111156166dd57fe5b816020015160038111156166ed57fe5b146167165761670e600960298360200151600381111561670957fe5b614f07565b915050616d83565b6167b0565b6167378360405180602001604052808460400151815250615af7565b82602001836060018281525082600381111561674f57fe5b600381111561675a57fe5b81525050506000600381111561676c57fe5b8160200151600381111561677c57fe5b146167a55761679d6009602a8360200151600381111561679857fe5b614f07565b915050616d83565b828160800181815250505b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663eabe7d91308885606001516040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b15801561689357600080fd5b505af11580156168a7573d6000803e3d6000fd5b505050506040513d60208110156168bd57600080fd5b81019080805190602001909291905050509050600081146168ee576168e56003602883614f07565b92505050616d83565b6168f6614f7b565b600a54146169135761690a600a602c613a23565b92505050616d83565b616923600e548360600151614f83565b836020018460a0018281525082600381111561693b57fe5b600381111561694657fe5b81525050506000600381111561695857fe5b8260200151600381111561696857fe5b14616992576169896009602e8460200151600381111561698457fe5b614f07565b92505050616d83565b6169df600f60008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548360600151614f83565b836020018460c001828152508260038111156169f757fe5b6003811115616a0257fe5b815250505060006003811115616a1457fe5b82602001516003811115616a2457fe5b14616a4e57616a456009602d84602001516003811115616a4057fe5b614f07565b92505050616d83565b8160800151616a5b61495b565b1015616a7657616a6d600e602f613a23565b92505050616d83565b616a84868360800151616543565b82600001906010811115616a9457fe5b90816010811115616aa157fe5b8152505060006010811115616ab257fe5b82600001516010811115616ac257fe5b14616b35576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f72656465656d207472616e73666572206f7574206661696c656400000000000081525060200191505060405180910390fd5b8160a00151600e819055508160c00151600f60008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055503073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84606001516040518082815260200191505060405180910390a37fe5b754fb1abb7f01b499791d0b820ae3b6af3424ac1c59768edb53f4ec31a9298683608001518460600151604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828152602001935050505060405180910390a1600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166351dff9893088856080015186606001516040518563ffffffff1660e01b8152600401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828152602001945050505050600060405180830381600087803b158015616d5957600080fd5b505af1158015616d6d573d6000803e3d6000fd5b5050505060006010811115616d7e57fe5b925050505b9392505050565b6000806000841415616da55760008080905091509150616dd6565b6000838502905083858281616db657fe5b0414616dcd57600260008090509250925050616dd6565b60008192509250505b9250929050565b6000806000831415616df9576001600080905091509150616e0a565b6000838581616e0457fe5b04915091505b9250929050565b600080600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635fc7e71e30858989896040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200195505050505050602060405180830381600087803b158015616f5957600080fd5b505af1158015616f6d573d6000803e3d6000fd5b505050506040513d6020811015616f8357600080fd5b8101908080519060200190929190505050905060008114616fb357616fab6003601283614f07565b915050617747565b616fbb614f7b565b600a5414616fd757616fcf600a6016613a23565b915050617747565b616fdf614f7b565b8373ffffffffffffffffffffffffffffffffffffffff16636c540baf6040518163ffffffff1660e01b815260040160206040518083038186803b15801561702557600080fd5b505afa158015617039573d6000803e3d6000fd5b505050506040513d602081101561704f57600080fd5b81019080805190602001909291905050501461707957617071600a6011613a23565b915050617747565b8573ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614156170c1576170b960066017613a23565b915050617747565b60008414156170de576170d660076015613a23565b915050617747565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff84141561711a5761711260076014613a23565b915050617747565b600080600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c488847b3087896040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604080518083038186803b1580156171f757600080fd5b505afa15801561720b573d6000803e3d6000fd5b505050506040513d604081101561722157600080fd5b810190808051906020019092919080519060200190929190505050915091506000821461725f576172556004601384614f07565b9350505050617747565b8473ffffffffffffffffffffffffffffffffffffffff166370a08231886040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156172dc57600080fd5b505afa1580156172f0573d6000803e3d6000fd5b505050506040513d602081101561730657600080fd5b81019080805190602001909291905050508111156173345761732a600d601d613a23565b9350505050617747565b6000617341898989615dcb565b90506000601081111561735057fe5b81146173775761736c81601081111561736557fe5b6018613a23565b945050505050617747565b60008673ffffffffffffffffffffffffffffffffffffffff1663b2a02ff18b8b866040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b15801561743457600080fd5b505af1158015617448573d6000803e3d6000fd5b505050506040513d602081101561745e57600080fd5b810190808051906020019092919050505090506000601081111561747e57fe5b81146174f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f746f6b656e207365697a757265206661696c656400000000000000000000000081525060200191505060405180910390fd5b7f298637f684da70674f26509b10f07ec2fbc77a335ab1e7d6215a4b2484d8bb528a8a8a8a87604051808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018481526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019550505050505060405180910390a1600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166347ef3b3b30898d8d8d896040518763ffffffff1660e01b8152600401808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018381526020018281526020019650505050505050600060405180830381600087803b15801561771a57600080fd5b505af115801561772e573d6000803e3d6000fd5b505050506000601081111561773f57fe5b955050505050505b949350505050565b6000617759617e52565b60008061776e86600001518660000151616d8a565b915091506000600381111561777f57fe5b82600381111561778b57fe5b146177af578160405180602001604052806000815250809050935093505050617869565b6000806177ce6002670de0b6b3a7640000816177c757fe5b048461502c565b91509150600060038111156177df57fe5b8260038111156177eb57fe5b146178115781604051806020016040528060008152508090509550955050505050617869565b60008061782683670de0b6b3a7640000616ddd565b915091506000600381111561783757fe5b82600381111561784357fe5b1461784a57fe5b6000604051806020016040528083815250809050975097505050505050505b9250929050565b600080600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663da3d454c3086866040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b15801561795057600080fd5b505af1158015617964573d6000803e3d6000fd5b505050506040513d602081101561797a57600080fd5b81019080805190602001909291905050509050600081146179aa576179a26003600e83614f07565b915050617e4c565b6179b2614f7b565b600a54146179cd576179c5600a80613a23565b915050617e4c565b826179d661495b565b10156179f0576179e8600e6009613a23565b915050617e4c565b6179f8617fbb565b617a0185614dfc565b826020018360400182815250826003811115617a1957fe5b6003811115617a2457fe5b815250505060006003811115617a3657fe5b81602001516003811115617a4657fe5b14617a7057617a676009600783602001516003811115617a6257fe5b614f07565b92505050617e4c565b617a7e81604001518561502c565b826020018360600182815250826003811115617a9657fe5b6003811115617aa157fe5b815250505060006003811115617ab357fe5b81602001516003811115617ac357fe5b14617aed57617ae46009600c83602001516003811115617adf57fe5b614f07565b92505050617e4c565b617af9600c548561502c565b826020018360800182815250826003811115617b1157fe5b6003811115617b1c57fe5b815250505060006003811115617b2e57fe5b81602001516003811115617b3e57fe5b14617b6857617b5f6009600b83602001516003811115617b5a57fe5b614f07565b92505050617e4c565b617b728585616543565b81600001906010811115617b8257fe5b90816010811115617b8f57fe5b8152505060006010811115617ba057fe5b81600001516010811115617bb057fe5b14617c23576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f626f72726f77207472616e73666572206f7574206661696c656400000000000081525060200191505060405180910390fd5b8060600151601160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000181905550600b54601160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101819055508060800151600c819055507f13ed6866d4e1ee6da46f845c46d7e54120883d75c5ea9a2dacc1c4ca8984ab80858583606001518460800151604051808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200184815260200183815260200182815260200194505050505060405180910390a1600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635c7786053087876040518463ffffffff1660e01b8152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050600060405180830381600087803b158015617e2257600080fd5b505af1158015617e36573d6000803e3d6000fd5b5050505060006010811115617e4757fe5b925050505b92915050565b6040518060200160405280600081525090565b60405180610140016040528060006003811115617e7e57fe5b815260200160008152602001600081526020016000815260200160008152602001617ea7618000565b8152602001600081526020016000815260200160008152602001600081525090565b6040518060c0016040528060006010811115617ee157fe5b815260200160006003811115617ef357fe5b8152602001600081526020016000815260200160008152602001600081525090565b6040518060e0016040528060006010811115617f2d57fe5b815260200160006003811115617f3f57fe5b815260200160008152602001600081526020016000815260200160008152602001600081525090565b6040518060e0016040528060006010811115617f8057fe5b815260200160006003811115617f9257fe5b815260200160008152602001600081526020016000815260200160008152602001600081525090565b6040518060a0016040528060006010811115617fd357fe5b815260200160006003811115617fe557fe5b81526020016000815260200160008152602001600081525090565b604051806020016040528060008152509056fe737570706c7952617465506572426c6f636b3a2063616c63756c6174696e6720626f72726f7773506572206661696c6564726564756365207265736572766573207472616e73666572206f7574206661696c6564737570706c7952617465506572426c6f636b3a2063616c63756c6174696e6720737570706c7952617465206661696c6564626f72726f7742616c616e636553746f7265643a20626f72726f7742616c616e636553746f726564496e7465726e616c206661696c6564737570706c7952617465506572426c6f636b3a2063616c63756c6174696e6720756e6465726c79696e67206661696c6564626f72726f7752617465506572426c6f636b3a20696e746572657374526174654d6f64656c2e626f72726f7752617465206661696c6564737570706c7952617465506572426c6f636b3a2063616c63756c6174696e6720626f72726f7752617465206661696c6564737570706c7952617465506572426c6f636b3a2063616c63756c6174696e67206f6e654d696e757352657365727665466163746f72206661696c656465786368616e67655261746553746f7265643a2065786368616e67655261746553746f726564496e7465726e616c206661696c65646f6e65206f662072656465656d546f6b656e73496e206f722072656465656d416d6f756e74496e206d757374206265207a65726f72656475636520726573657276657320756e657870656374656420756e646572666c6f77a265627a7a7230582006a49a9565b1df13c86cb4169d33264cd207f3ef002910722b153a4ead29196e64736f6c634300050a0032"}}
CToken
{"abi": [{"constant": true, "inputs": [], "name": "name", "outputs": [{"name": "", "type": "string"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "spender", "type": "address"}, {"name": "amount", "type": "uint256"}], "name": "approve", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "reserveFactorMantissa", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "account", "type": "address"}], "name": "borrowBalanceCurrent", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "totalSupply", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "exchangeRateStored", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "src", "type": "address"}, {"name": "dst", "type": "address"}, {"name": "amount", "type": "uint256"}], "name": "transferFrom", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "pendingAdmin", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "decimals", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "owner", "type": "address"}], "name": "balanceOfUnderlying", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "getCash", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "newComptroller", "type": "address"}], "name": "_setComptroller", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "totalBorrows", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "comptroller", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "reduceAmount", "type": "uint256"}], "name": "_reduceReserves", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "initialExchangeRateMantissa", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "accrualBlockNumber", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "owner", "type": "address"}], "name": "balanceOf", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "totalBorrowsCurrent", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "totalReserves", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "symbol", "outputs": [{"name": "", "type": "string"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "account", "type": "address"}], "name": "borrowBalanceStored", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "accrueInterest", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "dst", "type": "address"}, {"name": "amount", "type": "uint256"}], "name": "transfer", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "borrowIndex", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "supplyRatePerBlock", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "liquidator", "type": "address"}, {"name": "borrower", "type": "address"}, {"name": "seizeTokens", "type": "uint256"}], "name": "seize", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "newPendingAdmin", "type": "address"}], "name": "_setPendingAdmin", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "exchangeRateCurrent", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "account", "type": "address"}], "name": "getAccountSnapshot", "outputs": [{"name": "", "type": "uint256"}, {"name": "", "type": "uint256"}, {"name": "", "type": "uint256"}, {"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "owner", "type": "address"}, {"name": "spender", "type": "address"}], "name": "allowance", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "_acceptAdmin", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "newInterestRateModel", "type": "address"}], "name": "_setInterestRateModel", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "interestRateModel", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "admin", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "borrowRatePerBlock", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "newReserveFactorMantissa", "type": "uint256"}], "name": "_setReserveFactor", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "isCToken", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"inputs": [{"name": "comptroller_", "type": "address"}, {"name": "interestRateModel_", "type": "address"}, {"name": "initialExchangeRateMantissa_", "type": "uint256"}, {"name": "name_", "type": "string"}, {"name": "symbol_", "type": "string"}, {"name": "decimals_", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "interestAccumulated", "type": "uint256"}, {"indexed": false, "name": "borrowIndex", "type": "uint256"}, {"indexed": false, "name": "totalBorrows", "type": "uint256"}], "name": "AccrueInterest", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "minter", "type": "address"}, {"indexed": false, "name": "mintAmount", "type": "uint256"}, {"indexed": false, "name": "mintTokens", "type": "uint256"}], "name": "Mint", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "redeemer", "type": "address"}, {"indexed": false, "name": "redeemAmount", "type": "uint256"}, {"indexed": false, "name": "redeemTokens", "type": "uint256"}], "name": "Redeem", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "borrower", "type": "address"}, {"indexed": false, "name": "borrowAmount", "type": "uint256"}, {"indexed": false, "name": "accountBorrows", "type": "uint256"}, {"indexed": false, "name": "totalBorrows", "type": "uint256"}], "name": "Borrow", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "payer", "type": "address"}, {"indexed": false, "name": "borrower", "type": "address"}, {"indexed": false, "name": "repayAmount", "type": "uint256"}, {"indexed": false, "name": "accountBorrows", "type": "uint256"}, {"indexed": false, "name": "totalBorrows", "type": "uint256"}], "name": "RepayBorrow", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "liquidator", "type": "address"}, {"indexed": false, "name": "borrower", "type": "address"}, {"indexed": false, "name": "repayAmount", "type": "uint256"}, {"indexed": false, "name": "cTokenCollateral", "type": "address"}, {"indexed": false, "name": "seizeTokens", "type": "uint256"}], "name": "LiquidateBorrow", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "oldPendingAdmin", "type": "address"}, {"indexed": false, "name": "newPendingAdmin", "type": "address"}], "name": "NewPendingAdmin", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "oldAdmin", "type": "address"}, {"indexed": false, "name": "newAdmin", "type": "address"}], "name": "NewAdmin", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "oldComptroller", "type": "address"}, {"indexed": false, "name": "newComptroller", "type": "address"}], "name": "NewComptroller", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "oldInterestRateModel", "type": "address"}, {"indexed": false, "name": "newInterestRateModel", "type": "address"}], "name": "NewMarketInterestRateModel", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "oldReserveFactorMantissa", "type": "uint256"}, {"indexed": false, "name": "newReserveFactorMantissa", "type": "uint256"}], "name": "NewReserveFactor", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "admin", "type": "address"}, {"indexed": false, "name": "reduceAmount", "type": "uint256"}, {"indexed": false, "name": "newTotalReserves", "type": "uint256"}], "name": "ReservesReduced", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "error", "type": "uint256"}, {"indexed": false, "name": "info", "type": "uint256"}, {"indexed": false, "name": "detail", "type": "uint256"}], "name": "Failure", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "from", "type": "address"}, {"indexed": true, "name": "to", "type": "address"}, {"indexed": false, "name": "amount", "type": "uint256"}], "name": "Transfer", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "owner", "type": "address"}, {"indexed": true, "name": "spender", "type": "address"}, {"indexed": false, "name": "amount", "type": "uint256"}], "name": "Approval", "type": "event"}], "compiler": {"name": "solc", "settings": {"optimize": false}, "version": "0.5.10+commit.5a6ea5b1"}, "deployment_bytecode": {"bytecode": "0x"}, "natspec": {"author": "Compound", "methods": {"_acceptAdmin()": {"details": "Admin function for pending admin to accept role and update admin", "return": "uint 0=success, otherwise a failure (see ErrorReporter.sol for details)"}, "_reduceReserves(uint256)": {"params": {"reduceAmount": "Amount of reduction to reserves"}, "return": "uint 0=success, otherwise a failure (see ErrorReporter.sol for details)"}, "_setComptroller(address)": {"details": "Admin function to set a new comptroller", "return": "uint 0=success, otherwise a failure (see ErrorReporter.sol for details)"}, "_setInterestRateModel(address)": {"details": "Admin function to accrue interest and update the interest rate model", "params": {"newInterestRateModel": "the new interest rate model to use"}, "return": "uint 0=success, otherwise a failure (see ErrorReporter.sol for details)"}, "_setPendingAdmin(address)": {"details": "Admin function to begin change of admin. The newPendingAdmin must call `_acceptAdmin` to finalize the transfer.", "params": {"newPendingAdmin": "New pending admin."}, "return": "uint 0=success, otherwise a failure (see ErrorReporter.sol for details)      * TODO: Should we add a second arg to verify, like a checksum of `newAdmin` address?"}, "_setReserveFactor(uint256)": {"details": "Admin function to accrue interest and set a new reserve factor", "return": "uint 0=success, otherwise a failure (see ErrorReporter.sol for details)"}, "accrueInterest()": {"details": "This calculates interest accrued from the last checkpointed block     up to the current block and writes new checkpoint to storage."}, "allowance(address,address)": {"params": {"owner": "The address of the account which owns the tokens to be spent", "spender": "The address of the account which may transfer tokens"}, "return": "The number of tokens allowed to be spent (-1 means infinite)"}, "approve(address,uint256)": {"details": "This will overwrite the approval amount for `spender` and is subject to issues noted [here](https://eips.ethereum.org/EIPS/eip-20#approve)", "params": {"amount": "The number of tokens that are approved (-1 means infinite)", "spender": "The address of the account which may transfer tokens"}, "return": "Whether or not the approval succeeded"}, "balanceOf(address)": {"params": {"owner": "The address of the account to query"}, "return": "The number of tokens owned by `owner`"}, "balanceOfUnderlying(address)": {"details": "This also accrues interest in a transaction", "params": {"owner": "The address of the account to query"}, "return": "The amount of underlying owned by `owner`"}, "borrowBalanceCurrent(address)": {"params": {"account": "The address whose balance should be calculated after updating borrowIndex"}, "return": "The calculated balance"}, "borrowBalanceStored(address)": {"params": {"account": "The address whose balance should be calculated"}, "return": "The calculated balance"}, "borrowRatePerBlock()": {"return": "The borrow interest rate per block, scaled by 1e18"}, "constructor": {"params": {"comptroller_": "The address of the Comptroller", "decimals_": "EIP-20 decimal precision of this token", "initialExchangeRateMantissa_": "The initial exchange rate, scaled by 1e18", "interestRateModel_": "The address of the interest rate model", "name_": "EIP-20 name of this token", "symbol_": "EIP-20 symbol of this token"}}, "exchangeRateCurrent()": {"return": "Calculated exchange rate scaled by 1e18"}, "exchangeRateStored()": {"details": "This function does not accrue interest before calculating the exchange rate", "return": "Calculated exchange rate scaled by 1e18"}, "getAccountSnapshot(address)": {"details": "This is used by comptroller to more efficiently perform liquidity checks.", "params": {"account": "Address of the account to snapshot"}, "return": "(possible error, token balance, borrow balance, exchange rate mantissa)"}, "getCash()": {"return": "The quantity of underlying asset owned by this contract"}, "seize(address,address,uint256)": {"details": "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.", "params": {"borrower": "The account having collateral seized", "liquidator": "The account receiving seized collateral", "seizeTokens": "The number of cTokens to seize"}, "return": "uint 0=success, otherwise a failure (see ErrorReporter.sol for details)"}, "supplyRatePerBlock()": {"return": "The supply interest rate per block, scaled by 1e18"}, "totalBorrowsCurrent()": {"return": "The total borrows with interest"}, "transfer(address,uint256)": {"params": {"amount": "The number of tokens to transfer", "dst": "The address of the destination account"}, "return": "Whether or not the transfer succeeded"}, "transferFrom(address,address,uint256)": {"params": {"amount": "The number of tokens to transfer", "dst": "The address of the destination account", "src": "The address of the source account"}, "return": "Whether or not the transfer succeeded"}}, "title": "Compound's CToken Contract"}, "runtime_bytecode": {"bytecode": "0x"}}
CarefulMath
{"abi": [], "compiler": {"name": "solc", "settings": {"optimize": false}, "version": "0.5.10+commit.5a6ea5b1"}, "deployment_bytecode": {"bytecode": "0x6080604052348015600f57600080fd5b50603e80601d6000396000f3fe6080604052600080fdfea265627a7a72305820aa26d2a7db6fc5747e369faa142554c974183198f588ce88ae0eca86df68564264736f6c634300050a0032"}, "natspec": {"author": "Compound", "methods": {}, "title": "Careful Math"}, "runtime_bytecode": {"bytecode": "0x6080604052600080fdfea265627a7a72305820aa26d2a7db6fc5747e369faa142554c974183198f588ce88ae0eca86df68564264736f6c634300050a0032"}}
Comptroller
{"abi": [{"constant": true, "inputs": [], "name": "isComptroller", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "cToken", "type": "address"}, {"name": "payer", "type": "address"}, {"name": "borrower", "type": "address"}, {"name": "repayAmount", "type": "uint256"}, {"name": "borrowerIndex", "type": "uint256"}], "name": "repayBorrowVerify", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "cToken", "type": "address"}, {"name": "payer", "type": "address"}, {"name": "borrower", "type": "address"}, {"name": "repayAmount", "type": "uint256"}], "name": "repayBorrowAllowed", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "pendingAdmin", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "newCloseFactorMantissa", "type": "uint256"}], "name": "_setCloseFactor", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "unitroller", "type": "address"}, {"name": "_oracle", "type": "address"}, {"name": "_closeFactorMantissa", "type": "uint256"}, {"name": "_maxAssets", "type": "uint256"}, {"name": "reinitializing", "type": "bool"}], "name": "_become", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "cToken", "type": "address"}, {"name": "minter", "type": "address"}, {"name": "mintAmount", "type": "uint256"}, {"name": "mintTokens", "type": "uint256"}], "name": "mintVerify", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "cTokenBorrowed", "type": "address"}, {"name": "cTokenCollateral", "type": "address"}, {"name": "liquidator", "type": "address"}, {"name": "borrower", "type": "address"}, {"name": "repayAmount", "type": "uint256"}, {"name": "seizeTokens", "type": "uint256"}], "name": "liquidateBorrowVerify", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "liquidationIncentiveMantissa", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "cToken", "type": "address"}, {"name": "minter", "type": "address"}, {"name": "mintAmount", "type": "uint256"}], "name": "mintAllowed", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "newLiquidationIncentiveMantissa", "type": "uint256"}], "name": "_setLiquidationIncentive", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "cToken", "type": "address"}, {"name": "redeemer", "type": "address"}, {"name": "redeemAmount", "type": "uint256"}, {"name": "redeemTokens", "type": "uint256"}], "name": "redeemVerify", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "newOracle", "type": "address"}], "name": "_setPriceOracle", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "cToken", "type": "address"}, {"name": "borrower", "type": "address"}, {"name": "borrowAmount", "type": "uint256"}], "name": "borrowVerify", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "account", "type": "address"}], "name": "getAccountLiquidity", "outputs": [{"name": "", "type": "uint256"}, {"name": "", "type": "uint256"}, {"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "cTokenBorrowed", "type": "address"}, {"name": "cTokenCollateral", "type": "address"}, {"name": "liquidator", "type": "address"}, {"name": "borrower", "type": "address"}, {"name": "repayAmount", "type": "uint256"}], "name": "liquidateBorrowAllowed", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "cToken", "type": "address"}, {"name": "src", "type": "address"}, {"name": "dst", "type": "address"}, {"name": "transferTokens", "type": "uint256"}], "name": "transferVerify", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "cTokenCollateral", "type": "address"}, {"name": "cTokenBorrowed", "type": "address"}, {"name": "liquidator", "type": "address"}, {"name": "borrower", "type": "address"}, {"name": "seizeTokens", "type": "uint256"}], "name": "seizeVerify", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "oracle", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}], "name": "markets", "outputs": [{"name": "isListed", "type": "bool"}, {"name": "collateralFactorMantissa", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "account", "type": "address"}, {"name": "cToken", "type": "address"}], "name": "checkMembership", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "maxAssets", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "cToken", "type": "address"}], "name": "_supportMarket", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "account", "type": "address"}], "name": "getAssetsIn", "outputs": [{"name": "", "type": "address[]"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "comptrollerImplementation", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "cToken", "type": "address"}, {"name": "src", "type": "address"}, {"name": "dst", "type": "address"}, {"name": "transferTokens", "type": "uint256"}], "name": "transferAllowed", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "cTokens", "type": "address[]"}], "name": "enterMarkets", "outputs": [{"name": "", "type": "uint256[]"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "cTokenBorrowed", "type": "address"}, {"name": "cTokenCollateral", "type": "address"}, {"name": "repayAmount", "type": "uint256"}], "name": "liquidateCalculateSeizeTokens", "outputs": [{"name": "", "type": "uint256"}, {"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "cTokenCollateral", "type": "address"}, {"name": "cTokenBorrowed", "type": "address"}, {"name": "liquidator", "type": "address"}, {"name": "borrower", "type": "address"}, {"name": "seizeTokens", "type": "uint256"}], "name": "seizeAllowed", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "newMaxAssets", "type": "uint256"}], "name": "_setMaxAssets", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "cToken", "type": "address"}, {"name": "borrower", "type": "address"}, {"name": "borrowAmount", "type": "uint256"}], "name": "borrowAllowed", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}, {"name": "", "type": "uint256"}], "name": "accountAssets", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "pendingComptrollerImplementation", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "cToken", "type": "address"}, {"name": "newCollateralFactorMantissa", "type": "uint256"}], "name": "_setCollateralFactor", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "closeFactorMantissa", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "cToken", "type": "address"}, {"name": "redeemer", "type": "address"}, {"name": "redeemTokens", "type": "uint256"}], "name": "redeemAllowed", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "cTokenAddress", "type": "address"}], "name": "exitMarket", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "admin", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"inputs": [], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "cToken", "type": "address"}], "name": "MarketListed", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "cToken", "type": "address"}, {"indexed": false, "name": "account", "type": "address"}], "name": "MarketEntered", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "cToken", "type": "address"}, {"indexed": false, "name": "account", "type": "address"}], "name": "MarketExited", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "oldCloseFactorMantissa", "type": "uint256"}, {"indexed": false, "name": "newCloseFactorMantissa", "type": "uint256"}], "name": "NewCloseFactor", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "cToken", "type": "address"}, {"indexed": false, "name": "oldCollateralFactorMantissa", "type": "uint256"}, {"indexed": false, "name": "newCollateralFactorMantissa", "type": "uint256"}], "name": "NewCollateralFactor", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "oldLiquidationIncentiveMantissa", "type": "uint256"}, {"indexed": false, "name": "newLiquidationIncentiveMantissa", "type": "uint256"}], "name": "NewLiquidationIncentive", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "oldMaxAssets", "type": "uint256"}, {"indexed": false, "name": "newMaxAssets", "type": "uint256"}], "name": "NewMaxAssets", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "oldPriceOracle", "type": "address"}, {"indexed": false, "name": "newPriceOracle", "type": "address"}], "name": "NewPriceOracle", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "error", "type": "uint256"}, {"indexed": false, "name": "info", "type": "uint256"}, {"indexed": false, "name": "detail", "type": "uint256"}], "name": "Failure", "type": "event"}], "compiler": {"name": "solc", "settings": {"optimize": false}, "version": "0.5.10+commit.5a6ea5b1"}, "deployment_bytecode": {"bytecode": "0x608060405234801561001057600080fd5b50336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550614ca6806100606000396000f3fe608060405234801561001057600080fd5b50600436106102315760003560e01c80638e8f294b11610130578063d02f7351116100b8578063e4028eee1161007c578063e4028eee1461116e578063e8755446146111d0578063eabe7d91146111ee578063ede4edd014611270578063f851a440146112c857610231565b8063d02f735114610f10578063d9226ced14610fd2578063da3d454c14611014578063dce1544914611096578063dcfbc0c71461112457610231565b8063abfceffc116100ff578063abfceffc14610bf5578063bb82aa5e14610c8e578063bdcdc25814610cd8578063c299823814610d7a578063c488847b14610e8757610231565b80638e8f294b14610aa0578063929fe9a114610b0357806394b2294b14610b7f578063a76b3fda14610b9d57610231565b80634ef4c3e1116101be5780635ec88c79116101825780635ec88c79146107f25780635fc7e71e146108585780636a56947e1461091a5780636d35bf91146109a85780637dc0d1d014610a5657610231565b80634ef4c3e1146105f05780634fd42e171461067257806351dff989146106b457806355ee1fe11461072c5780635c7786051461078457610231565b8063317b0b7711610205578063317b0b77146103dc57806332000e001461041e57806341c728b9146104a257806347ef3b3b1461051a5780634ada90af146105d257610231565b80627e3dd2146102365780631ededc911461025857806324008a62146102f05780632678224714610392575b600080fd5b61023e611312565b604051808215151515815260200191505060405180910390f35b6102ee600480360360a081101561026e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919080359060200190929190505050611317565b005b61037c6004803603608081101561030657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061132f565b6040518082815260200191505060405180910390f35b61039a6113b1565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610408600480360360208110156103f257600080fd5b81019080803590602001909291905050506113d7565b6040518082815260200191505060405180910390f35b6104a0600480360360a081101561043457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919080359060200190929190803515159060200190929190505050611501565b005b610518600480360360808110156104b857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919080359060200190929190505050611b91565b005b6105d0600480360360c081101561053057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919080359060200190929190505050611ba8565b005b6105da611bc1565b6040518082815260200191505060405180910390f35b61065c6004803603606081101561060657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611bc7565b6040518082815260200191505060405180910390f35b61069e6004803603602081101561068857600080fd5b8101908080359060200190929190505050611c48565b6040518082815260200191505060405180910390f35b61072a600480360360808110156106ca57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919080359060200190929190505050611d73565b005b61076e6004803603602081101561074257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611dfc565b6040518082815260200191505060405180910390f35b6107f06004803603606081101561079a57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611f32565b005b6108346004803603602081101561080857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611f48565b60405180848152602001838152602001828152602001935050505060405180910390f35b610904600480360360a081101561086e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611f83565b6040518082815260200191505060405180910390f35b6109a66004803603608081101561093057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506121fc565b005b610a54600480360360a08110156109be57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050612213565b005b610a5e61222b565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610ae260048036036020811015610ab657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612251565b60405180831515151581526020018281526020019250505060405180910390f35b610b6560048036036040811015610b1957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612282565b604051808215151515815260200191505060405180910390f35b610b87612319565b6040518082815260200191505060405180910390f35b610bdf60048036036020811015610bb357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061231f565b6040518082815260200191505060405180910390f35b610c3760048036036020811015610c0b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061256f565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015610c7a578082015181840152602081019050610c5f565b505050509050019250505060405180910390f35b610c96612641565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610d6460048036036080811015610cee57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050612667565b6040518082815260200191505060405180910390f35b610e3060048036036020811015610d9057600080fd5b8101908080359060200190640100000000811115610dad57600080fd5b820183602082011115610dbf57600080fd5b80359060200191846020830284011164010000000083111715610de157600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050919291929050505061267e565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015610e73578082015181840152602081019050610e58565b505050509050019250505060405180910390f35b610ef360048036036060811015610e9d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050612a37565b604051808381526020018281526020019250505060405180910390f35b610fbc600480360360a0811015610f2657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050612e39565b6040518082815260200191505060405180910390f35b610ffe60048036036020811015610fe857600080fd5b810190808035906020019092919050505061305d565b6040518082815260200191505060405180910390f35b6110806004803603606081101561102a57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506130e1565b6040518082815260200191505060405180910390f35b6110e2600480360360408110156110ac57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050613366565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61112c6133b1565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6111ba6004803603604081101561118457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506133d7565b6040518082815260200191505060405180910390f35b6111d86136b0565b6040518082815260200191505060405180910390f35b61125a6004803603606081101561120457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506136b6565b6040518082815260200191505060405180910390f35b6112b26004803603602081101561128657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506136cc565b6040518082815260200191505060405180910390f35b6112d0613c44565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b600181565b600015611328576007546007819055505b5050505050565b6000600960008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900460ff16611399576009601181111561139257fe5b90506113a9565b600060118111156113a657fe5b90505b949350505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006113e1613c69565b6113f8576113f160016004613d7b565b90506114fc565b611400614b43565b6040518060200160405280848152509050611419614b43565b604051806020016040528066b1a2bc2ec50000815250905061143b8282613def565b156114545761144b600580613d7b565b925050506114fc565b61145c614b43565b6040518060200160405280670c7d713b49da0000815250905061147f8184613e05565b156114995761148f600580613d7b565b93505050506114fc565b60006005549050856005819055507f3b9670cf975d26958e754b57098eaa2ac914d8d2a31b83257997b9f346110fd981600554604051808381526020018281526020019250505060405180910390a1600060118111156114f557fe5b9450505050505b919050565b8473ffffffffffffffffffffffffffffffffffffffff1663f851a4406040518163ffffffff1660e01b815260040160206040518083038186803b15801561154757600080fd5b505afa15801561155b573d6000803e3d6000fd5b505050506040513d602081101561157157600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611605576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526027815260200180614c4b6027913960400191505060405180910390fd5b60008573ffffffffffffffffffffffffffffffffffffffff1663c1e803346040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561164f57600080fd5b505af1158015611663573d6000803e3d6000fd5b505050506040513d602081101561167957600080fd5b8101908080519060200190929190505050905060008114611702576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f6368616e6765206e6f7420617574686f72697a6564000000000000000000000081525060200191505060405180910390fd5b81611b8957600086905060008173ffffffffffffffffffffffffffffffffffffffff166355ee1fe1886040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b15801561178d57600080fd5b505af11580156117a1573d6000803e3d6000fd5b505050506040513d60208110156117b757600080fd5b81019080805190602001909291905050509050600060118111156117d757fe5b811461184b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f736574207072696365206f7261636c65206572726f720000000000000000000081525060200191505060405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff1663317b0b77876040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b15801561189e57600080fd5b505af11580156118b2573d6000803e3d6000fd5b505050506040513d60208110156118c857600080fd5b81019080805190602001909291905050509050600060118111156118e857fe5b811461195c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f73657420636c6f736520666163746f72206572726f720000000000000000000081525060200191505060405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff1663d9226ced866040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b1580156119af57600080fd5b505af11580156119c3573d6000803e3d6000fd5b505050506040513d60208110156119d957600080fd5b81019080805190602001909291905050509050600060118111156119f957fe5b8114611a6d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f736574206d61782061737373657473206572726f72000000000000000000000081525060200191505060405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff16634fd42e17670de0b6b3a76400006040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b158015611ac857600080fd5b505af1158015611adc573d6000803e3d6000fd5b505050506040513d6020811015611af257600080fd5b8101908080519060200190929190505050905060006011811115611b1257fe5b8114611b86576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f736574206c69717569646174696f6e20696e63656e74697665206572726f720081525060200191505060405180910390fd5b50505b505050505050565b600015611ba2576007546007819055505b50505050565b600015611bb9576007546007819055505b505050505050565b60065481565b6000600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900460ff16611c315760096011811115611c2a57fe5b9050611c41565b60006011811115611c3e57fe5b90505b9392505050565b6000611c52613c69565b611c6957611c626001600b613d7b565b9050611d6e565b611c71614b43565b6040518060200160405280848152509050611c8a614b43565b6040518060200160405280670de0b6b3a76400008152509050611cad8282613e05565b15611cc757611cbe6007600c613d7b565b92505050611d6e565b611ccf614b43565b60405180602001604052806714d1120d7b1600008152509050611cf28184613e05565b15611d0d57611d036007600c613d7b565b9350505050611d6e565b60006006549050856006819055507faeba5a6c40a8ac138134bff1aaa65debf25971188a58804bad717f82f0ec13168187604051808381526020018281526020019250505060405180910390a160006011811115611d6757fe5b9450505050505b919050565b600081148015611d835750600082115b15611df6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f72656465656d546f6b656e73207a65726f00000000000000000000000000000081525060200191505060405180910390fd5b50505050565b6000611e06613c69565b611e1d57611e1660016010613d7b565b9050611f2d565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905082600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fd52b2b9b7e9ee655fcb95d2e5b9e0c9f69e7ef2b8e9d2d0ea78402d576d22e228184604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a160006011811115611f2957fe5b9150505b919050565b600015611f43576007546007819055505b505050565b600080600080600080611f5f876000806000613e1a565b925092509250826011811115611f7157fe5b82829550955095505050509193909250565b6000600960008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900460ff16158061202e5750600960008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900460ff16155b15612047576009601181111561204057fe5b90506121f3565b6000806120538561443f565b92505091506000601181111561206557fe5b82601181111561207157fe5b1461208b5781601181111561208257fe5b925050506121f3565b60008114156120aa57600360118111156120a157fe5b925050506121f3565b60008873ffffffffffffffffffffffffffffffffffffffff166395dd9193876040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561212957600080fd5b505afa15801561213d573d6000803e3d6000fd5b505050506040513d602081101561215357600080fd5b8101908080519060200190929190505050905060008061218360405180602001604052806005548152508461445f565b915091506000600381111561219457fe5b8260038111156121a057fe5b146121be57600b60118111156121b257fe5b955050505050506121f3565b808711156121de576011808111156121d257fe5b955050505050506121f3565b600060118111156121eb57fe5b955050505050505b95945050505050565b60001561220d576007546007819055505b50505050565b600015612224576007546007819055505b5050505050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60096020528060005260406000206000915090508060000160009054906101000a900460ff16908060010154905082565b6000600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60075481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146123885761238160016012613d7b565b905061256a565b600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900460ff16156123f0576123e9600a6011613d7b565b905061256a565b8173ffffffffffffffffffffffffffffffffffffffff1663fe9c44ae6040518163ffffffff1660e01b815260040160206040518083038186803b15801561243657600080fd5b505afa15801561244a573d6000803e3d6000fd5b505050506040513d602081101561246057600080fd5b81019080805190602001909291905050505060405180604001604052806001151581526020016000815250600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a81548160ff021916908315150217905550602082015181600101559050507fcf583bb0c569eb967f806b11601c4cb93c10310485c67add5f8362c2f212321f82604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a16000601181111561256757fe5b90505b919050565b606080600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080548060200260200160405190810160405280929190818152602001828054801561263157602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190600101908083116125e7575b5050505050905080915050919050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006126748585846144c2565b9050949350505050565b60606000825190506060816040519080825280602002602001820160405280156126b75781602001602082028038833980820191505090505b50905060008090505b82811015612a2c5760008582815181106126d657fe5b602002602001015190506000600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090508060000160009054906101000a900460ff16612765576009601181111561274657fe5b84848151811061275257fe5b6020026020010181815250505050612a1f565b600115158160020160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514156127ec57600060118111156127cd57fe5b8484815181106127d957fe5b6020026020010181815250505050612a1f565b600754600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054905010612863576010601181111561284457fe5b84848151811061285057fe5b6020026020010181815250505050612a1f565b60018160020160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208290806001815401808255809150509060018203906000526020600020016000909192909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550507f3ab23ab0d51cccc0c3085aec51f99228625aa1a922b3a8ca89a26b0f2027a1a58233604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a160006011811115612a0457fe5b848481518110612a1057fe5b60200260200101818152505050505b80806001019150506126c0565b508092505050919050565b6000806000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663fc57d4df876040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015612adb57600080fd5b505afa158015612aef573d6000803e3d6000fd5b505050506040513d6020811015612b0557600080fd5b810190808051906020019092919050505090506000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663fc57d4df876040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015612bb957600080fd5b505afa158015612bcd573d6000803e3d6000fd5b505050506040513d6020811015612be357600080fd5b810190808051906020019092919050505090506000821480612c055750600081145b15612c2757600d6011811115612c1757fe5b6000809050935093505050612e31565b60008673ffffffffffffffffffffffffffffffffffffffff1663182df0f56040518163ffffffff1660e01b815260040160206040518083038186803b158015612c6f57600080fd5b505afa158015612c83573d6000803e3d6000fd5b505050506040513d6020811015612c9957600080fd5b810190808051906020019092919050505090506000612cb6614b43565b612cbe614b43565b612cc6614b43565b6000612cd460065489614651565b809550819250505060006003811115612ce957fe5b816003811115612cf557fe5b14612d1d57600b6011811115612d0757fe5b6000809050995099505050505050505050612e31565b612d278787614651565b809450819250505060006003811115612d3c57fe5b816003811115612d4857fe5b14612d7057600b6011811115612d5a57fe5b6000809050995099505050505050505050612e31565b612d7a848461468c565b809350819250505060006003811115612d8f57fe5b816003811115612d9b57fe5b14612dc357600b6011811115612dad57fe5b6000809050995099505050505050505050612e31565b612dcd828c61445f565b809650819250505060006003811115612de257fe5b816003811115612dee57fe5b14612e1657600b6011811115612e0057fe5b6000809050995099505050505050505050612e31565b60006011811115612e2357fe5b859950995050505050505050505b935093915050565b6000600960008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900460ff161580612ee45750600960008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900460ff16155b15612efd5760096011811115612ef657fe5b9050613054565b8473ffffffffffffffffffffffffffffffffffffffff16635fe3b5676040518163ffffffff1660e01b815260040160206040518083038186803b158015612f4357600080fd5b505afa158015612f57573d6000803e3d6000fd5b505050506040513d6020811015612f6d57600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff16635fe3b5676040518163ffffffff1660e01b815260040160206040518083038186803b158015612fda57600080fd5b505afa158015612fee573d6000803e3d6000fd5b505050506040513d602081101561300457600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff1614613044576002601181111561303d57fe5b9050613054565b6000601181111561305157fe5b90505b95945050505050565b6000613067613c69565b61307e576130776001600d613d7b565b90506130dc565b60006007549050826007819055507f7093cf1eb653f749c3ff531d6df7f92764536a7fa0d13530cd26e070780c32ea8184604051808381526020018281526020019250505060405180910390a1600060118111156130d857fe5b9150505b919050565b6000600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900460ff1661314b576009601181111561314457fe5b905061335f565b600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166131f057600860118111156131e957fe5b905061335f565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663fc57d4df866040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561329157600080fd5b505afa1580156132a5573d6000803e3d6000fd5b505050506040513d60208110156132bb57600080fd5b810190808051906020019092919050505014156132e657600d60118111156132df57fe5b905061335f565b6000806132f68587600087613e1a565b92505091506000601181111561330857fe5b82601181111561331457fe5b1461332e5781601181111561332557fe5b9250505061335f565b600081111561334d576004601181111561334457fe5b9250505061335f565b6000601181111561335a57fe5b925050505b9392505050565b6008602052816000526040600020818154811061337f57fe5b906000526020600020016000915091509054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146134405761343960016006613d7b565b90506136aa565b6000600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090508060000160009054906101000a900460ff166134ad576134a560096007613d7b565b9150506136aa565b6134b5614b43565b60405180602001604052808581525090506134ce614b43565b6040518060200160405280670c7d713b49da000081525090506134f18183613e05565b1561350c5761350260066008613d7b565b93505050506136aa565b600085141580156135f657506000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663fc57d4df886040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156135b957600080fd5b505afa1580156135cd573d6000803e3d6000fd5b505050506040513d60208110156135e357600080fd5b8101908080519060200190929190505050145b1561361157613607600d6009613d7b565b93505050506136aa565b6000836001015490508584600101819055507f70483e6592cd5182d45ac970e05bc62cdcc90e9d8ef2c2dbe686cf383bcd7fc5878288604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828152602001935050505060405180910390a1600060118111156136a357fe5b9450505050505b92915050565b60055481565b60006136c38484846144c2565b90509392505050565b60008082905060008060008373ffffffffffffffffffffffffffffffffffffffff1663c37f68e2336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060806040518083038186803b15801561375457600080fd5b505afa158015613768573d6000803e3d6000fd5b505050506040513d608081101561377e57600080fd5b8101908080519060200190929190805190602001909291908051906020019092919080519060200190929190505050509250925092506000831461380d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180614c266025913960400191505060405180910390fd5b6000811461382c57613821600c6002613d7b565b945050505050613c3f565b60006138398733856144c2565b90506000811461385c57613850600e6003836146b3565b95505050505050613c3f565b6000600960008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090508060020160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1661390c57600060118111156138ff57fe5b9650505050505050613c3f565b8060020160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81549060ff02191690556060600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805480602002602001604051908101604052809291908181526020018280548015613a1e57602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190600101908083116139d4575b50505050509050600081519050600081905060008090505b82811015613a9a578973ffffffffffffffffffffffffffffffffffffffff16848281518110613a6157fe5b602002602001015173ffffffffffffffffffffffffffffffffffffffff161415613a8d57809150613a9a565b8080600101915050613a36565b50818110613aa457fe5b6000600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905080600182805490500381548110613afa57fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16818381548110613b3157fe5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080805480919060019003613b8d9190614b56565b507fe699a64c18b07ac5b7301aa273f36a2287239eb9501d81950672794afba29a0d8a33604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a160006011811115613c3257fe5b9a50505050505050505050505b919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148015613d1557506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16145b905060008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161490508080613d745750815b9250505090565b60007f45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa0836011811115613daa57fe5b836013811115613db657fe5b600060405180848152602001838152602001828152602001935050505060405180910390a1826011811115613de757fe5b905092915050565b6000816000015183600001511115905092915050565b60008160000151836000015110905092915050565b6000806000613e27614b82565b6000806060600860008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805480602002602001604051908101604052809291908181526020018280548015613eeb57602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311613ea1575b5050505050905060008090505b81518110156143e7576000828281518110613f0f57fe5b602002602001015190508073ffffffffffffffffffffffffffffffffffffffff1663c37f68e28e6040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060806040518083038186803b158015613f9657600080fd5b505afa158015613faa573d6000803e3d6000fd5b505050506040513d6080811015613fc057600080fd5b8101908080519060200190929190805190602001909291908051906020019092919080519060200190929190505050896040018a6060018b608001838152508381525083815250839850505050506000851461403257600f600080819150809050985098509850505050505050614435565b6040518060200160405280600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101548152508660c00181905250604051806020016040528087608001518152508660e00181905250600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663fc57d4df826040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561414557600080fd5b505afa158015614159573d6000803e3d6000fd5b505050506040513d602081101561416f57600080fd5b81019080805190602001909291905050508660a001818152505060008660a0015114156141b257600d600080819150809050985098509850505050505050614435565b60405180602001604052808760a001518152508661010001819052506141e68660c001518760e00151886101000151614727565b809050876101200181905281955050506000600381111561420357fe5b84600381111561420f57fe5b1461423057600b600080819150809050985098509850505050505050614435565b6142488661012001518760400151886000015161478d565b876000018181525081955050506000600381111561426257fe5b84600381111561426e57fe5b1461428f57600b600080819150809050985098509850505050505050614435565b6142a78661010001518760600151886020015161478d565b87602001818152508195505050600060038111156142c157fe5b8460038111156142cd57fe5b146142ee57600b600080819150809050985098509850505050505050614435565b8b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156143d9576143368661012001518c886020015161478d565b876020018181525081955050506000600381111561435057fe5b84600381111561435c57fe5b1461437d57600b600080819150809050985098509850505050505050614435565b6143918661010001518b886020015161478d565b87602001818152508195505050600060038111156143ab57fe5b8460038111156143b757fe5b146143d857600b600080819150809050985098509850505050505050614435565b5b508080600101915050613ef8565b508360200151846000015111156144195760008460200151856000015103600080905096509650965050505050614435565b6000808560000151866020015103819150965096509650505050505b9450945094915050565b6000806000614452846000806000613e1a565b9250925092509193909250565b600080600061446c614b43565b61447686866147f8565b915091506000600381111561448757fe5b82600381111561449357fe5b146144a9578160008090509350935050506144bb565b60006144b482614876565b9350935050505b9250929050565b6000600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900460ff1661452c576009601181111561452557fe5b905061464a565b600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166145d157600060118111156145ca57fe5b905061464a565b6000806145e18587866000613e1a565b9250509150600060118111156145f357fe5b8260118111156145ff57fe5b146146195781601181111561461057fe5b9250505061464a565b6000811115614638576004601181111561462f57fe5b9250505061464a565b6000601181111561464557fe5b925050505b9392505050565b600061465b614b43565b614681604051806020016040528086815250604051806020016040528086815250614895565b915091509250929050565b6000614696614b43565b6146a8846000015184600001516149b6565b915091509250929050565b60007f45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa08460118111156146e257fe5b8460138111156146ee57fe5b8460405180848152602001838152602001828152602001935050505060405180910390a183601181111561471e57fe5b90509392505050565b6000614731614b43565b600061473b614b43565b6147458787614895565b915091506000600381111561475657fe5b82600381111561476257fe5b14614774578181935093505050614785565b61477e8186614895565b9350935050505b935093915050565b600080600061479a614b43565b6147a487876147f8565b91509150600060038111156147b557fe5b8260038111156147c157fe5b146147d7578160008090509350935050506147f0565b6147e96147e382614876565b86614a8a565b9350935050505b935093915050565b6000614802614b43565b600080614813866000015186614abc565b915091506000600381111561482457fe5b82600381111561483057fe5b1461485457816040518060200160405280600081525080905093509350505061486f565b60006040518060200160405280838152508090509350935050505b9250929050565b6000670de0b6b3a764000082600001518161488d57fe5b049050919050565b600061489f614b43565b6000806148b486600001518660000151614abc565b91509150600060038111156148c557fe5b8260038111156148d157fe5b146148f55781604051806020016040528060008152508090509350935050506149af565b6000806149146002670de0b6b3a76400008161490d57fe5b0484614a8a565b915091506000600381111561492557fe5b82600381111561493157fe5b1461495757816040518060200160405280600081525080905095509550505050506149af565b60008061496c83670de0b6b3a7640000614b0f565b915091506000600381111561497d57fe5b82600381111561498957fe5b1461499057fe5b6000604051806020016040528083815250809050975097505050505050505b9250929050565b60006149c0614b43565b6000806149d586670de0b6b3a7640000614abc565b91509150600060038111156149e657fe5b8260038111156149f257fe5b14614a16578160405180602001604052806000815250809050935093505050614a83565b600080614a238388614b0f565b9150915060006003811115614a3457fe5b826003811115614a4057fe5b14614a665781604051806020016040528060008152508090509550955050505050614a83565b600060405180602001604052808381525080905095509550505050505b9250929050565b60008060008385019050848110614aa8576000819250925050614ab5565b6002600080905092509250505b9250929050565b6000806000841415614ad75760008080905091509150614b08565b6000838502905083858281614ae857fe5b0414614aff57600260008090509250925050614b08565b60008192509250505b9250929050565b6000806000831415614b2b576001600080905091509150614b3c565b6000838581614b3657fe5b04915091505b9250929050565b6040518060200160405280600081525090565b815481835581811115614b7d57818360005260206000209182019101614b7c9190614bed565b5b505050565b604051806101400160405280600081526020016000815260200160008152602001600081526020016000815260200160008152602001614bc0614c12565b8152602001614bcd614c12565b8152602001614bda614c12565b8152602001614be7614c12565b81525090565b614c0f91905b80821115614c0b576000816000905550600101614bf3565b5090565b90565b604051806020016040528060008152509056fe657869744d61726b65743a206765744163636f756e74536e617073686f74206661696c65646f6e6c7920756e6974726f6c6c65722061646d696e2063616e206368616e676520627261696e73a265627a7a72305820ad884367705558a5fd06ceed1bae13e3fdcb3678fa32af2a04e5d11f1db3181964736f6c634300050a0032"}, "natspec": {"author": "Compound", "methods": {"_setCloseFactor(uint256)": {"details": "Admin function to set closeFactor", "params": {"newCloseFactorMantissa": "New close factor, scaled by 1e18"}, "return": "uint 0=success, otherwise a failure. (See ErrorReporter for details)"}, "_setCollateralFactor(address,uint256)": {"details": "Admin function to set per-market collateralFactor", "params": {"cToken": "The market to set the factor on", "newCollateralFactorMantissa": "The new collateral factor, scaled by 1e18"}, "return": "uint 0=success, otherwise a failure. (See ErrorReporter for details)"}, "_setLiquidationIncentive(uint256)": {"details": "Admin function to set liquidationIncentive", "params": {"newLiquidationIncentiveMantissa": "New liquidationIncentive scaled by 1e18"}, "return": "uint 0=success, otherwise a failure. (See ErrorReporter for details)"}, "_setMaxAssets(uint256)": {"details": "Admin function to set maxAssets", "params": {"newMaxAssets": "New max assets"}, "return": "uint 0=success, otherwise a failure. (See ErrorReporter for details)"}, "_setPriceOracle(address)": {"details": "Admin function to set a new price oracle", "return": "uint 0=success, otherwise a failure (see ErrorReporter.sol for details)"}, "_supportMarket(address)": {"details": "Admin function to set isListed and add support for the market", "params": {"cToken": "The address of the market (token) to list"}, "return": "uint 0=success, otherwise a failure. (See enum Error for details)"}, "borrowAllowed(address,address,uint256)": {"params": {"borrowAmount": "The amount of underlying the account would borrow", "borrower": "The account which would borrow the asset", "cToken": "The market to verify the borrow against"}, "return": "0 if the borrow is allowed, otherwise a semi-opaque error code (See ErrorReporter.sol)"}, "borrowVerify(address,address,uint256)": {"params": {"borrowAmount": "The amount of the underlying asset requested to borrow", "borrower": "The address borrowing the underlying", "cToken": "Asset whose underlying is being borrowed"}}, "checkMembership(address,address)": {"params": {"account": "The address of the account to check", "cToken": "The cToken to check"}, "return": "True if the account is in the asset, otherwise false."}, "enterMarkets(address[])": {"params": {"cTokens": "The list of addresses of the cToken markets to be enabled"}, "return": "Success indicator for whether each corresponding market was entered"}, "exitMarket(address)": {"details": "Sender must not have an outstanding borrow balance in the asset, or be providing neccessary collateral for an outstanding borrow.", "params": {"cTokenAddress": "The address of the asset to be removed"}, "return": "Whether or not the account successfully exited the market"}, "getAccountLiquidity(address)": {"return": "(possible error code (semi-opaque), account liquidity in excess of collateral requirements,         account shortfall below collateral requirements)"}, "getAssetsIn(address)": {"params": {"account": "The address of the account to pull assets for"}, "return": "A dynamic list with the assets the account has entered"}, "liquidateBorrowAllowed(address,address,address,address,uint256)": {"params": {"borrower": "The address of the borrower", "cTokenBorrowed": "Asset which was borrowed by the borrower", "cTokenCollateral": "Asset which was used as collateral and will be seized", "liquidator": "The address repaying the borrow and seizing the collateral", "repayAmount": "The amount of underlying being repaid"}}, "liquidateBorrowVerify(address,address,address,address,uint256,uint256)": {"params": {"borrower": "The address of the borrower", "cTokenBorrowed": "Asset which was borrowed by the borrower", "cTokenCollateral": "Asset which was used as collateral and will be seized", "liquidator": "The address repaying the borrow and seizing the collateral", "repayAmount": "The amount of underlying being repaid"}}, "liquidateCalculateSeizeTokens(address,address,uint256)": {"details": "Used in liquidation (called in cToken.liquidateBorrowFresh)", "params": {"cTokenBorrowed": "The address of the borrowed cToken", "cTokenCollateral": "The address of the collateral cToken", "repayAmount": "The amount of cTokenBorrowed underlying to convert into cTokenCollateral tokens"}, "return": "(errorCode, number of cTokenCollateral tokens to be seized in a liquidation)"}, "mintAllowed(address,address,uint256)": {"params": {"cToken": "The market to verify the mint against", "mintAmount": "The amount of underlying being supplied to the market in exchange for tokens", "minter": "The account which would get the minted tokens"}, "return": "0 if the mint is allowed, otherwise a semi-opaque error code (See ErrorReporter.sol)"}, "mintVerify(address,address,uint256,uint256)": {"params": {"cToken": "Asset being minted", "mintAmount": "The amount of the underlying asset being minted", "mintTokens": "The number of tokens being minted", "minter": "The address minting the tokens"}}, "redeemAllowed(address,address,uint256)": {"params": {"cToken": "The market to verify the redeem against", "redeemTokens": "The number of cTokens to exchange for the underlying asset in the market", "redeemer": "The account which would redeem the tokens"}, "return": "0 if the redeem is allowed, otherwise a semi-opaque error code (See ErrorReporter.sol)"}, "redeemVerify(address,address,uint256,uint256)": {"params": {"cToken": "Asset being redeemed", "redeemAmount": "The amount of the underlying asset being redeemed", "redeemTokens": "The number of tokens being redeemed", "redeemer": "The address redeeming the tokens"}}, "repayBorrowAllowed(address,address,address,uint256)": {"params": {"borrower": "The account which would borrowed the asset", "cToken": "The market to verify the repay against", "payer": "The account which would repay the asset", "repayAmount": "The amount of the underlying asset the account would repay"}, "return": "0 if the repay is allowed, otherwise a semi-opaque error code (See ErrorReporter.sol)"}, "repayBorrowVerify(address,address,address,uint256,uint256)": {"params": {"borrower": "The address of the borrower", "cToken": "Asset being repaid", "payer": "The address repaying the borrow", "repayAmount": "The amount of underlying being repaid"}}, "seizeAllowed(address,address,address,address,uint256)": {"params": {"borrower": "The address of the borrower", "cTokenBorrowed": "Asset which was borrowed by the borrower", "cTokenCollateral": "Asset which was used as collateral and will be seized", "liquidator": "The address repaying the borrow and seizing the collateral", "seizeTokens": "The number of collateral tokens to seize"}}, "seizeVerify(address,address,address,address,uint256)": {"params": {"borrower": "The address of the borrower", "cTokenBorrowed": "Asset which was borrowed by the borrower", "cTokenCollateral": "Asset which was used as collateral and will be seized", "liquidator": "The address repaying the borrow and seizing the collateral", "seizeTokens": "The number of collateral tokens to seize"}}, "transferAllowed(address,address,address,uint256)": {"params": {"cToken": "The market to verify the transfer against", "dst": "The account which receives the tokens", "src": "The account which sources the tokens", "transferTokens": "The number of cTokens to transfer"}, "return": "0 if the transfer is allowed, otherwise a semi-opaque error code (See ErrorReporter.sol)"}, "transferVerify(address,address,address,uint256)": {"params": {"cToken": "Asset being transferred", "dst": "The account which receives the tokens", "src": "The account which sources the tokens", "transferTokens": "The number of cTokens to transfer"}}}, "title": "Compound's Comptroller Contract"}, "runtime_bytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106102315760003560e01c80638e8f294b11610130578063d02f7351116100b8578063e4028eee1161007c578063e4028eee1461116e578063e8755446146111d0578063eabe7d91146111ee578063ede4edd014611270578063f851a440146112c857610231565b8063d02f735114610f10578063d9226ced14610fd2578063da3d454c14611014578063dce1544914611096578063dcfbc0c71461112457610231565b8063abfceffc116100ff578063abfceffc14610bf5578063bb82aa5e14610c8e578063bdcdc25814610cd8578063c299823814610d7a578063c488847b14610e8757610231565b80638e8f294b14610aa0578063929fe9a114610b0357806394b2294b14610b7f578063a76b3fda14610b9d57610231565b80634ef4c3e1116101be5780635ec88c79116101825780635ec88c79146107f25780635fc7e71e146108585780636a56947e1461091a5780636d35bf91146109a85780637dc0d1d014610a5657610231565b80634ef4c3e1146105f05780634fd42e171461067257806351dff989146106b457806355ee1fe11461072c5780635c7786051461078457610231565b8063317b0b7711610205578063317b0b77146103dc57806332000e001461041e57806341c728b9146104a257806347ef3b3b1461051a5780634ada90af146105d257610231565b80627e3dd2146102365780631ededc911461025857806324008a62146102f05780632678224714610392575b600080fd5b61023e611312565b604051808215151515815260200191505060405180910390f35b6102ee600480360360a081101561026e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919080359060200190929190505050611317565b005b61037c6004803603608081101561030657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061132f565b6040518082815260200191505060405180910390f35b61039a6113b1565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610408600480360360208110156103f257600080fd5b81019080803590602001909291905050506113d7565b6040518082815260200191505060405180910390f35b6104a0600480360360a081101561043457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919080359060200190929190803515159060200190929190505050611501565b005b610518600480360360808110156104b857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919080359060200190929190505050611b91565b005b6105d0600480360360c081101561053057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919080359060200190929190505050611ba8565b005b6105da611bc1565b6040518082815260200191505060405180910390f35b61065c6004803603606081101561060657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611bc7565b6040518082815260200191505060405180910390f35b61069e6004803603602081101561068857600080fd5b8101908080359060200190929190505050611c48565b6040518082815260200191505060405180910390f35b61072a600480360360808110156106ca57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919080359060200190929190505050611d73565b005b61076e6004803603602081101561074257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611dfc565b6040518082815260200191505060405180910390f35b6107f06004803603606081101561079a57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611f32565b005b6108346004803603602081101561080857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611f48565b60405180848152602001838152602001828152602001935050505060405180910390f35b610904600480360360a081101561086e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611f83565b6040518082815260200191505060405180910390f35b6109a66004803603608081101561093057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506121fc565b005b610a54600480360360a08110156109be57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050612213565b005b610a5e61222b565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610ae260048036036020811015610ab657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612251565b60405180831515151581526020018281526020019250505060405180910390f35b610b6560048036036040811015610b1957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612282565b604051808215151515815260200191505060405180910390f35b610b87612319565b6040518082815260200191505060405180910390f35b610bdf60048036036020811015610bb357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061231f565b6040518082815260200191505060405180910390f35b610c3760048036036020811015610c0b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061256f565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015610c7a578082015181840152602081019050610c5f565b505050509050019250505060405180910390f35b610c96612641565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610d6460048036036080811015610cee57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050612667565b6040518082815260200191505060405180910390f35b610e3060048036036020811015610d9057600080fd5b8101908080359060200190640100000000811115610dad57600080fd5b820183602082011115610dbf57600080fd5b80359060200191846020830284011164010000000083111715610de157600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050919291929050505061267e565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015610e73578082015181840152602081019050610e58565b505050509050019250505060405180910390f35b610ef360048036036060811015610e9d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050612a37565b604051808381526020018281526020019250505060405180910390f35b610fbc600480360360a0811015610f2657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050612e39565b6040518082815260200191505060405180910390f35b610ffe60048036036020811015610fe857600080fd5b810190808035906020019092919050505061305d565b6040518082815260200191505060405180910390f35b6110806004803603606081101561102a57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506130e1565b6040518082815260200191505060405180910390f35b6110e2600480360360408110156110ac57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050613366565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61112c6133b1565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6111ba6004803603604081101561118457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506133d7565b6040518082815260200191505060405180910390f35b6111d86136b0565b6040518082815260200191505060405180910390f35b61125a6004803603606081101561120457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506136b6565b6040518082815260200191505060405180910390f35b6112b26004803603602081101561128657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506136cc565b6040518082815260200191505060405180910390f35b6112d0613c44565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b600181565b600015611328576007546007819055505b5050505050565b6000600960008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900460ff16611399576009601181111561139257fe5b90506113a9565b600060118111156113a657fe5b90505b949350505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006113e1613c69565b6113f8576113f160016004613d7b565b90506114fc565b611400614b43565b6040518060200160405280848152509050611419614b43565b604051806020016040528066b1a2bc2ec50000815250905061143b8282613def565b156114545761144b600580613d7b565b925050506114fc565b61145c614b43565b6040518060200160405280670c7d713b49da0000815250905061147f8184613e05565b156114995761148f600580613d7b565b93505050506114fc565b60006005549050856005819055507f3b9670cf975d26958e754b57098eaa2ac914d8d2a31b83257997b9f346110fd981600554604051808381526020018281526020019250505060405180910390a1600060118111156114f557fe5b9450505050505b919050565b8473ffffffffffffffffffffffffffffffffffffffff1663f851a4406040518163ffffffff1660e01b815260040160206040518083038186803b15801561154757600080fd5b505afa15801561155b573d6000803e3d6000fd5b505050506040513d602081101561157157600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611605576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526027815260200180614c4b6027913960400191505060405180910390fd5b60008573ffffffffffffffffffffffffffffffffffffffff1663c1e803346040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561164f57600080fd5b505af1158015611663573d6000803e3d6000fd5b505050506040513d602081101561167957600080fd5b8101908080519060200190929190505050905060008114611702576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f6368616e6765206e6f7420617574686f72697a6564000000000000000000000081525060200191505060405180910390fd5b81611b8957600086905060008173ffffffffffffffffffffffffffffffffffffffff166355ee1fe1886040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b15801561178d57600080fd5b505af11580156117a1573d6000803e3d6000fd5b505050506040513d60208110156117b757600080fd5b81019080805190602001909291905050509050600060118111156117d757fe5b811461184b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f736574207072696365206f7261636c65206572726f720000000000000000000081525060200191505060405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff1663317b0b77876040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b15801561189e57600080fd5b505af11580156118b2573d6000803e3d6000fd5b505050506040513d60208110156118c857600080fd5b81019080805190602001909291905050509050600060118111156118e857fe5b811461195c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f73657420636c6f736520666163746f72206572726f720000000000000000000081525060200191505060405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff1663d9226ced866040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b1580156119af57600080fd5b505af11580156119c3573d6000803e3d6000fd5b505050506040513d60208110156119d957600080fd5b81019080805190602001909291905050509050600060118111156119f957fe5b8114611a6d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260158152602001807f736574206d61782061737373657473206572726f72000000000000000000000081525060200191505060405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff16634fd42e17670de0b6b3a76400006040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b158015611ac857600080fd5b505af1158015611adc573d6000803e3d6000fd5b505050506040513d6020811015611af257600080fd5b8101908080519060200190929190505050905060006011811115611b1257fe5b8114611b86576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f736574206c69717569646174696f6e20696e63656e74697665206572726f720081525060200191505060405180910390fd5b50505b505050505050565b600015611ba2576007546007819055505b50505050565b600015611bb9576007546007819055505b505050505050565b60065481565b6000600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900460ff16611c315760096011811115611c2a57fe5b9050611c41565b60006011811115611c3e57fe5b90505b9392505050565b6000611c52613c69565b611c6957611c626001600b613d7b565b9050611d6e565b611c71614b43565b6040518060200160405280848152509050611c8a614b43565b6040518060200160405280670de0b6b3a76400008152509050611cad8282613e05565b15611cc757611cbe6007600c613d7b565b92505050611d6e565b611ccf614b43565b60405180602001604052806714d1120d7b1600008152509050611cf28184613e05565b15611d0d57611d036007600c613d7b565b9350505050611d6e565b60006006549050856006819055507faeba5a6c40a8ac138134bff1aaa65debf25971188a58804bad717f82f0ec13168187604051808381526020018281526020019250505060405180910390a160006011811115611d6757fe5b9450505050505b919050565b600081148015611d835750600082115b15611df6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f72656465656d546f6b656e73207a65726f00000000000000000000000000000081525060200191505060405180910390fd5b50505050565b6000611e06613c69565b611e1d57611e1660016010613d7b565b9050611f2d565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905082600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fd52b2b9b7e9ee655fcb95d2e5b9e0c9f69e7ef2b8e9d2d0ea78402d576d22e228184604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a160006011811115611f2957fe5b9150505b919050565b600015611f43576007546007819055505b505050565b600080600080600080611f5f876000806000613e1a565b925092509250826011811115611f7157fe5b82829550955095505050509193909250565b6000600960008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900460ff16158061202e5750600960008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900460ff16155b15612047576009601181111561204057fe5b90506121f3565b6000806120538561443f565b92505091506000601181111561206557fe5b82601181111561207157fe5b1461208b5781601181111561208257fe5b925050506121f3565b60008114156120aa57600360118111156120a157fe5b925050506121f3565b60008873ffffffffffffffffffffffffffffffffffffffff166395dd9193876040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561212957600080fd5b505afa15801561213d573d6000803e3d6000fd5b505050506040513d602081101561215357600080fd5b8101908080519060200190929190505050905060008061218360405180602001604052806005548152508461445f565b915091506000600381111561219457fe5b8260038111156121a057fe5b146121be57600b60118111156121b257fe5b955050505050506121f3565b808711156121de576011808111156121d257fe5b955050505050506121f3565b600060118111156121eb57fe5b955050505050505b95945050505050565b60001561220d576007546007819055505b50505050565b600015612224576007546007819055505b5050505050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60096020528060005260406000206000915090508060000160009054906101000a900460ff16908060010154905082565b6000600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60075481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146123885761238160016012613d7b565b905061256a565b600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900460ff16156123f0576123e9600a6011613d7b565b905061256a565b8173ffffffffffffffffffffffffffffffffffffffff1663fe9c44ae6040518163ffffffff1660e01b815260040160206040518083038186803b15801561243657600080fd5b505afa15801561244a573d6000803e3d6000fd5b505050506040513d602081101561246057600080fd5b81019080805190602001909291905050505060405180604001604052806001151581526020016000815250600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000160006101000a81548160ff021916908315150217905550602082015181600101559050507fcf583bb0c569eb967f806b11601c4cb93c10310485c67add5f8362c2f212321f82604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a16000601181111561256757fe5b90505b919050565b606080600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080548060200260200160405190810160405280929190818152602001828054801561263157602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190600101908083116125e7575b5050505050905080915050919050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006126748585846144c2565b9050949350505050565b60606000825190506060816040519080825280602002602001820160405280156126b75781602001602082028038833980820191505090505b50905060008090505b82811015612a2c5760008582815181106126d657fe5b602002602001015190506000600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090508060000160009054906101000a900460ff16612765576009601181111561274657fe5b84848151811061275257fe5b6020026020010181815250505050612a1f565b600115158160020160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514156127ec57600060118111156127cd57fe5b8484815181106127d957fe5b6020026020010181815250505050612a1f565b600754600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054905010612863576010601181111561284457fe5b84848151811061285057fe5b6020026020010181815250505050612a1f565b60018160020160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208290806001815401808255809150509060018203906000526020600020016000909192909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550507f3ab23ab0d51cccc0c3085aec51f99228625aa1a922b3a8ca89a26b0f2027a1a58233604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a160006011811115612a0457fe5b848481518110612a1057fe5b60200260200101818152505050505b80806001019150506126c0565b508092505050919050565b6000806000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663fc57d4df876040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015612adb57600080fd5b505afa158015612aef573d6000803e3d6000fd5b505050506040513d6020811015612b0557600080fd5b810190808051906020019092919050505090506000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663fc57d4df876040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015612bb957600080fd5b505afa158015612bcd573d6000803e3d6000fd5b505050506040513d6020811015612be357600080fd5b810190808051906020019092919050505090506000821480612c055750600081145b15612c2757600d6011811115612c1757fe5b6000809050935093505050612e31565b60008673ffffffffffffffffffffffffffffffffffffffff1663182df0f56040518163ffffffff1660e01b815260040160206040518083038186803b158015612c6f57600080fd5b505afa158015612c83573d6000803e3d6000fd5b505050506040513d6020811015612c9957600080fd5b810190808051906020019092919050505090506000612cb6614b43565b612cbe614b43565b612cc6614b43565b6000612cd460065489614651565b809550819250505060006003811115612ce957fe5b816003811115612cf557fe5b14612d1d57600b6011811115612d0757fe5b6000809050995099505050505050505050612e31565b612d278787614651565b809450819250505060006003811115612d3c57fe5b816003811115612d4857fe5b14612d7057600b6011811115612d5a57fe5b6000809050995099505050505050505050612e31565b612d7a848461468c565b809350819250505060006003811115612d8f57fe5b816003811115612d9b57fe5b14612dc357600b6011811115612dad57fe5b6000809050995099505050505050505050612e31565b612dcd828c61445f565b809650819250505060006003811115612de257fe5b816003811115612dee57fe5b14612e1657600b6011811115612e0057fe5b6000809050995099505050505050505050612e31565b60006011811115612e2357fe5b859950995050505050505050505b935093915050565b6000600960008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900460ff161580612ee45750600960008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900460ff16155b15612efd5760096011811115612ef657fe5b9050613054565b8473ffffffffffffffffffffffffffffffffffffffff16635fe3b5676040518163ffffffff1660e01b815260040160206040518083038186803b158015612f4357600080fd5b505afa158015612f57573d6000803e3d6000fd5b505050506040513d6020811015612f6d57600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff16635fe3b5676040518163ffffffff1660e01b815260040160206040518083038186803b158015612fda57600080fd5b505afa158015612fee573d6000803e3d6000fd5b505050506040513d602081101561300457600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff1614613044576002601181111561303d57fe5b9050613054565b6000601181111561305157fe5b90505b95945050505050565b6000613067613c69565b61307e576130776001600d613d7b565b90506130dc565b60006007549050826007819055507f7093cf1eb653f749c3ff531d6df7f92764536a7fa0d13530cd26e070780c32ea8184604051808381526020018281526020019250505060405180910390a1600060118111156130d857fe5b9150505b919050565b6000600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900460ff1661314b576009601181111561314457fe5b905061335f565b600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166131f057600860118111156131e957fe5b905061335f565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663fc57d4df866040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561329157600080fd5b505afa1580156132a5573d6000803e3d6000fd5b505050506040513d60208110156132bb57600080fd5b810190808051906020019092919050505014156132e657600d60118111156132df57fe5b905061335f565b6000806132f68587600087613e1a565b92505091506000601181111561330857fe5b82601181111561331457fe5b1461332e5781601181111561332557fe5b9250505061335f565b600081111561334d576004601181111561334457fe5b9250505061335f565b6000601181111561335a57fe5b925050505b9392505050565b6008602052816000526040600020818154811061337f57fe5b906000526020600020016000915091509054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146134405761343960016006613d7b565b90506136aa565b6000600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090508060000160009054906101000a900460ff166134ad576134a560096007613d7b565b9150506136aa565b6134b5614b43565b60405180602001604052808581525090506134ce614b43565b6040518060200160405280670c7d713b49da000081525090506134f18183613e05565b1561350c5761350260066008613d7b565b93505050506136aa565b600085141580156135f657506000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663fc57d4df886040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156135b957600080fd5b505afa1580156135cd573d6000803e3d6000fd5b505050506040513d60208110156135e357600080fd5b8101908080519060200190929190505050145b1561361157613607600d6009613d7b565b93505050506136aa565b6000836001015490508584600101819055507f70483e6592cd5182d45ac970e05bc62cdcc90e9d8ef2c2dbe686cf383bcd7fc5878288604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828152602001935050505060405180910390a1600060118111156136a357fe5b9450505050505b92915050565b60055481565b60006136c38484846144c2565b90509392505050565b60008082905060008060008373ffffffffffffffffffffffffffffffffffffffff1663c37f68e2336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060806040518083038186803b15801561375457600080fd5b505afa158015613768573d6000803e3d6000fd5b505050506040513d608081101561377e57600080fd5b8101908080519060200190929190805190602001909291908051906020019092919080519060200190929190505050509250925092506000831461380d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526025815260200180614c266025913960400191505060405180910390fd5b6000811461382c57613821600c6002613d7b565b945050505050613c3f565b60006138398733856144c2565b90506000811461385c57613850600e6003836146b3565b95505050505050613c3f565b6000600960008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090508060020160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1661390c57600060118111156138ff57fe5b9650505050505050613c3f565b8060020160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81549060ff02191690556060600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805480602002602001604051908101604052809291908181526020018280548015613a1e57602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190600101908083116139d4575b50505050509050600081519050600081905060008090505b82811015613a9a578973ffffffffffffffffffffffffffffffffffffffff16848281518110613a6157fe5b602002602001015173ffffffffffffffffffffffffffffffffffffffff161415613a8d57809150613a9a565b8080600101915050613a36565b50818110613aa457fe5b6000600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905080600182805490500381548110613afa57fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16818381548110613b3157fe5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080805480919060019003613b8d9190614b56565b507fe699a64c18b07ac5b7301aa273f36a2287239eb9501d81950672794afba29a0d8a33604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a160006011811115613c3257fe5b9a50505050505050505050505b919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148015613d1557506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16145b905060008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161490508080613d745750815b9250505090565b60007f45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa0836011811115613daa57fe5b836013811115613db657fe5b600060405180848152602001838152602001828152602001935050505060405180910390a1826011811115613de757fe5b905092915050565b6000816000015183600001511115905092915050565b60008160000151836000015110905092915050565b6000806000613e27614b82565b6000806060600860008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805480602002602001604051908101604052809291908181526020018280548015613eeb57602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311613ea1575b5050505050905060008090505b81518110156143e7576000828281518110613f0f57fe5b602002602001015190508073ffffffffffffffffffffffffffffffffffffffff1663c37f68e28e6040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060806040518083038186803b158015613f9657600080fd5b505afa158015613faa573d6000803e3d6000fd5b505050506040513d6080811015613fc057600080fd5b8101908080519060200190929190805190602001909291908051906020019092919080519060200190929190505050896040018a6060018b608001838152508381525083815250839850505050506000851461403257600f600080819150809050985098509850505050505050614435565b6040518060200160405280600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101548152508660c00181905250604051806020016040528087608001518152508660e00181905250600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663fc57d4df826040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561414557600080fd5b505afa158015614159573d6000803e3d6000fd5b505050506040513d602081101561416f57600080fd5b81019080805190602001909291905050508660a001818152505060008660a0015114156141b257600d600080819150809050985098509850505050505050614435565b60405180602001604052808760a001518152508661010001819052506141e68660c001518760e00151886101000151614727565b809050876101200181905281955050506000600381111561420357fe5b84600381111561420f57fe5b1461423057600b600080819150809050985098509850505050505050614435565b6142488661012001518760400151886000015161478d565b876000018181525081955050506000600381111561426257fe5b84600381111561426e57fe5b1461428f57600b600080819150809050985098509850505050505050614435565b6142a78661010001518760600151886020015161478d565b87602001818152508195505050600060038111156142c157fe5b8460038111156142cd57fe5b146142ee57600b600080819150809050985098509850505050505050614435565b8b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156143d9576143368661012001518c886020015161478d565b876020018181525081955050506000600381111561435057fe5b84600381111561435c57fe5b1461437d57600b600080819150809050985098509850505050505050614435565b6143918661010001518b886020015161478d565b87602001818152508195505050600060038111156143ab57fe5b8460038111156143b757fe5b146143d857600b600080819150809050985098509850505050505050614435565b5b508080600101915050613ef8565b508360200151846000015111156144195760008460200151856000015103600080905096509650965050505050614435565b6000808560000151866020015103819150965096509650505050505b9450945094915050565b6000806000614452846000806000613e1a565b9250925092509193909250565b600080600061446c614b43565b61447686866147f8565b915091506000600381111561448757fe5b82600381111561449357fe5b146144a9578160008090509350935050506144bb565b60006144b482614876565b9350935050505b9250929050565b6000600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900460ff1661452c576009601181111561452557fe5b905061464a565b600960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060020160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166145d157600060118111156145ca57fe5b905061464a565b6000806145e18587866000613e1a565b9250509150600060118111156145f357fe5b8260118111156145ff57fe5b146146195781601181111561461057fe5b9250505061464a565b6000811115614638576004601181111561462f57fe5b9250505061464a565b6000601181111561464557fe5b925050505b9392505050565b600061465b614b43565b614681604051806020016040528086815250604051806020016040528086815250614895565b915091509250929050565b6000614696614b43565b6146a8846000015184600001516149b6565b915091509250929050565b60007f45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa08460118111156146e257fe5b8460138111156146ee57fe5b8460405180848152602001838152602001828152602001935050505060405180910390a183601181111561471e57fe5b90509392505050565b6000614731614b43565b600061473b614b43565b6147458787614895565b915091506000600381111561475657fe5b82600381111561476257fe5b14614774578181935093505050614785565b61477e8186614895565b9350935050505b935093915050565b600080600061479a614b43565b6147a487876147f8565b91509150600060038111156147b557fe5b8260038111156147c157fe5b146147d7578160008090509350935050506147f0565b6147e96147e382614876565b86614a8a565b9350935050505b935093915050565b6000614802614b43565b600080614813866000015186614abc565b915091506000600381111561482457fe5b82600381111561483057fe5b1461485457816040518060200160405280600081525080905093509350505061486f565b60006040518060200160405280838152508090509350935050505b9250929050565b6000670de0b6b3a764000082600001518161488d57fe5b049050919050565b600061489f614b43565b6000806148b486600001518660000151614abc565b91509150600060038111156148c557fe5b8260038111156148d157fe5b146148f55781604051806020016040528060008152508090509350935050506149af565b6000806149146002670de0b6b3a76400008161490d57fe5b0484614a8a565b915091506000600381111561492557fe5b82600381111561493157fe5b1461495757816040518060200160405280600081525080905095509550505050506149af565b60008061496c83670de0b6b3a7640000614b0f565b915091506000600381111561497d57fe5b82600381111561498957fe5b1461499057fe5b6000604051806020016040528083815250809050975097505050505050505b9250929050565b60006149c0614b43565b6000806149d586670de0b6b3a7640000614abc565b91509150600060038111156149e657fe5b8260038111156149f257fe5b14614a16578160405180602001604052806000815250809050935093505050614a83565b600080614a238388614b0f565b9150915060006003811115614a3457fe5b826003811115614a4057fe5b14614a665781604051806020016040528060008152508090509550955050505050614a83565b600060405180602001604052808381525080905095509550505050505b9250929050565b60008060008385019050848110614aa8576000819250925050614ab5565b6002600080905092509250505b9250929050565b6000806000841415614ad75760008080905091509150614b08565b6000838502905083858281614ae857fe5b0414614aff57600260008090509250925050614b08565b60008192509250505b9250929050565b6000806000831415614b2b576001600080905091509150614b3c565b6000838581614b3657fe5b04915091505b9250929050565b6040518060200160405280600081525090565b815481835581811115614b7d57818360005260206000209182019101614b7c9190614bed565b5b505050565b604051806101400160405280600081526020016000815260200160008152602001600081526020016000815260200160008152602001614bc0614c12565b8152602001614bcd614c12565b8152602001614bda614c12565b8152602001614be7614c12565b81525090565b614c0f91905b80821115614c0b576000816000905550600101614bf3565b5090565b90565b604051806020016040528060008152509056fe657869744d61726b65743a206765744163636f756e74536e617073686f74206661696c65646f6e6c7920756e6974726f6c6c65722061646d696e2063616e206368616e676520627261696e73a265627a7a72305820ad884367705558a5fd06ceed1bae13e3fdcb3678fa32af2a04e5d11f1db3181964736f6c634300050a0032"}}
ComptrollerErrorReporter
{"abi": [{"anonymous": false, "inputs": [{"indexed": false, "name": "error", "type": "uint256"}, {"indexed": false, "name": "info", "type": "uint256"}, {"indexed": false, "name": "detail", "type": "uint256"}], "name": "Failure", "type": "event"}], "compiler": {"name": "solc", "settings": {"optimize": false}, "version": "0.5.10+commit.5a6ea5b1"}, "deployment_bytecode": {"bytecode": "0x6080604052348015600f57600080fd5b50603e80601d6000396000f3fe6080604052600080fdfea265627a7a7230582073ffcbbd11a78f4cd0508650e240a23a166c25ec26ce9185a87e2bb80ce98c8b64736f6c634300050a0032"}, "natspec": {"methods": {}}, "runtime_bytecode": {"bytecode": "0x6080604052600080fdfea265627a7a7230582073ffcbbd11a78f4cd0508650e240a23a166c25ec26ce9185a87e2bb80ce98c8b64736f6c634300050a0032"}}
ComptrollerInterface
{"abi": [{"constant": true, "inputs": [], "name": "isComptroller", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "cToken", "type": "address"}, {"name": "payer", "type": "address"}, {"name": "borrower", "type": "address"}, {"name": "repayAmount", "type": "uint256"}, {"name": "borrowerIndex", "type": "uint256"}], "name": "repayBorrowVerify", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "cToken", "type": "address"}, {"name": "payer", "type": "address"}, {"name": "borrower", "type": "address"}, {"name": "repayAmount", "type": "uint256"}], "name": "repayBorrowAllowed", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "cToken", "type": "address"}, {"name": "minter", "type": "address"}, {"name": "mintAmount", "type": "uint256"}, {"name": "mintTokens", "type": "uint256"}], "name": "mintVerify", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "cTokenBorrowed", "type": "address"}, {"name": "cTokenCollateral", "type": "address"}, {"name": "liquidator", "type": "address"}, {"name": "borrower", "type": "address"}, {"name": "repayAmount", "type": "uint256"}, {"name": "seizeTokens", "type": "uint256"}], "name": "liquidateBorrowVerify", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "cToken", "type": "address"}, {"name": "minter", "type": "address"}, {"name": "mintAmount", "type": "uint256"}], "name": "mintAllowed", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "cToken", "type": "address"}, {"name": "redeemer", "type": "address"}, {"name": "redeemAmount", "type": "uint256"}, {"name": "redeemTokens", "type": "uint256"}], "name": "redeemVerify", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "cToken", "type": "address"}, {"name": "borrower", "type": "address"}, {"name": "borrowAmount", "type": "uint256"}], "name": "borrowVerify", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "cTokenBorrowed", "type": "address"}, {"name": "cTokenCollateral", "type": "address"}, {"name": "liquidator", "type": "address"}, {"name": "borrower", "type": "address"}, {"name": "repayAmount", "type": "uint256"}], "name": "liquidateBorrowAllowed", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "cToken", "type": "address"}, {"name": "src", "type": "address"}, {"name": "dst", "type": "address"}, {"name": "transferTokens", "type": "uint256"}], "name": "transferVerify", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "cTokenCollateral", "type": "address"}, {"name": "cTokenBorrowed", "type": "address"}, {"name": "liquidator", "type": "address"}, {"name": "borrower", "type": "address"}, {"name": "seizeTokens", "type": "uint256"}], "name": "seizeVerify", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "cToken", "type": "address"}, {"name": "src", "type": "address"}, {"name": "dst", "type": "address"}, {"name": "transferTokens", "type": "uint256"}], "name": "transferAllowed", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "cTokens", "type": "address[]"}], "name": "enterMarkets", "outputs": [{"name": "", "type": "uint256[]"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "cTokenBorrowed", "type": "address"}, {"name": "cTokenCollateral", "type": "address"}, {"name": "repayAmount", "type": "uint256"}], "name": "liquidateCalculateSeizeTokens", "outputs": [{"name": "", "type": "uint256"}, {"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "cTokenCollateral", "type": "address"}, {"name": "cTokenBorrowed", "type": "address"}, {"name": "liquidator", "type": "address"}, {"name": "borrower", "type": "address"}, {"name": "seizeTokens", "type": "uint256"}], "name": "seizeAllowed", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "cToken", "type": "address"}, {"name": "borrower", "type": "address"}, {"name": "borrowAmount", "type": "uint256"}], "name": "borrowAllowed", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "cToken", "type": "address"}, {"name": "redeemer", "type": "address"}, {"name": "redeemTokens", "type": "uint256"}], "name": "redeemAllowed", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "cToken", "type": "address"}], "name": "exitMarket", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}], "compiler": {"name": "solc", "settings": {"optimize": false}, "version": "0.5.10+commit.5a6ea5b1"}, "deployment_bytecode": {"bytecode": "0x"}, "natspec": {"methods": {"isComptroller()": {"details": "Implementations should simply return true.", "return": "true"}}}, "runtime_bytecode": {"bytecode": "0x"}}
ComptrollerV1Storage
{"abi": [{"constant": true, "inputs": [], "name": "pendingAdmin", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "liquidationIncentiveMantissa", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "oracle", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "maxAssets", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "comptrollerImplementation", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "", "type": "address"}, {"name": "", "type": "uint256"}], "name": "accountAssets", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "pendingComptrollerImplementation", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "closeFactorMantissa", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "admin", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}], "compiler": {"name": "solc", "settings": {"optimize": false}, "version": "0.5.10+commit.5a6ea5b1"}, "deployment_bytecode": {"bytecode": "0x608060405234801561001057600080fd5b50610441806100206000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c8063bb82aa5e11610066578063bb82aa5e14610168578063dce15449146101b2578063dcfbc0c714610240578063e87554461461028a578063f851a440146102a857610093565b806326782247146100985780634ada90af146100e25780637dc0d1d01461010057806394b2294b1461014a575b600080fd5b6100a06102f2565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100ea610318565b6040518082815260200191505060405180910390f35b61010861031e565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610152610344565b6040518082815260200191505060405180910390f35b61017061034a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6101fe600480360360408110156101c857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610370565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6102486103bb565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6102926103e1565b6040518082815260200191505060405180910390f35b6102b06103e7565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60065481565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60075481565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6008602052816000526040600020818154811061038957fe5b906000526020600020016000915091509054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60055481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff168156fea265627a7a723058200e08713745375c800f7a0665a9069530ab6f1eeef86bccb487fc875b89f9e45264736f6c634300050a0032"}, "natspec": {"methods": {}}, "runtime_bytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100935760003560e01c8063bb82aa5e11610066578063bb82aa5e14610168578063dce15449146101b2578063dcfbc0c714610240578063e87554461461028a578063f851a440146102a857610093565b806326782247146100985780634ada90af146100e25780637dc0d1d01461010057806394b2294b1461014a575b600080fd5b6100a06102f2565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100ea610318565b6040518082815260200191505060405180910390f35b61010861031e565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610152610344565b6040518082815260200191505060405180910390f35b61017061034a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6101fe600480360360408110156101c857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610370565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6102486103bb565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6102926103e1565b6040518082815260200191505060405180910390f35b6102b06103e7565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60065481565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60075481565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6008602052816000526040600020818154811061038957fe5b906000526020600020016000915091509054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60055481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff168156fea265627a7a723058200e08713745375c800f7a0665a9069530ab6f1eeef86bccb487fc875b89f9e45264736f6c634300050a0032"}}
EIP20Interface
{"abi": [{"constant": false, "inputs": [{"name": "spender", "type": "address"}, {"name": "amount", "type": "uint256"}], "name": "approve", "outputs": [{"name": "success", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "totalSupply", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "src", "type": "address"}, {"name": "dst", "type": "address"}, {"name": "amount", "type": "uint256"}], "name": "transferFrom", "outputs": [{"name": "success", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "owner", "type": "address"}], "name": "balanceOf", "outputs": [{"name": "balance", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "dst", "type": "address"}, {"name": "amount", "type": "uint256"}], "name": "transfer", "outputs": [{"name": "success", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "owner", "type": "address"}, {"name": "spender", "type": "address"}], "name": "allowance", "outputs": [{"name": "remaining", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "from", "type": "address"}, {"indexed": true, "name": "to", "type": "address"}, {"indexed": false, "name": "amount", "type": "uint256"}], "name": "Transfer", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "owner", "type": "address"}, {"indexed": true, "name": "spender", "type": "address"}, {"indexed": false, "name": "amount", "type": "uint256"}], "name": "Approval", "type": "event"}], "compiler": {"name": "solc", "settings": {"optimize": false}, "version": "0.5.10+commit.5a6ea5b1"}, "deployment_bytecode": {"bytecode": "0x"}, "natspec": {"methods": {"allowance(address,address)": {"params": {"owner": "The address of the account which owns the tokens to be spent", "spender": "The address of the account which may transfer tokens"}, "return": "The number of tokens allowed to be spent (-1 means infinite)"}, "approve(address,uint256)": {"details": "This will overwrite the approval amount for `spender` and is subject to issues noted [here](https://eips.ethereum.org/EIPS/eip-20#approve)", "params": {"amount": "The number of tokens that are approved (-1 means infinite)", "spender": "The address of the account which may transfer tokens"}, "return": "Whether or not the approval succeeded"}, "balanceOf(address)": {"params": {"owner": "The address from which the balance will be retrieved"}, "return": "The balance"}, "totalSupply()": {"return": "The supply of tokens"}, "transfer(address,uint256)": {"params": {"amount": "The number of tokens to transfer", "dst": "The address of the destination account"}, "return": "Whether or not the transfer succeeded"}, "transferFrom(address,address,uint256)": {"params": {"amount": "The number of tokens to transfer", "dst": "The address of the destination account", "src": "The address of the source account"}, "return": "Whether or not the transfer succeeded"}}, "title": "ERC 20 Token Standard Interface https://eips.ethereum.org/EIPS/eip-20"}, "runtime_bytecode": {"bytecode": "0x"}}
EIP20NonStandardInterface
{"abi": [{"constant": false, "inputs": [{"name": "spender", "type": "address"}, {"name": "amount", "type": "uint256"}], "name": "approve", "outputs": [{"name": "success", "type": "bool"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "totalSupply", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "src", "type": "address"}, {"name": "dst", "type": "address"}, {"name": "amount", "type": "uint256"}], "name": "transferFrom", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "owner", "type": "address"}], "name": "balanceOf", "outputs": [{"name": "balance", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "dst", "type": "address"}, {"name": "amount", "type": "uint256"}], "name": "transfer", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "owner", "type": "address"}, {"name": "spender", "type": "address"}], "name": "allowance", "outputs": [{"name": "remaining", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "from", "type": "address"}, {"indexed": true, "name": "to", "type": "address"}, {"indexed": false, "name": "amount", "type": "uint256"}], "name": "Transfer", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": true, "name": "owner", "type": "address"}, {"indexed": true, "name": "spender", "type": "address"}, {"indexed": false, "name": "amount", "type": "uint256"}], "name": "Approval", "type": "event"}], "compiler": {"name": "solc", "settings": {"optimize": false}, "version": "0.5.10+commit.5a6ea5b1"}, "deployment_bytecode": {"bytecode": "0x"}, "natspec": {"details": "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", "methods": {"allowance(address,address)": {"params": {"owner": "The address of the account which owns the tokens to be spent", "spender": "The address of the account which may transfer tokens"}, "return": "The number of tokens allowed to be spent"}, "approve(address,uint256)": {"details": "This will overwrite the approval amount for `spender` and is subject to issues noted [here](https://eips.ethereum.org/EIPS/eip-20#approve)", "params": {"amount": "The number of tokens that are approved", "spender": "The address of the account which may transfer tokens"}, "return": "Whether or not the approval succeeded"}, "balanceOf(address)": {"params": {"owner": "The address from which the balance will be retrieved"}, "return": "The balance"}, "totalSupply()": {"return": "The supply of tokens"}, "transfer(address,uint256)": {"params": {"amount": "The number of tokens to transfer", "dst": "The address of the destination account"}}, "transferFrom(address,address,uint256)": {"params": {"amount": "The number of tokens to transfer", "dst": "The address of the destination account", "src": "The address of the source account"}}}, "title": "EIP20NonStandardInterface"}, "runtime_bytecode": {"bytecode": "0x"}}
Exponential
{"abi": [], "compiler": {"name": "solc", "settings": {"optimize": false}, "version": "0.5.10+commit.5a6ea5b1"}, "deployment_bytecode": {"bytecode": "0x6080604052348015600f57600080fd5b50603e80601d6000396000f3fe6080604052600080fdfea265627a7a72305820c4a5cf36493e639f478ee75d4b37cc81bdbe2b433f46838d31535bfa7449578d64736f6c634300050a0032"}, "natspec": {"author": "Compound", "methods": {}, "title": "Exponential module for storing fixed-decision decimals"}, "runtime_bytecode": {"bytecode": "0x6080604052600080fdfea265627a7a72305820c4a5cf36493e639f478ee75d4b37cc81bdbe2b433f46838d31535bfa7449578d64736f6c634300050a0032"}}
InterestRateModel
{"abi": [{"constant": true, "inputs": [{"name": "cash", "type": "uint256"}, {"name": "borrows", "type": "uint256"}, {"name": "reserves", "type": "uint256"}], "name": "getBorrowRate", "outputs": [{"name": "", "type": "uint256"}, {"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isInterestRateModel", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}], "compiler": {"name": "solc", "settings": {"optimize": false}, "version": "0.5.10+commit.5a6ea5b1"}, "deployment_bytecode": {"bytecode": "0x"}, "natspec": {"author": "Compound", "details": "These functions are specifically not marked `pure` as implementations of this     contract may read from storage variables.", "methods": {"getBorrowRate(uint256,uint256,uint256)": {"details": "The return value should be scaled by 1e18, thus a return value of     `(true, 1000000000000)` implies an interest rate of 0.000001 or 0.0001% *per block*.", "params": {"borrows": "The total borrows of the underlying asset in the CToken", "cash": "The total cash of the underlying asset in the CToken", "reserves": "The total reserves of the underlying asset in the CToken"}, "return": "Success or failure and the borrow interest rate per block scaled by 10e18"}, "isInterestRateModel()": {"details": "Marker function used for light validation when updating the interest rate model of a market. Implementations should simply return true.", "return": "Success or failure"}}, "title": "The Compound InterestRateModel Interface"}, "runtime_bytecode": {"bytecode": "0x"}}
Maximillion
{"abi": [{"constant": true, "inputs": [], "name": "cEther", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "borrower", "type": "address"}, {"name": "cEther_", "type": "address"}], "name": "repayBehalfExplicit", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function"}, {"constant": false, "inputs": [{"name": "borrower", "type": "address"}], "name": "repayBehalf", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function"}, {"inputs": [{"name": "cEther_", "type": "address"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}], "compiler": {"name": "solc", "settings": {"optimize": false}, "version": "0.5.10+commit.5a6ea5b1"}, "deployment_bytecode": {"bytecode": "0x608060405234801561001057600080fd5b506040516104a43803806104a48339818101604052602081101561003357600080fd5b8101908080519060200190929190505050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050610410806100946000396000f3fe6080604052600436106100345760003560e01c806319b68c0014610039578063367b7f05146100905780639f35c3d5146100f4575b600080fd5b34801561004557600080fd5b5061004e610138565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100f2600480360360408110156100a657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061015d565b005b6101366004803603602081101561010a57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506103ad565b005b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600034905060008273ffffffffffffffffffffffffffffffffffffffff166317bfdfbc856040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b1580156101e357600080fd5b505af11580156101f7573d6000803e3d6000fd5b505050506040513d602081101561020d57600080fd5b810190808051906020019092919050505090508082111561030e578273ffffffffffffffffffffffffffffffffffffffff1663e597461982866040518363ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019150506000604051808303818588803b1580156102a757600080fd5b505af11580156102bb573d6000803e3d6000fd5b50505050503373ffffffffffffffffffffffffffffffffffffffff166108fc8284039081150290604051600060405180830381858888f19350505050158015610308573d6000803e3d6000fd5b506103a7565b8273ffffffffffffffffffffffffffffffffffffffff1663e597461983866040518363ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019150506000604051808303818588803b15801561038d57600080fd5b505af11580156103a1573d6000803e3d6000fd5b50505050505b50505050565b6103d8816000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1661015d565b5056fea265627a7a72305820b6e66d8e2e14b04546e571fc764b776af70ed3c3c1c23ea43a57b40c730d8a5c64736f6c634300050a0032"}, "natspec": {"author": "Compound", "methods": {"repayBehalf(address)": {"details": "The provided Ether is applied towards the borrow balance, any excess is refunded", "params": {"borrower": "The address of the borrower account to repay on behalf of"}, "return": "The initial borrows before the repay"}, "repayBehalfExplicit(address,address)": {"details": "The provided Ether is applied towards the borrow balance, any excess is refunded", "params": {"borrower": "The address of the borrower account to repay on behalf of", "cEther_": "The address of the cEther contract to repay in"}, "return": "The initial borrows before the repay"}}, "title": "Compound's Maximillion Contract"}, "runtime_bytecode": {"bytecode": "0x6080604052600436106100345760003560e01c806319b68c0014610039578063367b7f05146100905780639f35c3d5146100f4575b600080fd5b34801561004557600080fd5b5061004e610138565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100f2600480360360408110156100a657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061015d565b005b6101366004803603602081101561010a57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506103ad565b005b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600034905060008273ffffffffffffffffffffffffffffffffffffffff166317bfdfbc856040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b1580156101e357600080fd5b505af11580156101f7573d6000803e3d6000fd5b505050506040513d602081101561020d57600080fd5b810190808051906020019092919050505090508082111561030e578273ffffffffffffffffffffffffffffffffffffffff1663e597461982866040518363ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019150506000604051808303818588803b1580156102a757600080fd5b505af11580156102bb573d6000803e3d6000fd5b50505050503373ffffffffffffffffffffffffffffffffffffffff166108fc8284039081150290604051600060405180830381858888f19350505050158015610308573d6000803e3d6000fd5b506103a7565b8273ffffffffffffffffffffffffffffffffffffffff1663e597461983866040518363ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019150506000604051808303818588803b15801561038d57600080fd5b505af11580156103a1573d6000803e3d6000fd5b50505050505b50505050565b6103d8816000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1661015d565b5056fea265627a7a72305820b6e66d8e2e14b04546e571fc764b776af70ed3c3c1c23ea43a57b40c730d8a5c64736f6c634300050a0032"}}
PriceOracle
{"abi": [{"constant": true, "inputs": [], "name": "isPriceOracle", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "pure", "type": "function"}, {"constant": true, "inputs": [{"name": "cToken", "type": "address"}], "name": "getUnderlyingPrice", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}], "compiler": {"name": "solc", "settings": {"optimize": false}, "version": "0.5.10+commit.5a6ea5b1"}, "deployment_bytecode": {"bytecode": "0x"}, "natspec": {"methods": {"getUnderlyingPrice(address)": {"params": {"cToken": "The cToken to get the underlying price of"}, "return": "The underlying asset price mantissa (scaled by 1e18). Zero means the price is unavailable."}}}, "runtime_bytecode": {"bytecode": "0x"}}
PriceOracleProxy
{"abi": [{"constant": true, "inputs": [], "name": "cEthAddress", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "comptroller", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isPriceOracle", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "makerUsdOracleKey", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "cDaiAddress", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "cToken", "type": "address"}], "name": "getUnderlyingPrice", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "v1PriceOracle", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "cUsdcAddress", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"inputs": [{"name": "comptroller_", "type": "address"}, {"name": "v1PriceOracle_", "type": "address"}, {"name": "cEthAddress_", "type": "address"}, {"name": "cUsdcAddress_", "type": "address"}, {"name": "cDaiAddress_", "type": "address"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}], "compiler": {"name": "solc", "settings": {"optimize": false}, "version": "0.5.10+commit.5a6ea5b1"}, "deployment_bytecode": {"bytecode": "0x608060405234801561001057600080fd5b506040516110c83803806110c8833981810160405260a081101561003357600080fd5b81019080805190602001909291908051906020019092919080519060200190929190805190602001909291908051906020019092919050505084600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550836000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146102a6578073ffffffffffffffffffffffffffffffffffffffff16636f307dc36040518163ffffffff1660e01b815260040160206040518083038186803b15801561022a57600080fd5b505afa15801561023e573d6000803e3d6000fd5b505050506040513d602081101561025457600080fd5b8101908080519060200190929190505050600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5050505050610e0e806102ba6000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c8063f2c65bf91161005b578063f2c65bf91461018d578063fc57d4df146101d7578063fe10c98d1461022f578063ff11439b1461027957610088565b80632ed58e151461008d5780635fe3b567146100d757806366331bba14610121578063bc8a4ef414610143575b600080fd5b6100956102c3565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100df6102e9565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61012961030f565b604051808215151515815260200191505060405180910390f35b61014b610314565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61019561033a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610219600480360360208110156101ed57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610360565b6040518082815260200191505060405180910390f35b610237610bd7565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610281610bfc565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600181565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000808290506000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638e8f294b836040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050604080518083038186803b15801561040657600080fd5b505afa15801561041a573d6000803e3d6000fd5b505050506040513d604081101561043057600080fd5b8101908080519060200190929190805190602001909291905050505090508061045e57600092505050610bd2565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156104c657670de0b6b3a764000092505050610bd2565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156106375761062e64e8d4a510006000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635e9a523c600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156105e557600080fd5b505afa1580156105f9573d6000803e3d6000fd5b505050506040513d602081101561060f57600080fd5b8101908080519060200190929190505050610c2290919063ffffffff16565b92505050610bd2565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610a6e5760008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635e9a523c600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561074f57600080fd5b505afa158015610763573d6000803e3d6000fd5b505050506040513d602081101561077957600080fd5b8101908080519060200190929190505050905060008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635e9a523c60016040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561082d57600080fd5b505afa158015610841573d6000803e3d6000fd5b505050506040513d602081101561085757600080fd5b81019080805190602001909291905050509050600061095d64e8d4a510006000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635e9a523c60026040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561091457600080fd5b505afa158015610928573d6000803e3d6000fd5b505050506040513d602081101561093e57600080fd5b8101908080519060200190929190505050610c2290919063ffffffff16565b9050600061098e83610980670de0b6b3a764000085610c2290919063ffffffff16565b610ca890919063ffffffff16565b9050670d2f13f7789f00008110156109e2576109d5670de0b6b3a76400006109c7670d2f13f7789f000087610c2290919063ffffffff16565b610ca890919063ffffffff16565b9650505050505050610bd2565b670e92596fd6290000811115610a3457610a27670de0b6b3a7640000610a19670e92596fd629000087610c2290919063ffffffff16565b610ca890919063ffffffff16565b9650505050505050610bd2565b610a61670de0b6b3a7640000610a538387610c2290919063ffffffff16565b610ca890919063ffffffff16565b9650505050505050610bd2565b60008273ffffffffffffffffffffffffffffffffffffffff16636f307dc36040518163ffffffff1660e01b815260040160206040518083038186803b158015610ab657600080fd5b505afa158015610aca573d6000803e3d6000fd5b505050506040513d6020811015610ae057600080fd5b810190808051906020019092919050505090506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635e9a523c826040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610b9157600080fd5b505afa158015610ba5573d6000803e3d6000fd5b505050506040513d6020811015610bbb57600080fd5b810190808051906020019092919050505093505050505b919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080831415610c355760009050610ca2565b6000828402905082848281610c4657fe5b0414610c9d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180610db96021913960400191505060405180910390fd5b809150505b92915050565b6000610cea83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610cf2565b905092915050565b60008083118290610d9e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610d63578082015181840152602081019050610d48565b50505050905090810190601f168015610d905780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581610daa57fe5b04905080915050939250505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a265627a7a72305820fee4df677966a4e0369239426b6a2a9e217f225d63c0e5a70228b6dd7f14767964736f6c634300050a0032"}, "natspec": {"methods": {"constructor": {"params": {"cDaiAddress_": "The address of cDAI, which will be read from a special oracle key", "cEthAddress_": "The address of cETH, which will return a constant 1e18, since all prices relative to ether", "cUsdcAddress_": "The address of cUSDC, which will be read from a special oracle key", "comptroller_": "The address of the comptroller, which will be consulted for market listing status", "v1PriceOracle_": "The address of the v1 price oracle, which will continue to operate and hold prices for collateral assets"}}, "getUnderlyingPrice(address)": {"params": {"cToken": "The cToken to get the underlying price of"}, "return": "The underlying asset price mantissa (scaled by 1e18). Zero means the price is unavailable."}}}, "runtime_bytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100885760003560e01c8063f2c65bf91161005b578063f2c65bf91461018d578063fc57d4df146101d7578063fe10c98d1461022f578063ff11439b1461027957610088565b80632ed58e151461008d5780635fe3b567146100d757806366331bba14610121578063bc8a4ef414610143575b600080fd5b6100956102c3565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100df6102e9565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61012961030f565b604051808215151515815260200191505060405180910390f35b61014b610314565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61019561033a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610219600480360360208110156101ed57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610360565b6040518082815260200191505060405180910390f35b610237610bd7565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610281610bfc565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600181565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000808290506000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638e8f294b836040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050604080518083038186803b15801561040657600080fd5b505afa15801561041a573d6000803e3d6000fd5b505050506040513d604081101561043057600080fd5b8101908080519060200190929190805190602001909291905050505090508061045e57600092505050610bd2565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156104c657670de0b6b3a764000092505050610bd2565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156106375761062e64e8d4a510006000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635e9a523c600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156105e557600080fd5b505afa1580156105f9573d6000803e3d6000fd5b505050506040513d602081101561060f57600080fd5b8101908080519060200190929190505050610c2290919063ffffffff16565b92505050610bd2565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610a6e5760008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635e9a523c600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561074f57600080fd5b505afa158015610763573d6000803e3d6000fd5b505050506040513d602081101561077957600080fd5b8101908080519060200190929190505050905060008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635e9a523c60016040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561082d57600080fd5b505afa158015610841573d6000803e3d6000fd5b505050506040513d602081101561085757600080fd5b81019080805190602001909291905050509050600061095d64e8d4a510006000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635e9a523c60026040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561091457600080fd5b505afa158015610928573d6000803e3d6000fd5b505050506040513d602081101561093e57600080fd5b8101908080519060200190929190505050610c2290919063ffffffff16565b9050600061098e83610980670de0b6b3a764000085610c2290919063ffffffff16565b610ca890919063ffffffff16565b9050670d2f13f7789f00008110156109e2576109d5670de0b6b3a76400006109c7670d2f13f7789f000087610c2290919063ffffffff16565b610ca890919063ffffffff16565b9650505050505050610bd2565b670e92596fd6290000811115610a3457610a27670de0b6b3a7640000610a19670e92596fd629000087610c2290919063ffffffff16565b610ca890919063ffffffff16565b9650505050505050610bd2565b610a61670de0b6b3a7640000610a538387610c2290919063ffffffff16565b610ca890919063ffffffff16565b9650505050505050610bd2565b60008273ffffffffffffffffffffffffffffffffffffffff16636f307dc36040518163ffffffff1660e01b815260040160206040518083038186803b158015610ab657600080fd5b505afa158015610aca573d6000803e3d6000fd5b505050506040513d6020811015610ae057600080fd5b810190808051906020019092919050505090506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635e9a523c826040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610b9157600080fd5b505afa158015610ba5573d6000803e3d6000fd5b505050506040513d6020811015610bbb57600080fd5b810190808051906020019092919050505093505050505b919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080831415610c355760009050610ca2565b6000828402905082848281610c4657fe5b0414610c9d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180610db96021913960400191505060405180910390fd5b809150505b92915050565b6000610cea83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610cf2565b905092915050565b60008083118290610d9e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610d63578082015181840152602081019050610d48565b50505050905090810190601f168015610d905780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581610daa57fe5b04905080915050939250505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a265627a7a72305820fee4df677966a4e0369239426b6a2a9e217f225d63c0e5a70228b6dd7f14767964736f6c634300050a0032"}}
ReentrancyGuard
{"abi": [{"inputs": [], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}], "compiler": {"name": "solc", "settings": {"optimize": false}, "version": "0.5.10+commit.5a6ea5b1"}, "deployment_bytecode": {"bytecode": "0x"}, "natspec": {"author": "Remco Bloemen <remco@2\u03c0.com>, Eenae <alexey@mixbytes.io>", "details": "If you mark a function `nonReentrant`, you should also mark it `external`.", "methods": {}, "title": "Helps contracts guard against reentrancy attacks."}, "runtime_bytecode": {"bytecode": "0x"}}
SafeMath
{"abi": [], "compiler": {"name": "solc", "settings": {"optimize": false}, "version": "0.5.10+commit.5a6ea5b1"}, "deployment_bytecode": {"bytecode": "0x60556023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea265627a7a723058203241edf580e542c9bb5ef974aa8af34f1ba283e61cfba1ad491fbb06822dfe3264736f6c634300050a0032"}, "natspec": {"details": "Wrappers over Solidity's arithmetic operations with added overflow checks. * Arithmetic operations in Solidity wrap on overflow. This can easily result in bugs, because programmers usually assume that an overflow raises an error, which is the standard behavior in high level programming languages. `SafeMath` restores this intuition by reverting the transaction when an operation overflows. * Using this library instead of the unchecked operations eliminates an entire class of bugs, so it's recommended to use it always.", "methods": {}}, "runtime_bytecode": {"bytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea265627a7a723058203241edf580e542c9bb5ef974aa8af34f1ba283e61cfba1ad491fbb06822dfe3264736f6c634300050a0032"}}
SimplePriceOracle
{"abi": [{"constant": false, "inputs": [{"name": "a", "type": "address"}, {"name": "price", "type": "uint256"}], "name": "setDirectPrice", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [{"name": "cToken", "type": "address"}, {"name": "underlyingPriceMantissa", "type": "uint256"}], "name": "setUnderlyingPrice", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [{"name": "asset", "type": "address"}], "name": "assetPrices", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isPriceOracle", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [{"name": "cToken", "type": "address"}], "name": "getUnderlyingPrice", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}], "compiler": {"name": "solc", "settings": {"optimize": false}, "version": "0.5.10+commit.5a6ea5b1"}, "deployment_bytecode": {"bytecode": "0x608060405234801561001057600080fd5b50610422806100206000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c806309a8acb01461005c578063127ffda0146100aa5780635e9a523c146100f857806366331bba14610150578063fc57d4df14610172575b600080fd5b6100a86004803603604081101561007257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506101ca565b005b6100f6600480360360408110156100c057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610211565b005b61013a6004803603602081101561010e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506102d8565b6040518082815260200191505060405180910390f35b610158610320565b604051808215151515815260200191505060405180910390f35b6101b46004803603602081101561018857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610325565b6040518082815260200191505060405180910390f35b806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b806000808473ffffffffffffffffffffffffffffffffffffffff16636f307dc36040518163ffffffff1660e01b815260040160206040518083038186803b15801561025b57600080fd5b505afa15801561026f573d6000803e3d6000fd5b505050506040513d602081101561028557600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600181565b60008060008373ffffffffffffffffffffffffffffffffffffffff16636f307dc36040518163ffffffff1660e01b815260040160206040518083038186803b15801561037057600080fd5b505afa158015610384573d6000803e3d6000fd5b505050506040513d602081101561039a57600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905091905056fea265627a7a72305820fc18705d8cdba25dddfe42163adced971ca6f07573fee601a755fbe92024c71264736f6c634300050a0032"}, "natspec": {"methods": {}}, "runtime_bytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100575760003560e01c806309a8acb01461005c578063127ffda0146100aa5780635e9a523c146100f857806366331bba14610150578063fc57d4df14610172575b600080fd5b6100a86004803603604081101561007257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506101ca565b005b6100f6600480360360408110156100c057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610211565b005b61013a6004803603602081101561010e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506102d8565b6040518082815260200191505060405180910390f35b610158610320565b604051808215151515815260200191505060405180910390f35b6101b46004803603602081101561018857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610325565b6040518082815260200191505060405180910390f35b806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b806000808473ffffffffffffffffffffffffffffffffffffffff16636f307dc36040518163ffffffff1660e01b815260040160206040518083038186803b15801561025b57600080fd5b505afa15801561026f573d6000803e3d6000fd5b505050506040513d602081101561028557600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600181565b60008060008373ffffffffffffffffffffffffffffffffffffffff16636f307dc36040518163ffffffff1660e01b815260040160206040518083038186803b15801561037057600080fd5b505afa158015610384573d6000803e3d6000fd5b505050506040513d602081101561039a57600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905091905056fea265627a7a72305820fc18705d8cdba25dddfe42163adced971ca6f07573fee601a755fbe92024c71264736f6c634300050a0032"}}
TokenErrorReporter
{"abi": [{"anonymous": false, "inputs": [{"indexed": false, "name": "error", "type": "uint256"}, {"indexed": false, "name": "info", "type": "uint256"}, {"indexed": false, "name": "detail", "type": "uint256"}], "name": "Failure", "type": "event"}], "compiler": {"name": "solc", "settings": {"optimize": false}, "version": "0.5.10+commit.5a6ea5b1"}, "deployment_bytecode": {"bytecode": "0x6080604052348015600f57600080fd5b50603e80601d6000396000f3fe6080604052600080fdfea265627a7a7230582084d8965653de55ef542950ab661e08b9190f36a69225dd7fd268353130fe7a3064736f6c634300050a0032"}, "natspec": {"methods": {}}, "runtime_bytecode": {"bytecode": "0x6080604052600080fdfea265627a7a7230582084d8965653de55ef542950ab661e08b9190f36a69225dd7fd268353130fe7a3064736f6c634300050a0032"}}
Unitroller
{"abi": [{"constant": true, "inputs": [], "name": "pendingAdmin", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "newPendingAdmin", "type": "address"}], "name": "_setPendingAdmin", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "comptrollerImplementation", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [], "name": "_acceptImplementation", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "pendingComptrollerImplementation", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": false, "inputs": [{"name": "newPendingImplementation", "type": "address"}], "name": "_setPendingImplementation", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": false, "inputs": [], "name": "_acceptAdmin", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "function"}, {"constant": true, "inputs": [], "name": "admin", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"inputs": [], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}, {"payable": true, "stateMutability": "payable", "type": "fallback"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "oldPendingImplementation", "type": "address"}, {"indexed": false, "name": "newPendingImplementation", "type": "address"}], "name": "NewPendingImplementation", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "oldImplementation", "type": "address"}, {"indexed": false, "name": "newImplementation", "type": "address"}], "name": "NewImplementation", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "oldPendingAdmin", "type": "address"}, {"indexed": false, "name": "newPendingAdmin", "type": "address"}], "name": "NewPendingAdmin", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "oldAdmin", "type": "address"}, {"indexed": false, "name": "newAdmin", "type": "address"}], "name": "NewAdmin", "type": "event"}, {"anonymous": false, "inputs": [{"indexed": false, "name": "error", "type": "uint256"}, {"indexed": false, "name": "info", "type": "uint256"}, {"indexed": false, "name": "detail", "type": "uint256"}], "name": "Failure", "type": "event"}], "compiler": {"name": "solc", "settings": {"optimize": false}, "version": "0.5.10+commit.5a6ea5b1"}, "deployment_bytecode": {"bytecode": "0x608060405234801561001057600080fd5b50336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610e5d806100606000396000f3fe60806040526004361061007b5760003560e01c8063dcfbc0c71161004e578063dcfbc0c714610269578063e992a041146102c0578063e9c714f214610325578063f851a440146103505761007b565b8063267822471461012b578063b71d1a0c14610182578063bb82aa5e146101e7578063c1e803341461023e575b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16600036604051808383808284378083019250505092505050600060405180830381855af49150503d8060008114610109576040519150601f19603f3d011682016040523d82523d6000602084013e61010e565b606091505b505090506040513d6000823e8160008114610127573d82f35b3d82fd5b34801561013757600080fd5b506101406103a7565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561018e57600080fd5b506101d1600480360360208110156101a557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506103cd565b6040518082815260200191505060405180910390f35b3480156101f357600080fd5b506101fc61054b565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561024a57600080fd5b50610253610571565b6040518082815260200191505060405180910390f35b34801561027557600080fd5b5061027e6108af565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156102cc57600080fd5b5061030f600480360360208110156102e357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506108d5565b6040518082815260200191505060405180910390f35b34801561033157600080fd5b5061033a610a75565b6040518082815260200191505060405180910390f35b34801561035c57600080fd5b50610365610d8f565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146104365761042f6001600e610db4565b9050610546565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905082600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a98184604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a16000601181111561054257fe5b9150505b919050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614158061061e5750600073ffffffffffffffffffffffffffffffffffffffff16600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16145b156106355761062e600180610db4565b90506108ac565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fd604de94d45953f9138079ec1b82d533cb2160c906d1076d1f7ed54befbca97a82600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a17fe945ccee5d701fc83f9b8aa8ca94ea4219ec1fcbd4f4cab4f0ea57c5c3e1d81581600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a1600060118111156108a757fe5b925050505b90565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461093e576109376001600f610db4565b9050610a70565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905082600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fe945ccee5d701fc83f9b8aa8ca94ea4219ec1fcbd4f4cab4f0ea57c5c3e1d81581600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a160006011811115610a6c57fe5b9150505b919050565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141580610b005750600073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b15610b1857610b1160016000610db4565b9050610d8c565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507ff9ffabca9c8276e99321725bcb43fb076a6c66a54b7f21c4e8146d8519b417dc826000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a17fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a981600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a160006011811115610d8757fe5b925050505b90565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60007f45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa0836011811115610de357fe5b836013811115610def57fe5b600060405180848152602001838152602001828152602001935050505060405180910390a1826011811115610e2057fe5b90509291505056fea265627a7a72305820418d09ee0dcdf57c396e979aa2c0ec5f8541e2ce543247889f58db55fc62df9d64736f6c634300050a0032"}, "natspec": {"details": "storage for the comptroller will be at this address, and cTokens should reference this contract rather than a deployed implementation if ", "methods": {"_acceptAdmin()": {"details": "Admin function for pending admin to accept role and update admin", "return": "uint 0=success, otherwise a failure (see ErrorReporter.sol for details)"}, "_acceptImplementation()": {"details": "Admin function for new implementation to accept it's role as implementation", "return": "uint 0=success, otherwise a failure (see ErrorReporter.sol for details)"}, "_setPendingAdmin(address)": {"details": "Admin function to begin change of admin. The newPendingAdmin must call `_acceptAdmin` to finalize the transfer.", "params": {"newPendingAdmin": "New pending admin."}, "return": "uint 0=success, otherwise a failure (see ErrorReporter.sol for details)      * TODO: Should we add a second arg to verify, like a checksum of `newAdmin` address?"}}, "title": "ComptrollerCore"}, "runtime_bytecode": {"bytecode": "0x60806040526004361061007b5760003560e01c8063dcfbc0c71161004e578063dcfbc0c714610269578063e992a041146102c0578063e9c714f214610325578063f851a440146103505761007b565b8063267822471461012b578063b71d1a0c14610182578063bb82aa5e146101e7578063c1e803341461023e575b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16600036604051808383808284378083019250505092505050600060405180830381855af49150503d8060008114610109576040519150601f19603f3d011682016040523d82523d6000602084013e61010e565b606091505b505090506040513d6000823e8160008114610127573d82f35b3d82fd5b34801561013757600080fd5b506101406103a7565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561018e57600080fd5b506101d1600480360360208110156101a557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506103cd565b6040518082815260200191505060405180910390f35b3480156101f357600080fd5b506101fc61054b565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561024a57600080fd5b50610253610571565b6040518082815260200191505060405180910390f35b34801561027557600080fd5b5061027e6108af565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156102cc57600080fd5b5061030f600480360360208110156102e357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506108d5565b6040518082815260200191505060405180910390f35b34801561033157600080fd5b5061033a610a75565b6040518082815260200191505060405180910390f35b34801561035c57600080fd5b50610365610d8f565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146104365761042f6001600e610db4565b9050610546565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905082600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a98184604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a16000601181111561054257fe5b9150505b919050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614158061061e5750600073ffffffffffffffffffffffffffffffffffffffff16600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16145b156106355761062e600180610db4565b90506108ac565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fd604de94d45953f9138079ec1b82d533cb2160c906d1076d1f7ed54befbca97a82600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a17fe945ccee5d701fc83f9b8aa8ca94ea4219ec1fcbd4f4cab4f0ea57c5c3e1d81581600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a1600060118111156108a757fe5b925050505b90565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461093e576109376001600f610db4565b9050610a70565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905082600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fe945ccee5d701fc83f9b8aa8ca94ea4219ec1fcbd4f4cab4f0ea57c5c3e1d81581600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a160006011811115610a6c57fe5b9150505b919050565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141580610b005750600073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b15610b1857610b1160016000610db4565b9050610d8c565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507ff9ffabca9c8276e99321725bcb43fb076a6c66a54b7f21c4e8146d8519b417dc826000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a17fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a981600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a160006011811115610d8757fe5b925050505b90565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60007f45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa0836011811115610de357fe5b836013811115610def57fe5b600060405180848152602001838152602001828152602001935050505060405180910390a1826011811115610e2057fe5b90509291505056fea265627a7a72305820418d09ee0dcdf57c396e979aa2c0ec5f8541e2ce543247889f58db55fc62df9d64736f6c634300050a0032"}}
UnitrollerAdminStorage
{"abi": [{"constant": true, "inputs": [], "name": "pendingAdmin", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "comptrollerImplementation", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "pendingComptrollerImplementation", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "admin", "outputs": [{"name": "", "type": "address"}], "payable": false, "stateMutability": "view", "type": "function"}], "compiler": {"name": "solc", "settings": {"optimize": false}, "version": "0.5.10+commit.5a6ea5b1"}, "deployment_bytecode": {"bytecode": "0x608060405234801561001057600080fd5b50610245806100206000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80632678224714610051578063bb82aa5e1461009b578063dcfbc0c7146100e5578063f851a4401461012f575b600080fd5b610059610179565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100a361019f565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100ed6101c5565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6101376101eb565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff168156fea265627a7a723058204c6de5ea4df8e62d96bea4f17334aec828adc2547de22bf990f87891e50e751b64736f6c634300050a0032"}, "natspec": {"methods": {}}, "runtime_bytecode": {"bytecode": "0x608060405234801561001057600080fd5b506004361061004c5760003560e01c80632678224714610051578063bb82aa5e1461009b578063dcfbc0c7146100e5578063f851a4401461012f575b600080fd5b610059610179565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100a361019f565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100ed6101c5565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6101376101eb565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff168156fea265627a7a723058204c6de5ea4df8e62d96bea4f17334aec828adc2547de22bf990f87891e50e751b64736f6c634300050a0032"}}
V1PriceOracleInterface
{"abi": [{"constant": true, "inputs": [{"name": "asset", "type": "address"}], "name": "assetPrices", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}], "compiler": {"name": "solc", "settings": {"optimize": false}, "version": "0.5.10+commit.5a6ea5b1"}, "deployment_bytecode": {"bytecode": "0x"}, "natspec": {"methods": {}}, "runtime_bytecode": {"bytecode": "0x"}}
WhitePaperInterestRateModel
{"abi": [{"constant": true, "inputs": [{"name": "cash", "type": "uint256"}, {"name": "borrows", "type": "uint256"}, {"name": "_reserves", "type": "uint256"}], "name": "getBorrowRate", "outputs": [{"name": "", "type": "uint256"}, {"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "multiplier", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "baseRate", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "isInterestRateModel", "outputs": [{"name": "", "type": "bool"}], "payable": false, "stateMutability": "view", "type": "function"}, {"constant": true, "inputs": [], "name": "blocksPerYear", "outputs": [{"name": "", "type": "uint256"}], "payable": false, "stateMutability": "view", "type": "function"}, {"inputs": [{"name": "baseRate_", "type": "uint256"}, {"name": "multiplier_", "type": "uint256"}], "payable": false, "stateMutability": "nonpayable", "type": "constructor"}], "compiler": {"name": "solc", "settings": {"optimize": false}, "version": "0.5.10+commit.5a6ea5b1"}, "deployment_bytecode": {"bytecode": "0x608060405234801561001057600080fd5b5060405161083e38038061083e8339818101604052604081101561003357600080fd5b810190808051906020019092919080519060200190929190505050816001819055508060008190555050506107d18061006d6000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c806315f240531461005c5780631b3ed722146100b95780631f68f20a146100d75780632191f92a146100f5578063a385fb9614610117575b600080fd5b61009c6004803603606081101561007257600080fd5b81019080803590602001909291908035906020019092919080359060200190929190505050610135565b604051808381526020018281526020019250505060405180910390f35b6100c16101f4565b6040518082815260200191505060405180910390f35b6100df6101fa565b6040518082815260200191505060405180910390f35b6100fd610200565b604051808215151515815260200191505060405180910390f35b61011f610205565b6040518082815260200191505060405180910390f35b6000806000610142610789565b61014a610789565b610154888861020c565b9250925092506000600481111561016757fe5b83600481111561017357fe5b146101955782600481111561018457fe5b6000809050945094505050506101ec565b600061019f610789565b6101ac83622014806103d2565b91509150600060038111156101bd57fe5b8260038111156101c957fe5b146101d057fe5b600060048111156101dd57fe5b81600001519650965050505050505b935093915050565b60005481565b60015481565b600181565b6220148081565b6000610216610789565b61021e610789565b6000610228610789565b6102328787610450565b915091506000600481111561024357fe5b82600481111561024f57fe5b146102885781604051806020016040528060008152506040518060200160405280600081525081915080905094509450945050506103cb565b6000610292610789565b61029e8360005461053b565b91509150600060038111156102af57fe5b8260038111156102bb57fe5b146102f75760036040518060200160405280600081525060405180602001604052806000815250819150809050965096509650505050506103cb565b6000610301610789565b61031383670de0b6b3a76400006103d2565b915091506000600381111561032457fe5b82600381111561033057fe5b1461033757fe5b6000610341610789565b61035b8360405180602001604052806001548152506105b9565b915091506000600381111561036c57fe5b82600381111561037857fe5b146103b857600460405180602001604052806000815250604051806020016040528060008152508191508090509a509a509a5050505050505050506103cb565b600087829a509a509a5050505050505050505b9250925092565b60006103dc610789565b6000806103ed8660000151866105fc565b91509150600060038111156103fe57fe5b82600381111561040a57fe5b1461042e578160405180602001604052806000815250809050935093505050610449565b60006040518060200160405280838152508090509350935050505b9250929050565b600061045a610789565b60008314156104815760006040518060200160405280600081525080905091509150610534565b60008061048e8686610630565b915091506000600381111561049f57fe5b8260038111156104ab57fe5b146104d057600160405180602001604052806000815250809050935093505050610534565b60006104da610789565b6104e48784610662565b91509150600060038111156104f557fe5b82600381111561050157fe5b14610528576002604051806020016040528060008152508090509550955050505050610534565b60008195509550505050505b9250929050565b6000610545610789565b600080610556866000015186610736565b915091506000600381111561056757fe5b82600381111561057357fe5b146105975781604051806020016040528060008152508090509350935050506105b2565b60006040518060200160405280838152508090509350935050505b9250929050565b60006105c3610789565b6000806105d886600001518660000151610630565b91509150816040518060200160405280838152508090509350935050509250929050565b6000806000831415610618576001600080905091509150610629565b600083858161062357fe5b04915091505b9250929050565b6000806000838501905084811061064e57600081925092505061065b565b6002600080905092509250505b9250929050565b600061066c610789565b60008061068186670de0b6b3a7640000610736565b915091506000600381111561069257fe5b82600381111561069e57fe5b146106c257816040518060200160405280600081525080905093509350505061072f565b6000806106cf83886105fc565b91509150600060038111156106e057fe5b8260038111156106ec57fe5b14610712578160405180602001604052806000815250809050955095505050505061072f565b600060405180602001604052808381525080905095509550505050505b9250929050565b60008060008414156107515760008080905091509150610782565b600083850290508385828161076257fe5b041461077957600260008090509250925050610782565b60008192509250505b9250929050565b604051806020016040528060008152509056fea265627a7a72305820c144f71c11f3921d6177bf15710528f89a6604df91e2438d986a6154e625b4d964736f6c634300050a0032"}, "natspec": {"author": "Compound", "methods": {"getBorrowRate(uint256,uint256,uint256)": {"details": "The return value should be scaled by 1e18, thus a return value of     `(true, 1000000000000)` implies an interest rate of 0.000001 or 0.0001% *per block*.", "params": {"_reserves": "The total reserves of the underlying asset in the CToken", "borrows": "The total borrows of the underlying asset in the CToken", "cash": "The total cash of the underlying asset in the CToken"}, "return": "Success or failure and the borrow interest rate per block scaled by 10e18"}}, "title": "The Compound Standard Interest Rate Model with pluggable constants"}, "runtime_bytecode": {"bytecode": "0x608060405234801561001057600080fd5b50600436106100575760003560e01c806315f240531461005c5780631b3ed722146100b95780631f68f20a146100d75780632191f92a146100f5578063a385fb9614610117575b600080fd5b61009c6004803603606081101561007257600080fd5b81019080803590602001909291908035906020019092919080359060200190929190505050610135565b604051808381526020018281526020019250505060405180910390f35b6100c16101f4565b6040518082815260200191505060405180910390f35b6100df6101fa565b6040518082815260200191505060405180910390f35b6100fd610200565b604051808215151515815260200191505060405180910390f35b61011f610205565b6040518082815260200191505060405180910390f35b6000806000610142610789565b61014a610789565b610154888861020c565b9250925092506000600481111561016757fe5b83600481111561017357fe5b146101955782600481111561018457fe5b6000809050945094505050506101ec565b600061019f610789565b6101ac83622014806103d2565b91509150600060038111156101bd57fe5b8260038111156101c957fe5b146101d057fe5b600060048111156101dd57fe5b81600001519650965050505050505b935093915050565b60005481565b60015481565b600181565b6220148081565b6000610216610789565b61021e610789565b6000610228610789565b6102328787610450565b915091506000600481111561024357fe5b82600481111561024f57fe5b146102885781604051806020016040528060008152506040518060200160405280600081525081915080905094509450945050506103cb565b6000610292610789565b61029e8360005461053b565b91509150600060038111156102af57fe5b8260038111156102bb57fe5b146102f75760036040518060200160405280600081525060405180602001604052806000815250819150809050965096509650505050506103cb565b6000610301610789565b61031383670de0b6b3a76400006103d2565b915091506000600381111561032457fe5b82600381111561033057fe5b1461033757fe5b6000610341610789565b61035b8360405180602001604052806001548152506105b9565b915091506000600381111561036c57fe5b82600381111561037857fe5b146103b857600460405180602001604052806000815250604051806020016040528060008152508191508090509a509a509a5050505050505050506103cb565b600087829a509a509a5050505050505050505b9250925092565b60006103dc610789565b6000806103ed8660000151866105fc565b91509150600060038111156103fe57fe5b82600381111561040a57fe5b1461042e578160405180602001604052806000815250809050935093505050610449565b60006040518060200160405280838152508090509350935050505b9250929050565b600061045a610789565b60008314156104815760006040518060200160405280600081525080905091509150610534565b60008061048e8686610630565b915091506000600381111561049f57fe5b8260038111156104ab57fe5b146104d057600160405180602001604052806000815250809050935093505050610534565b60006104da610789565b6104e48784610662565b91509150600060038111156104f557fe5b82600381111561050157fe5b14610528576002604051806020016040528060008152508090509550955050505050610534565b60008195509550505050505b9250929050565b6000610545610789565b600080610556866000015186610736565b915091506000600381111561056757fe5b82600381111561057357fe5b146105975781604051806020016040528060008152508090509350935050506105b2565b60006040518060200160405280838152508090509350935050505b9250929050565b60006105c3610789565b6000806105d886600001518660000151610630565b91509150816040518060200160405280838152508090509350935050509250929050565b6000806000831415610618576001600080905091509150610629565b600083858161062357fe5b04915091505b9250929050565b6000806000838501905084811061064e57600081925092505061065b565b6002600080905092509250505b9250929050565b600061066c610789565b60008061068186670de0b6b3a7640000610736565b915091506000600381111561069257fe5b82600381111561069e57fe5b146106c257816040518060200160405280600081525080905093509350505061072f565b6000806106cf83886105fc565b91509150600060038111156106e057fe5b8260038111156106ec57fe5b14610712578160405180602001604052806000815250809050955095505050505061072f565b600060405180602001604052808381525080905095509550505050505b9250929050565b60008060008414156107515760008080905091509150610782565b600083850290508385828161076257fe5b041461077957600260008090509250925050610782565b60008192509250505b9250929050565b604051806020016040528060008152509056fea265627a7a72305820c144f71c11f3921d6177bf15710528f89a6604df91e2438d986a6154e625b4d964736f6c634300050a0032"}}

Deployments

mainnet
blockchain://d4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3/block/9064f442302703d21fb77f9e487e4dfb91850e530cc4b40e10a4d327bb280ca2
cBAT
{
    "address": "0x6C8c6b02E7b2BE14d4fA6022Dfd6d75921D90E4E",
    "block": "0x808e3f7c18930ab49f0666c00d988af731ffc92c3e0ff58d3c8fbee009f86d04",
    "contract_type": "CErc20",
    "transaction": "0xb92ea2ddcd07e9d014eb4a54fe227cc164fa28fda3d8a0b84b2c1cd375155097"
}
cDAI
{
    "address": "0xF5DCe57282A584D2746FaF1593d3121Fcac444dC",
    "block": "0xadc7585e1f77a56b60922b153d813598cbddf6f04e20fae408289bc10165f54f",
    "contract_type": "CErc20",
    "transaction": "0x8caa40e8b5227b7a1079a9e883d92de018957e5256f356aa6d28b2610e7b1c44"
}
cETH
{
    "address": "0x4Ddc2D193948926D02f9B1fE9e1daa0718270ED5",
    "block": "0x5a4da17b60e021de2a01c111dd09d7dd63bae154e77268e209004fd2ac984647",
    "contract_type": "CErc20",
    "transaction": "0xe60e30c7131f043b17a214cfa27e7b6ae652e056141ae84bc4cc3dfe17e016a3"
}
cREP
{
    "address": "0x158079Ee67Fce2f58472A96584A73C7Ab9AC95c1",
    "block": "0x8ca215ebe098d9e3c956848d5f46a286f0ee36e29152d65447f6cd1787c2d25c",
    "contract_type": "CErc20",
    "transaction": "0x2fd160cc282c7be223c4fe2370b90fd07485459db0332790c9bf02e4b1fbeaab"
}
cUSDC
{
    "address": "0x39AA39c021dfbaE8faC545936693aC917d5E7563",
    "block": "0x1f9a4af4a0d539d6bcf8c29268d8e198e1520e6e191617c130b6bb756e388cc1",
    "contract_type": "CErc20",
    "transaction": "0x13e2fe64ecf2c03243b4238477b268f4c0245d51bce7f7d9f1689ba60680b32c"
}
cWBTC
{
    "address": "0xC11b1268C1A384e55C48c2391d8d480264A3A7F4",
    "block": "0xcf4903de136cdddceeecc0bea8491913b85affa1a4aed4244c10f8c74a93b4fa",
    "contract_type": "CErc20",
    "transaction": "0xa0d8748bfd292071a40f9cd7cd64304f521a2ff04ab7734a84845687f2402121"
}
cZRX
{
    "address": "0xB3319f5D18Bc0D84dD1b4825Dcde5d5f7266d407",
    "block": "0x41bee1342983e67fbbc0d04a9048137ef03aafafca41ceeb7767487e86e0be48",
    "contract_type": "CErc20",
    "transaction": "0xbb892790453ea3a1ca4756687c8d799949a4aac82152f8d9d10a96e2adaa17d1"
}

Have questions? Found a bug? Join us in our Gitter room

Built with <3 using snakecharmer tools