Contract 0x0eee3e3828a45f7601d5f54bf49bb01d1a9df5ea

Loans 
 
Txn Hash Method
Block
From
To
Value
0x29e3be282526f5a6329dc66c539b4d49f5d1d4dd740ed69edcb514150284bb53_withdraw Equity100109832020-05-06 6:06:31443 days 22 hrs agoLendf.Me: Admin IN  Lendf.Me0 Ether0.0003946419349.104040207
0x2bef4e6f565c2a64392bb98ff9e45b4902e4ce823cd23d09c1e04fc75a07c70c_withdraw Equity100109112020-05-06 5:51:42443 days 23 hrs agoLendf.Me: Admin IN  Lendf.Me0 Ether0.000552449810.1
0x99ada8144b1b2ce5309282e5bfc90be2492cfbf6501f117d6ce2fe322f6d3965Transfer99258092020-04-23 1:33:54457 days 3 hrs ago0xad5b10eb28a738ffb17a81c7e4a7743dd9707f3d IN  Lendf.Me0.002676 Ether0.00002315061.1
0xbc2da7c033f5b9202512d2ce30f1dec075932ac49efc3b8d5809e2d906eb41dcWithdraw99212152020-04-22 8:34:34457 days 20 hrs ago0x8672e1c7669ec3d0ac1c6f926169c244faed3da7 IN  Lendf.Me0 Ether0.0002570810
0x3af093be1e6ad91f5f2efff46f7ca32168b39f6906ba3be011ee6164a0c81922Withdraw99041132020-04-19 17:04:59460 days 11 hrs ago0x82bebae883c969b165fa066fc2d2c481de0d7b61 IN  Lendf.Me0 Ether0.0001027364
0x6f5a36269c5e1d55e1b12509ad2af7da28393d266488ce3986aa36709bb01d24Borrow99040752020-04-19 16:54:39460 days 12 hrs ago0xc41a8bee55f1f487b16f752ad0b459015b2f8cf1 IN  Lendf.Me0 Ether0.00020168
0x2acd42e8fdee2d6d9d7ba77f77e97068ae9753994d89d4531c01a01824652ba5Borrow99040262020-04-19 16:44:35460 days 12 hrs ago0xc41a8bee55f1f487b16f752ad0b459015b2f8cf1 IN  Lendf.Me0 Ether0.00020168
0x60aca014cc7f0da12c265b43be8eefe3bf2a103ca6cab54dd61160d74a018caaWithdraw99036232020-04-19 15:14:41460 days 13 hrs ago0x6c10cb11e670f9a956e0154ca27e0c8937ce09ec IN  Lendf.Me0 Ether0.000128545
0x08b7f025611a2e80826d8c189eb0efac2ff46e80c5e51b5b60a1f05996934a1aWithdraw99032292020-04-19 13:42:59460 days 15 hrs ago0x3584ca77ba08bd8b3fe4762e60eb284e37696829 IN  Lendf.Me0 Ether0.0002083528
0x8549628528d223dbd6f24e7120d5cb911a499b734a958989f308afc5cdb8e7ebWithdraw99024242020-04-19 10:54:32460 days 18 hrs ago0xd31b1abcc3cc79d3fc11b4900b9b004c2ba0d066 IN  Lendf.Me0 Ether0.00009254883.6
0xd2d5ae57ad1a2763a7ff4d39bdd70bdb6f9e9fe94234142ed6aecc6ae3002bfbWithdraw99023912020-04-19 10:45:57460 days 18 hrs agoENS Name bankofme.eth IN  Lendf.Me0 Ether0.0000770883
0xc4047d67e222dfd16ecc5029af3fcd39ca0d69634eaf3c307a7c622a139a1fe5Supply99021232020-04-19 9:49:16460 days 19 hrs agoENS Name bankofme.eth IN  Lendf.Me0 Ether0.000051041942.01
0x9b21abc87983aa04193db81d9ddb24b56820c82bcfb6ce3e9a8d23efddef0aa1Withdraw99019312020-04-19 9:10:12460 days 19 hrs ago0x6a0aff613f3c57d9007cb3104d5864956755e19b IN  Lendf.Me0 Ether0.0002343969
0xa0dca1f12ce1770b70affc34dab4de6549eb0629452b253a31a596ffeeb7a3dcWithdraw99019202020-04-19 9:07:23460 days 19 hrs ago0x6a0aff613f3c57d9007cb3104d5864956755e19b IN  Lendf.Me0 Ether0.00023179168.9
0x16b3266a7cbb8f157b0289daccddbbbf50d953e0abc64b76d0ae5186465e90b4Withdraw99013602020-04-19 7:07:02460 days 21 hrs ago0x3584ca77ba08bd8b3fe4762e60eb284e37696829 IN  Lendf.Me0 Ether0.00023700049.1
0xf854fc2992e8e6cac431ad1bf4525bbb1b09cecd074ae3136bbd519a8d1f470eSupply99013472020-04-19 7:02:33460 days 22 hrs ago0xcd5f8fa45e0ca0937f86006b9ee8fe1eedee5fc4 IN  Lendf.Me0 Ether0.000507420
0x0b63b564439c8a84d58847f795b63bac31311b2eeb747357887dcf70352fd627Withdraw99011902020-04-19 6:26:24460 days 22 hrs ago0xcd5f8fa45e0ca0937f86006b9ee8fe1eedee5fc4 IN  Lendf.Me0 Ether0.0005134420
0x7e5e636161f61d6a44054770443df383d92ab3faccf89111ef68b03e00b3832cBorrow99011832020-04-19 6:24:35460 days 22 hrs ago0xcd5f8fa45e0ca0937f86006b9ee8fe1eedee5fc4 IN  Lendf.Me0 Ether0.0005030420
0x0bee3a98c71ec3d6d02fed558e89001c54d60179e2d8f82c728ef112ade043fbBorrow99011512020-04-19 6:18:26460 days 22 hrs ago0xcd5f8fa45e0ca0937f86006b9ee8fe1eedee5fc4 IN  Lendf.Me0 Ether0.00042880817
0xbe41d4b140f25bfe1a1db82f12127e14b1639df9275dd988bbd07fb96b00bf42Withdraw99011052020-04-19 6:07:31460 days 22 hrs ago0x4ef5c587e53c66cdfbc6588e29dcb100a5859263 IN  Lendf.Me0 Ether0.00128650
0xc9488b69eb730d6d87e8606af1d1b0c0bce7b53511278d6df37feba989a355a0Withdraw99011022020-04-19 6:07:06460 days 22 hrs ago0x2d0a42fc969b064a87adf3b657ef3fd315f82cd8 IN  Lendf.Me0 Ether0.00013875845.4
0x7222c3098eaa23071ec5920c548c1df39d98b7720f58d8e150f8e8ddb012372cWithdraw99011012020-04-19 6:07:00460 days 22 hrs ago0x3584ca77ba08bd8b3fe4762e60eb284e37696829 IN  Lendf.Me0 Ether0.00022918728.8
0x491718840c2c848a6feb7d05f6fd7f98bce3f95c0edaa9c58db600dd4e534233Withdraw99010792020-04-19 6:03:10460 days 23 hrs ago0x4ef5c587e53c66cdfbc6588e29dcb100a5859263 IN  Lendf.Me0 Ether0.00128650
0xa93cbb7551997fcb68e7d4e64d3a7e84bd6f22ce20074806a990e8fcfb516f4eBorrow99010762020-04-19 6:02:38460 days 23 hrs ago0x2d0a42fc969b064a87adf3b657ef3fd315f82cd8 IN  Lendf.Me0 Ether0.0001636452586.50005
0xd6d2abcff4e130956bd650e41dd17f7250e53b1317ae790cbd0c377d3bcd3944Withdraw99010542020-04-19 5:59:12460 days 23 hrs ago0x2d0a42fc969b064a87adf3b657ef3fd315f82cd8 IN  Lendf.Me0 Ether0.0002053768
[ Download CSV Export 
View more zero value Internal Transactions in Advanced View mode
Loading

Contract Source Code Verified (Similar Match)
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0xeda3849869fd560b49dab8c110be3a020f46c79e

Contract Name:
MoneyMarket

Compiler Version
v0.4.24+commit.e67f0147

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2019-09-18
*/

pragma solidity ^0.4.24;
contract PriceOracleInterface {

    /**
      * @notice Gets the price of a given asset
      * @dev fetches the price of a given asset
      * @param asset Asset to get the price of
      * @return the price scaled by 10**18, or zero if the price is not available
      */
    function assetPrices(address asset) public view returns (uint);
}
contract ErrorReporter {

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

    enum Error {
        NO_ERROR,
        OPAQUE_ERROR, // To be used when reporting errors from upgradeable contracts; the opaque code should be given as `detail` in the `Failure` event
        UNAUTHORIZED,
        INTEGER_OVERFLOW,
        INTEGER_UNDERFLOW,
        DIVISION_BY_ZERO,
        BAD_INPUT,
        TOKEN_INSUFFICIENT_ALLOWANCE,
        TOKEN_INSUFFICIENT_BALANCE,
        TOKEN_TRANSFER_FAILED,
        MARKET_NOT_SUPPORTED,
        SUPPLY_RATE_CALCULATION_FAILED,
        BORROW_RATE_CALCULATION_FAILED,
        TOKEN_INSUFFICIENT_CASH,
        TOKEN_TRANSFER_OUT_FAILED,
        INSUFFICIENT_LIQUIDITY,
        INSUFFICIENT_BALANCE,
        INVALID_COLLATERAL_RATIO,
        MISSING_ASSET_PRICE,
        EQUITY_INSUFFICIENT_BALANCE,
        INVALID_CLOSE_AMOUNT_REQUESTED,
        ASSET_NOT_PRICED,
        INVALID_LIQUIDATION_DISCOUNT,
        INVALID_COMBINED_RISK_PARAMETERS,
        ZERO_ORACLE_ADDRESS,
        CONTRACT_PAUSED
    }

    /*
     * 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,
        BORROW_ACCOUNT_LIQUIDITY_CALCULATION_FAILED,
        BORROW_ACCOUNT_SHORTFALL_PRESENT,
        BORROW_ACCUMULATED_BALANCE_CALCULATION_FAILED,
        BORROW_AMOUNT_LIQUIDITY_SHORTFALL,
        BORROW_AMOUNT_VALUE_CALCULATION_FAILED,
        BORROW_CONTRACT_PAUSED,
        BORROW_MARKET_NOT_SUPPORTED,
        BORROW_NEW_BORROW_INDEX_CALCULATION_FAILED,
        BORROW_NEW_BORROW_RATE_CALCULATION_FAILED,
        BORROW_NEW_SUPPLY_INDEX_CALCULATION_FAILED,
        BORROW_NEW_SUPPLY_RATE_CALCULATION_FAILED,
        BORROW_NEW_TOTAL_BALANCE_CALCULATION_FAILED,
        BORROW_NEW_TOTAL_BORROW_CALCULATION_FAILED,
        BORROW_NEW_TOTAL_CASH_CALCULATION_FAILED,
        BORROW_ORIGINATION_FEE_CALCULATION_FAILED,
        BORROW_TRANSFER_OUT_FAILED,
        EQUITY_WITHDRAWAL_AMOUNT_VALIDATION,
        EQUITY_WITHDRAWAL_CALCULATE_EQUITY,
        EQUITY_WITHDRAWAL_MODEL_OWNER_CHECK,
        EQUITY_WITHDRAWAL_TRANSFER_OUT_FAILED,
        LIQUIDATE_ACCUMULATED_BORROW_BALANCE_CALCULATION_FAILED,
        LIQUIDATE_ACCUMULATED_SUPPLY_BALANCE_CALCULATION_FAILED_BORROWER_COLLATERAL_ASSET,
        LIQUIDATE_ACCUMULATED_SUPPLY_BALANCE_CALCULATION_FAILED_LIQUIDATOR_COLLATERAL_ASSET,
        LIQUIDATE_AMOUNT_SEIZE_CALCULATION_FAILED,
        LIQUIDATE_BORROW_DENOMINATED_COLLATERAL_CALCULATION_FAILED,
        LIQUIDATE_CLOSE_AMOUNT_TOO_HIGH,
        LIQUIDATE_CONTRACT_PAUSED,
        LIQUIDATE_DISCOUNTED_REPAY_TO_EVEN_AMOUNT_CALCULATION_FAILED,
        LIQUIDATE_NEW_BORROW_INDEX_CALCULATION_FAILED_BORROWED_ASSET,
        LIQUIDATE_NEW_BORROW_INDEX_CALCULATION_FAILED_COLLATERAL_ASSET,
        LIQUIDATE_NEW_BORROW_RATE_CALCULATION_FAILED_BORROWED_ASSET,
        LIQUIDATE_NEW_SUPPLY_INDEX_CALCULATION_FAILED_BORROWED_ASSET,
        LIQUIDATE_NEW_SUPPLY_INDEX_CALCULATION_FAILED_COLLATERAL_ASSET,
        LIQUIDATE_NEW_SUPPLY_RATE_CALCULATION_FAILED_BORROWED_ASSET,
        LIQUIDATE_NEW_TOTAL_BORROW_CALCULATION_FAILED_BORROWED_ASSET,
        LIQUIDATE_NEW_TOTAL_CASH_CALCULATION_FAILED_BORROWED_ASSET,
        LIQUIDATE_NEW_TOTAL_SUPPLY_BALANCE_CALCULATION_FAILED_BORROWER_COLLATERAL_ASSET,
        LIQUIDATE_NEW_TOTAL_SUPPLY_BALANCE_CALCULATION_FAILED_LIQUIDATOR_COLLATERAL_ASSET,
        LIQUIDATE_FETCH_ASSET_PRICE_FAILED,
        LIQUIDATE_TRANSFER_IN_FAILED,
        LIQUIDATE_TRANSFER_IN_NOT_POSSIBLE,
        REPAY_BORROW_ACCUMULATED_BALANCE_CALCULATION_FAILED,
        REPAY_BORROW_CONTRACT_PAUSED,
        REPAY_BORROW_NEW_BORROW_INDEX_CALCULATION_FAILED,
        REPAY_BORROW_NEW_BORROW_RATE_CALCULATION_FAILED,
        REPAY_BORROW_NEW_SUPPLY_INDEX_CALCULATION_FAILED,
        REPAY_BORROW_NEW_SUPPLY_RATE_CALCULATION_FAILED,
        REPAY_BORROW_NEW_TOTAL_BALANCE_CALCULATION_FAILED,
        REPAY_BORROW_NEW_TOTAL_BORROW_CALCULATION_FAILED,
        REPAY_BORROW_NEW_TOTAL_CASH_CALCULATION_FAILED,
        REPAY_BORROW_TRANSFER_IN_FAILED,
        REPAY_BORROW_TRANSFER_IN_NOT_POSSIBLE,
        SET_ASSET_PRICE_CHECK_ORACLE,
        SET_MARKET_INTEREST_RATE_MODEL_OWNER_CHECK,
        SET_ORACLE_OWNER_CHECK,
        SET_ORIGINATION_FEE_OWNER_CHECK,
        SET_PAUSED_OWNER_CHECK,
        SET_PENDING_ADMIN_OWNER_CHECK,
        SET_RISK_PARAMETERS_OWNER_CHECK,
        SET_RISK_PARAMETERS_VALIDATION,
        SUPPLY_ACCUMULATED_BALANCE_CALCULATION_FAILED,
        SUPPLY_CONTRACT_PAUSED,
        SUPPLY_MARKET_NOT_SUPPORTED,
        SUPPLY_NEW_BORROW_INDEX_CALCULATION_FAILED,
        SUPPLY_NEW_BORROW_RATE_CALCULATION_FAILED,
        SUPPLY_NEW_SUPPLY_INDEX_CALCULATION_FAILED,
        SUPPLY_NEW_SUPPLY_RATE_CALCULATION_FAILED,
        SUPPLY_NEW_TOTAL_BALANCE_CALCULATION_FAILED,
        SUPPLY_NEW_TOTAL_CASH_CALCULATION_FAILED,
        SUPPLY_NEW_TOTAL_SUPPLY_CALCULATION_FAILED,
        SUPPLY_TRANSFER_IN_FAILED,
        SUPPLY_TRANSFER_IN_NOT_POSSIBLE,
        SUPPORT_MARKET_FETCH_PRICE_FAILED,
        SUPPORT_MARKET_OWNER_CHECK,
        SUPPORT_MARKET_PRICE_CHECK,
        SUSPEND_MARKET_OWNER_CHECK,
        WITHDRAW_ACCOUNT_LIQUIDITY_CALCULATION_FAILED,
        WITHDRAW_ACCOUNT_SHORTFALL_PRESENT,
        WITHDRAW_ACCUMULATED_BALANCE_CALCULATION_FAILED,
        WITHDRAW_AMOUNT_LIQUIDITY_SHORTFALL,
        WITHDRAW_AMOUNT_VALUE_CALCULATION_FAILED,
        WITHDRAW_CAPACITY_CALCULATION_FAILED,
        WITHDRAW_CONTRACT_PAUSED,
        WITHDRAW_NEW_BORROW_INDEX_CALCULATION_FAILED,
        WITHDRAW_NEW_BORROW_RATE_CALCULATION_FAILED,
        WITHDRAW_NEW_SUPPLY_INDEX_CALCULATION_FAILED,
        WITHDRAW_NEW_SUPPLY_RATE_CALCULATION_FAILED,
        WITHDRAW_NEW_TOTAL_BALANCE_CALCULATION_FAILED,
        WITHDRAW_NEW_TOTAL_SUPPLY_CALCULATION_FAILED,
        WITHDRAW_TRANSFER_OUT_FAILED,
        WITHDRAW_TRANSFER_OUT_NOT_POSSIBLE
    }


    /**
      * @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(FailureInfo info, uint opaqueError) internal returns (uint) {
        emit Failure(uint(Error.OPAQUE_ERROR), uint(info), opaqueError);

        return uint(Error.OPAQUE_ERROR);
    }

}
contract InterestRateModel {

    /**
      * @notice Gets the current supply interest rate based on the given asset, total cash and total borrows
      * @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 asset The asset to get the interest rate of
      * @param cash The total cash of the asset in the market
      * @param borrows The total borrows of the asset in the market
      * @return Success or failure and the supply interest rate per block scaled by 10e18
      */
    function getSupplyRate(address asset, uint cash, uint borrows) public view returns (uint, uint);

    /**
      * @notice Gets the current borrow interest rate based on the given asset, total cash and total borrows
      * @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 asset The asset to get the interest rate of
      * @param cash The total cash of the asset in the market
      * @param borrows The total borrows of the asset in the market
      * @return Success or failure and the borrow interest rate per block scaled by 10e18
      */
    function getBorrowRate(address asset, uint cash, uint borrows) public view returns (uint, uint);
}
contract EIP20Interface {
    /* This is a slight change to the ERC20 base standard.
    function totalSupply() constant returns (uint256 supply);
    is replaced with:
    uint256 public totalSupply;
    This automatically creates a getter function for the totalSupply.
    This is moved to the base contract since public getter functions are not
    currently recognised as an implementation of the matching abstract
    function by the compiler.
    */
    /// total amount of tokens
    uint256 public totalSupply;

    /// @param _owner The address from which the balance will be retrieved
    /// @return The balance
    function balanceOf(address _owner) public view returns (uint256 balance);

    /// @notice send `_value` token to `_to` from `msg.sender`
    /// @param _to The address of the recipient
    /// @param _value The amount of token to be transferred
    /// @return Whether the transfer was successful or not
    function transfer(address _to, uint256 _value) public returns (bool success);

    /// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from`
    /// @param _from The address of the sender
    /// @param _to The address of the recipient
    /// @param _value The amount of token to be transferred
    /// @return Whether the transfer was successful or not
    function transferFrom(address _from, address _to, uint256 _value) public returns (bool success);

    /// @notice `msg.sender` approves `_spender` to spend `_value` tokens
    /// @param _spender The address of the account able to transfer the tokens
    /// @param _value The amount of tokens to be approved for transfer
    /// @return Whether the approval was successful or not
    function approve(address _spender, uint256 _value) public returns (bool success);

    /// @param _owner The address of the account owning tokens
    /// @param _spender The address of the account able to transfer the tokens
    /// @return Amount of remaining tokens allowed to spent
    function allowance(address _owner, address _spender) public view returns (uint256 remaining);

    // solhint-disable-next-line no-simple-event-func-name
    event Transfer(address indexed _from, address indexed _to, uint256 _value);
    event Approval(address indexed _owner, address indexed _spender, uint256 _value);
}

contract EIP20NonStandardInterface {
    /* This is a slight change to the ERC20 base standard.
    function totalSupply() constant returns (uint256 supply);
    is replaced with:
    uint256 public totalSupply;
    This automatically creates a getter function for the totalSupply.
    This is moved to the base contract since public getter functions are not
    currently recognised as an implementation of the matching abstract
    function by the compiler.
    */
    /// total amount of tokens
    uint256 public totalSupply;

    /// @param _owner The address from which the balance will be retrieved
    /// @return The balance
    function balanceOf(address _owner) public view returns (uint256 balance);

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

    /// @notice send `_value` token to `_to` from `msg.sender`
    /// @param _to The address of the recipient
    /// @param _value The amount of token to be transferred
    /// @return Whether the transfer was successful or not
    function transfer(address _to, uint256 _value) public;

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

    /// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from`
    /// @param _from The address of the sender
    /// @param _to The address of the recipient
    /// @param _value The amount of token to be transferred
    /// @return Whether the transfer was successful or not
    function transferFrom(address _from, address _to, uint256 _value) public;

    /// @notice `msg.sender` approves `_spender` to spend `_value` tokens
    /// @param _spender The address of the account able to transfer the tokens
    /// @param _value The amount of tokens to be approved for transfer
    /// @return Whether the approval was successful or not
    function approve(address _spender, uint256 _value) public returns (bool success);

    /// @param _owner The address of the account owning tokens
    /// @param _spender The address of the account able to transfer the tokens
    /// @return Amount of remaining tokens allowed to spent
    function allowance(address _owner, address _spender) public view returns (uint256 remaining);

    // solhint-disable-next-line no-simple-event-func-name
    event Transfer(address indexed _from, address indexed _to, uint256 _value);
    event Approval(address indexed _owner, address indexed _spender, uint256 _value);
}

contract CarefulMath is ErrorReporter {

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

        uint c = a * b;

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

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

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

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

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

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

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

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

        return sub(sum, c);
    }
}
contract SafeToken is ErrorReporter {

    /**
      * @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 asset, address from, uint amount) internal view returns (Error) {

        EIP20Interface token = EIP20Interface(asset);

        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 asset, address from, uint amount) internal returns (Error) {
        EIP20NonStandardInterface token = EIP20NonStandardInterface(asset);

        bool result;

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

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

        return Error.NO_ERROR;
    }

    /**
      * @dev Checks balance of this contract in asset
      */
    function getCash(address asset) internal view returns (uint) {
        EIP20Interface token = EIP20Interface(asset);

        return token.balanceOf(address(this));
    }

    /**
      * @dev Checks balance of `from` in `asset`
      */
    function getBalanceOf(address asset, address from) internal view returns (uint) {
        EIP20Interface token = EIP20Interface(asset);

        return token.balanceOf(from);
    }

    /**
      * @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 asset, address to, uint amount) internal returns (Error) {
        EIP20NonStandardInterface token = EIP20NonStandardInterface(asset);

        bool result;

        token.transfer(to, amount);

        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;
    }
}
contract Exponential is ErrorReporter, CarefulMath {

    // TODO: We may wish to put the result of 10**18 here instead of the expression.
    // Per https://solidity.readthedocs.io/en/latest/contracts.html#constant-state-variables
    // the optimizer MAY replace the expression 10**18 with its calculated value.
    uint constant expScale = 10**18;

    // See TODO on expScale
    uint constant halfExpScale = expScale/2;

    struct Exp {
        uint mantissa;
    }

    uint constant mantissaOne = 10**18;
    uint constant mantissaOneTenth = 10**17;

    /**
    * @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 (Error, Exp memory) {
        (Error err0, uint scaledNumerator) = mul(num, expScale);
        if (err0 != Error.NO_ERROR) {
            return (err0, Exp({mantissa: 0}));
        }

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

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

    /**
    * @dev Adds two exponentials, returning a new exponential.
    */
    function addExp(Exp memory a, Exp memory b) pure internal returns (Error, Exp memory) {
        (Error error, uint result) = add(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 (Error, Exp memory) {
        (Error error, uint result) = sub(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 (Error, Exp memory) {
        (Error err0, uint scaledMantissa) = mul(a.mantissa, scalar);
        if (err0 != Error.NO_ERROR) {
            return (err0, Exp({mantissa: 0}));
        }

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

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

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

    /**
    * @dev Divide a scalar by an Exp, returning a new Exp.
    */
    function divScalarByExp(uint scalar, Exp divisor) pure internal returns (Error, Exp memory) {
        /*
            We are doing this as:
            getExp(mul(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`
        */
        (Error err0, uint numerator) = mul(expScale, scalar);
        if (err0 != Error.NO_ERROR) {
            return (err0, Exp({mantissa: 0}));
        }
        return getExp(numerator, divisor.mantissa);
    }

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

        (Error err0, uint doubleScaledProduct) = mul(a.mantissa, b.mantissa);
        if (err0 != Error.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.
        (Error err1, uint doubleScaledProductWithHalfScale) = add(halfExpScale, doubleScaledProduct);
        if (err1 != Error.NO_ERROR) {
            return (err1, Exp({mantissa: 0}));
        }

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

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

    /**
      * @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 (Error, Exp memory) {
        return getExp(a.mantissa, b.mantissa);
    }

    /**
      * @dev Truncates the given exp to a whole number value.
      *      For example, truncate(Exp{mantissa: 15 * (10**18)}) = 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 / 10**18;
    }

    /**
      * @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 returns true if Exp is exactly zero
      */
    function isZeroExp(Exp memory value) pure internal returns (bool) {
        return value.mantissa == 0;
    }
}
contract MoneyMarket is Exponential, SafeToken {

    uint constant initialInterestIndex = 10 ** 18;
    uint constant defaultOriginationFee = 0; // default is zero bps

    uint constant minimumCollateralRatioMantissa = 11 * (10 ** 17); // 1.1
    uint constant maximumLiquidationDiscountMantissa = (10 ** 17); // 0.1

    /**
      * @notice `MoneyMarket` is the core Compound MoneyMarket contract
      */
    constructor() public {
        admin = msg.sender;
        collateralRatio = Exp({mantissa: 2 * mantissaOne});
        originationFee = Exp({mantissa: defaultOriginationFee});
        liquidationDiscount = Exp({mantissa: 0});
        // oracle must be configured via _setOracle
    }

    /**
      * @notice Do not pay directly into MoneyMarket, please use `supply`.
      */
    function() payable public {
        revert();
    }

    /**
      * @dev pending Administrator for this contract.
      */
    address public pendingAdmin;

    /**
      * @dev Administrator for this contract. Initially set in constructor, but can
      *      be changed by the admin itself.
      */
    address public admin;

    /**
      * @dev Account allowed to set oracle prices for this contract. Initially set
      *      in constructor, but can be changed by the admin.
      */
    address public oracle;

    /**
      * @dev Container for customer balance information written to storage.
      *
      *      struct Balance {
      *        principal = customer total balance with accrued interest after applying the customer's most recent balance-changing action
      *        interestIndex = the total interestIndex as calculated after applying the customer's most recent balance-changing action
      *      }
      */
    struct Balance {
        uint principal;
        uint interestIndex;
    }

    /**
      * @dev 2-level map: customerAddress -> assetAddress -> balance for supplies
      */
    mapping(address => mapping(address => Balance)) public supplyBalances;


    /**
      * @dev 2-level map: customerAddress -> assetAddress -> balance for borrows
      */
    mapping(address => mapping(address => Balance)) public borrowBalances;


    /**
      * @dev Container for per-asset balance sheet and interest rate information written to storage, intended to be stored in a map where the asset address is the key
      *
      *      struct Market {
      *         isSupported = Whether this market is supported or not (not to be confused with the list of collateral assets)
      *         blockNumber = when the other values in this struct were calculated
      *         totalSupply = total amount of this asset supplied (in asset wei)
      *         supplyRateMantissa = the per-block interest rate for supplies of asset as of blockNumber, scaled by 10e18
      *         supplyIndex = the interest index for supplies of asset as of blockNumber; initialized in _supportMarket
      *         totalBorrows = total amount of this asset borrowed (in asset wei)
      *         borrowRateMantissa = the per-block interest rate for borrows of asset as of blockNumber, scaled by 10e18
      *         borrowIndex = the interest index for borrows of asset as of blockNumber; initialized in _supportMarket
      *     }
      */
    struct Market {
        bool isSupported;
        uint blockNumber;
        InterestRateModel interestRateModel;

        uint totalSupply;
        uint supplyRateMantissa;
        uint supplyIndex;

        uint totalBorrows;
        uint borrowRateMantissa;
        uint borrowIndex;
    }

    /**
      * @dev map: assetAddress -> Market
      */
    mapping(address => Market) public markets;

    /**
      * @dev list: collateralMarkets
      */
    address[] public collateralMarkets;

    /**
      * @dev The collateral ratio that borrows must maintain (e.g. 2 implies 2:1). This
      *      is initially set in the constructor, but can be changed by the admin.
      */
    Exp public collateralRatio;

    /**
      * @dev originationFee for new borrows.
      *
      */
    Exp public originationFee;

    /**
      * @dev liquidationDiscount for collateral when liquidating borrows
      *
      */
    Exp public liquidationDiscount;

    /**
      * @dev flag for whether or not contract is paused
      *
      */
    bool public paused;


    /**
      * @dev emitted when a supply is received
      *      Note: newBalance - amount - startingBalance = interest accumulated since last change
      */
    event SupplyReceived(address account, address asset, uint amount, uint startingBalance, uint newBalance);

    /**
      * @dev emitted when a supply is withdrawn
      *      Note: startingBalance - amount - startingBalance = interest accumulated since last change
      */
    event SupplyWithdrawn(address account, address asset, uint amount, uint startingBalance, uint newBalance);

    /**
      * @dev emitted when a new borrow is taken
      *      Note: newBalance - borrowAmountWithFee - startingBalance = interest accumulated since last change
      */
    event BorrowTaken(address account, address asset, uint amount, uint startingBalance, uint borrowAmountWithFee, uint newBalance);

    /**
      * @dev emitted when a borrow is repaid
      *      Note: newBalance - amount - startingBalance = interest accumulated since last change
      */
    event BorrowRepaid(address account, address asset, uint amount, uint startingBalance, uint newBalance);

    /**
      * @dev emitted when a borrow is liquidated
      *      targetAccount = user whose borrow was liquidated
      *      assetBorrow = asset borrowed
      *      borrowBalanceBefore = borrowBalance as most recently stored before the liquidation
      *      borrowBalanceAccumulated = borroBalanceBefore + accumulated interest as of immediately prior to the liquidation
      *      amountRepaid = amount of borrow repaid
      *      liquidator = account requesting the liquidation
      *      assetCollateral = asset taken from targetUser and given to liquidator in exchange for liquidated loan
      *      borrowBalanceAfter = new stored borrow balance (should equal borrowBalanceAccumulated - amountRepaid)
      *      collateralBalanceBefore = collateral balance as most recently stored before the liquidation
      *      collateralBalanceAccumulated = collateralBalanceBefore + accumulated interest as of immediately prior to the liquidation
      *      amountSeized = amount of collateral seized by liquidator
      *      collateralBalanceAfter = new stored collateral balance (should equal collateralBalanceAccumulated - amountSeized)
      */
    event BorrowLiquidated(address targetAccount,
        address assetBorrow,
        uint borrowBalanceBefore,
        uint borrowBalanceAccumulated,
        uint amountRepaid,
        uint borrowBalanceAfter,
        address liquidator,
        address assetCollateral,
        uint collateralBalanceBefore,
        uint collateralBalanceAccumulated,
        uint amountSeized,
        uint collateralBalanceAfter);

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

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

    /**
      * @dev newOracle - address of new oracle
      */
    event NewOracle(address oldOracle, address newOracle);

    /**
      * @dev emitted when new market is supported by admin
      */
    event SupportedMarket(address asset, address interestRateModel);

    /**
      * @dev emitted when risk parameters are changed by admin
      */
    event NewRiskParameters(uint oldCollateralRatioMantissa, uint newCollateralRatioMantissa, uint oldLiquidationDiscountMantissa, uint newLiquidationDiscountMantissa);

    /**
      * @dev emitted when origination fee is changed by admin
      */
    event NewOriginationFee(uint oldOriginationFeeMantissa, uint newOriginationFeeMantissa);

    /**
      * @dev emitted when market has new interest rate model set
      */
    event SetMarketInterestRateModel(address asset, address interestRateModel);

    /**
      * @dev emitted when admin withdraws equity
      * Note that `equityAvailableBefore` indicates equity before `amount` was removed.
      */
    event EquityWithdrawn(address asset, uint equityAvailableBefore, uint amount, address owner);

    /**
      * @dev emitted when a supported market is suspended by admin
      */
    event SuspendedMarket(address asset);

    /**
      * @dev emitted when admin either pauses or resumes the contract; newState is the resulting state
      */
    event SetPaused(bool newState);

    /**
      * @dev Simple function to calculate min between two numbers.
      */
    function min(uint a, uint b) pure internal returns (uint) {
        if (a < b) {
            return a;
        } else {
            return b;
        }
    }

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

    /**
      * @dev Adds a given asset to the list of collateral markets. This operation is impossible to reverse.
      *      Note: this will not add the asset if it already exists.
      */
    function addCollateralMarket(address asset) internal {
        for (uint i = 0; i < collateralMarkets.length; i++) {
            if (collateralMarkets[i] == asset) {
                return;
            }
        }

        collateralMarkets.push(asset);
    }

    /**
      * @notice return the number of elements in `collateralMarkets`
      * @dev you can then externally call `collateralMarkets(uint)` to pull each market address
      * @return the length of `collateralMarkets`
      */
    function getCollateralMarketsLength() public view returns (uint) {
        return collateralMarkets.length;
    }

    /**
      * @dev Calculates a new supply index based on the prevailing interest rates applied over time
      *      This is defined as `we multiply the most recent supply index by (1 + blocks times rate)`
      */
    function calculateInterestIndex(uint startingInterestIndex, uint interestRateMantissa, uint blockStart, uint blockEnd) pure internal returns (Error, uint) {

        // Get the block delta
        (Error err0, uint blockDelta) = sub(blockEnd, blockStart);
        if (err0 != Error.NO_ERROR) {
            return (err0, 0);
        }

        // Scale the interest rate times number of blocks
        // Note: Doing Exp construction inline to avoid `CompilerError: Stack too deep, try removing local variables.`
        (Error err1, Exp memory blocksTimesRate) = mulScalar(Exp({mantissa: interestRateMantissa}), blockDelta);
        if (err1 != Error.NO_ERROR) {
            return (err1, 0);
        }

        // Add one to that result (which is really Exp({mantissa: expScale}) which equals 1.0)
        (Error err2, Exp memory onePlusBlocksTimesRate) = addExp(blocksTimesRate, Exp({mantissa: mantissaOne}));
        if (err2 != Error.NO_ERROR) {
            return (err2, 0);
        }

        // Then scale that accumulated interest by the old interest index to get the new interest index
        (Error err3, Exp memory newInterestIndexExp) = mulScalar(onePlusBlocksTimesRate, startingInterestIndex);
        if (err3 != Error.NO_ERROR) {
            return (err3, 0);
        }

        // Finally, truncate the interest index. This works only if interest index starts large enough
        // that is can be accurately represented with a whole number.
        return (Error.NO_ERROR, truncate(newInterestIndexExp));
    }

    /**
      * @dev Calculates a new balance based on a previous balance and a pair of interest indices
      *      This is defined as: `The user's last balance checkpoint is multiplied by the currentSupplyIndex
      *      value and divided by the user's checkpoint index value`
      *
      *      TODO: Is there a way to handle this that is less likely to overflow?
      */
    function calculateBalance(uint startingBalance, uint interestIndexStart, uint interestIndexEnd) pure internal returns (Error, uint) {
        if (startingBalance == 0) {
            // We are accumulating interest on any previous balance; if there's no previous balance, then there is
            // nothing to accumulate.
            return (Error.NO_ERROR, 0);
        }
        (Error err0, uint balanceTimesIndex) = mul(startingBalance, interestIndexEnd);
        if (err0 != Error.NO_ERROR) {
            return (err0, 0);
        }

        return div(balanceTimesIndex, interestIndexStart);
    }

    /**
      * @dev Gets the price for the amount specified of the given asset.
      */
    function getPriceForAssetAmount(address asset, uint assetAmount) internal view returns (Error, Exp memory)  {
        (Error err, Exp memory assetPrice) = fetchAssetPrice(asset);
        if (err != Error.NO_ERROR) {
            return (err, Exp({mantissa: 0}));
        }

        if (isZeroExp(assetPrice)) {
            return (Error.MISSING_ASSET_PRICE, Exp({mantissa: 0}));
        }

        return mulScalar(assetPrice, assetAmount); // assetAmountWei * oraclePrice = assetValueInEth
    }

    /**
      * @dev Gets the price for the amount specified of the given asset multiplied by the current
      *      collateral ratio (i.e., assetAmountWei * collateralRatio * oraclePrice = totalValueInEth).
      *      We will group this as `(oraclePrice * collateralRatio) * assetAmountWei`
      */
    function getPriceForAssetAmountMulCollatRatio(address asset, uint assetAmount) internal view returns (Error, Exp memory)  {
        Error err;
        Exp memory assetPrice;
        Exp memory scaledPrice;
        (err, assetPrice) = fetchAssetPrice(asset);
        if (err != Error.NO_ERROR) {
            return (err, Exp({mantissa: 0}));
        }

        if (isZeroExp(assetPrice)) {
            return (Error.MISSING_ASSET_PRICE, Exp({mantissa: 0}));
        }

        // Now, multiply the assetValue by the collateral ratio
        (err, scaledPrice) = mulExp(collateralRatio, assetPrice);
        if (err != Error.NO_ERROR) {
            return (err, Exp({mantissa: 0}));
        }

        // Get the price for the given asset amount
        return mulScalar(scaledPrice, assetAmount);
    }

    /**
      * @dev Calculates the origination fee added to a given borrowAmount
      *      This is simply `(1 + originationFee) * borrowAmount`
      *
      *      TODO: Track at what magnitude this fee rounds down to zero?
      */
    function calculateBorrowAmountWithFee(uint borrowAmount) view internal returns (Error, uint) {
        // When origination fee is zero, the amount with fee is simply equal to the amount
        if (isZeroExp(originationFee)) {
            return (Error.NO_ERROR, borrowAmount);
        }

        (Error err0, Exp memory originationFeeFactor) = addExp(originationFee, Exp({mantissa: mantissaOne}));
        if (err0 != Error.NO_ERROR) {
            return (err0, 0);
        }

        (Error err1, Exp memory borrowAmountWithFee) = mulScalar(originationFeeFactor, borrowAmount);
        if (err1 != Error.NO_ERROR) {
            return (err1, 0);
        }

        return (Error.NO_ERROR, truncate(borrowAmountWithFee));
    }

    /**
      * @dev fetches the price of asset from the PriceOracle and converts it to Exp
      * @param asset asset whose price should be fetched
      */
    function fetchAssetPrice(address asset) internal view returns (Error, Exp memory) {
        if (oracle == address(0)) {
            return (Error.ZERO_ORACLE_ADDRESS, Exp({mantissa: 0}));
        }

        PriceOracleInterface oracleInterface = PriceOracleInterface(oracle);
        uint priceMantissa = oracleInterface.assetPrices(asset);

        return (Error.NO_ERROR, Exp({mantissa: priceMantissa}));
    }

    /**
      * @notice Reads scaled price of specified asset from the price oracle
      * @dev Reads scaled price of specified asset from the price oracle.
      *      The plural name is to match a previous storage mapping that this function replaced.
      * @param asset Asset whose price should be retrieved
      * @return 0 on an error or missing price, the price scaled by 1e18 otherwise
      */
    function assetPrices(address asset) public view returns (uint) {
        (Error err, Exp memory result) = fetchAssetPrice(asset);
        if (err != Error.NO_ERROR) {
            return 0;
        }
        return result.mantissa;
    }

    /**
      * @dev Gets the amount of the specified asset given the specified Eth value
      *      ethValue / oraclePrice = assetAmountWei
      *      If there's no oraclePrice, this returns (Error.DIVISION_BY_ZERO, 0)
      */
    function getAssetAmountForValue(address asset, Exp ethValue) internal view returns (Error, uint) {
        Error err;
        Exp memory assetPrice;
        Exp memory assetAmount;

        (err, assetPrice) = fetchAssetPrice(asset);
        if (err != Error.NO_ERROR) {
            return (err, 0);
        }

        (err, assetAmount) = divExp(ethValue, assetPrice);
        if (err != Error.NO_ERROR) {
            return (err, 0);
        }

        return (Error.NO_ERROR, truncate(assetAmount));
    }

    /**
      * @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 = newPendingAdmin
        pendingAdmin = 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 = pendingAdmin
        // msg.sender can't be zero
        if (msg.sender != pendingAdmin) {
            return fail(Error.UNAUTHORIZED, FailureInfo.ACCEPT_ADMIN_PENDING_ADMIN_CHECK);
        }

        // Save current value for inclusion in log
        address oldAdmin = admin;
        // Store admin = pendingAdmin
        admin = pendingAdmin;
        // Clear the pending value
        pendingAdmin = 0;

        emit NewAdmin(oldAdmin, msg.sender);

        return uint(Error.NO_ERROR);
    }

    /**
      * @notice Set new oracle, who can set asset prices
      * @dev Admin function to change oracle
      * @param newOracle New oracle address
      * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
      */
    function _setOracle(address newOracle) public returns (uint) {
        // Check caller = admin
        if (msg.sender != admin) {
            return fail(Error.UNAUTHORIZED, FailureInfo.SET_ORACLE_OWNER_CHECK);
        }

        // Verify contract at newOracle address supports assetPrices call.
        // This will revert if it doesn't.
        PriceOracleInterface oracleInterface = PriceOracleInterface(newOracle);
        oracleInterface.assetPrices(address(0));

        address oldOracle = oracle;

        // Store oracle = newOracle
        oracle = newOracle;

        emit NewOracle(oldOracle, newOracle);

        return uint(Error.NO_ERROR);
    }

    /**
      * @notice set `paused` to the specified state
      * @dev Admin function to pause or resume the market
      * @param requestedState value to assign to `paused`
      * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
      */
    function _setPaused(bool requestedState) public returns (uint) {
        // Check caller = admin
        if (msg.sender != admin) {
            return fail(Error.UNAUTHORIZED, FailureInfo.SET_PAUSED_OWNER_CHECK);
        }

        paused = requestedState;
        emit SetPaused(requestedState);

        return uint(Error.NO_ERROR);
    }

    /**
      * @notice returns the liquidity for given account.
      *         a positive result indicates ability to borrow, whereas
      *         a negative result indicates a shortfall which may be liquidated
      * @dev returns account liquidity in terms of eth-wei value, scaled by 1e18
      *      note: this includes interest trued up on all balances
      * @param account the account to examine
      * @return signed integer in terms of eth-wei (negative indicates a shortfall)
      */
    function getAccountLiquidity(address account) public view returns (int) {
        (Error err, Exp memory accountLiquidity, Exp memory accountShortfall) = calculateAccountLiquidity(account);
        require(err == Error.NO_ERROR);

        if (isZeroExp(accountLiquidity)) {
            return -1 * int(truncate(accountShortfall));
        } else {
            return int(truncate(accountLiquidity));
        }
    }

    /**
      * @notice return supply balance with any accumulated interest for `asset` belonging to `account`
      * @dev returns supply balance with any accumulated interest for `asset` belonging to `account`
      * @param account the account to examine
      * @param asset the market asset whose supply balance belonging to `account` should be checked
      * @return uint supply balance on success, throws on failed assertion otherwise
      */
    function getSupplyBalance(address account, address asset) view public returns (uint) {
        Error err;
        uint newSupplyIndex;
        uint userSupplyCurrent;

        Market storage market = markets[asset];
        Balance storage supplyBalance = supplyBalances[account][asset];

        // Calculate the newSupplyIndex, needed to calculate user's supplyCurrent
        (err, newSupplyIndex) = calculateInterestIndex(market.supplyIndex, market.supplyRateMantissa, market.blockNumber, getBlockNumber());
        require(err == Error.NO_ERROR);

        // Use newSupplyIndex and stored principal to calculate the accumulated balance
        (err, userSupplyCurrent) = calculateBalance(supplyBalance.principal, supplyBalance.interestIndex, newSupplyIndex);
        require(err == Error.NO_ERROR);

        return userSupplyCurrent;
    }

    /**
      * @notice return borrow balance with any accumulated interest for `asset` belonging to `account`
      * @dev returns borrow balance with any accumulated interest for `asset` belonging to `account`
      * @param account the account to examine
      * @param asset the market asset whose borrow balance belonging to `account` should be checked
      * @return uint borrow balance on success, throws on failed assertion otherwise
      */
    function getBorrowBalance(address account, address asset) view public returns (uint) {
        Error err;
        uint newBorrowIndex;
        uint userBorrowCurrent;

        Market storage market = markets[asset];
        Balance storage borrowBalance = borrowBalances[account][asset];

        // Calculate the newBorrowIndex, needed to calculate user's borrowCurrent
        (err, newBorrowIndex) = calculateInterestIndex(market.borrowIndex, market.borrowRateMantissa, market.blockNumber, getBlockNumber());
        require(err == Error.NO_ERROR);

        // Use newBorrowIndex and stored principal to calculate the accumulated balance
        (err, userBorrowCurrent) = calculateBalance(borrowBalance.principal, borrowBalance.interestIndex, newBorrowIndex);
        require(err == Error.NO_ERROR);

        return userBorrowCurrent;
    }


    /**
      * @notice Supports a given market (asset) for use with Compound
      * @dev Admin function to add support for a market
      * @param asset Asset to support; MUST already have a non-zero price set
      * @param interestRateModel InterestRateModel to use for the asset
      * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
      */
    function _supportMarket(address asset, InterestRateModel interestRateModel) public returns (uint) {
        // Check caller = admin
        if (msg.sender != admin) {
            return fail(Error.UNAUTHORIZED, FailureInfo.SUPPORT_MARKET_OWNER_CHECK);
        }

        (Error err, Exp memory assetPrice) = fetchAssetPrice(asset);
        if (err != Error.NO_ERROR) {
            return fail(err, FailureInfo.SUPPORT_MARKET_FETCH_PRICE_FAILED);
        }

        if (isZeroExp(assetPrice)) {
            return fail(Error.ASSET_NOT_PRICED, FailureInfo.SUPPORT_MARKET_PRICE_CHECK);
        }

        // Set the interest rate model to `modelAddress`
        markets[asset].interestRateModel = interestRateModel;

        // Append asset to collateralAssets if not set
        addCollateralMarket(asset);

        // Set market isSupported to true
        markets[asset].isSupported = true;

        // Default supply and borrow index to 1e18
        if (markets[asset].supplyIndex == 0) {
            markets[asset].supplyIndex = initialInterestIndex;
        }

        if (markets[asset].borrowIndex == 0) {
            markets[asset].borrowIndex = initialInterestIndex;
        }

        emit SupportedMarket(asset, interestRateModel);

        return uint(Error.NO_ERROR);
    }

    /**
      * @notice Suspends a given *supported* market (asset) from use with Compound.
      *         Assets in this state do count for collateral, but users may only withdraw, payBorrow,
      *         and liquidate the asset. The liquidate function no longer checks collateralization.
      * @dev Admin function to suspend a market
      * @param asset Asset to suspend
      * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
      */
    function _suspendMarket(address asset) public returns (uint) {
        // Check caller = admin
        if (msg.sender != admin) {
            return fail(Error.UNAUTHORIZED, FailureInfo.SUSPEND_MARKET_OWNER_CHECK);
        }

        // If the market is not configured at all, we don't want to add any configuration for it.
        // If we find !markets[asset].isSupported then either the market is not configured at all, or it
        // has already been marked as unsupported. We can just return without doing anything.
        // Caller is responsible for knowing the difference between not-configured and already unsupported.
        if (!markets[asset].isSupported) {
            return uint(Error.NO_ERROR);
        }

        // If we get here, we know market is configured and is supported, so set isSupported to false
        markets[asset].isSupported = false;

        emit SuspendedMarket(asset);

        return uint(Error.NO_ERROR);
    }

    /**
      * @notice Sets the risk parameters: collateral ratio and liquidation discount
      * @dev Owner function to set the risk parameters
      * @param collateralRatioMantissa rational collateral ratio, scaled by 1e18. The de-scaled value must be >= 1.1
      * @param liquidationDiscountMantissa rational liquidation discount, scaled by 1e18. The de-scaled value must be <= 0.1 and must be less than (descaled collateral ratio minus 1)
      * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
      */
    function _setRiskParameters(uint collateralRatioMantissa, uint liquidationDiscountMantissa) public returns (uint) {
        // Check caller = admin
        if (msg.sender != admin) {
            return fail(Error.UNAUTHORIZED, FailureInfo.SET_RISK_PARAMETERS_OWNER_CHECK);
        }

        Exp memory newCollateralRatio = Exp({mantissa: collateralRatioMantissa});
        Exp memory newLiquidationDiscount = Exp({mantissa: liquidationDiscountMantissa});
        Exp memory minimumCollateralRatio = Exp({mantissa: minimumCollateralRatioMantissa});
        Exp memory maximumLiquidationDiscount = Exp({mantissa: maximumLiquidationDiscountMantissa});

        Error err;
        Exp memory newLiquidationDiscountPlusOne;

        // Make sure new collateral ratio value is not below minimum value
        if (lessThanExp(newCollateralRatio, minimumCollateralRatio)) {
            return fail(Error.INVALID_COLLATERAL_RATIO, FailureInfo.SET_RISK_PARAMETERS_VALIDATION);
        }

        // Make sure new liquidation discount does not exceed the maximum value, but reverse operands so we can use the
        // existing `lessThanExp` function rather than adding a `greaterThan` function to Exponential.
        if (lessThanExp(maximumLiquidationDiscount, newLiquidationDiscount)) {
            return fail(Error.INVALID_LIQUIDATION_DISCOUNT, FailureInfo.SET_RISK_PARAMETERS_VALIDATION);
        }

        // C = L+1 is not allowed because it would cause division by zero error in `calculateDiscountedRepayToEvenAmount`
        // C < L+1 is not allowed because it would cause integer underflow error in `calculateDiscountedRepayToEvenAmount`
        (err, newLiquidationDiscountPlusOne) = addExp(newLiquidationDiscount, Exp({mantissa: mantissaOne}));
        assert(err == Error.NO_ERROR); // We already validated that newLiquidationDiscount does not approach overflow size

        if (lessThanOrEqualExp(newCollateralRatio, newLiquidationDiscountPlusOne)) {
            return fail(Error.INVALID_COMBINED_RISK_PARAMETERS, FailureInfo.SET_RISK_PARAMETERS_VALIDATION);
        }

        // Save current values so we can emit them in log.
        Exp memory oldCollateralRatio = collateralRatio;
        Exp memory oldLiquidationDiscount = liquidationDiscount;

        // Store new values
        collateralRatio = newCollateralRatio;
        liquidationDiscount = newLiquidationDiscount;

        emit NewRiskParameters(oldCollateralRatio.mantissa, collateralRatioMantissa, oldLiquidationDiscount.mantissa, liquidationDiscountMantissa);

        return uint(Error.NO_ERROR);
    }

    /**
      * @notice Sets the origination fee (which is a multiplier on new borrows)
      * @dev Owner function to set the origination fee
      * @param originationFeeMantissa rational collateral ratio, scaled by 1e18. The de-scaled value must be >= 1.1
      * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
      */
    function _setOriginationFee(uint originationFeeMantissa) public returns (uint) {
        // Check caller = admin
        if (msg.sender != admin) {
            return fail(Error.UNAUTHORIZED, FailureInfo.SET_ORIGINATION_FEE_OWNER_CHECK);
        }

        // Save current value so we can emit it in log.
        Exp memory oldOriginationFee = originationFee;

        originationFee = Exp({mantissa: originationFeeMantissa});

        emit NewOriginationFee(oldOriginationFee.mantissa, originationFeeMantissa);

        return uint(Error.NO_ERROR);
    }

    /**
      * @notice Sets the interest rate model for a given market
      * @dev Admin function to set interest rate model
      * @param asset Asset to support
      * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
      */
    function _setMarketInterestRateModel(address asset, InterestRateModel interestRateModel) public returns (uint) {
        // Check caller = admin
        if (msg.sender != admin) {
            return fail(Error.UNAUTHORIZED, FailureInfo.SET_MARKET_INTEREST_RATE_MODEL_OWNER_CHECK);
        }

        // Set the interest rate model to `modelAddress`
        markets[asset].interestRateModel = interestRateModel;

        emit SetMarketInterestRateModel(asset, interestRateModel);

        return uint(Error.NO_ERROR);
    }

    /**
      * @notice withdraws `amount` of `asset` from equity for asset, as long as `amount` <= equity. Equity= cash - (supply + borrows)
      * @dev withdraws `amount` of `asset` from equity  for asset, enforcing amount <= cash - (supply + borrows)
      * @param asset asset whose equity should be withdrawn
      * @param amount amount of equity to withdraw; must not exceed equity available
      * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
      */
    function _withdrawEquity(address asset, uint amount) public returns (uint) {
        // Check caller = admin
        if (msg.sender != admin) {
            return fail(Error.UNAUTHORIZED, FailureInfo.EQUITY_WITHDRAWAL_MODEL_OWNER_CHECK);
        }

        // Check that amount is less than cash (from ERC-20 of self) plus borrows minus supply.
        uint cash = getCash(asset);
        (Error err0, uint equity) = addThenSub(cash, markets[asset].totalBorrows, markets[asset].totalSupply);
        if (err0 != Error.NO_ERROR) {
            return fail(err0, FailureInfo.EQUITY_WITHDRAWAL_CALCULATE_EQUITY);
        }

        if (amount > equity) {
            return fail(Error.EQUITY_INSUFFICIENT_BALANCE, FailureInfo.EQUITY_WITHDRAWAL_AMOUNT_VALIDATION);
        }

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

        // We ERC-20 transfer the asset out of the protocol to the admin
        Error err2 = doTransferOut(asset, admin, amount);
        if (err2 != Error.NO_ERROR) {
            // This is safe since it's our first interaction and it didn't do anything if it failed
            return fail(err2, FailureInfo.EQUITY_WITHDRAWAL_TRANSFER_OUT_FAILED);
        }

        //event EquityWithdrawn(address asset, uint equityAvailableBefore, uint amount, address owner)
        emit EquityWithdrawn(asset, equity, amount, admin);

        return uint(Error.NO_ERROR); // success
    }

    /**
      * The `SupplyLocalVars` struct is used internally in the `supply` function.
      *
      * To avoid solidity limits on the number of local variables we:
      * 1. Use a struct to hold local computation localResults
      * 2. Re-use a single variable for Error returns. (This is required with 1 because variable binding to tuple localResults
      *    requires either both to be declared inline or both to be previously declared.
      * 3. Re-use a boolean error-like return variable.
      */
    struct SupplyLocalVars {
        uint startingBalance;
        uint newSupplyIndex;
        uint userSupplyCurrent;
        uint userSupplyUpdated;
        uint newTotalSupply;
        uint currentCash;
        uint updatedCash;
        uint newSupplyRateMantissa;
        uint newBorrowIndex;
        uint newBorrowRateMantissa;
    }


    /**
      * @notice supply `amount` of `asset` (which must be supported) to `msg.sender` in the protocol
      * @dev add amount of supported asset to msg.sender's account
      * @param asset The market asset to supply
      * @param amount The amount to supply
      * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
      */
    function supply(address asset, uint amount) public returns (uint) {
        if (paused) {
            return fail(Error.CONTRACT_PAUSED, FailureInfo.SUPPLY_CONTRACT_PAUSED);
        }

        Market storage market = markets[asset];
        Balance storage balance = supplyBalances[msg.sender][asset];

        SupplyLocalVars memory localResults; // Holds all our uint calculation results
        Error err; // Re-used for every function call that includes an Error in its return value(s).
        uint rateCalculationResultCode; // Used for 2 interest rate calculation calls

        // Fail if market not supported
        if (!market.isSupported) {
            return fail(Error.MARKET_NOT_SUPPORTED, FailureInfo.SUPPLY_MARKET_NOT_SUPPORTED);
        }

        // Fail gracefully if asset is not approved or has insufficient balance
        err = checkTransferIn(asset, msg.sender, amount);
        if (err != Error.NO_ERROR) {
            return fail(err, FailureInfo.SUPPLY_TRANSFER_IN_NOT_POSSIBLE);
        }

        // We calculate the newSupplyIndex, user's supplyCurrent and supplyUpdated for the asset
        (err, localResults.newSupplyIndex) = calculateInterestIndex(market.supplyIndex, market.supplyRateMantissa, market.blockNumber, getBlockNumber());
        if (err != Error.NO_ERROR) {
            return fail(err, FailureInfo.SUPPLY_NEW_SUPPLY_INDEX_CALCULATION_FAILED);
        }

        (err, localResults.userSupplyCurrent) = calculateBalance(balance.principal, balance.interestIndex, localResults.newSupplyIndex);
        if (err != Error.NO_ERROR) {
            return fail(err, FailureInfo.SUPPLY_ACCUMULATED_BALANCE_CALCULATION_FAILED);
        }

        (err, localResults.userSupplyUpdated) = add(localResults.userSupplyCurrent, amount);
        if (err != Error.NO_ERROR) {
            return fail(err, FailureInfo.SUPPLY_NEW_TOTAL_BALANCE_CALCULATION_FAILED);
        }

        // We calculate the protocol's totalSupply by subtracting the user's prior checkpointed balance, adding user's updated supply
        (err, localResults.newTotalSupply) = addThenSub(market.totalSupply, localResults.userSupplyUpdated, balance.principal);
        if (err != Error.NO_ERROR) {
            return fail(err, FailureInfo.SUPPLY_NEW_TOTAL_SUPPLY_CALCULATION_FAILED);
        }

        // We need to calculate what the updated cash will be after we transfer in from user
        localResults.currentCash = getCash(asset);

        (err, localResults.updatedCash) = add(localResults.currentCash, amount);
        if (err != Error.NO_ERROR) {
            return fail(err, FailureInfo.SUPPLY_NEW_TOTAL_CASH_CALCULATION_FAILED);
        }

        // The utilization rate has changed! We calculate a new supply index and borrow index for the asset, and save it.
        (rateCalculationResultCode, localResults.newSupplyRateMantissa) = market.interestRateModel.getSupplyRate(asset, localResults.updatedCash, market.totalBorrows);
        if (rateCalculationResultCode != 0) {
            return failOpaque(FailureInfo.SUPPLY_NEW_SUPPLY_RATE_CALCULATION_FAILED, rateCalculationResultCode);
        }

        // We calculate the newBorrowIndex (we already had newSupplyIndex)
        (err, localResults.newBorrowIndex) = calculateInterestIndex(market.borrowIndex, market.borrowRateMantissa, market.blockNumber, getBlockNumber());
        if (err != Error.NO_ERROR) {
            return fail(err, FailureInfo.SUPPLY_NEW_BORROW_INDEX_CALCULATION_FAILED);
        }

        (rateCalculationResultCode, localResults.newBorrowRateMantissa) = market.interestRateModel.getBorrowRate(asset, localResults.updatedCash, market.totalBorrows);
        if (rateCalculationResultCode != 0) {
            return failOpaque(FailureInfo.SUPPLY_NEW_BORROW_RATE_CALCULATION_FAILED, rateCalculationResultCode);
        }

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

        // We ERC-20 transfer the asset into the protocol (note: pre-conditions already checked above)
        err = doTransferIn(asset, msg.sender, amount);
        if (err != Error.NO_ERROR) {
            // This is safe since it's our first interaction and it didn't do anything if it failed
            return fail(err, FailureInfo.SUPPLY_TRANSFER_IN_FAILED);
        }

        // Save market updates
        market.blockNumber = getBlockNumber();
        market.totalSupply =  localResults.newTotalSupply;
        market.supplyRateMantissa = localResults.newSupplyRateMantissa;
        market.supplyIndex = localResults.newSupplyIndex;
        market.borrowRateMantissa = localResults.newBorrowRateMantissa;
        market.borrowIndex = localResults.newBorrowIndex;

        // Save user updates
        localResults.startingBalance = balance.principal; // save for use in `SupplyReceived` event
        balance.principal = localResults.userSupplyUpdated;
        balance.interestIndex = localResults.newSupplyIndex;

        emit SupplyReceived(msg.sender, asset, amount, localResults.startingBalance, localResults.userSupplyUpdated);

        return uint(Error.NO_ERROR); // success
    }

    struct WithdrawLocalVars {
        uint withdrawAmount;
        uint startingBalance;
        uint newSupplyIndex;
        uint userSupplyCurrent;
        uint userSupplyUpdated;
        uint newTotalSupply;
        uint currentCash;
        uint updatedCash;
        uint newSupplyRateMantissa;
        uint newBorrowIndex;
        uint newBorrowRateMantissa;

        Exp accountLiquidity;
        Exp accountShortfall;
        Exp ethValueOfWithdrawal;
        uint withdrawCapacity;
    }


    /**
      * @notice withdraw `amount` of `asset` from sender's account to sender's address
      * @dev withdraw `amount` of `asset` from msg.sender's account to msg.sender
      * @param asset The market asset to withdraw
      * @param requestedAmount The amount to withdraw (or -1 for max)
      * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
      */
    function withdraw(address asset, uint requestedAmount) public returns (uint) {
        if (paused) {
            return fail(Error.CONTRACT_PAUSED, FailureInfo.WITHDRAW_CONTRACT_PAUSED);
        }

        Market storage market = markets[asset];
        Balance storage supplyBalance = supplyBalances[msg.sender][asset];

        WithdrawLocalVars memory localResults; // Holds all our calculation results
        Error err; // Re-used for every function call that includes an Error in its return value(s).
        uint rateCalculationResultCode; // Used for 2 interest rate calculation calls

        // We calculate the user's accountLiquidity and accountShortfall.
        (err, localResults.accountLiquidity, localResults.accountShortfall) = calculateAccountLiquidity(msg.sender);
        if (err != Error.NO_ERROR) {
            return fail(err, FailureInfo.WITHDRAW_ACCOUNT_LIQUIDITY_CALCULATION_FAILED);
        }

        // We calculate the newSupplyIndex, user's supplyCurrent and supplyUpdated for the asset
        (err, localResults.newSupplyIndex) = calculateInterestIndex(market.supplyIndex, market.supplyRateMantissa, market.blockNumber, getBlockNumber());
        if (err != Error.NO_ERROR) {
            return fail(err, FailureInfo.WITHDRAW_NEW_SUPPLY_INDEX_CALCULATION_FAILED);
        }

        (err, localResults.userSupplyCurrent) = calculateBalance(supplyBalance.principal, supplyBalance.interestIndex, localResults.newSupplyIndex);
        if (err != Error.NO_ERROR) {
            return fail(err, FailureInfo.WITHDRAW_ACCUMULATED_BALANCE_CALCULATION_FAILED);
        }

        // If the user specifies -1 amount to withdraw ("max"),  withdrawAmount => the lesser of withdrawCapacity and supplyCurrent
        if (requestedAmount == uint(-1)) {
            (err, localResults.withdrawCapacity) = getAssetAmountForValue(asset, localResults.accountLiquidity);
            if (err != Error.NO_ERROR) {
                return fail(err, FailureInfo.WITHDRAW_CAPACITY_CALCULATION_FAILED);
            }
            localResults.withdrawAmount = min(localResults.withdrawCapacity, localResults.userSupplyCurrent);
        } else {
            localResults.withdrawAmount = requestedAmount;
        }

        // From here on we should NOT use requestedAmount.

        // Fail gracefully if protocol has insufficient cash
        // If protocol has insufficient cash, the sub operation will underflow.
        localResults.currentCash = getCash(asset);
        (err, localResults.updatedCash) = sub(localResults.currentCash, localResults.withdrawAmount);
        if (err != Error.NO_ERROR) {
            return fail(Error.TOKEN_INSUFFICIENT_CASH, FailureInfo.WITHDRAW_TRANSFER_OUT_NOT_POSSIBLE);
        }

        // We check that the amount is less than or equal to supplyCurrent
        // If amount is greater than supplyCurrent, this will fail with Error.INTEGER_UNDERFLOW
        (err, localResults.userSupplyUpdated) = sub(localResults.userSupplyCurrent, localResults.withdrawAmount);
        if (err != Error.NO_ERROR) {
            return fail(Error.INSUFFICIENT_BALANCE, FailureInfo.WITHDRAW_NEW_TOTAL_BALANCE_CALCULATION_FAILED);
        }

        // Fail if customer already has a shortfall
        if (!isZeroExp(localResults.accountShortfall)) {
            return fail(Error.INSUFFICIENT_LIQUIDITY, FailureInfo.WITHDRAW_ACCOUNT_SHORTFALL_PRESENT);
        }

        // We want to know the user's withdrawCapacity, denominated in the asset
        // Customer's withdrawCapacity of asset is (accountLiquidity in Eth)/ (price of asset in Eth)
        // Equivalently, we calculate the eth value of the withdrawal amount and compare it directly to the accountLiquidity in Eth
        (err, localResults.ethValueOfWithdrawal) = getPriceForAssetAmount(asset, localResults.withdrawAmount); // amount * oraclePrice = ethValueOfWithdrawal
        if (err != Error.NO_ERROR) {
            return fail(err, FailureInfo.WITHDRAW_AMOUNT_VALUE_CALCULATION_FAILED);
        }

        // We check that the amount is less than withdrawCapacity (here), and less than or equal to supplyCurrent (below)
        if (lessThanExp(localResults.accountLiquidity, localResults.ethValueOfWithdrawal) ) {
            return fail(Error.INSUFFICIENT_LIQUIDITY, FailureInfo.WITHDRAW_AMOUNT_LIQUIDITY_SHORTFALL);
        }

        // We calculate the protocol's totalSupply by subtracting the user's prior checkpointed balance, adding user's updated supply.
        // Note that, even though the customer is withdrawing, if they've accumulated a lot of interest since their last
        // action, the updated balance *could* be higher than the prior checkpointed balance.
        (err, localResults.newTotalSupply) = addThenSub(market.totalSupply, localResults.userSupplyUpdated, supplyBalance.principal);
        if (err != Error.NO_ERROR) {
            return fail(err, FailureInfo.WITHDRAW_NEW_TOTAL_SUPPLY_CALCULATION_FAILED);
        }

        // The utilization rate has changed! We calculate a new supply index and borrow index for the asset, and save it.
        (rateCalculationResultCode, localResults.newSupplyRateMantissa) = market.interestRateModel.getSupplyRate(asset, localResults.updatedCash, market.totalBorrows);
        if (rateCalculationResultCode != 0) {
            return failOpaque(FailureInfo.WITHDRAW_NEW_SUPPLY_RATE_CALCULATION_FAILED, rateCalculationResultCode);
        }

        // We calculate the newBorrowIndex
        (err, localResults.newBorrowIndex) = calculateInterestIndex(market.borrowIndex, market.borrowRateMantissa, market.blockNumber, getBlockNumber());
        if (err != Error.NO_ERROR) {
            return fail(err, FailureInfo.WITHDRAW_NEW_BORROW_INDEX_CALCULATION_FAILED);
        }

        (rateCalculationResultCode, localResults.newBorrowRateMantissa) = market.interestRateModel.getBorrowRate(asset, localResults.updatedCash, market.totalBorrows);
        if (rateCalculationResultCode != 0) {
            return failOpaque(FailureInfo.WITHDRAW_NEW_BORROW_RATE_CALCULATION_FAILED, rateCalculationResultCode);
        }

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

        // We ERC-20 transfer the asset into the protocol (note: pre-conditions already checked above)
        err = doTransferOut(asset, msg.sender, localResults.withdrawAmount);
        if (err != Error.NO_ERROR) {
            // This is safe since it's our first interaction and it didn't do anything if it failed
            return fail(err, FailureInfo.WITHDRAW_TRANSFER_OUT_FAILED);
        }

        // Save market updates
        market.blockNumber = getBlockNumber();
        market.totalSupply =  localResults.newTotalSupply;
        market.supplyRateMantissa = localResults.newSupplyRateMantissa;
        market.supplyIndex = localResults.newSupplyIndex;
        market.borrowRateMantissa = localResults.newBorrowRateMantissa;
        market.borrowIndex = localResults.newBorrowIndex;

        // Save user updates
        localResults.startingBalance = supplyBalance.principal; // save for use in `SupplyWithdrawn` event
        supplyBalance.principal = localResults.userSupplyUpdated;
        supplyBalance.interestIndex = localResults.newSupplyIndex;

        emit SupplyWithdrawn(msg.sender, asset, localResults.withdrawAmount, localResults.startingBalance, localResults.userSupplyUpdated);

        return uint(Error.NO_ERROR); // success
    }

    struct AccountValueLocalVars {
        address assetAddress;
        uint collateralMarketsLength;

        uint newSupplyIndex;
        uint userSupplyCurrent;
        Exp supplyTotalValue;
        Exp sumSupplies;

        uint newBorrowIndex;
        uint userBorrowCurrent;
        Exp borrowTotalValue;
        Exp sumBorrows;
    }

    /**
      * @dev Gets the user's account liquidity and account shortfall balances. This includes
      *      any accumulated interest thus far but does NOT actually update anything in
      *      storage, it simply calculates the account liquidity and shortfall with liquidity being
      *      returned as the first Exp, ie (Error, accountLiquidity, accountShortfall).
      */
    function calculateAccountLiquidity(address userAddress) internal view returns (Error, Exp memory, Exp memory) {
        Error err;
        uint sumSupplyValuesMantissa;
        uint sumBorrowValuesMantissa;
        (err, sumSupplyValuesMantissa, sumBorrowValuesMantissa) = calculateAccountValuesInternal(userAddress);
        if (err != Error.NO_ERROR) {
            return(err, Exp({mantissa: 0}), Exp({mantissa: 0}));
        }

        Exp memory result;
        
        Exp memory sumSupplyValuesFinal = Exp({mantissa: sumSupplyValuesMantissa});
        Exp memory sumBorrowValuesFinal; // need to apply collateral ratio

        (err, sumBorrowValuesFinal) = mulExp(collateralRatio, Exp({mantissa: sumBorrowValuesMantissa}));
        if (err != Error.NO_ERROR) {
            return (err, Exp({mantissa: 0}), Exp({mantissa: 0}));
        }

        // if sumSupplies < sumBorrows, then the user is under collateralized and has account shortfall.
        // else the user meets the collateral ratio and has account liquidity.
        if (lessThanExp(sumSupplyValuesFinal, sumBorrowValuesFinal)) {
            // accountShortfall = borrows - supplies
            (err, result) = subExp(sumBorrowValuesFinal, sumSupplyValuesFinal);
            assert(err == Error.NO_ERROR); // Note: we have checked that sumBorrows is greater than sumSupplies directly above, therefore `subExp` cannot fail.

            return (Error.NO_ERROR, Exp({mantissa: 0}), result);
        } else {
            // accountLiquidity = supplies - borrows
            (err, result) = subExp(sumSupplyValuesFinal, sumBorrowValuesFinal);
            assert(err == Error.NO_ERROR); // Note: we have checked that sumSupplies is greater than sumBorrows directly above, therefore `subExp` cannot fail.

            return (Error.NO_ERROR, result, Exp({mantissa: 0}));
        }
    }

    /**
      * @notice Gets the ETH values of the user's accumulated supply and borrow balances, scaled by 10e18.
      *         This includes any accumulated interest thus far but does NOT actually update anything in
      *         storage
      * @dev Gets ETH values of accumulated supply and borrow balances
      * @param userAddress account for which to sum values
      * @return (error code, sum ETH value of supplies scaled by 10e18, sum ETH value of borrows scaled by 10e18)
      * TODO: Possibly should add a Min(500, collateralMarkets.length) for extra safety
      * TODO: To help save gas we could think about using the current Market.interestIndex
      *       accumulate interest rather than calculating it
      */
    function calculateAccountValuesInternal(address userAddress) internal view returns (Error, uint, uint) {
        
        /** By definition, all collateralMarkets are those that contribute to the user's
          * liquidity and shortfall so we need only loop through those markets.
          * To handle avoiding intermediate negative results, we will sum all the user's
          * supply balances and borrow balances (with collateral ratio) separately and then
          * subtract the sums at the end.
          */

        AccountValueLocalVars memory localResults; // Re-used for all intermediate results
        localResults.sumSupplies = Exp({mantissa: 0});
        localResults.sumBorrows = Exp({mantissa: 0});
        Error err; // Re-used for all intermediate errors
        localResults.collateralMarketsLength = collateralMarkets.length;

        for (uint i = 0; i < localResults.collateralMarketsLength; i++) {
            localResults.assetAddress = collateralMarkets[i];
            Market storage currentMarket = markets[localResults.assetAddress];
            Balance storage supplyBalance = supplyBalances[userAddress][localResults.assetAddress];
            Balance storage borrowBalance = borrowBalances[userAddress][localResults.assetAddress];

            if (supplyBalance.principal > 0) {
                // We calculate the newSupplyIndex and user’s supplyCurrent (includes interest)
                (err, localResults.newSupplyIndex) = calculateInterestIndex(currentMarket.supplyIndex, currentMarket.supplyRateMantissa, currentMarket.blockNumber, getBlockNumber());
                if (err != Error.NO_ERROR) {
                    return (err, 0, 0);
                }

                (err, localResults.userSupplyCurrent) = calculateBalance(supplyBalance.principal, supplyBalance.interestIndex, localResults.newSupplyIndex);
                if (err != Error.NO_ERROR) {
                    return (err, 0, 0);
                }

                // We have the user's supply balance with interest so let's multiply by the asset price to get the total value
                (err, localResults.supplyTotalValue) = getPriceForAssetAmount(localResults.assetAddress, localResults.userSupplyCurrent); // supplyCurrent * oraclePrice = supplyValueInEth
                if (err != Error.NO_ERROR) {
                    return (err, 0, 0);
                }

                // Add this to our running sum of supplies
                (err, localResults.sumSupplies) = addExp(localResults.supplyTotalValue, localResults.sumSupplies);
                if (err != Error.NO_ERROR) {
                    return (err, 0, 0);
                }
            }

            if (borrowBalance.principal > 0) {
                // We perform a similar actions to get the user's borrow balance
                (err, localResults.newBorrowIndex) = calculateInterestIndex(currentMarket.borrowIndex, currentMarket.borrowRateMantissa, currentMarket.blockNumber, getBlockNumber());
                if (err != Error.NO_ERROR) {
                    return (err, 0, 0);
                }

                (err, localResults.userBorrowCurrent) = calculateBalance(borrowBalance.principal, borrowBalance.interestIndex, localResults.newBorrowIndex);
                if (err != Error.NO_ERROR) {
                    return (err, 0, 0);
                }

                // In the case of borrow, we multiply the borrow value by the collateral ratio
                (err, localResults.borrowTotalValue) = getPriceForAssetAmount(localResults.assetAddress, localResults.userBorrowCurrent); // ( borrowCurrent* oraclePrice * collateralRatio) = borrowTotalValueInEth
                if (err != Error.NO_ERROR) {
                    return (err, 0, 0);
                }

                // Add this to our running sum of borrows
                (err, localResults.sumBorrows) = addExp(localResults.borrowTotalValue, localResults.sumBorrows);
                if (err != Error.NO_ERROR) {
                    return (err, 0, 0);
                }
            }
        }
        
        return (Error.NO_ERROR, localResults.sumSupplies.mantissa, localResults.sumBorrows.mantissa);
    }

    /**
      * @notice Gets the ETH values of the user's accumulated supply and borrow balances, scaled by 10e18.
      *         This includes any accumulated interest thus far but does NOT actually update anything in
      *         storage
      * @dev Gets ETH values of accumulated supply and borrow balances
      * @param userAddress account for which to sum values
      * @return (uint 0=success; otherwise a failure (see ErrorReporter.sol for details),
      *          sum ETH value of supplies scaled by 10e18,
      *          sum ETH value of borrows scaled by 10e18)
      */
    function calculateAccountValues(address userAddress) public view returns (uint, uint, uint) {
        (Error err, uint supplyValue, uint borrowValue) = calculateAccountValuesInternal(userAddress);
        if (err != Error.NO_ERROR) {

            return (uint(err), 0, 0);
        }

        return (0, supplyValue, borrowValue);
    }

    struct PayBorrowLocalVars {
        uint newBorrowIndex;
        uint userBorrowCurrent;
        uint repayAmount;

        uint userBorrowUpdated;
        uint newTotalBorrows;
        uint currentCash;
        uint updatedCash;

        uint newSupplyIndex;
        uint newSupplyRateMantissa;
        uint newBorrowRateMantissa;

        uint startingBalance;
    }

    /**
      * @notice Users repay borrowed assets from their own address to the protocol.
      * @param asset The market asset to repay
      * @param amount The amount to repay (or -1 for max)
      * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
      */
    function repayBorrow(address asset, uint amount) public returns (uint) {
        if (paused) {
            return fail(Error.CONTRACT_PAUSED, FailureInfo.REPAY_BORROW_CONTRACT_PAUSED);
        }
        PayBorrowLocalVars memory localResults;
        Market storage market = markets[asset];
        Balance storage borrowBalance = borrowBalances[msg.sender][asset];
        Error err;
        uint rateCalculationResultCode;

        // We calculate the newBorrowIndex, user's borrowCurrent and borrowUpdated for the asset
        (err, localResults.newBorrowIndex) = calculateInterestIndex(market.borrowIndex, market.borrowRateMantissa, market.blockNumber, getBlockNumber());
        if (err != Error.NO_ERROR) {
            return fail(err, FailureInfo.REPAY_BORROW_NEW_BORROW_INDEX_CALCULATION_FAILED);
        }

        (err, localResults.userBorrowCurrent) = calculateBalance(borrowBalance.principal, borrowBalance.interestIndex, localResults.newBorrowIndex);
        if (err != Error.NO_ERROR) {
            return fail(err, FailureInfo.REPAY_BORROW_ACCUMULATED_BALANCE_CALCULATION_FAILED);
        }

        // If the user specifies -1 amount to repay (“max”), repayAmount =>
        // the lesser of the senders ERC-20 balance and borrowCurrent
        if (amount == uint(-1)) {
            localResults.repayAmount = min(getBalanceOf(asset, msg.sender), localResults.userBorrowCurrent);
        } else {
            localResults.repayAmount = amount;
        }

        // Subtract the `repayAmount` from the `userBorrowCurrent` to get `userBorrowUpdated`
        // Note: this checks that repayAmount is less than borrowCurrent
        (err, localResults.userBorrowUpdated) = sub(localResults.userBorrowCurrent, localResults.repayAmount);
        if (err != Error.NO_ERROR) {
            return fail(err, FailureInfo.REPAY_BORROW_NEW_TOTAL_BALANCE_CALCULATION_FAILED);
        }

        // Fail gracefully if asset is not approved or has insufficient balance
        // Note: this checks that repayAmount is less than or equal to their ERC-20 balance
        err = checkTransferIn(asset, msg.sender, localResults.repayAmount);
        if (err != Error.NO_ERROR) {
            return fail(err, FailureInfo.REPAY_BORROW_TRANSFER_IN_NOT_POSSIBLE);
        }

        // We calculate the protocol's totalBorrow by subtracting the user's prior checkpointed balance, adding user's updated borrow
        // Note that, even though the customer is paying some of their borrow, if they've accumulated a lot of interest since their last
        // action, the updated balance *could* be higher than the prior checkpointed balance.
        (err, localResults.newTotalBorrows) = addThenSub(market.totalBorrows, localResults.userBorrowUpdated, borrowBalance.principal);
        if (err != Error.NO_ERROR) {
            return fail(err, FailureInfo.REPAY_BORROW_NEW_TOTAL_BORROW_CALCULATION_FAILED);
        }

        // We need to calculate what the updated cash will be after we transfer in from user
        localResults.currentCash = getCash(asset);

        (err, localResults.updatedCash) = add(localResults.currentCash, localResults.repayAmount);
        if (err != Error.NO_ERROR) {
            return fail(err, FailureInfo.REPAY_BORROW_NEW_TOTAL_CASH_CALCULATION_FAILED);
        }

        // The utilization rate has changed! We calculate a new supply index and borrow index for the asset, and save it.

        // We calculate the newSupplyIndex, but we have newBorrowIndex already
        (err, localResults.newSupplyIndex) = calculateInterestIndex(market.supplyIndex, market.supplyRateMantissa, market.blockNumber, getBlockNumber());
        if (err != Error.NO_ERROR) {
            return fail(err, FailureInfo.REPAY_BORROW_NEW_SUPPLY_INDEX_CALCULATION_FAILED);
        }

        (rateCalculationResultCode, localResults.newSupplyRateMantissa) = market.interestRateModel.getSupplyRate(asset, localResults.updatedCash, localResults.newTotalBorrows);
        if (rateCalculationResultCode != 0) {
            return failOpaque(FailureInfo.REPAY_BORROW_NEW_SUPPLY_RATE_CALCULATION_FAILED, rateCalculationResultCode);
        }

        (rateCalculationResultCode, localResults.newBorrowRateMantissa) = market.interestRateModel.getBorrowRate(asset, localResults.updatedCash, localResults.newTotalBorrows);
        if (rateCalculationResultCode != 0) {
            return failOpaque(FailureInfo.REPAY_BORROW_NEW_BORROW_RATE_CALCULATION_FAILED, rateCalculationResultCode);
        }

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

        // We ERC-20 transfer the asset into the protocol (note: pre-conditions already checked above)
        err = doTransferIn(asset, msg.sender, localResults.repayAmount);
        if (err != Error.NO_ERROR) {
            // This is safe since it's our first interaction and it didn't do anything if it failed
            return fail(err, FailureInfo.REPAY_BORROW_TRANSFER_IN_FAILED);
        }

        // Save market updates
        market.blockNumber = getBlockNumber();
        market.totalBorrows =  localResults.newTotalBorrows;
        market.supplyRateMantissa = localResults.newSupplyRateMantissa;
        market.supplyIndex = localResults.newSupplyIndex;
        market.borrowRateMantissa = localResults.newBorrowRateMantissa;
        market.borrowIndex = localResults.newBorrowIndex;

        // Save user updates
        localResults.startingBalance = borrowBalance.principal; // save for use in `BorrowRepaid` event
        borrowBalance.principal = localResults.userBorrowUpdated;
        borrowBalance.interestIndex = localResults.newBorrowIndex;

        emit BorrowRepaid(msg.sender, asset, localResults.repayAmount, localResults.startingBalance, localResults.userBorrowUpdated);

        return uint(Error.NO_ERROR); // success
    }

    struct BorrowLocalVars {
        uint newBorrowIndex;
        uint userBorrowCurrent;
        uint borrowAmountWithFee;

        uint userBorrowUpdated;
        uint newTotalBorrows;
        uint currentCash;
        uint updatedCash;

        uint newSupplyIndex;
        uint newSupplyRateMantissa;
        uint newBorrowRateMantissa;

        uint startingBalance;

        Exp accountLiquidity;
        Exp accountShortfall;
        Exp ethValueOfBorrowAmountWithFee;
    }

    struct LiquidateLocalVars {
        // we need these addresses in the struct for use with `emitLiquidationEvent` to avoid `CompilerError: Stack too deep, try removing local variables.`
        address targetAccount;
        address assetBorrow;
        address liquidator;
        address assetCollateral;

        // borrow index and supply index are global to the asset, not specific to the user
        uint newBorrowIndex_UnderwaterAsset;
        uint newSupplyIndex_UnderwaterAsset;
        uint newBorrowIndex_CollateralAsset;
        uint newSupplyIndex_CollateralAsset;

        // the target borrow's full balance with accumulated interest
        uint currentBorrowBalance_TargetUnderwaterAsset;
        // currentBorrowBalance_TargetUnderwaterAsset minus whatever gets repaid as part of the liquidation
        uint updatedBorrowBalance_TargetUnderwaterAsset;

        uint newTotalBorrows_ProtocolUnderwaterAsset;

        uint startingBorrowBalance_TargetUnderwaterAsset;
        uint startingSupplyBalance_TargetCollateralAsset;
        uint startingSupplyBalance_LiquidatorCollateralAsset;

        uint currentSupplyBalance_TargetCollateralAsset;
        uint updatedSupplyBalance_TargetCollateralAsset;

        // If liquidator already has a balance of collateralAsset, we will accumulate
        // interest on it before transferring seized collateral from the borrower.
        uint currentSupplyBalance_LiquidatorCollateralAsset;
        // This will be the liquidator's accumulated balance of collateral asset before the liquidation (if any)
        // plus the amount seized from the borrower.
        uint updatedSupplyBalance_LiquidatorCollateralAsset;

        uint newTotalSupply_ProtocolCollateralAsset;
        uint currentCash_ProtocolUnderwaterAsset;
        uint updatedCash_ProtocolUnderwaterAsset;

        // cash does not change for collateral asset

        uint newSupplyRateMantissa_ProtocolUnderwaterAsset;
        uint newBorrowRateMantissa_ProtocolUnderwaterAsset;

        // Why no variables for the interest rates for the collateral asset?
        // We don't need to calculate new rates for the collateral asset since neither cash nor borrows change

        uint discountedRepayToEvenAmount;

        //[supplyCurrent / (1 + liquidationDiscount)] * (Oracle price for the collateral / Oracle price for the borrow) (discountedBorrowDenominatedCollateral)
        uint discountedBorrowDenominatedCollateral;

        uint maxCloseableBorrowAmount_TargetUnderwaterAsset;
        uint closeBorrowAmount_TargetUnderwaterAsset;
        uint seizeSupplyAmount_TargetCollateralAsset;

        Exp collateralPrice;
        Exp underwaterAssetPrice;
    }

    /**
      * @notice users repay all or some of an underwater borrow and receive collateral
      * @param targetAccount The account whose borrow should be liquidated
      * @param assetBorrow The market asset to repay
      * @param assetCollateral The borrower's market asset to receive in exchange
      * @param requestedAmountClose The amount to repay (or -1 for max)
      * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
      */
    function liquidateBorrow(address targetAccount, address assetBorrow, address assetCollateral, uint requestedAmountClose) public returns (uint) {
        if (paused) {
            return fail(Error.CONTRACT_PAUSED, FailureInfo.LIQUIDATE_CONTRACT_PAUSED);
        }
        LiquidateLocalVars memory localResults;
        // Copy these addresses into the struct for use with `emitLiquidationEvent`
        // We'll use localResults.liquidator inside this function for clarity vs using msg.sender.
        localResults.targetAccount = targetAccount;
        localResults.assetBorrow = assetBorrow;
        localResults.liquidator = msg.sender;
        localResults.assetCollateral = assetCollateral;

        Market storage borrowMarket = markets[assetBorrow];
        Market storage collateralMarket = markets[assetCollateral];
        Balance storage borrowBalance_TargeUnderwaterAsset = borrowBalances[targetAccount][assetBorrow];
        Balance storage supplyBalance_TargetCollateralAsset = supplyBalances[targetAccount][assetCollateral];

        // Liquidator might already hold some of the collateral asset
        Balance storage supplyBalance_LiquidatorCollateralAsset = supplyBalances[localResults.liquidator][assetCollateral];

        uint rateCalculationResultCode; // Used for multiple interest rate calculation calls
        Error err; // re-used for all intermediate errors

        (err, localResults.collateralPrice) = fetchAssetPrice(assetCollateral);
        if(err != Error.NO_ERROR) {
            return fail(err, FailureInfo.LIQUIDATE_FETCH_ASSET_PRICE_FAILED);
        }

        (err, localResults.underwaterAssetPrice) = fetchAssetPrice(assetBorrow);
        // If the price oracle is not set, then we would have failed on the first call to fetchAssetPrice
        assert(err == Error.NO_ERROR);

        // We calculate newBorrowIndex_UnderwaterAsset and then use it to help calculate currentBorrowBalance_TargetUnderwaterAsset
        (err, localResults.newBorrowIndex_UnderwaterAsset) = calculateInterestIndex(borrowMarket.borrowIndex, borrowMarket.borrowRateMantissa, borrowMarket.blockNumber, getBlockNumber());
        if (err != Error.NO_ERROR) {
            return fail(err, FailureInfo.LIQUIDATE_NEW_BORROW_INDEX_CALCULATION_FAILED_BORROWED_ASSET);
        }

        (err, localResults.currentBorrowBalance_TargetUnderwaterAsset) = calculateBalance(borrowBalance_TargeUnderwaterAsset.principal, borrowBalance_TargeUnderwaterAsset.interestIndex, localResults.newBorrowIndex_UnderwaterAsset);
        if (err != Error.NO_ERROR) {
            return fail(err, FailureInfo.LIQUIDATE_ACCUMULATED_BORROW_BALANCE_CALCULATION_FAILED);
        }

        // We calculate newSupplyIndex_CollateralAsset and then use it to help calculate currentSupplyBalance_TargetCollateralAsset
        (err, localResults.newSupplyIndex_CollateralAsset) = calculateInterestIndex(collateralMarket.supplyIndex, collateralMarket.supplyRateMantissa, collateralMarket.blockNumber, getBlockNumber());
        if (err != Error.NO_ERROR) {
            return fail(err, FailureInfo.LIQUIDATE_NEW_SUPPLY_INDEX_CALCULATION_FAILED_COLLATERAL_ASSET);
        }

        (err, localResults.currentSupplyBalance_TargetCollateralAsset) = calculateBalance(supplyBalance_TargetCollateralAsset.principal, supplyBalance_TargetCollateralAsset.interestIndex, localResults.newSupplyIndex_CollateralAsset);
        if (err != Error.NO_ERROR) {
            return fail(err, FailureInfo.LIQUIDATE_ACCUMULATED_SUPPLY_BALANCE_CALCULATION_FAILED_BORROWER_COLLATERAL_ASSET);
        }

        // Liquidator may or may not already have some collateral asset.
        // If they do, we need to accumulate interest on it before adding the seized collateral to it.
        // We re-use newSupplyIndex_CollateralAsset calculated above to help calculate currentSupplyBalance_LiquidatorCollateralAsset
        (err, localResults.currentSupplyBalance_LiquidatorCollateralAsset) = calculateBalance(supplyBalance_LiquidatorCollateralAsset.principal, supplyBalance_LiquidatorCollateralAsset.interestIndex, localResults.newSupplyIndex_CollateralAsset);
        if (err != Error.NO_ERROR) {
            return fail(err, FailureInfo.LIQUIDATE_ACCUMULATED_SUPPLY_BALANCE_CALCULATION_FAILED_LIQUIDATOR_COLLATERAL_ASSET);
        }

        // We update the protocol's totalSupply for assetCollateral in 2 steps, first by adding target user's accumulated
        // interest and then by adding the liquidator's accumulated interest.

        // Step 1 of 2: We add the target user's supplyCurrent and subtract their checkpointedBalance
        // (which has the desired effect of adding accrued interest from the target user)
        (err, localResults.newTotalSupply_ProtocolCollateralAsset) = addThenSub(collateralMarket.totalSupply, localResults.currentSupplyBalance_TargetCollateralAsset, supplyBalance_TargetCollateralAsset.principal);
        if (err != Error.NO_ERROR) {
            return fail(err, FailureInfo.LIQUIDATE_NEW_TOTAL_SUPPLY_BALANCE_CALCULATION_FAILED_BORROWER_COLLATERAL_ASSET);
        }

        // Step 2 of 2: We add the liquidator's supplyCurrent of collateral asset and subtract their checkpointedBalance
        // (which has the desired effect of adding accrued interest from the calling user)
        (err, localResults.newTotalSupply_ProtocolCollateralAsset) = addThenSub(localResults.newTotalSupply_ProtocolCollateralAsset, localResults.currentSupplyBalance_LiquidatorCollateralAsset, supplyBalance_LiquidatorCollateralAsset.principal);
        if (err != Error.NO_ERROR) {
            return fail(err, FailureInfo.LIQUIDATE_NEW_TOTAL_SUPPLY_BALANCE_CALCULATION_FAILED_LIQUIDATOR_COLLATERAL_ASSET);
        }

        // We calculate maxCloseableBorrowAmount_TargetUnderwaterAsset, the amount of borrow that can be closed from the target user
        // This is equal to the lesser of
        // 1. borrowCurrent; (already calculated)
        // 2. ONLY IF MARKET SUPPORTED: discountedRepayToEvenAmount:
        // discountedRepayToEvenAmount=
        //      shortfall / [Oracle price for the borrow * (collateralRatio - liquidationDiscount - 1)]
        // 3. discountedBorrowDenominatedCollateral
        //      [supplyCurrent / (1 + liquidationDiscount)] * (Oracle price for the collateral / Oracle price for the borrow)

        // Here we calculate item 3. discountedBorrowDenominatedCollateral =
        // [supplyCurrent / (1 + liquidationDiscount)] * (Oracle price for the collateral / Oracle price for the borrow)
        (err, localResults.discountedBorrowDenominatedCollateral) =
        calculateDiscountedBorrowDenominatedCollateral(localResults.underwaterAssetPrice, localResults.collateralPrice, localResults.currentSupplyBalance_TargetCollateralAsset);
        if (err != Error.NO_ERROR) {
            return fail(err, FailureInfo.LIQUIDATE_BORROW_DENOMINATED_COLLATERAL_CALCULATION_FAILED);
        }

        if (borrowMarket.isSupported) {
            // Market is supported, so we calculate item 2 from above.
            (err, localResults.discountedRepayToEvenAmount) =
            calculateDiscountedRepayToEvenAmount(targetAccount, localResults.underwaterAssetPrice);
            if (err != Error.NO_ERROR) {
                return fail(err, FailureInfo.LIQUIDATE_DISCOUNTED_REPAY_TO_EVEN_AMOUNT_CALCULATION_FAILED);
            }

            // We need to do a two-step min to select from all 3 values
            // min1&3 = min(item 1, item 3)
            localResults.maxCloseableBorrowAmount_TargetUnderwaterAsset = min(localResults.currentBorrowBalance_TargetUnderwaterAsset, localResults.discountedBorrowDenominatedCollateral);

            // min1&3&2 = min(min1&3, 2)
            localResults.maxCloseableBorrowAmount_TargetUnderwaterAsset = min(localResults.maxCloseableBorrowAmount_TargetUnderwaterAsset, localResults.discountedRepayToEvenAmount);
        } else {
            // Market is not supported, so we don't need to calculate item 2.
            localResults.maxCloseableBorrowAmount_TargetUnderwaterAsset = min(localResults.currentBorrowBalance_TargetUnderwaterAsset, localResults.discountedBorrowDenominatedCollateral);
        }

        // If liquidateBorrowAmount = -1, then closeBorrowAmount_TargetUnderwaterAsset = maxCloseableBorrowAmount_TargetUnderwaterAsset
        if (requestedAmountClose == uint(-1)) {
            localResults.closeBorrowAmount_TargetUnderwaterAsset = localResults.maxCloseableBorrowAmount_TargetUnderwaterAsset;
        } else {
            localResults.closeBorrowAmount_TargetUnderwaterAsset = requestedAmountClose;
        }

        // From here on, no more use of `requestedAmountClose`

        // Verify closeBorrowAmount_TargetUnderwaterAsset <= maxCloseableBorrowAmount_TargetUnderwaterAsset
        if (localResults.closeBorrowAmount_TargetUnderwaterAsset > localResults.maxCloseableBorrowAmount_TargetUnderwaterAsset) {
            return fail(Error.INVALID_CLOSE_AMOUNT_REQUESTED, FailureInfo.LIQUIDATE_CLOSE_AMOUNT_TOO_HIGH);
        }

        // seizeSupplyAmount_TargetCollateralAsset = closeBorrowAmount_TargetUnderwaterAsset * priceBorrow/priceCollateral *(1+liquidationDiscount)
        (err, localResults.seizeSupplyAmount_TargetCollateralAsset) = calculateAmountSeize(localResults.underwaterAssetPrice, localResults.collateralPrice, localResults.closeBorrowAmount_TargetUnderwaterAsset);
        if (err != Error.NO_ERROR) {
            return fail(err, FailureInfo.LIQUIDATE_AMOUNT_SEIZE_CALCULATION_FAILED);
        }

        // We are going to ERC-20 transfer closeBorrowAmount_TargetUnderwaterAsset of assetBorrow into Compound
        // Fail gracefully if asset is not approved or has insufficient balance
        err = checkTransferIn(assetBorrow, localResults.liquidator, localResults.closeBorrowAmount_TargetUnderwaterAsset);
        if (err != Error.NO_ERROR) {
            return fail(err, FailureInfo.LIQUIDATE_TRANSFER_IN_NOT_POSSIBLE);
        }

        // We are going to repay the target user's borrow using the calling user's funds
        // We update the protocol's totalBorrow for assetBorrow, by subtracting the target user's prior checkpointed balance,
        // adding borrowCurrent, and subtracting closeBorrowAmount_TargetUnderwaterAsset.

        // Subtract the `closeBorrowAmount_TargetUnderwaterAsset` from the `currentBorrowBalance_TargetUnderwaterAsset` to get `updatedBorrowBalance_TargetUnderwaterAsset`
        (err, localResults.updatedBorrowBalance_TargetUnderwaterAsset) = sub(localResults.currentBorrowBalance_TargetUnderwaterAsset, localResults.closeBorrowAmount_TargetUnderwaterAsset);
        // We have ensured above that localResults.closeBorrowAmount_TargetUnderwaterAsset <= localResults.currentBorrowBalance_TargetUnderwaterAsset, so the sub can't underflow
        assert(err == Error.NO_ERROR);

        // We calculate the protocol's totalBorrow for assetBorrow by subtracting the user's prior checkpointed balance, adding user's updated borrow
        // Note that, even though the liquidator is paying some of the borrow, if the borrow has accumulated a lot of interest since the last
        // action, the updated balance *could* be higher than the prior checkpointed balance.
        (err, localResults.newTotalBorrows_ProtocolUnderwaterAsset) = addThenSub(borrowMarket.totalBorrows, localResults.updatedBorrowBalance_TargetUnderwaterAsset, borrowBalance_TargeUnderwaterAsset.principal);
        if (err != Error.NO_ERROR) {
            return fail(err, FailureInfo.LIQUIDATE_NEW_TOTAL_BORROW_CALCULATION_FAILED_BORROWED_ASSET);
        }

        // We need to calculate what the updated cash will be after we transfer in from liquidator
        localResults.currentCash_ProtocolUnderwaterAsset = getCash(assetBorrow);
        (err, localResults.updatedCash_ProtocolUnderwaterAsset) = add(localResults.currentCash_ProtocolUnderwaterAsset, localResults.closeBorrowAmount_TargetUnderwaterAsset);
        if (err != Error.NO_ERROR) {
            return fail(err, FailureInfo.LIQUIDATE_NEW_TOTAL_CASH_CALCULATION_FAILED_BORROWED_ASSET);
        }

        // The utilization rate has changed! We calculate a new supply index, borrow index, supply rate, and borrow rate for assetBorrow
        // (Please note that we don't need to do the same thing for assetCollateral because neither cash nor borrows of assetCollateral happen in this process.)

        // We calculate the newSupplyIndex_UnderwaterAsset, but we already have newBorrowIndex_UnderwaterAsset so don't recalculate it.
        (err, localResults.newSupplyIndex_UnderwaterAsset) = calculateInterestIndex(borrowMarket.supplyIndex, borrowMarket.supplyRateMantissa, borrowMarket.blockNumber, getBlockNumber());
        if (err != Error.NO_ERROR) {
            return fail(err, FailureInfo.LIQUIDATE_NEW_SUPPLY_INDEX_CALCULATION_FAILED_BORROWED_ASSET);
        }

        (rateCalculationResultCode, localResults.newSupplyRateMantissa_ProtocolUnderwaterAsset) = borrowMarket.interestRateModel.getSupplyRate(assetBorrow, localResults.updatedCash_ProtocolUnderwaterAsset, localResults.newTotalBorrows_ProtocolUnderwaterAsset);
        if (rateCalculationResultCode != 0) {
            return failOpaque(FailureInfo.LIQUIDATE_NEW_SUPPLY_RATE_CALCULATION_FAILED_BORROWED_ASSET, rateCalculationResultCode);
        }

        (rateCalculationResultCode, localResults.newBorrowRateMantissa_ProtocolUnderwaterAsset) = borrowMarket.interestRateModel.getBorrowRate(assetBorrow, localResults.updatedCash_ProtocolUnderwaterAsset, localResults.newTotalBorrows_ProtocolUnderwaterAsset);
        if (rateCalculationResultCode != 0) {
            return failOpaque(FailureInfo.LIQUIDATE_NEW_BORROW_RATE_CALCULATION_FAILED_BORROWED_ASSET, rateCalculationResultCode);
        }

        // Now we look at collateral. We calculated target user's accumulated supply balance and the supply index above.
        // Now we need to calculate the borrow index.
        // We don't need to calculate new rates for the collateral asset because we have not changed utilization:
        //  - accumulating interest on the target user's collateral does not change cash or borrows
        //  - transferring seized amount of collateral internally from the target user to the liquidator does not change cash or borrows.
        (err, localResults.newBorrowIndex_CollateralAsset) = calculateInterestIndex(collateralMarket.borrowIndex, collateralMarket.borrowRateMantissa, collateralMarket.blockNumber, getBlockNumber());
        if (err != Error.NO_ERROR) {
            return fail(err, FailureInfo.LIQUIDATE_NEW_BORROW_INDEX_CALCULATION_FAILED_COLLATERAL_ASSET);
        }

        // We checkpoint the target user's assetCollateral supply balance, supplyCurrent - seizeSupplyAmount_TargetCollateralAsset at the updated index
        (err, localResults.updatedSupplyBalance_TargetCollateralAsset) = sub(localResults.currentSupplyBalance_TargetCollateralAsset, localResults.seizeSupplyAmount_TargetCollateralAsset);
        // The sub won't underflow because because seizeSupplyAmount_TargetCollateralAsset <= target user's collateral balance
        // maxCloseableBorrowAmount_TargetUnderwaterAsset is limited by the discounted borrow denominated collateral. That limits closeBorrowAmount_TargetUnderwaterAsset
        // which in turn limits seizeSupplyAmount_TargetCollateralAsset.
        assert (err == Error.NO_ERROR);

        // We checkpoint the liquidating user's assetCollateral supply balance, supplyCurrent + seizeSupplyAmount_TargetCollateralAsset at the updated index
        (err, localResults.updatedSupplyBalance_LiquidatorCollateralAsset) = add(localResults.currentSupplyBalance_LiquidatorCollateralAsset, localResults.seizeSupplyAmount_TargetCollateralAsset);
        // We can't overflow here because if this would overflow, then we would have already overflowed above and failed
        // with LIQUIDATE_NEW_TOTAL_SUPPLY_BALANCE_CALCULATION_FAILED_LIQUIDATOR_COLLATERAL_ASSET
        assert (err == Error.NO_ERROR);

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

        // We ERC-20 transfer the asset into the protocol (note: pre-conditions already checked above)
        err = doTransferIn(assetBorrow, localResults.liquidator, localResults.closeBorrowAmount_TargetUnderwaterAsset);
        if (err != Error.NO_ERROR) {
            // This is safe since it's our first interaction and it didn't do anything if it failed
            return fail(err, FailureInfo.LIQUIDATE_TRANSFER_IN_FAILED);
        }

        // Save borrow market updates
        borrowMarket.blockNumber = getBlockNumber();
        borrowMarket.totalBorrows = localResults.newTotalBorrows_ProtocolUnderwaterAsset;
        // borrowMarket.totalSupply does not need to be updated
        borrowMarket.supplyRateMantissa = localResults.newSupplyRateMantissa_ProtocolUnderwaterAsset;
        borrowMarket.supplyIndex = localResults.newSupplyIndex_UnderwaterAsset;
        borrowMarket.borrowRateMantissa = localResults.newBorrowRateMantissa_ProtocolUnderwaterAsset;
        borrowMarket.borrowIndex = localResults.newBorrowIndex_UnderwaterAsset;

        // Save collateral market updates
        // We didn't calculate new rates for collateralMarket (because neither cash nor borrows changed), just new indexes and total supply.
        collateralMarket.blockNumber = getBlockNumber();
        collateralMarket.totalSupply = localResults.newTotalSupply_ProtocolCollateralAsset;
        collateralMarket.supplyIndex = localResults.newSupplyIndex_CollateralAsset;
        collateralMarket.borrowIndex = localResults.newBorrowIndex_CollateralAsset;

        // Save user updates

        localResults.startingBorrowBalance_TargetUnderwaterAsset = borrowBalance_TargeUnderwaterAsset.principal; // save for use in event
        borrowBalance_TargeUnderwaterAsset.principal = localResults.updatedBorrowBalance_TargetUnderwaterAsset;
        borrowBalance_TargeUnderwaterAsset.interestIndex = localResults.newBorrowIndex_UnderwaterAsset;

        localResults.startingSupplyBalance_TargetCollateralAsset = supplyBalance_TargetCollateralAsset.principal; // save for use in event
        supplyBalance_TargetCollateralAsset.principal = localResults.updatedSupplyBalance_TargetCollateralAsset;
        supplyBalance_TargetCollateralAsset.interestIndex = localResults.newSupplyIndex_CollateralAsset;

        localResults.startingSupplyBalance_LiquidatorCollateralAsset = supplyBalance_LiquidatorCollateralAsset.principal; // save for use in event
        supplyBalance_LiquidatorCollateralAsset.principal = localResults.updatedSupplyBalance_LiquidatorCollateralAsset;
        supplyBalance_LiquidatorCollateralAsset.interestIndex = localResults.newSupplyIndex_CollateralAsset;

        emitLiquidationEvent(localResults);

        return uint(Error.NO_ERROR); // success
    }

    /**
      * @dev this function exists to avoid error `CompilerError: Stack too deep, try removing local variables.` in `liquidateBorrow`
      */
    function emitLiquidationEvent(LiquidateLocalVars memory localResults) internal {
        // event BorrowLiquidated(address targetAccount, address assetBorrow, uint borrowBalanceBefore, uint borrowBalanceAccumulated, uint amountRepaid, uint borrowBalanceAfter,
        // address liquidator, address assetCollateral, uint collateralBalanceBefore, uint collateralBalanceAccumulated, uint amountSeized, uint collateralBalanceAfter);
        emit BorrowLiquidated(localResults.targetAccount,
            localResults.assetBorrow,
            localResults.startingBorrowBalance_TargetUnderwaterAsset,
            localResults.currentBorrowBalance_TargetUnderwaterAsset,
            localResults.closeBorrowAmount_TargetUnderwaterAsset,
            localResults.updatedBorrowBalance_TargetUnderwaterAsset,
            localResults.liquidator,
            localResults.assetCollateral,
            localResults.startingSupplyBalance_TargetCollateralAsset,
            localResults.currentSupplyBalance_TargetCollateralAsset,
            localResults.seizeSupplyAmount_TargetCollateralAsset,
            localResults.updatedSupplyBalance_TargetCollateralAsset);
    }

    /**
      * @dev This should ONLY be called if market is supported. It returns shortfall / [Oracle price for the borrow * (collateralRatio - liquidationDiscount - 1)]
      *      If the market isn't supported, we support liquidation of asset regardless of shortfall because we want borrows of the unsupported asset to be closed.
      *      Note that if collateralRatio = liquidationDiscount + 1, then the denominator will be zero and the function will fail with DIVISION_BY_ZERO.
      **/
    function calculateDiscountedRepayToEvenAmount(address targetAccount, Exp memory underwaterAssetPrice) internal view returns (Error, uint) {
        Error err;
        Exp memory _accountLiquidity; // unused return value from calculateAccountLiquidity
        Exp memory accountShortfall_TargetUser;
        Exp memory collateralRatioMinusLiquidationDiscount; // collateralRatio - liquidationDiscount
        Exp memory discountedCollateralRatioMinusOne; // collateralRatioMinusLiquidationDiscount - 1, aka collateralRatio - liquidationDiscount - 1
        Exp memory discountedPrice_UnderwaterAsset;
        Exp memory rawResult;

        // we calculate the target user's shortfall, denominated in Ether, that the user is below the collateral ratio
        (err, _accountLiquidity, accountShortfall_TargetUser) = calculateAccountLiquidity(targetAccount);
        if (err != Error.NO_ERROR) {
            return (err, 0);
        }

        (err, collateralRatioMinusLiquidationDiscount) = subExp(collateralRatio, liquidationDiscount);
        if (err != Error.NO_ERROR) {
            return (err, 0);
        }

        (err, discountedCollateralRatioMinusOne) = subExp(collateralRatioMinusLiquidationDiscount, Exp({mantissa: mantissaOne}));
        if (err != Error.NO_ERROR) {
            return (err, 0);
        }

        (err, discountedPrice_UnderwaterAsset) = mulExp(underwaterAssetPrice, discountedCollateralRatioMinusOne);
        // calculateAccountLiquidity multiplies underwaterAssetPrice by collateralRatio
        // discountedCollateralRatioMinusOne < collateralRatio
        // so if underwaterAssetPrice * collateralRatio did not overflow then
        // underwaterAssetPrice * discountedCollateralRatioMinusOne can't overflow either
        assert(err == Error.NO_ERROR);

        (err, rawResult) = divExp(accountShortfall_TargetUser, discountedPrice_UnderwaterAsset);
        // It's theoretically possible an asset could have such a low price that it truncates to zero when discounted.
        if (err != Error.NO_ERROR) {
            return (err, 0);
        }

        return (Error.NO_ERROR, truncate(rawResult));
    }

    /**
      * @dev discountedBorrowDenominatedCollateral = [supplyCurrent / (1 + liquidationDiscount)] * (Oracle price for the collateral / Oracle price for the borrow)
      */
    function calculateDiscountedBorrowDenominatedCollateral(Exp memory underwaterAssetPrice, Exp memory collateralPrice, uint supplyCurrent_TargetCollateralAsset) view internal returns (Error, uint) {
        // To avoid rounding issues, we re-order and group the operations so we do 1 division and only at the end
        // [supplyCurrent * (Oracle price for the collateral)] / [ (1 + liquidationDiscount) * (Oracle price for the borrow) ]
        Error err;
        Exp memory onePlusLiquidationDiscount; // (1 + liquidationDiscount)
        Exp memory supplyCurrentTimesOracleCollateral; // supplyCurrent * Oracle price for the collateral
        Exp memory onePlusLiquidationDiscountTimesOracleBorrow; // (1 + liquidationDiscount) * Oracle price for the borrow
        Exp memory rawResult;

        (err, onePlusLiquidationDiscount) = addExp(Exp({mantissa: mantissaOne}), liquidationDiscount);
        if (err != Error.NO_ERROR) {
            return (err, 0);
        }

        (err, supplyCurrentTimesOracleCollateral) = mulScalar(collateralPrice, supplyCurrent_TargetCollateralAsset);
        if (err != Error.NO_ERROR) {
            return (err, 0);
        }

        (err, onePlusLiquidationDiscountTimesOracleBorrow) = mulExp(onePlusLiquidationDiscount, underwaterAssetPrice);
        if (err != Error.NO_ERROR) {
            return (err, 0);
        }

        (err, rawResult) = divExp(supplyCurrentTimesOracleCollateral, onePlusLiquidationDiscountTimesOracleBorrow);
        if (err != Error.NO_ERROR) {
            return (err, 0);
        }

        return (Error.NO_ERROR, truncate(rawResult));
    }


    /**
      * @dev returns closeBorrowAmount_TargetUnderwaterAsset * (1+liquidationDiscount) * priceBorrow/priceCollateral
      **/
    function calculateAmountSeize(Exp memory underwaterAssetPrice, Exp memory collateralPrice, uint closeBorrowAmount_TargetUnderwaterAsset) internal view returns (Error, uint) {
        // To avoid rounding issues, we re-order and group the operations to move the division to the end, rather than just taking the ratio of the 2 prices:
        // underwaterAssetPrice * (1+liquidationDiscount) *closeBorrowAmount_TargetUnderwaterAsset) / collateralPrice

        // re-used for all intermediate errors
        Error err;

        // (1+liquidationDiscount)
        Exp memory liquidationMultiplier;

        // assetPrice-of-underwaterAsset * (1+liquidationDiscount)
        Exp memory priceUnderwaterAssetTimesLiquidationMultiplier;

        // priceUnderwaterAssetTimesLiquidationMultiplier * closeBorrowAmount_TargetUnderwaterAsset
        // or, expanded:
        // underwaterAssetPrice * (1+liquidationDiscount) * closeBorrowAmount_TargetUnderwaterAsset
        Exp memory finalNumerator;

        // finalNumerator / priceCollateral
        Exp memory rawResult;

        (err, liquidationMultiplier) = addExp(Exp({mantissa: mantissaOne}), liquidationDiscount);
        // liquidation discount will be enforced < 1, so 1 + liquidationDiscount can't overflow.
        assert(err == Error.NO_ERROR);

        (err, priceUnderwaterAssetTimesLiquidationMultiplier) = mulExp(underwaterAssetPrice, liquidationMultiplier);
        if (err != Error.NO_ERROR) {
            return (err, 0);
        }

        (err, finalNumerator) = mulScalar(priceUnderwaterAssetTimesLiquidationMultiplier, closeBorrowAmount_TargetUnderwaterAsset);
        if (err != Error.NO_ERROR) {
            return (err, 0);
        }

        (err, rawResult) = divExp(finalNumerator, collateralPrice);
        if (err != Error.NO_ERROR) {
            return (err, 0);
        }

        return (Error.NO_ERROR, truncate(rawResult));
    }


    /**
      * @notice Users borrow assets from the protocol to their own address
      * @param asset The market asset to borrow
      * @param amount The amount to borrow
      * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
      */
    function borrow(address asset, uint amount) public returns (uint) {
        if (paused) {
            return fail(Error.CONTRACT_PAUSED, FailureInfo.BORROW_CONTRACT_PAUSED);
        }
        BorrowLocalVars memory localResults;
        Market storage market = markets[asset];
        Balance storage borrowBalance = borrowBalances[msg.sender][asset];

        Error err;
        uint rateCalculationResultCode;

        // Fail if market not supported
        if (!market.isSupported) {
            return fail(Error.MARKET_NOT_SUPPORTED, FailureInfo.BORROW_MARKET_NOT_SUPPORTED);
        }

        // We calculate the newBorrowIndex, user's borrowCurrent and borrowUpdated for the asset
        (err, localResults.newBorrowIndex) = calculateInterestIndex(market.borrowIndex, market.borrowRateMantissa, market.blockNumber, getBlockNumber());
        if (err != Error.NO_ERROR) {
            return fail(err, FailureInfo.BORROW_NEW_BORROW_INDEX_CALCULATION_FAILED);
        }

        (err, localResults.userBorrowCurrent) = calculateBalance(borrowBalance.principal, borrowBalance.interestIndex, localResults.newBorrowIndex);
        if (err != Error.NO_ERROR) {
            return fail(err, FailureInfo.BORROW_ACCUMULATED_BALANCE_CALCULATION_FAILED);
        }

        // Calculate origination fee.
        (err, localResults.borrowAmountWithFee) = calculateBorrowAmountWithFee(amount);
        if (err != Error.NO_ERROR) {
            return fail(err, FailureInfo.BORROW_ORIGINATION_FEE_CALCULATION_FAILED);
        }

        // Add the `borrowAmountWithFee` to the `userBorrowCurrent` to get `userBorrowUpdated`
        (err, localResults.userBorrowUpdated) = add(localResults.userBorrowCurrent, localResults.borrowAmountWithFee);
        if (err != Error.NO_ERROR) {
            return fail(err, FailureInfo.BORROW_NEW_TOTAL_BALANCE_CALCULATION_FAILED);
        }

        // We calculate the protocol's totalBorrow by subtracting the user's prior checkpointed balance, adding user's updated borrow with fee
        (err, localResults.newTotalBorrows) = addThenSub(market.totalBorrows, localResults.userBorrowUpdated, borrowBalance.principal);
        if (err != Error.NO_ERROR) {
            return fail(err, FailureInfo.BORROW_NEW_TOTAL_BORROW_CALCULATION_FAILED);
        }

        // Check customer liquidity
        (err, localResults.accountLiquidity, localResults.accountShortfall) = calculateAccountLiquidity(msg.sender);
        if (err != Error.NO_ERROR) {
            return fail(err, FailureInfo.BORROW_ACCOUNT_LIQUIDITY_CALCULATION_FAILED);
        }

        // Fail if customer already has a shortfall
        if (!isZeroExp(localResults.accountShortfall)) {
            return fail(Error.INSUFFICIENT_LIQUIDITY, FailureInfo.BORROW_ACCOUNT_SHORTFALL_PRESENT);
        }

        // Would the customer have a shortfall after this borrow (including origination fee)?
        // We calculate the eth-equivalent value of (borrow amount + fee) of asset and fail if it exceeds accountLiquidity.
        // This implements: `[(collateralRatio*oraclea*borrowAmount)*(1+borrowFee)] > accountLiquidity`
        (err, localResults.ethValueOfBorrowAmountWithFee) = getPriceForAssetAmountMulCollatRatio(asset, localResults.borrowAmountWithFee);
        if (err != Error.NO_ERROR) {
            return fail(err, FailureInfo.BORROW_AMOUNT_VALUE_CALCULATION_FAILED);
        }
        if (lessThanExp(localResults.accountLiquidity, localResults.ethValueOfBorrowAmountWithFee)) {
            return fail(Error.INSUFFICIENT_LIQUIDITY, FailureInfo.BORROW_AMOUNT_LIQUIDITY_SHORTFALL);
        }

        // Fail gracefully if protocol has insufficient cash
        localResults.currentCash = getCash(asset);
        // We need to calculate what the updated cash will be after we transfer out to the user
        (err, localResults.updatedCash) = sub(localResults.currentCash, amount);
        if (err != Error.NO_ERROR) {
            // Note: we ignore error here and call this token insufficient cash
            return fail(Error.TOKEN_INSUFFICIENT_CASH, FailureInfo.BORROW_NEW_TOTAL_CASH_CALCULATION_FAILED);
        }

        // The utilization rate has changed! We calculate a new supply index and borrow index for the asset, and save it.

        // We calculate the newSupplyIndex, but we have newBorrowIndex already
        (err, localResults.newSupplyIndex) = calculateInterestIndex(market.supplyIndex, market.supplyRateMantissa, market.blockNumber, getBlockNumber());
        if (err != Error.NO_ERROR) {
            return fail(err, FailureInfo.BORROW_NEW_SUPPLY_INDEX_CALCULATION_FAILED);
        }

        (rateCalculationResultCode, localResults.newSupplyRateMantissa) = market.interestRateModel.getSupplyRate(asset, localResults.updatedCash, localResults.newTotalBorrows);
        if (rateCalculationResultCode != 0) {
            return failOpaque(FailureInfo.BORROW_NEW_SUPPLY_RATE_CALCULATION_FAILED, rateCalculationResultCode);
        }

        (rateCalculationResultCode, localResults.newBorrowRateMantissa) = market.interestRateModel.getBorrowRate(asset, localResults.updatedCash, localResults.newTotalBorrows);
        if (rateCalculationResultCode != 0) {
            return failOpaque(FailureInfo.BORROW_NEW_BORROW_RATE_CALCULATION_FAILED, rateCalculationResultCode);
        }

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

        // We ERC-20 transfer the asset into the protocol (note: pre-conditions already checked above)
        err = doTransferOut(asset, msg.sender, amount);
        if (err != Error.NO_ERROR) {
            // This is safe since it's our first interaction and it didn't do anything if it failed
            return fail(err, FailureInfo.BORROW_TRANSFER_OUT_FAILED);
        }

        // Save market updates
        market.blockNumber = getBlockNumber();
        market.totalBorrows =  localResults.newTotalBorrows;
        market.supplyRateMantissa = localResults.newSupplyRateMantissa;
        market.supplyIndex = localResults.newSupplyIndex;
        market.borrowRateMantissa = localResults.newBorrowRateMantissa;
        market.borrowIndex = localResults.newBorrowIndex;

        // Save user updates
        localResults.startingBalance = borrowBalance.principal; // save for use in `BorrowTaken` event
        borrowBalance.principal = localResults.userBorrowUpdated;
        borrowBalance.interestIndex = localResults.newBorrowIndex;

        emit BorrowTaken(msg.sender, asset, amount, localResults.startingBalance, localResults.borrowAmountWithFee, localResults.userBorrowUpdated);

        return uint(Error.NO_ERROR); // success
    }
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[{"name":"account","type":"address"},{"name":"asset","type":"address"}],"name":"getBorrowBalance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"originationFeeMantissa","type":"uint256"}],"name":"_setOriginationFee","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"requestedState","type":"bool"}],"name":"_setPaused","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":"newOracle","type":"address"}],"name":"_setOracle","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"asset","type":"address"},{"name":"amount","type":"uint256"}],"name":"_withdrawEquity","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"asset","type":"address"},{"name":"amount","type":"uint256"}],"name":"borrow","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"paused","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"asset","type":"address"},{"name":"interestRateModel","type":"address"}],"name":"_setMarketInterestRateModel","outputs":[{"name":"","type":"uint256"}],"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":"account","type":"address"}],"name":"getAccountLiquidity","outputs":[{"name":"","type":"int256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getCollateralMarketsLength","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":"liquidationDiscount","outputs":[{"name":"mantissa","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"markets","outputs":[{"name":"isSupported","type":"bool"},{"name":"blockNumber","type":"uint256"},{"name":"interestRateModel","type":"address"},{"name":"totalSupply","type":"uint256"},{"name":"supplyRateMantissa","type":"uint256"},{"name":"supplyIndex","type":"uint256"},{"name":"totalBorrows","type":"uint256"},{"name":"borrowRateMantissa","type":"uint256"},{"name":"borrowIndex","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"userAddress","type":"address"}],"name":"calculateAccountValues","outputs":[{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"asset","type":"address"},{"name":"amount","type":"uint256"}],"name":"repayBorrow","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"collateralRatio","outputs":[{"name":"mantissa","type":"uint256"}],"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":"","type":"address"},{"name":"","type":"address"}],"name":"supplyBalances","outputs":[{"name":"principal","type":"uint256"},{"name":"interestIndex","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"originationFee","outputs":[{"name":"mantissa","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"account","type":"address"},{"name":"asset","type":"address"}],"name":"getSupplyBalance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"collateralMarkets","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"asset","type":"address"},{"name":"interestRateModel","type":"address"}],"name":"_supportMarket","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"collateralRatioMantissa","type":"uint256"},{"name":"liquidationDiscountMantissa","type":"uint256"}],"name":"_setRiskParameters","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"asset","type":"address"}],"name":"_suspendMarket","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"targetAccount","type":"address"},{"name":"assetBorrow","type":"address"},{"name":"assetCollateral","type":"address"},{"name":"requestedAmountClose","type":"uint256"}],"name":"liquidateBorrow","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":false,"inputs":[{"name":"asset","type":"address"},{"name":"amount","type":"uint256"}],"name":"supply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"asset","type":"address"},{"name":"requestedAmount","type":"uint256"}],"name":"withdraw","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":"","type":"address"},{"name":"","type":"address"}],"name":"borrowBalances","outputs":[{"name":"principal","type":"uint256"},{"name":"interestIndex","type":"uint256"}],"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":"account","type":"address"},{"indexed":false,"name":"asset","type":"address"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"startingBalance","type":"uint256"},{"indexed":false,"name":"newBalance","type":"uint256"}],"name":"SupplyReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"account","type":"address"},{"indexed":false,"name":"asset","type":"address"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"startingBalance","type":"uint256"},{"indexed":false,"name":"newBalance","type":"uint256"}],"name":"SupplyWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"account","type":"address"},{"indexed":false,"name":"asset","type":"address"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"startingBalance","type":"uint256"},{"indexed":false,"name":"borrowAmountWithFee","type":"uint256"},{"indexed":false,"name":"newBalance","type":"uint256"}],"name":"BorrowTaken","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"account","type":"address"},{"indexed":false,"name":"asset","type":"address"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"startingBalance","type":"uint256"},{"indexed":false,"name":"newBalance","type":"uint256"}],"name":"BorrowRepaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"targetAccount","type":"address"},{"indexed":false,"name":"assetBorrow","type":"address"},{"indexed":false,"name":"borrowBalanceBefore","type":"uint256"},{"indexed":false,"name":"borrowBalanceAccumulated","type":"uint256"},{"indexed":false,"name":"amountRepaid","type":"uint256"},{"indexed":false,"name":"borrowBalanceAfter","type":"uint256"},{"indexed":false,"name":"liquidator","type":"address"},{"indexed":false,"name":"assetCollateral","type":"address"},{"indexed":false,"name":"collateralBalanceBefore","type":"uint256"},{"indexed":false,"name":"collateralBalanceAccumulated","type":"uint256"},{"indexed":false,"name":"amountSeized","type":"uint256"},{"indexed":false,"name":"collateralBalanceAfter","type":"uint256"}],"name":"BorrowLiquidated","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":"oldOracle","type":"address"},{"indexed":false,"name":"newOracle","type":"address"}],"name":"NewOracle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"asset","type":"address"},{"indexed":false,"name":"interestRateModel","type":"address"}],"name":"SupportedMarket","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"oldCollateralRatioMantissa","type":"uint256"},{"indexed":false,"name":"newCollateralRatioMantissa","type":"uint256"},{"indexed":false,"name":"oldLiquidationDiscountMantissa","type":"uint256"},{"indexed":false,"name":"newLiquidationDiscountMantissa","type":"uint256"}],"name":"NewRiskParameters","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"oldOriginationFeeMantissa","type":"uint256"},{"indexed":false,"name":"newOriginationFeeMantissa","type":"uint256"}],"name":"NewOriginationFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"asset","type":"address"},{"indexed":false,"name":"interestRateModel","type":"address"}],"name":"SetMarketInterestRateModel","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"asset","type":"address"},{"indexed":false,"name":"equityAvailableBefore","type":"uint256"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"owner","type":"address"}],"name":"EquityWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"asset","type":"address"}],"name":"SuspendedMarket","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newState","type":"bool"}],"name":"SetPaused","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"}]

608060405234801561001057600080fd5b5060018054600160a060020a031916331790556040805160208181018352671bc16d674ec80000918290526007919091558151808201835260009081905260088190558251918201909252819052600955614b06806100706000396000f30060806040526004361061017c5763ffffffff60e060020a600035041663118e31b7811461018157806324021127146101ba57806326617c28146101d257806326782247146101ec5780633be594431461021d5780634706c3751461023e5780634b8a3529146102625780635c975abb146102865780635cf756d2146102af5780635e9a523c146102d65780635ec88c79146102f75780636e2ede03146103185780637dc0d1d01461032d5780638053fcbe146103425780638e8f294b146103575780639f180cf1146103c9578063abdb5ea814610408578063b4eae1cb1461042c578063b71d1a0c14610441578063b7adddac14610462578063b8bb5c42146104a2578063ba377731146104b7578063beb54615146104de578063c1abfaa3146104f6578063c365a6461461051d578063dbe2bc8414610538578063e61604cf14610559578063e9c714f214610589578063f2b9fdb81461059e578063f3fef3a3146105c2578063f851a440146105e6578063fc7d42d7146105fb575b600080fd5b34801561018d57600080fd5b506101a8600160a060020a0360043581169060243516610622565b60408051918252519081900360200190f35b3480156101c657600080fd5b506101a86004356106de565b3480156101de57600080fd5b506101a86004351515610772565b3480156101f857600080fd5b506102016107e9565b60408051600160a060020a039092168252519081900360200190f35b34801561022957600080fd5b506101a8600160a060020a03600435166107f8565b34801561024a57600080fd5b506101a8600160a060020a036004351660243561092a565b34801561026e57600080fd5b506101a8600160a060020a0360043516602435610a67565b34801561029257600080fd5b5061029b610f86565b604080519115158252519081900360200190f35b3480156102bb57600080fd5b506101a8600160a060020a0360043581169060243516610f8f565b3480156102e257600080fd5b506101a8600160a060020a036004351661103c565b34801561030357600080fd5b506101a8600160a060020a0360043516611079565b34801561032457600080fd5b506101a86110ea565b34801561033957600080fd5b506102016110f0565b34801561034e57600080fd5b506101a86110ff565b34801561036357600080fd5b50610378600160a060020a0360043516611105565b604080519915158a5260208a0198909852600160a060020a03909616888801526060880194909452608087019290925260a086015260c085015260e084015261010083015251908190036101200190f35b3480156103d557600080fd5b506103ea600160a060020a036004351661115f565b60408051938452602084019290925282820152519081900360600190f35b34801561041457600080fd5b506101a8600160a060020a03600435166024356111bb565b34801561043857600080fd5b506101a8611643565b34801561044d57600080fd5b506101a8600160a060020a0360043516611649565b34801561046e57600080fd5b50610489600160a060020a03600435811690602435166116e0565b6040805192835260208301919091528051918290030190f35b3480156104ae57600080fd5b506101a8611704565b3480156104c357600080fd5b506101a8600160a060020a036004358116906024351661170a565b3480156104ea57600080fd5b50610201600435611763565b34801561050257600080fd5b506101a8600160a060020a036004358116906024351661178b565b34801561052957600080fd5b506101a860043560243561193a565b34801561054457600080fd5b506101a8600160a060020a0360043516611af6565b34801561056557600080fd5b506101a8600160a060020a0360043581169060243581169060443516606435611b9c565b34801561059557600080fd5b506101a861255c565b3480156105aa57600080fd5b506101a8600160a060020a0360043516602435612602565b3480156105ce57600080fd5b506101a8600160a060020a0360043516602435612a56565b3480156105f257600080fd5b50610201612fd3565b34801561060757600080fd5b50610489600160a060020a0360043581169060243516612fe2565b600160a060020a0380821660008181526005602090815260408083209487168352600482528083209383529290529081206008830154600784015460018501549394859485948594929390926106829290919061067d613006565b61300a565b9095509350600085601981111561069557fe5b1461069f57600080fd5b6106b28160000154826001015486613135565b909550925060008560198111156106c557fe5b146106cf57600080fd5b8295505b505050505092915050565b60006106e86147b0565b600154600160a060020a0316331461070d5761070660026038613196565b915061076c565b5060408051602081810183526008805483528351808301855286905285905581518351908152908101859052825191927fddf0479a07b0178bbfb5faf3e59335c0824cba499a638f0a4c9909596721ae9c92918290030190a160005b91505b50919050565b600154600090600160a060020a0316331461079a5761079360026039613196565b90506107e4565b600a805483151560ff19909116811790915560408051918252517f3c70af01296aef045b2f5c9d3c30b05d4428fd257145b9c7fcd76418e65b59809181900360200190a160005b90505b919050565b600054600160a060020a031681565b60015460009081908190600160a060020a031633146108245761081d60026037613196565b9250610923565b83915081600160a060020a0316635e9a523c60006040518263ffffffff1660e060020a0281526004018082600160a060020a0316600160a060020a03168152602001915050602060405180830381600087803b15801561088357600080fd5b505af1158015610897573d6000803e3d6000fd5b505050506040513d60208110156108ad57600080fd5b505060028054600160a060020a0386811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040805191909216808252602082019390935281519293507f08763b8c90c5db415d7b7f0e18ec87eda82e24e52e2ea8135d44e17db46d85bb929081900390910190a1600092505b5050919050565b6001546000908190819081908190600160a060020a0316331461095a5761095360026013613196565b9450610a5d565b610963876131fc565b600160a060020a0388166000908152600560205260409020600681015460039091015491955061099591869190613294565b909350915060008360198111156109a857fe5b146109b857610953836012613196565b818611156109cc5761095360136011613196565b6001546109e4908890600160a060020a0316886132d4565b905060008160198111156109f457fe5b14610a0457610953816014613196565b60015460408051600160a060020a03808b168252602082018690528183018a90529092166060830152517fcb9f0cda23d6b563fc8e14d8fdada71d2ab7dadccc2e26dc353bf20ea8c5b8529181900360800190a1600094505b5050505092915050565b6000610a716147c2565b600a5460009081908190819060ff1615610a9857610a9160196006613196565b95506106d3565b600160a060020a0388166000818152600560209081526040808320338452600483528184209484529390915290208154919550935060ff161515610ae257610a91600a6007613196565b610afc84600801548560070154866001015461067d613006565b865291506000826019811115610b0e57fe5b14610b1e57610a91826008613196565b825460018401548651610b32929190613135565b602087015291506000826019811115610b4757fe5b14610b5757610a91826003613196565b610b60876133a2565b604087015291506000826019811115610b7557fe5b14610b8557610a9182600f613196565b610b978560200151866040015161347e565b606087015291506000826019811115610bac57fe5b14610bbc57610a9182600c613196565b610bd3846006015486606001518560000154613294565b608087015291506000826019811115610be857fe5b14610bf857610a9182600d613196565b610c01336134a8565b61018088015261016087015291506000826019811115610c1d57fe5b14610c2d57610a91826001613196565b610c3b856101800151613637565b1515610c4d57610a91600f6002613196565b610c5b88866040015161363c565b6101a087015291506000826019811115610c7157fe5b14610c8157610a91826005613196565b610c95856101600151866101a00151613724565b15610ca657610a91600f6004613196565b610caf886131fc565b60a08601819052610cc0908861372b565b60c087015291506000826019811115610cd557fe5b14610ce657610a91600d600e613196565b610d0084600501548560040154866001015461067d613006565b60e087015291506000826019811115610d1557fe5b14610d2557610a9182600a613196565b600284015460c086015160808701516040805160e160020a6328be7b9f028152600160a060020a038d81166004830152602482019490945260448101929092528051929093169263517cf73e926064808401938290030181600087803b158015610d8e57600080fd5b505af1158015610da2573d6000803e3d6000fd5b505050506040513d6040811015610db857600080fd5b50805160209091015161010087015290508015610dda57610a91600b82613751565b600284015460c086015160808701516040805160e260020a633b4ad68f028152600160a060020a038d81166004830152602482019490945260448101929092528051929093169263ed2b5a3c926064808401938290030181600087803b158015610e4357600080fd5b505af1158015610e57573d6000803e3d6000fd5b505050506040513d6040811015610e6d57600080fd5b50805160209091015161012087015290508015610e8f57610a91600982613751565b610e9a8833896132d4565b91506000826019811115610eaa57fe5b14610eba57610a91826010613196565b610ec2613006565b6001808601919091556080808701516006870155610100870151600487015560e087015160058701556101208701516007870155865160088701819055855461014089018190526060808a0151808955948801929092556040808a01518151338152600160a060020a038f1660208201528083018e9052938401929092529282015260a0810192909252517f6b69190ebbb96f162b04dc222ef96416f9dca9a415b6dd183c79424501113e189181900360c00190a160005b98975050505050505050565b600a5460ff1681565b600154600090600160a060020a03163314610fb757610fb060026036613196565b9050611036565b600160a060020a03838116600081815260056020908152604091829020600201805473ffffffffffffffffffffffffffffffffffffffff19169487169485179055815192835282019290925281517fd3993418771a1083a564315767fe24b893cd870e40b00ed1866f7aee2847426d929181900390910190a160005b90505b92915050565b6000806110476147b0565b611050846137a8565b9092509050600082601981111561106357fe5b146110715760009250610923565b519392505050565b6000806110846147b0565b61108c6147b0565b611095856134a8565b9194509250905060008360198111156110aa57fe5b146110b457600080fd5b6110bd82613637565b156110d6576110cb81613898565b6000190293506110e2565b6110df82613898565b93505b505050919050565b60065490565b600254600160a060020a031681565b60095481565b600560208190526000918252604090912080546001820154600283015460038401546004850154958501546006860154600787015460089097015460ff909616979496600160a060020a0390941695929493919290919089565b600080600080600080611171876138a7565b91945092509050600083601981111561118657fe5b146111a55782601981111561119757fe5b9550600094508493506111b1565b60009550909350915082825b5050509193909250565b60006111c5614843565b600a5460009081908190819060ff16156111e557610a916019602b613196565b600160a060020a0388166000818152600560209081526040808320338452600483528184209484529390915290206008820154600783015460018401549397509195506112379290919061067d613006565b86529150600082601981111561124957fe5b1461125957610a9182602c613196565b82546001840154865161126d929190613135565b60208701529150600082601981111561128257fe5b1461129257610a9182602a613196565b6000198714156112bd576112b36112a98933613bab565b8660200151613c40565b60408601526112c5565b604085018790525b6112d78560200151866040015161372b565b6060870152915060008260198111156112ec57fe5b146112fc57610a91826030613196565b61130b88338760400151613c58565b9150600082601981111561131b57fe5b1461132b57610a91826034613196565b611342846006015486606001518560000154613294565b60808701529150600082601981111561135757fe5b1461136757610a91826031613196565b611370886131fc565b60a086018190526040860151611386919061347e565b60c08701529150600082601981111561139b57fe5b146113ab57610a91826032613196565b6113c584600501548560040154866001015461067d613006565b60e0870152915060008260198111156113da57fe5b146113ea57610a9182602e613196565b600284015460c086015160808701516040805160e160020a6328be7b9f028152600160a060020a038d81166004830152602482019490945260448101929092528051929093169263517cf73e926064808401938290030181600087803b15801561145357600080fd5b505af1158015611467573d6000803e3d6000fd5b505050506040513d604081101561147d57600080fd5b5080516020909101516101008701529050801561149f57610a91602f82613751565b600284015460c086015160808701516040805160e260020a633b4ad68f028152600160a060020a038d81166004830152602482019490945260448101929092528051929093169263ed2b5a3c926064808401938290030181600087803b15801561150857600080fd5b505af115801561151c573d6000803e3d6000fd5b505050506040513d604081101561153257600080fd5b5080516020909101516101208701529050801561155457610a91602d82613751565b61156388338760400151613da8565b9150600082601981111561157357fe5b1461158357610a91826033613196565b61158b613006565b6001808601919091556080808701516006870155610100870151600487015560e087015160058701556101208701516007870155865160088701819055855461014089018190526060808a0151808955948801929092556040808a01518151338152600160a060020a038f166020820152808301919091529283019190915291810192909252517f550e7e464126359c6adc43831f011682856b177df6c49c0af6675dd2a063649d9181900360a00190a16000610f7a565b60075481565b6001546000908190600160a060020a0316331461166c576107066002603a613196565b5060008054600160a060020a0384811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040805191909216808252602082019390935281517fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a9929181900390910190a16000610769565b60036020908152600092835260408084209091529082529020805460019091015482565b60085481565b600160a060020a038082166000818152600560208181526040808420958816845260038252808420948452939052918120918301546004840154600185015492948594859485949293919261068292909161067d613006565b600680548290811061177157fe5b600091825260209091200154600160a060020a0316905081565b6000806117966147b0565b600154600160a060020a031633146117bb576117b46002604a613196565b9250611932565b6117c4856137a8565b909250905060008260198111156117d757fe5b146117e7576117b4826049613196565b6117f081613637565b15611801576117b46015604b613196565b600160a060020a038581166000908152600560205260409020600201805473ffffffffffffffffffffffffffffffffffffffff191691861691909117905561184885613e74565b600160a060020a0385166000908152600560208190526040909120805460ff191660011781550154151561189e57600160a060020a0385166000908152600560208190526040909120670de0b6b3a76400009101555b600160a060020a03851660009081526005602052604090206008015415156118e857600160a060020a0385166000908152600560205260409020670de0b6b3a76400006008909101555b60408051600160a060020a0380881682528616602082015281517fb7a6a26f7de915e2ae44a232d6e630a10f686ae27227d2544238ade533117b7a929181900390910190a1600092505b505092915050565b60006119446147b0565b61194c6147b0565b6119546147b0565b61195c6147b0565b60006119666147b0565b61196e6147b0565b6119766147b0565b600154600160a060020a0316331461199b576119946002603b613196565b9850611ae8565b60408051602081810183528d8252825180820184528d815283518083018552670f43fc2c04ee00008152845192830190945267016345785d8a00008252919a5090985090965094506119ed8887613724565b156119fe576119946011603c613196565b611a088588613724565b15611a19576119946016603c613196565b611a3a87602060405190810160405280670de0b6b3a7640000815250613f1f565b90945092506000846019811115611a4d57fe5b14611a5457fe5b611a5e8884613f61565b15611a6f576119946017603c613196565b5050604080516020818101835260078054835283518083018552600980548083528c519093558a519055835185519081529283018e905282850191909152606082018c905292519192917f1f77882929f3fe7461ce3dc42e93ec44215d80313ef2e688d3716e3f29b6552f9181900360800190a1600098505b505050505050505092915050565b600154600090600160a060020a03163314611b17576107936002604c613196565b600160a060020a03821660009081526005602052604090205460ff161515611b40576000610793565b600160a060020a038216600081815260056020908152604091829020805460ff19169055815192835290517fe2de4d3f16716b96488257bbb951590474ed394a5e6e31a67989f89ecaced9199281900390910190a160006107e1565b6000611ba661489e565b6000806000806000806000600a60009054906101000a900460ff1615611bd957611bd26019601b613196565b985061254c565b8c8860000190600160a060020a03169081600160a060020a0316815250508b8860200190600160a060020a03169081600160a060020a031681525050338860400190600160a060020a03169081600160a060020a0316815250508a8860600190600160a060020a03169081600160a060020a031681525050600560008d600160a060020a0316600160a060020a031681526020019081526020016000209650600560008c600160a060020a0316600160a060020a031681526020019081526020016000209550600460008e600160a060020a0316600160a060020a0316815260200190815260200160002060008d600160a060020a0316600160a060020a031681526020019081526020016000209450600360008e600160a060020a0316600160a060020a0316815260200190815260200160002060008c600160a060020a0316600160a060020a031681526020019081526020016000209350600360008960400151600160a060020a0316600160a060020a0316815260200190815260200160002060008c600160a060020a0316600160a060020a031681526020019081526020016000209250611d8a8b6137a8565b6103808a015290506000816019811115611da057fe5b14611db057611bd2816027613196565b611db98c6137a8565b6103a08a015290506000816019811115611dcf57fe5b14611dd657fe5b611df087600801548860070154896001015461067d613006565b60808a015290506000816019811115611e0557fe5b14611e1557611bd281601d613196565b611e2c856000015486600101548a60800151613135565b6101008a015290506000816019811115611e4257fe5b14611e5257611bd2816015613196565b611e6c86600501548760040154886001015461067d613006565b60e08a015290506000816019811115611e8157fe5b14611e9157611bd2816021613196565b611ea8846000015485600101548a60e00151613135565b6101c08a015290506000816019811115611ebe57fe5b14611ece57611bd2816016613196565b611ee5836000015484600101548a60e00151613135565b6102008a015290506000816019811115611efb57fe5b14611f0b57611bd2816017613196565b611f238660030154896101c001518660000154613294565b6102408a015290506000816019811115611f3957fe5b14611f4957611bd2816025613196565b611f628861024001518961020001518560000154613294565b6102408a015290506000816019811115611f7857fe5b14611f8857611bd2816026613196565b611fa2886103a001518961038001518a6101c00151613f69565b6103008a015290506000816019811115611fb857fe5b14611fc857611bd2816019613196565b865460ff161561203e57611fe18d896103a0015161408d565b6102e08a015290506000816019811115611ff757fe5b1461200757611bd281601c613196565b61201b886101000151896103000151613c40565b61032089018190526102e08901516120339190613c40565b610320890152612059565b612052886101000151896103000151613c40565b6103208901525b6000198a14156120745761032088015161034089015261207d565b61034088018a90525b876103200151886103400151111561209b57611bd26014601a613196565b6120b5886103a001518961038001518a61034001516141f8565b6103608a0152905060008160198111156120cb57fe5b146120db57611bd2816018613196565b6120ef8c89604001518a6103400151613c58565b905060008160198111156120ff57fe5b1461210f57611bd2816029613196565b61212388610100015189610340015161372b565b6101208a01529050600081601981111561213957fe5b1461214057fe5b61215887600601548961012001518760000154613294565b6101408a01529050600081601981111561216e57fe5b1461217e57611bd2816023613196565b6121878c6131fc565b610260890181905261034089015161219f919061347e565b6102808a0152905060008160198111156121b557fe5b146121c557611bd2816024613196565b6121df87600501548860040154896001015461067d613006565b60a08a0152905060008160198111156121f457fe5b1461220457611bd2816020613196565b8660020160009054906101000a9004600160a060020a0316600160a060020a031663517cf73e8d8a61028001518b61014001516040518463ffffffff1660e060020a0281526004018084600160a060020a0316600160a060020a0316815260200183815260200182815260200193505050506040805180830381600087803b15801561228f57600080fd5b505af11580156122a3573d6000803e3d6000fd5b505050506040513d60408110156122b957600080fd5b5080516020909101516102a08a0152915081156122db57611bd2602283613751565b8660020160009054906101000a9004600160a060020a0316600160a060020a031663ed2b5a3c8d8a61028001518b61014001516040518463ffffffff1660e060020a0281526004018084600160a060020a0316600160a060020a0316815260200183815260200182815260200193505050506040805180830381600087803b15801561236657600080fd5b505af115801561237a573d6000803e3d6000fd5b505050506040513d604081101561239057600080fd5b5080516020909101516102c08a0152915081156123b257611bd2601f83613751565b6123cc86600801548760070154886001015461067d613006565b60c08a0152905060008160198111156123e157fe5b146123f157611bd281601e613196565b612405886101c0015189610360015161372b565b6101e08a01529050600081601981111561241b57fe5b1461242257fe5b61243688610200015189610360015161347e565b6102208a01529050600081601981111561244c57fe5b1461245357fe5b6124678c89604001518a6103400151613da8565b9050600081601981111561247757fe5b1461248757611bd2816028613196565b61248f613006565b600188015561014088015160068801556102a0880151600488015560a088015160058801556102c08801516007880155608088015160088801556124d1613006565b600180880191909155610240890151600388015560e08901516005880181905560c08a0151600889015586546101608b01526101208a0151875560808a01518783015585546101808b01526101e08a0151865585820181905584546101a08b01526102208a0151855590840155612547886142cd565b600098505b5050505050505050949350505050565b600080548190600160a060020a031633146125845761257d60026000613196565b91506125fe565b50600180546000805473ffffffffffffffffffffffffffffffffffffffff19808416600160a060020a03838116919091179095551690556040805192909116808352336020840152815190927ff9ffabca9c8276e99321725bcb43fb076a6c66a54b7f21c4e8146d8519b417dc92908290030190a1600091505b5090565b600080600061260f61499b565b600a54600090819060ff161561262b57610a916019603e613196565b600160a060020a0388166000818152600560209081526040808320338452600383528184209484529390915290208154919650945060ff16151561267557610a91600a603f613196565b612680883389613c58565b9150600082601981111561269057fe5b146126a057610a91826048613196565b6126ba85600501548660040154876001015461067d613006565b6020850152915060008260198111156126cf57fe5b146126df57610a91826042613196565b6126f6846000015485600101548560200151613135565b60408501529150600082601981111561270b57fe5b1461271b57610a9182603d613196565b61272983604001518861347e565b60608501529150600082601981111561273e57fe5b1461274e57610a91826044613196565b612765856003015484606001518660000154613294565b60808501529150600082601981111561277a57fe5b1461278a57610a91826046613196565b612793886131fc565b60a084018190526127a4908861347e565b60c0850152915060008260198111156127b957fe5b146127c957610a91826045613196565b600285015460c084015160068701546040805160e160020a6328be7b9f028152600160a060020a038d81166004830152602482019490945260448101929092528051929093169263517cf73e926064808401938290030181600087803b15801561283257600080fd5b505af1158015612846573d6000803e3d6000fd5b505050506040513d604081101561285c57600080fd5b50805160209091015160e08501529050801561287d57610a91604382613751565b61289785600801548660070154876001015461067d613006565b610100850152915060008260198111156128ad57fe5b146128bd57610a91826040613196565b600285015460c084015160068701546040805160e260020a633b4ad68f028152600160a060020a038d81166004830152602482019490945260448101929092528051929093169263ed2b5a3c926064808401938290030181600087803b15801561292657600080fd5b505af115801561293a573d6000803e3d6000fd5b505050506040513d604081101561295057600080fd5b5080516020909101516101208501529050801561297257610a91604182613751565b61297d883389613da8565b9150600082601981111561298d57fe5b1461299d57610a91826047613196565b6129a5613006565b600180870191909155608080850151600388015560e085015160048801556020808601516005890181905561012087015160078a015561010087015160088a01558754808852606080890151808b55958a019290925560408051338152600160a060020a038f16948101949094528381018d90529183015291810192909252517f4ea5606ff36959d6c1a24f693661d800a98dd80c0fb8469a665d2ec7e8313c219181900360a00190a16000610f7a565b6000806000612a636149ef565b600a54600090819060ff1615612a7f57610a9160196053613196565b600160a060020a03881660008181526005602090815260408083203380855260038452828520958552949092529091209096509450612abd906134a8565b61018086015261016085015291506000826019811115612ad957fe5b14612ae957610a9182604d613196565b612b0385600501548660040154876001015461067d613006565b604085015291506000826019811115612b1857fe5b14612b2857610a91826056613196565b612b3f846000015485600101548560400151613135565b606085015291506000826019811115612b5457fe5b14612b6457610a9182604f613196565b600019871415612bbd57612b7d888461016001516143df565b6101c085015291506000826019811115612b9357fe5b14612ba357610a91826052613196565b612bb6836101c001518460600151613c40565b8352612bc1565b8683525b612bca886131fc565b60c084018190528351612bdd919061372b565b60e085015291506000826019811115612bf257fe5b14612c0357610a91600d605b613196565b612c158360600151846000015161372b565b608085015291506000826019811115612c2a57fe5b14612c3b57610a9160106058613196565b612c49836101800151613637565b1515612c5b57610a91600f604e613196565b612c6988846000015161445e565b6101a085015291506000826019811115612c7f57fe5b14612c8f57610a91826051613196565b612ca3836101600151846101a00151613724565b15612cb457610a91600f6050613196565b612ccb856003015484608001518660000154613294565b60a085015291506000826019811115612ce057fe5b14612cf057610a91826059613196565b600285015460e084015160068701546040805160e160020a6328be7b9f028152600160a060020a038d81166004830152602482019490945260448101929092528051929093169263517cf73e926064808401938290030181600087803b158015612d5957600080fd5b505af1158015612d6d573d6000803e3d6000fd5b505050506040513d6040811015612d8357600080fd5b50805160209091015161010085015290508015612da557610a91605782613751565b612dbf85600801548660070154876001015461067d613006565b61012085015291506000826019811115612dd557fe5b14612de557610a91826054613196565b600285015460e084015160068701546040805160e260020a633b4ad68f028152600160a060020a038d81166004830152602482019490945260448101929092528051929093169263ed2b5a3c926064808401938290030181600087803b158015612e4e57600080fd5b505af1158015612e62573d6000803e3d6000fd5b505050506040513d6040811015612e7857600080fd5b50805160209091015161014085015290508015612e9a57610a91605582613751565b612ea9883385600001516132d4565b91506000826019811115612eb957fe5b14612ec957610a9182605a613196565b612ed1613006565b85600101819055508260a00151856003018190555082610100015185600401819055508260400151856005018190555082610140015185600701819055508261012001518560080181905550836000015483602001818152505082608001518460000181905550826040015184600101819055507f56559a17e3aa8ea4b05036eaf31aeaf9fb71fc1b8865b6389647639940bed03033898560000151866020015187608001516040518086600160a060020a0316600160a060020a0316815260200185600160a060020a0316600160a060020a031681526020018481526020018381526020018281526020019550505050505060405180910390a16000610f7a565b600154600160a060020a031681565b60046020908152600092835260408084209091529082529020805460019091015482565b4390565b600080600080600061301a6147b0565b60006130246147b0565b600061302e6147b0565b6130388b8d61372b565b9098509650600088601981111561304b57fe5b1461305e57969850600097508896613124565b6130776020604051908101604052808f815250886144ee565b9096509450600086601981111561308a57fe5b1461309d57949850600097508894613124565b6130be85602060405190810160405280670de0b6b3a7640000815250613f1f565b909450925060008460198111156130d157fe5b146130e457929850600097508892613124565b6130ee838f6144ee565b9092509050600082601981111561310157fe5b1461311457909850600097508890613124565b600061311f82613898565b995099505b505050505050505094509492505050565b600080808086151561314d576000935083925061318c565b6131578786614558565b9092509050600082601981111561316a57fe5b1461317d5790925060009150829061318c565b613187818761459e565b935093505b5050935093915050565b60007f45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa08360198111156131c557fe5b83605b8111156131d157fe5b604080519283526020830191909152600082820152519081900360600190a182601981111561103357fe5b604080517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290516000918391600160a060020a038316916370a0823191602480830192602092919082900301818887803b15801561326157600080fd5b505af1158015613275573d6000803e3d6000fd5b505050506040513d602081101561328b57600080fd5b50519392505050565b6000806000806132a4878761347e565b909250905060008260198111156132b757fe5b146132ca5790925060009150829061318c565b613187818661372b565b600080600085915081600160a060020a031663a9059cbb86866040518363ffffffff1660e060020a0281526004018083600160a060020a0316600160a060020a0316815260200182815260200192505050600060405180830381600087803b15801561333f57600080fd5b505af1158015613353573d6000803e3d6000fd5b505050503d6000811461336d576020811461337757600080fd5b6000199150613383565b60206000803e60005191505b5080151561339457600e9250613399565b600092505b50509392505050565b60008060006133af6147b0565b60006133b96147b0565b604080516020810190915260085481526133d290613637565b156133e35760008795509550613475565b604080516020818101835260085482528251908101909252670de0b6b3a7640000825261340f91613f1f565b9094509250600084601981111561342257fe5b1461343557929450600093508492613475565b61343f83886144ee565b9092509050600082601981111561345257fe5b1461346557909450600093508490613475565b600061347082613898565b955095505b50505050915091565b60008083830184811061349757600081925092506134a0565b60039250600091505b509250929050565b60006134b26147b0565b6134ba6147b0565b60008060006134c76147b0565b6134cf6147b0565b6134d76147b0565b6134e08a6138a7565b9197509550935060008660198111156134f557fe5b1461352557604080516020818101835260008083528351918201909352918252969950959750949550879461362a565b6040805160208181018352878252825180820184526007548152835191820190935286815290935061355791906145cd565b9096509050600086601981111561356a57fe5b1461359a57604080516020818101835260008083528351918201909352918252969950959750949550879461362a565b6135a48282613724565b156135eb576135b381836146ba565b909650925060008660198111156135c657fe5b146135cd57fe5b6040805160208101909152600080825299509750919550859161362a565b6135f582826146ba565b9096509250600086601981111561360857fe5b1461360f57fe5b60408051602081019091526000808252995092975091955086915b5050505050509193909250565b511590565b60006136466147b0565b60006136506147b0565b6136586147b0565b613661876137a8565b9093509150600083601981111561367457fe5b1461369557604080516020810190915260008152929450919250839161371a565b61369e82613637565b156136bd5760408051602081019091526000815260129550935061371a565b604080516020810190915260075481526136d790836145cd565b909350905060008360198111156136ea57fe5b1461370b57604080516020810190915260008152929450919250839161371a565b61371581876144ee565b945094505b5050509250929050565b5190511090565b60008083831161374257506000905081830361374a565b506004905060005b9250929050565b60007f45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa0600184605b81111561378257fe5b604080519283526020830191909152818101859052519081900360600190a16001611033565b60006137b26147b0565b6002546000908190600160a060020a031615156137e357604080516020810190915260008152601894509250613891565b600254604080517f5e9a523c000000000000000000000000000000000000000000000000000000008152600160a060020a03888116600483015291519190921693508391635e9a523c9160248083019260209291908290030181600087803b15801561384e57600080fd5b505af1158015613862573d6000803e3d6000fd5b505050506040513d602081101561387857600080fd5b5051604080516020810190915281815260009550935090505b5050915091565b51670de0b6b3a7640000900490565b60008060006138b4614a78565b6040805160208181018352600080835260a0850192909252825180820190935281835261012084019290925260065491830191909152808080805b8560200151841015613b8a57600680548590811061390957fe5b6000918252602080832090910154600160a060020a03908116808a5283526005825260408084208e8316808652600385528286208c51851687528552828620908652600485528286208c519094168652929093528320815492965090945092501115613a705761398983600501548460040154856001015461067d613006565b60408801529450600085601981111561399e57fe5b146139b45793975060009650869550879361362a565b6139cb826000015483600101548860400151613135565b6060880152945060008560198111156139e057fe5b146139f65793975060009650869550879361362a565b613a088660000151876060015161445e565b608088015294506000856019811115613a1d57fe5b14613a335793975060009650869550879361362a565b613a4586608001518760a00151613f1f565b60a088015294506000856019811115613a5a57fe5b14613a705793975060009650869550879361362a565b805460001015613b7f57613a9483600801548460070154856001015461067d613006565b60c088015294506000856019811115613aa957fe5b14613abf5793975060009650869550879361362a565b613ad6816000015482600101548860c00151613135565b60e088015294506000856019811115613aeb57fe5b14613b015793975060009650869550879361362a565b613b1386600001518760e0015161445e565b61010088015294506000856019811115613b2957fe5b14613b3f5793975060009650869550879361362a565b613b53866101000151876101200151613f1f565b61012088015294506000856019811115613b6957fe5b14613b7f5793975060009650869550879361362a565b6001909301926138ef565b5050505060a082015151610120909201515160009792965094509092505050565b60008083905080600160a060020a03166370a08231846040518263ffffffff1660e060020a0281526004018082600160a060020a0316600160a060020a03168152602001915050602060405180830381600087803b158015613c0c57600080fd5b505af1158015613c20573d6000803e3d6000fd5b505050506040513d6020811015613c3657600080fd5b5051949350505050565b600081831015613c51575081611036565b5080611036565b604080517fdd62ed3e000000000000000000000000000000000000000000000000000000008152600160a060020a0384811660048301523060248301529151600092869285929184169163dd62ed3e9160448082019260209290919082900301818987803b158015613cc957600080fd5b505af1158015613cdd573d6000803e3d6000fd5b505050506040513d6020811015613cf357600080fd5b50511015613d045760079150613da0565b8281600160a060020a03166370a08231866040518263ffffffff1660e060020a0281526004018082600160a060020a0316600160a060020a03168152602001915050602060405180830381600087803b158015613d6057600080fd5b505af1158015613d74573d6000803e3d6000fd5b505050506040513d6020811015613d8a57600080fd5b50511015613d9b5760089150613da0565b600091505b509392505050565b604080517f23b872dd000000000000000000000000000000000000000000000000000000008152600160a060020a03848116600483015230602483015260448201849052915160009286928492918416916323b872dd91606480820192869290919082900301818387803b158015613e1f57600080fd5b505af1158015613e33573d6000803e3d6000fd5b505050503d60008114613e4d5760208114613e5757600080fd5b6000199150613e63565b60206000803e60005191505b508015156133945760099250613399565b60005b600654811015613ec25781600160a060020a0316600682815481101515613e9a57fe5b600091825260209091200154600160a060020a03161415613eba57613f1b565b600101613e77565b600680546001810182556000919091527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f01805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0384161790555b5050565b6000613f296147b0565b600080613f3e8660000151866000015161347e565b604080516020810190915281815291955090935084925090505b50509250929050565b519051111590565b6000806000613f766147b0565b613f7e6147b0565b613f866147b0565b613f8e6147b0565b6040805160208181018352670de0b6b3a7640000825282519081019092526009548252613fba91613f1f565b90955093506000856019811115613fcd57fe5b14613fe057939550600094508593614080565b613fea89896144ee565b90955092506000856019811115613ffd57fe5b1461401057939550600094508593614080565b61401a848b6145cd565b9095509150600085601981111561402d57fe5b1461404057939550600094508593614080565b61404a83836146d9565b9095509050600085601981111561405d57fe5b1461407057939550600094508593614080565b600061407b82613898565b965096505b5050505050935093915050565b600080600061409a6147b0565b6140a26147b0565b6140aa6147b0565b6140b26147b0565b6140ba6147b0565b6140c26147b0565b6140cb8b6134a8565b9198509650945060008760198111156140e057fe5b146140f3579597506000965087956141ea565b6040805160208181018352600754825282519081019092526009548252614119916146ba565b9097509350600087601981111561412c57fe5b1461413f579597506000965087956141ea565b61416084602060405190810160405280670de0b6b3a76400008152506146ba565b9097509250600087601981111561417357fe5b14614186579597506000965087956141ea565b6141908a846145cd565b909750915060008760198111156141a357fe5b146141aa57fe5b6141b485836146d9565b909750905060008760198111156141c757fe5b146141da579597506000965087956141ea565b60006141e582613898565b985098505b505050505050509250929050565b60008060006142056147b0565b61420d6147b0565b6142156147b0565b61421d6147b0565b6040805160208181018352670de0b6b3a764000082528251908101909252600954825261424991613f1f565b9095509350600085601981111561425c57fe5b1461426357fe5b61426d8a856145cd565b9095509250600085601981111561428057fe5b1461429357939550600094508593614080565b61429d83896144ee565b909550915060008560198111156142b057fe5b146142c357939550600094508593614080565b61404a828a6146d9565b7f0938b1e79e1fd5816573487e5bd6a1e1329ec26f94f401a7b49d4b71d479657a81600001518260200151836101600151846101000151856103400151866101200151876040015188606001518961018001518a6101c001518b61036001518c6101e00151604051808d600160a060020a0316600160a060020a031681526020018c600160a060020a0316600160a060020a031681526020018b81526020018a815260200189815260200188815260200187600160a060020a0316600160a060020a0316815260200186600160a060020a0316600160a060020a031681526020018581526020018481526020018381526020018281526020019c5050505050505050505050505060405180910390a150565b60008060006143ec6147b0565b6143f46147b0565b6143fd876137a8565b9093509150600083601981111561441057fe5b146144235791935060009250839161371a565b61442d86836146d9565b9093509050600083601981111561444057fe5b146144535791935060009250839161371a565b600061371582613898565b60006144686147b0565b60006144726147b0565b61447b866137a8565b9092509050600082601981111561448e57fe5b146144af576040805160208101909152600081529193509091508290613f58565b6144b881613637565b156144d757604080516020810190915260008152601294509250613f58565b6144e181866144ee565b9350935050509250929050565b60006144f86147b0565b600080614509866000015186614558565b9092509050600082601981111561451c57fe5b1461453d576040805160208101909152600081529193509091508290613f58565b60408051602081019091529081526000969095509350505050565b6000808084151561456f57600092508291506134a0565b5083830283858281151561457f57fe5b04146145925760039250600091506134a0565b600081925092506134a0565b6000808215156145b4575060059050600061374a565b600083858115156145c157fe5b04915091509250929050565b60006145d76147b0565b6000806000806000806145f28a600001518a60000151614558565b9096509450600086601981111561460557fe5b146146265760408051602081019091526000815295975094955086946146ad565b6146386706f05b59d3b200008661347e565b9094509250600084601981111561464b57fe5b1461466c5760408051602081019091526000815293975092955086926146ad565b61467e83670de0b6b3a764000061459e565b9092509050600082601981111561469157fe5b1461469857fe5b60408051602081019091528181526000985096505b5050505050509250929050565b60006146c46147b0565b600080613f3e8660000151866000015161372b565b60006146e36147b0565b835183516146f191906146fc565b915091509250929050565b60006147066147b0565b60008060008061471e88670de0b6b3a7640000614558565b9094509250600084601981111561473157fe5b146147525760408051602081019091526000815293955092935084926147a5565b61475c838861459e565b9092509050600082601981111561476f57fe5b146147905760408051602081019091526000815291955090935084906147a5565b60408051602081019091528181526000965094505b505050509250929050565b60408051602081019091526000815290565b6101c06040519081016040528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016148246147b0565b81526020016148316147b0565b815260200161483e6147b0565b905290565b6101606040519081016040528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6103c0604051908101604052806000600160a060020a031681526020016000600160a060020a031681526020016000600160a060020a031681526020016000600160a060020a031681526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016148316147b0565b61014060405190810160405280600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6101e0604051908101604052806000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001614a516147b0565b8152602001614a5e6147b0565b8152602001614a6b6147b0565b8152602001600081525090565b610140604051908101604052806000600160a060020a03168152602001600081526020016000815260200160008152602001614ab26147b0565b8152602001614abf6147b0565b815260200160008152602001600081526020016148316147b05600a165627a7a72305820c2199b8d2e3296acf70eca2983de510e0993e24123d59b40673e802a7f30e42a0029

Deployed ByteCode Sourcemap

26376:103370:0:-;;;;;;;;;-1:-1:-1;;;26376:103370:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27229:8;;;50518:861;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;50518:861:0;-1:-1:-1;;;;;50518:861:0;;;;;;;;;;;;;;;;;;;;;;;;;;58119:569;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;58119:569:0;;;;;47429:350;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;47429:350:0;;;;;;;27327:27;;8:9:-1;5:2;;;30:1;27;20:12;5:2;27327:27:0;;;;;;;;-1:-1:-1;;;;;27327:27:0;;;;;;;;;;;;;;46462:680;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;46462:680:0;-1:-1:-1;;;;;46462:680:0;;;;;60010:1499;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;60010:1499:0;-1:-1:-1;;;;;60010:1499:0;;;;;;;122949:6794;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;122949:6794:0;-1:-1:-1;;;;;122949:6794:0;;;;;;;30799:18;;8:9:-1;5:2;;;30:1;27;20:12;5:2;30799:18:0;;;;;;;;;;;;;;;;;;;;;;58964:534;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;58964:534:0;-1:-1:-1;;;;;58964:534:0;;;;;;;;;;43246:242;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;43246:242:0;-1:-1:-1;;;;;43246:242:0;;;;;48299:424;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;48299:424:0;-1:-1:-1;;;;;48299:424:0;;;;;36573:115;;8:9:-1;5:2;;;30:1;27;20:12;5:2;36573:115:0;;;;27708:21;;8:9:-1;5:2;;;30:1;27;20:12;5:2;27708:21:0;;;;30675:30;;8:9:-1;5:2;;;30:1;27;20:12;5:2;30675:30:0;;;;30088:41;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;30088:41:0;-1:-1:-1;;;;;30088:41:0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;30088:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;84772:343;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;84772:343:0;-1:-1:-1;;;;;84772:343:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;85814:5973;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;85814:5973:0;-1:-1:-1;;;;;85814:5973:0;;;;;;;30430:26;;8:9:-1;5:2;;;30:1;27;20:12;5:2;30430:26:0;;;;44773:559;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;44773:559:0;-1:-1:-1;;;;;44773:559:0;;;;;28352:69;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;28352:69:0;-1:-1:-1;;;;;28352:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30539:25;;8:9:-1;5:2;;;30:1;27;20:12;5:2;30539:25:0;;;;49190:861;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;49190:861:0;-1:-1:-1;;;;;49190:861:0;;;;;;;;;;30195:34;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;30195:34:0;;;;;51777:1320;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;51777:1320:0;-1:-1:-1;;;;;51777:1320:0;;;;;;;;;;55122:2627;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;55122:2627:0;;;;;;;53590:973;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;53590:973:0;-1:-1:-1;;;;;53590:973:0;;;;;95537:19161;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;95537:19161:0;-1:-1:-1;;;;;95537:19161:0;;;;;;;;;;;;;;;;;45610:587;;8:9:-1;5:2;;;30:1;27;20:12;5:2;45610:587:0;;;;62765:5231;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;62765:5231:0;-1:-1:-1;;;;;62765:5231:0;;;;;;;68924:7592;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;68924:7592:0;-1:-1:-1;;;;;68924:7592:0;;;;;;;27513:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;27513:20:0;;;;28533:69;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;28533:69:0;-1:-1:-1;;;;;28533:69:0;;;;;;;;;;50518:861;-1:-1:-1;;;;;50723:14:0;;;50597:4;50723:14;;;:7;:14;;;;;;;;50780:23;;;;;:14;:23;;;;;:30;;;;;;;;;50953:18;;;;50973:25;;;;51000:18;;;;50597:4;;;;;;;;50723:14;;50780:30;;50930:107;;50953:18;;50973:25;51020:16;:14;:16::i;:::-;50930:22;:107::i;:::-;50906:131;;-1:-1:-1;50906:131:0;-1:-1:-1;51063:14:0;51056:3;:21;;;;;;;;;51048:30;;;;;;51207:86;51224:13;:23;;;51249:13;:27;;;51278:14;51207:16;:86::i;:::-;51180:113;;-1:-1:-1;51180:113:0;-1:-1:-1;51319:14:0;51312:3;:21;;;;;;;;;51304:30;;;;;;51354:17;51347:24;;50518:861;;;;;;;;;;:::o;58119:569::-;58192:4;58439:28;;:::i;:::-;58260:5;;-1:-1:-1;;;;;58260:5:0;58246:10;:19;58242:128;;58289:69;58294:18;58314:43;58289:4;:69::i;:::-;58282:76;;;;58242:128;-1:-1:-1;58439:45:0;;;;;;;;;58470:14;58439:45;;;;58514:39;;;;;;;;;;58497:56;;;58589:26;;58571:69;;;;;;;;;;;;;58439:45;;58571:69;;;;;;;;;58665:14;58660:20;58653:27;;58119:569;;;;;:::o;47429:350::-;47554:5;;47486:4;;-1:-1:-1;;;;;47554:5:0;47540:10;:19;47536:119;;47583:60;47588:18;47608:34;47583:4;:60::i;:::-;47576:67;;;;47536:119;47667:6;:23;;;;;-1:-1:-1;;47667:23:0;;;;;;;;47706:25;;;;;;;;;;;;;;;;47756:14;47751:20;47744:27;;47429:350;;;;:::o;27327:27::-;;;-1:-1:-1;;;;;27327:27:0;;:::o;46462:680::-;46585:5;;46517:4;;;;;;-1:-1:-1;;;;;46585:5:0;46571:10;:19;46567:119;;46614:60;46619:18;46639:34;46614:4;:60::i;:::-;46607:67;;;;46567:119;46878:9;46818:70;;46899:15;-1:-1:-1;;;;;46899:27:0;;46935:1;46899:39;;;;;-1:-1:-1;;;46899:39:0;;;;;;;-1:-1:-1;;;;;46899:39:0;-1:-1:-1;;;;;46899:39:0;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;46899:39:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;46899:39:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;46971:6:0;;;-1:-1:-1;;;;;47027:18:0;;;-1:-1:-1;;47027:18:0;;;;;;;47063:31;;;46971:6;;;;47063:31;;;46899:39;47063:31;;;;;;;;46971:6;;-1:-1:-1;47063:31:0;;;;;;;;;;;47119:14;47107:27;;46462:680;;;;;;:::o;60010:1499::-;60147:5;;60079:4;;;;;;;;;;-1:-1:-1;;;;;60147:5:0;60133:10;:19;60129:132;;60176:73;60181:18;60201:47;60176:4;:73::i;:::-;60169:80;;;;60129:132;60382:14;60390:5;60382:7;:14::i;:::-;-1:-1:-1;;;;;60452:14:0;;;;;;:7;:14;;;;;:27;;;;60481:26;;;;;60370;;-1:-1:-1;60435:73:0;;60370:26;;60452:27;60435:10;:73::i;:::-;60407:101;;-1:-1:-1;60407:101:0;-1:-1:-1;60531:14:0;60523:4;:22;;;;;;;;;60519:120;;60569:58;60574:4;60580:46;60569:4;:58::i;60519:120::-;60664:6;60655;:15;60651:143;;;60694:88;60699:33;60734:47;60694:4;:88::i;60651:143::-;61035:5;;61014:35;;61028:5;;-1:-1:-1;;;;;61035:5:0;61042:6;61014:13;:35::i;:::-;61001:48;-1:-1:-1;61072:14:0;61064:4;:22;;;;;;;;;61060:224;;61211:61;61216:4;61222:49;61211:4;:61::i;61060:224::-;61444:5;;61405:45;;;-1:-1:-1;;;;;61405:45:0;;;;;;;;;;;;;;;;;61444:5;;;61405:45;;;;;;;;;;;;;;61475:14;61463:27;;60010:1499;;;;;;;;;:::o;122949:6794::-;123009:4;123145:35;;:::i;:::-;123030:6;;123191:21;;;;;;;;123030:6;;123026:109;;;123060:63;123065:21;123088:34;123060:4;:63::i;:::-;123053:70;;;;123026:109;-1:-1:-1;;;;;123215:14:0;;;;;;:7;:14;;;;;;;;123287:10;123272:26;;:14;:26;;;;;:33;;;;;;;;;123427:18;;123215:14;;-1:-1:-1;123272:33:0;-1:-1:-1;123427:18:0;;123426:19;123422:132;;;123469:73;123474:26;123502:39;123469:4;:73::i;123422:132::-;123701:107;123724:6;:18;;;123744:6;:25;;;123771:6;:18;;;123791:16;:14;:16::i;123701:107::-;123664:144;;;-1:-1:-1;123670:27:0;123823:3;:21;;;;;;;;;123819:126;;123868:65;123873:3;123878:54;123868:4;:65::i;123819:126::-;124014:23;;124039:27;;;;124068;;123997:99;;124014:23;124039:27;123997:16;:99::i;:::-;123963:30;;;123957:139;;-1:-1:-1;124118:14:0;124111:3;:21;;;;;;;;;124107:129;;124156:68;124161:3;124166:57;124156:4;:68::i;124107:129::-;124329:36;124358:6;124329:28;:36::i;:::-;124293:32;;;124287:78;;-1:-1:-1;124387:14:0;124380:3;:21;;;;;;;;;124376:125;;124425:64;124430:3;124435:53;124425:4;:64::i;124376:125::-;124649:69;124653:12;:30;;;124685:12;:32;;;124649:3;:69::i;:::-;124615:30;;;124609:109;;-1:-1:-1;124740:14:0;124733:3;:21;;;;;;;;;124729:127;;124778:66;124783:3;124788:55;124778:4;:66::i;124729:127::-;125050:88;125061:6;:19;;;125082:12;:30;;;125114:13;:23;;;125050:10;:88::i;:::-;125018:28;;;125012:126;;-1:-1:-1;125160:14:0;125153:3;:21;;;;;;;;;125149:126;;125198:65;125203:3;125208:54;125198:4;:65::i;125149:126::-;125394:37;125420:10;125394:25;:37::i;:::-;125361:29;;;125324:107;125330:29;;;125324:107;;-1:-1:-1;;125446:3:0;:21;;;;;;;;;125442:127;;125491:66;125496:3;125501:55;125491:4;:66::i;125442:127::-;125639:40;125649:12;:29;;;125639:9;:40::i;:::-;125638:41;125634:161;;;125703:80;125708:28;125738:44;125703:4;:80::i;125634:161::-;126184:77;126221:5;126228:12;:32;;;126184:36;:77::i;:::-;126138:42;;;126132:129;;-1:-1:-1;126283:14:0;126276:3;:21;;;;;;;;;126272:122;;126321:61;126326:3;126331:50;126321:4;:61::i;126272:122::-;126408:86;126420:12;:29;;;126451:12;:42;;;126408:11;:86::i;:::-;126404:207;;;126518:81;126523:28;126553:45;126518:4;:81::i;126404:207::-;126712:14;126720:5;126712:7;:14::i;:::-;126685:24;;;:41;;;126868:37;;126898:6;126868:3;:37::i;:::-;126840:24;;;126834:71;;-1:-1:-1;126927:14:0;126920:3;:21;;;;;;;;;126916:231;;127046:89;127051:29;127082:52;127046:4;:89::i;126916:231::-;127401:107;127424:6;:18;;;127444:6;:25;;;127471:6;:18;;;127491:16;:14;:16::i;127401:107::-;127370:27;;;127364:144;;-1:-1:-1;127530:14:0;127523:3;:21;;;;;;;;;127519:126;;127568:65;127573:3;127578:54;127568:4;:65::i;127519:126::-;127723:24;;;;127769;;;;127795:28;;;;127723:101;;;-1:-1:-1;;;;;127723:101:0;;-1:-1:-1;;;;;127723:101:0;;;;;;;;;;;;;;;;;;;;;;;:24;;;;;:38;;:101;;;;;;;;;;:24;;:101;;;5:2:-1;;;;30:1;27;20:12;5:2;127723:101:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;127723:101:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;127723:101:0;;;;;;;127685:34;;;127657:167;127723:101;-1:-1:-1;127839:30:0;;127835:162;;127893:92;127904:53;127959:25;127893:10;:92::i;127835:162::-;128075:24;;;;128121;;;;128147:28;;;;128075:101;;;-1:-1:-1;;;;;128075:101:0;;-1:-1:-1;;;;;128075:101:0;;;;;;;;;;;;;;;;;;;;;;;:24;;;;;:38;;:101;;;;;;;;;;:24;;:101;;;5:2:-1;;;;30:1;27;20:12;5:2;128075:101:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;128075:101:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;128075:101:0;;;;;;;128037:34;;;128009:167;128075:101;-1:-1:-1;128191:30:0;;128187:162;;128245:92;128256:53;128311:25;128245:10;:92::i;128187:162::-;128592:40;128606:5;128613:10;128625:6;128592:13;:40::i;:::-;128586:46;-1:-1:-1;128654:14:0;128647:3;:21;;;;;;;;;128643:211;;128793:49;128798:3;128803:38;128793:4;:49::i;128643:211::-;128919:16;:14;:16::i;:::-;128898:18;;;;:37;;;;128969:28;;;;;128946:19;;;:51;129036:34;;;;129008:25;;;:62;129102:27;;;;129081:18;;;:48;129168:34;;;;129140:25;;;:62;129234:27;;129213:18;;;:48;;;129335:23;;129304:28;;;:54;;;129434:30;;;;;129408:56;;;129475:27;;;:57;;;;129619:32;;;;;129550:134;;129562:10;129550:134;;-1:-1:-1;;;;;129550:134:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;129709:14;129704:20;129697:27;122949:6794;-1:-1:-1;;;;;;;;122949:6794:0:o;30799:18::-;;;;;;:::o;58964:534::-;59137:5;;59069:4;;-1:-1:-1;;;;;59137:5:0;59123:10;:19;59119:139;;59166:80;59171:18;59191:54;59166:4;:80::i;:::-;59159:87;;;;59119:139;-1:-1:-1;;;;;59328:14:0;;;;;;;:7;:14;;;;;;;;;:32;;:52;;-1:-1:-1;;59328:52:0;;;;;;;;;59398;;;;;;;;;;;;;;;;;;;;;;;;59475:14;59470:20;59463:27;;58964:534;;;;;:::o;43246:242::-;43303:4;43321:9;43332:17;;:::i;:::-;43353:22;43369:5;43353:15;:22::i;:::-;43320:55;;-1:-1:-1;43320:55:0;-1:-1:-1;43397:14:0;43390:3;:21;;;;;;;;;43386:62;;43435:1;43428:8;;;;43386:62;43465:15;;43246:242;-1:-1:-1;;;43246:242:0:o;48299:424::-;48366:3;48383:9;48394:27;;:::i;:::-;48423;;:::i;:::-;48454:34;48480:7;48454:25;:34::i;:::-;48382:106;;-1:-1:-1;48382:106:0;-1:-1:-1;48382:106:0;-1:-1:-1;48514:14:0;48507:3;:21;;;;;;;;;48499:30;;;;;;48546:27;48556:16;48546:9;:27::i;:::-;48542:174;;;48606:26;48615:16;48606:8;:26::i;:::-;-1:-1:-1;;48597:36:0;48590:43;;;;48542:174;48677:26;48686:16;48677:8;:26::i;:::-;48666:38;;48542:174;48299:424;;;;;;:::o;36573:115::-;36656:17;:24;36573:115;:::o;27708:21::-;;;-1:-1:-1;;;;;27708:21:0;;:::o;30675:30::-;;;;:::o;30088:41::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;30088:41:0;;;;;;;;;;;;;:::o;84772:343::-;84846:4;84852;84858;84876:9;84887:16;84905;84925:43;84956:11;84925:30;:43::i;:::-;84875:93;;-1:-1:-1;84875:93:0;-1:-1:-1;84875:93:0;-1:-1:-1;84990:14:0;84983:3;:21;;;;;;;;;84979:80;;85036:3;85031:9;;;;;;;;85023:24;-1:-1:-1;85042:1:0;;-1:-1:-1;85042:1:0;;-1:-1:-1;85023:24:0;;84979:80;85079:1;;-1:-1:-1;85082:11:0;;-1:-1:-1;85095:11:0;-1:-1:-1;85082:11:0;85095;84772:343;;;;;;;;;:::o;85814:5973::-;85879:4;86021:38;;:::i;:::-;85900:6;;86070:21;;;;;;;;85900:6;;85896:115;;;85930:69;85935:21;85958:40;85930:4;:69::i;85896:115::-;-1:-1:-1;;;;;86094:14:0;;;;;;:7;:14;;;;;;;;86166:10;86151:26;;:14;:26;;;;;:33;;;;;;;;;86416:18;;;;86436:25;;;;86463:18;;;;86094:14;;-1:-1:-1;86151:33:0;;-1:-1:-1;86393:107:0;;86416:18;;86436:25;86483:16;:14;:16::i;86393:107::-;86356:144;;;-1:-1:-1;86362:27:0;86515:3;:21;;;;;;;;;86511:132;;86560:71;86565:3;86570:60;86560:4;:71::i;86511:132::-;86712:23;;86737:27;;;;86766;;86695:99;;86712:23;86737:27;86695:16;:99::i;:::-;86661:30;;;86655:139;;-1:-1:-1;86816:14:0;86809:3;:21;;;;;;;;;86805:135;;86854:74;86859:3;86864:63;86854:4;:74::i;86805:135::-;-1:-1:-1;;87108:6:0;:18;87104:212;;;87170:68;87174:31;87187:5;87194:10;87174:12;:31::i;:::-;87207:12;:30;;;87170:3;:68::i;:::-;87143:24;;;:95;87104:212;;;87271:24;;;:33;;;87104:212;87537:61;87541:12;:30;;;87573:12;:24;;;87537:3;:61::i;:::-;87503:30;;;87497:101;;-1:-1:-1;87620:14:0;87613:3;:21;;;;;;;;;87609:133;;87658:72;87663:3;87668:61;87658:4;:72::i;87609:133::-;87934:60;87950:5;87957:10;87969:12;:24;;;87934:15;:60::i;:::-;87928:66;-1:-1:-1;88016:14:0;88009:3;:21;;;;;;;;;88005:121;;88054:60;88059:3;88064:49;88054:4;:60::i;88005:121::-;88544:88;88555:6;:19;;;88576:12;:30;;;88608:13;:23;;;88544:10;:88::i;:::-;88512:28;;;88506:126;;-1:-1:-1;88654:14:0;88647:3;:21;;;;;;;;;88643:132;;88692:71;88697:3;88702:60;88692:4;:71::i;88643:132::-;88908:14;88916:5;88908:7;:14::i;:::-;88881:24;;;:41;;;88999:24;;;;88969:55;;88881:41;88969:3;:55::i;:::-;88941:24;;;88935:89;;-1:-1:-1;89046:14:0;89039:3;:21;;;;;;;;;89035:130;;89084:69;89089:3;89094:58;89084:4;:69::i;89035:130::-;89419:107;89442:6;:18;;;89462:6;:25;;;89489:6;:18;;;89509:16;:14;:16::i;89419:107::-;89388:27;;;89382:144;;-1:-1:-1;89548:14:0;89541:3;:21;;;;;;;;;89537:132;;89586:71;89591:3;89596:60;89586:4;:71::i;89537:132::-;89747:24;;;;89793;;;;89819:28;;;;89747:101;;;-1:-1:-1;;;;;89747:101:0;;-1:-1:-1;;;;;89747:101:0;;;;;;;;;;;;;;;;;;;;;;;:24;;;;;:38;;:101;;;;;;;;;;:24;;:101;;;5:2:-1;;;;30:1;27;20:12;5:2;89747:101:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;89747:101:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;89747:101:0;;;;;;;89709:34;;;89681:167;89747:101;-1:-1:-1;89863:30:0;;89859:168;;89917:98;89928:59;89989:25;89917:10;:98::i;89859:168::-;90105:24;;;;90151;;;;90177:28;;;;90105:101;;;-1:-1:-1;;;;;90105:101:0;;-1:-1:-1;;;;;90105:101:0;;;;;;;;;;;;;;;;;;;;;;;:24;;;;;:38;;:101;;;;;;;;;;:24;;:101;;;5:2:-1;;;;30:1;27;20:12;5:2;90105:101:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;90105:101:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;90105:101:0;;;;;;;90067:34;;;90039:167;90105:101;-1:-1:-1;90221:30:0;;90217:168;;90275:98;90286:59;90347:25;90275:10;:98::i;90217:168::-;90628:57;90641:5;90648:10;90660:12;:24;;;90628:12;:57::i;:::-;90622:63;-1:-1:-1;90707:14:0;90700:3;:21;;;;;;;;;90696:216;;90846:54;90851:3;90856:43;90846:4;:54::i;90696:216::-;90977:16;:14;:16::i;:::-;90956:18;;;;:37;;;;91027:28;;;;;91004:19;;;:51;91094:34;;;;91066:25;;;:62;91160:27;;;;91139:18;;;:48;91226:34;;;;91198:25;;;:62;91292:27;;91271:18;;;:48;;;91393:23;;91362:28;;;:54;;;91493:30;;;;;91467:56;;;91534:27;;;:57;;;;91641:24;;;;;91609:119;;91622:10;91609:119;;-1:-1:-1;;;;;91609:119:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;91753:14;91748:20;;30430:26;;;;:::o;44773:559::-;44908:5;;44840:4;;;;-1:-1:-1;;;;;44908:5:0;44894:10;:19;44890:126;;44937:67;44942:18;44962:41;44937:4;:67::i;44890:126::-;-1:-1:-1;45115:12:0;;;-1:-1:-1;;;;;45187:30:0;;;-1:-1:-1;;45187:30:0;;;;;;;45235:49;;;45115:12;;;;45235:49;;;;;;;;;;;;;;;;;;;;;;;45309:14;45304:20;;28352:69;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;30539:25::-;;;;:::o;49190:861::-;-1:-1:-1;;;;;49395:14:0;;;49269:4;49395:14;;;:7;:14;;;;;;;;49452:23;;;;;:14;:23;;;;;:30;;;;;;;;;49625:18;;;;49645:25;;;;49672:18;;;;49269:4;;;;;;;;49395:14;;49452:30;;49602:107;;49625:18;;49692:16;:14;:16::i;30195:34::-;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;30195:34:0;;-1:-1:-1;30195:34:0;:::o;51777:1320::-;51869:4;52055:9;52066:21;;:::i;:::-;51937:5;;-1:-1:-1;;;;;51937:5:0;51923:10;:19;51919:123;;51966:64;51971:18;51991:38;51966:4;:64::i;:::-;51959:71;;;;51919:123;52091:22;52107:5;52091:15;:22::i;:::-;52054:59;;-1:-1:-1;52054:59:0;-1:-1:-1;52135:14:0;52128:3;:21;;;;;;;;;52124:117;;52173:56;52178:3;52183:45;52173:4;:56::i;52124:117::-;52257:21;52267:10;52257:9;:21::i;:::-;52253:129;;;52302:68;52307:22;52331:38;52302:4;:68::i;52253:129::-;-1:-1:-1;;;;;52452:14:0;;;;;;;:7;:14;;;;;:32;;:52;;-1:-1:-1;;52452:52:0;;;;;;;;;;52573:26;52452:14;52573:19;:26::i;:::-;-1:-1:-1;;;;;52655:14:0;;;;;;:7;:14;;;;;;;;:33;;-1:-1:-1;;52655:33:0;52684:4;52655:33;;;52757:26;;:31;52753:113;;;-1:-1:-1;;;;;52805:14:0;;;;;;:7;:14;;;;;;;;26469:8;52805:26;;:49;52753:113;-1:-1:-1;;;;;52882:14:0;;;;;;:7;:14;;;;;:26;;;:31;52878:113;;;-1:-1:-1;;;;;52930:14:0;;;;;;:7;:14;;;;;26469:8;52930:26;;;;:49;52878:113;53008:41;;;-1:-1:-1;;;;;53008:41:0;;;;;;;;;;;;;;;;;;;;;;;;53074:14;53062:27;;51777:1320;;;;;;;:::o;55122:2627::-;55230:4;55420:29;;:::i;:::-;55503:33;;:::i;:::-;55594;;:::i;:::-;55688:37;;:::i;:::-;55792:9;55812:40;;:::i;:::-;57304:29;;:::i;:::-;57362:33;;:::i;:::-;55298:5;;-1:-1:-1;;;;;55298:5:0;55284:10;:19;55280:128;;55327:69;55332:18;55352:43;55327:4;:69::i;:::-;55320:76;;;;55280:128;55452:40;;;;;;;;;;;;55539:44;;;;;;;;;;55630:47;;;;;;;26602:15;55630:47;;55728:51;;;;;;;;26683:8;55728:51;;55452:40;;-1:-1:-1;55539:44:0;;-1:-1:-1;55630:47:0;;-1:-1:-1;55728:51:0;-1:-1:-1;55945:55:0;55452:40;55630:47;55945:11;:55::i;:::-;55941:175;;;56024:80;56029:30;56061:42;56024:4;:80::i;55941:175::-;56357:63;56369:26;56397:22;56357:11;:63::i;:::-;56353:187;;;56444:84;56449:34;56485:42;56444:4;:84::i;56353:187::-;56838:60;56845:22;56869:28;;;;;;;;;20854:6;56869:28;;;56838:6;:60::i;:::-;56799:99;;-1:-1:-1;56799:99:0;-1:-1:-1;56923:14:0;56916:3;:21;;;;;;;;;56909:29;;;;57039:69;57058:18;57078:29;57039:18;:69::i;:::-;57035:197;;;57132:88;57137:38;57177:42;57132:4;:88::i;57035:197::-;-1:-1:-1;;57304:47:0;;;;;;;;;57336:15;57304:47;;;;57362:55;;;;;;;57398:19;57362:55;;;;;57459:36;;;;;57506:44;;;;57586:27;;57568:133;;;;;;;;;;;;;;;;;;;;;;;;;;57304:47;;57362:55;57568:133;;;;;;;;;57726:14;57714:27;;55122:2627;;;;;;;;;;;;;:::o;53590:973::-;53713:5;;53645:4;;-1:-1:-1;;;;;53713:5:0;53699:10;:19;53695:123;;53742:64;53747:18;53767:38;53742:4;:64::i;53695:123::-;-1:-1:-1;;;;;54244:14:0;;;;;;:7;:14;;;;;:26;;;54243:27;54239:87;;;54299:14;54294:20;;54239:87;-1:-1:-1;;;;;54441:14:0;;54470:5;54441:14;;;:7;:14;;;;;;;;;:34;;-1:-1:-1;;54441:34:0;;;54493:22;;;;;;;;;;;;;;;;;54540:14;54535:20;;95537:19161;95674:4;95813:38;;:::i;:::-;96255:27;96316:31;96385:50;96491:51;96675:55;96802:30;96896:9;95695:6;;;;;;;;;;;95691:112;;;95725:66;95730:21;95753:37;95725:4;:66::i;:::-;95718:73;;;;95691:112;96076:13;96047:12;:26;;:42;-1:-1:-1;;;;;96047:42:0;;;-1:-1:-1;;;;;96047:42:0;;;;;96127:11;96100:12;:24;;:38;-1:-1:-1;;;;;96100:38:0;;;-1:-1:-1;;;;;96100:38:0;;;;;96175:10;96149:12;:23;;:36;-1:-1:-1;;;;;96149:36:0;;;-1:-1:-1;;;;;96149:36:0;;;;;96227:15;96196:12;:28;;:46;-1:-1:-1;;;;;96196:46:0;;;-1:-1:-1;;;;;96196:46:0;;;;;96285:7;:20;96293:11;-1:-1:-1;;;;;96285:20:0;-1:-1:-1;;;;;96285:20:0;;;;;;;;;;;;96255:50;;96350:7;:24;96358:15;-1:-1:-1;;;;;96350:24:0;-1:-1:-1;;;;;96350:24:0;;;;;;;;;;;;96316:58;;96438:14;:29;96453:13;-1:-1:-1;;;;;96438:29:0;-1:-1:-1;;;;;96438:29:0;;;;;;;;;;;;:42;96468:11;-1:-1:-1;;;;;96438:42:0;-1:-1:-1;;;;;96438:42:0;;;;;;;;;;;;96385:95;;96545:14;:29;96560:13;-1:-1:-1;;;;;96545:29:0;-1:-1:-1;;;;;96545:29:0;;;;;;;;;;;;:46;96575:15;-1:-1:-1;;;;;96545:46:0;-1:-1:-1;;;;;96545:46:0;;;;;;;;;;;;96491:100;;96733:14;:39;96748:12;:23;;;-1:-1:-1;;;;;96733:39:0;-1:-1:-1;;;;;96733:39:0;;;;;;;;;;;;:56;96773:15;-1:-1:-1;;;;;96733:56:0;-1:-1:-1;;;;;96733:56:0;;;;;;;;;;;;96675:114;;96995:32;97011:15;96995;:32::i;:::-;96963:28;;;96957:70;;-1:-1:-1;97048:14:0;97041:3;:21;;;;;;;;;97038:117;;97086:57;97091:3;97096:46;97086:4;:57::i;97038:117::-;97210:28;97226:11;97210:15;:28::i;:::-;97173:33;;;97167:71;;-1:-1:-1;97370:14:0;97363:3;:21;;;;;;;;;97356:29;;;;97584:125;97607:12;:24;;;97633:12;:31;;;97666:12;:24;;;97692:16;:14;:16::i;97584:125::-;97537:43;;;97531:178;;-1:-1:-1;97731:14:0;97724:3;:21;;;;;;;;;97720:144;;97769:83;97774:3;97779:72;97769:4;:83::i;97720:144::-;97941:157;97958:34;:44;;;98004:34;:48;;;98054:12;:43;;;97941:16;:157::i;:::-;97882:55;;;97876:222;;-1:-1:-1;98120:14:0;98113:3;:21;;;;;;;;;98109:139;;98158:78;98163:3;98168:67;98158:4;:78::i;98109:139::-;98446:137;98469:16;:28;;;98499:16;:35;;;98536:16;:28;;;98566:16;:14;:16::i;98446:137::-;98399:43;;;98393:190;;-1:-1:-1;98605:14:0;98598:3;:21;;;;;;;;;98594:146;;98643:85;98648:3;98653:74;98643:4;:85::i;98594:146::-;98817:159;98834:35;:45;;;98881:35;:49;;;98932:12;:43;;;98817:16;:159::i;:::-;98758:55;;;98752:224;;-1:-1:-1;98998:14:0;98991:3;:21;;;;;;;;;98987:165;;99036:104;99041:3;99046:93;99036:4;:104::i;98987:165::-;99546:167;99563:39;:49;;;99614:39;:53;;;99669:12;:43;;;99546:16;:167::i;:::-;99483:59;;;99477:236;;-1:-1:-1;99735:14:0;99728:3;:21;;;;;;;;;99724:167;;99773:106;99778:3;99783:95;99773:4;:106::i;99724:167::-;100362:144;100373:16;:28;;;100403:12;:55;;;100460:35;:45;;;100362:10;:144::i;:::-;100307:51;;;100301:205;;-1:-1:-1;100528:14:0;100521:3;:21;;;;;;;;;100517:163;;100566:102;100571:3;100576:91;100566:4;:102::i;100517:163::-;100967:175;100978:12;:51;;;101031:12;:59;;;101092:39;:49;;;100967:10;:175::i;:::-;100912:51;;;100906:236;;-1:-1:-1;101164:14:0;101157:3;:21;;;;;;;;;101153:165;;101202:104;101207:3;101212:93;101202:4;:104::i;101153:165::-;102225:168;102272:12;:33;;;102307:12;:28;;;102337:12;:55;;;102225:46;:168::i;:::-;102162:50;;;102156:237;;-1:-1:-1;102415:14:0;102408:3;:21;;;;;;;;;102404:142;;102453:81;102458:3;102463:70;102453:4;:81::i;102404:142::-;102562:24;;;;102558:1266;;;102738:86;102775:13;102790:12;:33;;;102738:36;:86::i;:::-;102681:40;;;102675:149;;-1:-1:-1;102850:14:0;102843:3;:21;;;;;;;;;102839:152;;102892:83;102897:3;102902:72;102892:4;:83::i;102839:152::-;103187:112;103191:12;:55;;;103248:12;:50;;;103187:3;:112::i;:::-;103125:59;;;:174;;;103485:40;;;;103420:106;;103125:174;103420:3;:106::i;:::-;103358:59;;;:168;102558:1266;;;103700:112;103704:12;:55;;;103761:12;:50;;;103700:3;:112::i;:::-;103638:59;;;:174;102558:1266;-1:-1:-1;;103977:20:0;:32;103973:287;;;104081:59;;;;104026:52;;;:114;103973:287;;;104173:52;;;:75;;;103973:287;104506:12;:59;;;104451:12;:52;;;:114;104447:241;;;104589:87;104594:36;104632:43;104589:4;:87::i;104447:241::-;104911:139;104932:12;:33;;;104967:12;:28;;;104997:12;:52;;;104911:20;:139::i;:::-;104855:52;;;104849:201;;-1:-1:-1;105072:14:0;105065:3;:21;;;;;;;;;105061:125;;105110:64;105115:3;105120:53;105110:4;:64::i;105061:125::-;105398:107;105414:11;105427:12;:23;;;105452:12;:52;;;105398:15;:107::i;:::-;105392:113;-1:-1:-1;105527:14:0;105520:3;:21;;;;;;;;;105516:118;;105565:57;105570:3;105575:46;105565:4;:57::i;105516:118::-;106194:114;106198:12;:55;;;106255:12;:52;;;106194:3;:114::i;:::-;106135:55;;;106129:179;;-1:-1:-1;106512:14:0;106505:3;:21;;;;;;;;;106498:29;;;;106991:140;107002:12;:25;;;107029:12;:55;;;107086:34;:44;;;106991:10;:140::i;:::-;106935:52;;;106929:202;;-1:-1:-1;107153:14:0;107146:3;:21;;;;;;;;;107142:144;;107191:83;107196:3;107201:72;107191:4;:83::i;107142:144::-;107449:20;107457:11;107449:7;:20::i;:::-;107398:48;;;:71;;;107592:52;;;;107538:107;;107398:71;107538:3;:107::i;:::-;107486:48;;;107480:165;;-1:-1:-1;107667:14:0;107660:3;:21;;;;;;;;;107656:142;;107705:81;107710:3;107715:70;107705:4;:81::i;107656:142::-;108302:125;108325:12;:24;;;108351:12;:31;;;108384:12;:24;;;108410:16;:14;:16::i;108302:125::-;108255:43;;;108249:178;;-1:-1:-1;108449:14:0;108442:3;:21;;;;;;;;;108438:144;;108487:83;108492:3;108497:72;108487:4;:83::i;108438:144::-;108684:12;:30;;;;;;;;;;-1:-1:-1;;;;;108684:30:0;-1:-1:-1;;;;;108684:44:0;;108729:11;108742:12;:48;;;108792:12;:52;;;108684:161;;;;;-1:-1:-1;;;108684:161:0;;;;;;;-1:-1:-1;;;;;108684:161:0;-1:-1:-1;;;;;108684:161:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;108684:161:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;108684:161:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;108684:161:0;;;;;;;108622:58;;;108594:251;108684:161;-1:-1:-1;108860:30:0;;108856:180;;108914:110;108925:71;108998:25;108914:10;:110::i;108856:180::-;109138:12;:30;;;;;;;;;;-1:-1:-1;;;;;109138:30:0;-1:-1:-1;;;;;109138:44:0;;109183:11;109196:12;:48;;;109246:12;:52;;;109138:161;;;;;-1:-1:-1;;;109138:161:0;;;;;;;-1:-1:-1;;;;;109138:161:0;-1:-1:-1;;;;;109138:161:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;109138:161:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;109138:161:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;109138:161:0;;;;;;;109076:58;;;109048:251;109138:161;-1:-1:-1;109314:30:0;;109310:180;;109368:110;109379:71;109452:25;109368:10;:110::i;109310:180::-;110087:137;110110:16;:28;;;110140:16;:35;;;110177:16;:28;;;110207:16;:14;:16::i;110087:137::-;110040:43;;;110034:190;;-1:-1:-1;110246:14:0;110239:3;:21;;;;;;;;;110235:146;;110284:85;110289:3;110294:74;110284:4;:85::i;110235:146::-;110611:114;110615:12;:55;;;110672:12;:52;;;110611:3;:114::i;:::-;110552:55;;;110546:179;;-1:-1:-1;111124:14:0;111117:3;:21;;;;;;;;;111109:30;;;;111379:118;111383:12;:59;;;111444:12;:52;;;111379:3;:118::i;:::-;111316:59;;;111310:187;;-1:-1:-1;111744:14:0;111737:3;:21;;;;;;;;;111729:30;;;;112003:104;112016:11;112029:12;:23;;;112054:12;:52;;;112003:12;:104::i;:::-;111997:110;-1:-1:-1;112129:14:0;112122:3;:21;;;;;;;;;112118:213;;112268:51;112273:3;112278:40;112268:4;:51::i;112118:213::-;112409:16;:14;:16::i;:::-;112382:24;;;:43;112464:52;;;;112436:25;;;:80;112626:58;;;;112592:31;;;:92;112722:43;;;;112695:24;;;:70;112810:58;;;;112776:31;;;:92;112906:43;;;;112879:24;;;:70;113178:16;:14;:16::i;:::-;113147:28;;;;:47;;;;113236:51;;;;113205:28;;;:82;113329:43;;;;113298:28;;;:74;;;113414:43;;;;113383:28;;;:74;113561:44;;113502:56;;;:103;113688:55;;;;113641:102;;113805:43;;;;113754:48;;;:94;113920:45;;113861:56;;;:104;114049:55;;;;114001:103;;114115:49;;;:95;;;114286:49;;114223:60;;;:112;114423:59;;;;114371:111;;114493:53;;;:99;114605:34;113236:12;114605:20;:34::i;:::-;114664:14;114652:27;;95537:19161;;;;;;;;;;;;;;;:::o;45610:587::-;45650:4;45762:12;;45650:4;;-1:-1:-1;;;;;45762:12:0;45748:10;:26;45744:136;;45798:70;45803:18;45823:44;45798:4;:70::i;:::-;45791:77;;;;45744:136;-1:-1:-1;45963:5:0;;;;46026:12;;-1:-1:-1;;46018:20:0;;;-1:-1:-1;;;;;46026:12:0;;;46018:20;;;;;;;46085:16;;;46119:30;;;45963:5;;;;46119:30;;;46138:10;46119:30;;;;;;45963:5;;46119:30;;;;;;;;;46174:14;46162:27;;45610:587;;;:::o;62765:5231::-;62825:4;62963:21;63012:23;63084:35;;:::i;:::-;62846:6;;63172:9;;;;62846:6;;62842:109;;;62876:63;62881:21;62904:34;62876:4;:63::i;62842:109::-;-1:-1:-1;;;;;62987:14:0;;;;;;:7;:14;;;;;;;;63053:10;63038:26;;:14;:26;;;;;:33;;;;;;;;;63409:18;;62987:14;;-1:-1:-1;63038:33:0;-1:-1:-1;63409:18:0;;63408:19;63404:132;;;63451:73;63456:26;63484:39;63451:4;:73::i;63404:132::-;63635:42;63651:5;63658:10;63670:6;63635:15;:42::i;:::-;63629:48;-1:-1:-1;63699:14:0;63692:3;:21;;;;;;;;;63688:115;;63737:54;63742:3;63747:43;63737:4;:54::i;63688:115::-;63950:107;63973:6;:18;;;63993:6;:25;;;64020:6;:18;;;64040:16;:14;:16::i;63950:107::-;63919:27;;;63913:144;;-1:-1:-1;64079:14:0;64072:3;:21;;;;;;;;;64068:126;;64117:65;64122:3;64127:54;64117:4;:65::i;64068:126::-;64246:87;64263:7;:17;;;64282:7;:21;;;64305:12;:27;;;64246:16;:87::i;:::-;64212:30;;;64206:127;;-1:-1:-1;64355:14:0;64348:3;:21;;;;;;;;;64344:129;;64393:68;64398:3;64403:57;64393:4;:68::i;64344:129::-;64525:43;64529:12;:30;;;64561:6;64525:3;:43::i;:::-;64491:30;;;64485:83;;-1:-1:-1;64590:14:0;64583:3;:21;;;;;;;;;64579:127;;64628:66;64633:3;64638:55;64628:4;:66::i;64579:127::-;64890:81;64901:6;:18;;;64921:12;:30;;;64953:7;:17;;;64890:10;:81::i;:::-;64859:27;;;64853:118;;-1:-1:-1;64993:14:0;64986:3;:21;;;;;;;;;64982:126;;65031:65;65036:3;65041:54;65031:4;:65::i;64982:126::-;65241:14;65249:5;65241:7;:14::i;:::-;65214:24;;;:41;;;65302:37;;65332:6;65302:3;:37::i;:::-;65274:24;;;65268:71;;-1:-1:-1;65361:14:0;65354:3;:21;;;;;;;;;65350:124;;65399:63;65404:3;65409:52;65399:4;:63::i;65350:124::-;65675:24;;;;65721;;;;65747:19;;;;65675:92;;;-1:-1:-1;;;;;65675:92:0;;-1:-1:-1;;;;;65675:92:0;;;;;;;;;;;;;;;;;;;;;;;:24;;;;;:38;;:92;;;;;;;;;;:24;;:92;;;5:2:-1;;;;30:1;27;20:12;5:2;65675:92:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;65675:92:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;65675:92:0;;;;;;;65637:34;;;65609:158;65675:92;-1:-1:-1;65782:30:0;;65778:162;;65836:92;65847:53;65902:25;65836:10;:92::i;65778:162::-;66065:107;66088:6;:18;;;66108:6;:25;;;66135:6;:18;;;66155:16;:14;:16::i;66065:107::-;66034:27;;;66028:144;;-1:-1:-1;66194:14:0;66187:3;:21;;;;;;;;;66183:126;;66232:65;66237:3;66242:54;66232:4;:65::i;66183:126::-;66387:24;;;;66433;;;;66459:19;;;;66387:92;;;-1:-1:-1;;;;;66387:92:0;;-1:-1:-1;;;;;66387:92:0;;;;;;;;;;;;;;;;;;;;;;;:24;;;;;:38;;:92;;;;;;;;;;:24;;:92;;;5:2:-1;;;;30:1;27;20:12;5:2;66387:92:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;66387:92:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;66387:92:0;;;;;;;66349:34;;;66321:158;66387:92;-1:-1:-1;66494:30:0;;66490:162;;66548:92;66559:53;66614:25;66548:10;:92::i;66490:162::-;66895:39;66908:5;66915:10;66927:6;66895:12;:39::i;:::-;66889:45;-1:-1:-1;66956:14:0;66949:3;:21;;;;;;;;;66945:210;;67095:48;67100:3;67105:37;67095:4;:48::i;66945:210::-;67220:16;:14;:16::i;:::-;67199:18;;;;:37;;;;67269:27;;;;;67247:18;;;:49;67335:34;;;;67307:25;;;:62;67401:27;;;;;67380:18;;;:48;;;67467:34;;;;67439:25;;;:62;67533:27;;;;67512:18;;;:48;67634:17;;67603:48;;;67724:30;;;;;67704:50;;;67765:21;;;:51;;;;67834:103;;;67849:10;67834:103;;-1:-1:-1;;;;;67834:103:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;67962:14;67957:20;;68924:7592;68995:4;69135:21;69184:29;69262:37;;:::i;:::-;69016:6;;69347:9;;;;69016:6;;69012:111;;;69046:65;69051:21;69074:36;69046:4;:65::i;69012:111::-;-1:-1:-1;;;;;69159:14:0;;;;;;:7;:14;;;;;;;;69231:10;69216:26;;;:14;:26;;;;;:33;;;;;;;;;;69159:14;;-1:-1:-1;69216:33:0;-1:-1:-1;69683:37:0;;:25;:37::i;:::-;69650:29;;;69613:107;69619:29;;;69613:107;;-1:-1:-1;;69735:3:0;:21;;;;;;;;;69731:129;;69780:68;69785:3;69790:57;69780:4;:68::i;69731:129::-;70007:107;70030:6;:18;;;70050:6;:25;;;70077:6;:18;;;70097:16;:14;:16::i;70007:107::-;69976:27;;;69970:144;;-1:-1:-1;70136:14:0;70129:3;:21;;;;;;;;;70125:128;;70174:67;70179:3;70184:56;70174:4;:67::i;70125:128::-;70305:99;70322:13;:23;;;70347:13;:27;;;70376:12;:27;;;70305:16;:99::i;:::-;70271:30;;;70265:139;;-1:-1:-1;70426:14:0;70419:3;:21;;;;;;;;;70415:131;;70464:70;70469:3;70474:59;70464:4;:70::i;70415:131::-;-1:-1:-1;;70695:15:0;:27;70691:490;;;70778:60;70801:5;70808:12;:29;;;70778:22;:60::i;:::-;70745:29;;;70739:99;;-1:-1:-1;70864:14:0;70857:3;:21;;;;;;;;;70853:128;;70906:59;70911:3;70916:48;70906:4;:59::i;70853:128::-;71025:66;71029:12;:29;;;71060:12;:30;;;71025:3;:66::i;:::-;70995:96;;70691:490;;;71124:45;;;70691:490;71425:14;71433:5;71425:7;:14::i;:::-;71398:24;;;:41;;;71514:27;;71484:58;;71398:41;71484:3;:58::i;:::-;71456:24;;;71450:92;;-1:-1:-1;71564:14:0;71557:3;:21;;;;;;;;;71553:144;;71602:83;71607:29;71638:46;71602:4;:83::i;71553:144::-;71922:64;71926:12;:30;;;71958:12;:27;;;71922:3;:64::i;:::-;71888:30;;;71882:104;;-1:-1:-1;72008:14:0;72001:3;:21;;;;;;;;;71997:152;;72046:91;72051:26;72079:57;72046:4;:91::i;71997:152::-;72219:40;72229:12;:29;;;72219:9;:40::i;:::-;72218:41;72214:163;;;72283:82;72288:28;72318:46;72283:4;:82::i;72214:163::-;72750:58;72773:5;72780:12;:27;;;72750:22;:58::i;:::-;72713:33;;;72707:101;;-1:-1:-1;72877:14:0;72870:3;:21;;;;;;;;;72866:124;;72915:63;72920:3;72925:52;72915:4;:63::i;72866:124::-;73129:77;73141:12;:29;;;73172:12;:33;;;73129:11;:77::i;:::-;73125:201;;;73231:83;73236:28;73266:47;73231:4;:83::i;73125:201::-;73728:87;73739:6;:18;;;73759:12;:30;;;73791:13;:23;;;73728:10;:87::i;:::-;73697:27;;;73691:124;;-1:-1:-1;73837:14:0;73830:3;:21;;;;;;;;;73826:128;;73875:67;73880:3;73885:56;73875:4;:67::i;73826:128::-;74155:24;;;;74201;;;;74227:19;;;;74155:92;;;-1:-1:-1;;;;;74155:92:0;;-1:-1:-1;;;;;74155:92:0;;;;;;;;;;;;;;;;;;;;;;;:24;;;;;:38;;:92;;;;;;;;;;:24;;:92;;;5:2:-1;;;;30:1;27;20:12;5:2;74155:92:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;74155:92:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;74155:92:0;;;;;;;74117:34;;;74089:158;74155:92;-1:-1:-1;74262:30:0;;74258:164;;74316:94;74327:55;74384:25;74316:10;:94::i;74258:164::-;74515:107;74538:6;:18;;;74558:6;:25;;;74585:6;:18;;;74605:16;:14;:16::i;74515:107::-;74484:27;;;74478:144;;-1:-1:-1;74644:14:0;74637:3;:21;;;;;;;;;74633:128;;74682:67;74687:3;74692:56;74682:4;:67::i;74633:128::-;74839:24;;;;74885;;;;74911:19;;;;74839:92;;;-1:-1:-1;;;;;74839:92:0;;-1:-1:-1;;;;;74839:92:0;;;;;;;;;;;;;;;;;;;;;;;:24;;;;;:38;;:92;;;;;;;;;;:24;;:92;;;5:2:-1;;;;30:1;27;20:12;5:2;74839:92:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;74839:92:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;74839:92:0;;;;;;;74801:34;;;74773:158;74839:92;-1:-1:-1;74946:30:0;;74942:164;;75000:94;75011:55;75068:25;75000:10;:94::i;74942:164::-;75349:61;75363:5;75370:10;75382:12;:27;;;75349:13;:61::i;:::-;75343:67;-1:-1:-1;75432:14:0;75425:3;:21;;;;;;;;;75421:213;;75571:51;75576:3;75581:40;75571:4;:51::i;75421:213::-;75699:16;:14;:16::i;:::-;75678:6;:18;;:37;;;;75748:12;:27;;;75726:6;:18;;:49;;;;75814:12;:34;;;75786:6;:25;;:62;;;;75880:12;:27;;;75859:6;:18;;:48;;;;75946:12;:34;;;75918:6;:25;;:62;;;;76012:12;:27;;;75991:6;:18;;:48;;;;76113:13;:23;;;76082:12;:28;;:54;;;;;76216:12;:30;;;76190:13;:23;;:56;;;;76287:12;:27;;;76257:13;:27;;:57;;;;76332:125;76348:10;76360:5;76367:12;:27;;;76396:12;:28;;;76426:12;:30;;;76332:125;;;;-1:-1:-1;;;;;76332:125:0;-1:-1:-1;;;;;76332:125:0;;;;;;-1:-1:-1;;;;;76332:125:0;-1:-1:-1;;;;;76332:125:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;76482:14;76477:20;;27513;;;-1:-1:-1;;;;;27513:20:0;;:::o;28533:69::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;35762:93::-;35835:12;35762:93;:::o;36919:1559::-;37061:5;37068:4;37120:10;37132:15;37450:10;37462:26;;:::i;:::-;37743:10;37755:33;;:::i;:::-;38045:10;38057:30;;:::i;:::-;37151:25;37155:8;37165:10;37151:3;:25::i;:::-;37119:57;;-1:-1:-1;37119:57:0;-1:-1:-1;37199:14:0;37191:4;:22;;;;;;;;;37187:71;;37238:4;;-1:-1:-1;37244:1:0;;-1:-1:-1;37238:4:0;;37230:16;;37187:71;37492:60;37502:37;;;;;;;;;37517:20;37502:37;;;37541:10;37492:9;:60::i;:::-;37449:103;;-1:-1:-1;37449:103:0;-1:-1:-1;37575:14:0;37567:4;:22;;;;;;;;;37563:71;;37614:4;;-1:-1:-1;37620:1:0;;-1:-1:-1;37614:4:0;;37606:16;;37563:71;37792:53;37799:15;37816:28;;;;;;;;;20854:6;37816:28;;;37792:6;:53::i;:::-;37742:103;;-1:-1:-1;37742:103:0;-1:-1:-1;37868:14:0;37860:4;:22;;;;;;;;;37856:71;;37907:4;;-1:-1:-1;37913:1:0;;-1:-1:-1;37907:4:0;;37899:16;;37856:71;38091:56;38101:22;38125:21;38091:9;:56::i;:::-;38044:103;;-1:-1:-1;38044:103:0;-1:-1:-1;38170:14:0;38162:4;:22;;;;;;;;;38158:71;;38209:4;;-1:-1:-1;38215:1:0;;-1:-1:-1;38209:4:0;;38201:16;;38158:71;38424:14;38440:29;38449:19;38440:8;:29::i;:::-;38416:54;;;;36919:1559;;;;;;;;;;;;;;;;:::o;38875:615::-;38994:5;;;;39022:20;;39018:234;;;39222:14;;-1:-1:-1;39222:14:0;;-1:-1:-1;39214:26:0;;39018:234;39301:38;39305:15;39322:16;39301:3;:38::i;:::-;39262:77;;-1:-1:-1;39262:77:0;-1:-1:-1;39362:14:0;39354:4;:22;;;;;;;;;39350:71;;39401:4;;-1:-1:-1;39407:1:0;;-1:-1:-1;39401:4:0;;39393:16;;39350:71;39440:42;39444:17;39463:18;39440:3;:42::i;:::-;39433:49;;;;38875:615;;;;;;;;;:::o;6951:153::-;7012:4;7034:33;7047:3;7042:9;;;;;;;;7058:4;7053:10;;;;;;;;7034:33;;;;;;;;;;;;;7065:1;7034:33;;;;;;;;;;;;;7092:3;7087:9;;;;;;;18195:174;18331:30;;;;;;18355:4;18331:30;;;;;;18250:4;;18305:5;;-1:-1:-1;;;;;18331:15:0;;;;;:30;;;;;;;;;;;;;;18250:4;18331:15;:30;;;5:2:-1;;;;30:1;27;20:12;5:2;18331:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;18331:30:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;18331:30:0;;18195:174;-1:-1:-1;;;18195:174:0:o;15424:247::-;15491:5;15498:4;15516:10;15528:8;15540:9;15544:1;15547;15540:3;:9::i;:::-;15515:34;;-1:-1:-1;15515:34:0;-1:-1:-1;15574:14:0;15566:4;:22;;;;;;;;;15562:71;;15613:4;;-1:-1:-1;15619:1:0;;-1:-1:-1;15613:4:0;;15605:16;;15562:71;15652:11;15656:3;15661:1;15652:3;:11::i;19341:989::-;19422:5;19440:31;19519:11;19500:5;19440:66;;19543:5;-1:-1:-1;;;;;19543:14:0;;19558:2;19562:6;19543:26;;;;;-1:-1:-1;;;19543:26:0;;;;;;;-1:-1:-1;;;;;19543:26:0;-1:-1:-1;;;;;19543:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;19543:26:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;19543:26:0;;;;19613:16;19652:1;19647:150;;;;19820:2;19815:217;;;;20167:1;20164;20157:12;19647:150;-1:-1:-1;;19741:6:0;-1:-1:-1;19647:150:0;;19815:217;19917:2;19914:1;19911;19896:24;19958:1;19952:8;19942:18;;19606:582;;20216:6;20215:7;20211:78;;;20246:31;20239:38;;;;20211:78;20308:14;20301:21;;19341:989;;;;;;;;:::o;41489:745::-;41569:5;41576:4;41793:10;41805:31;;:::i;:::-;41987:10;41999:30;;:::i;:::-;41689:25;;;;;;;;;41699:14;41689:25;;;;;:9;:25::i;:::-;41685:95;;;41739:14;41755:12;41731:37;;;;;;41685:95;41840:52;;;;;;;;;41847:14;41840:52;;;41863:28;;;;;;;;20854:6;41863:28;;41840:52;;:6;:52::i;:::-;41792:100;;-1:-1:-1;41792:100:0;-1:-1:-1;41915:14:0;41907:4;:22;;;;;;;;;41903:71;;41954:4;;-1:-1:-1;41960:1:0;;-1:-1:-1;41954:4:0;;41946:16;;41903:71;42033:45;42043:20;42065:12;42033:9;:45::i;:::-;41986:92;;-1:-1:-1;41986:92:0;-1:-1:-1;42101:14:0;42093:4;:22;;;;;;;;;42089:71;;42140:4;;-1:-1:-1;42146:1:0;;-1:-1:-1;42140:4:0;;42132:16;;42089:71;42180:14;42196:29;42205:19;42196:8;:29::i;:::-;42172:54;;;;41489:745;;;;;;;;:::o;15113:242::-;15165:5;;15198;;;15220:6;;;15216:132;;15251:14;15267:1;15243:26;;;;;;15216:132;15310:22;;-1:-1:-1;15334:1:0;;-1:-1:-1;15216:132:0;15113:242;;;;;;:::o;77274:1885::-;77353:5;77360:3;;:::i;:::-;77372;;:::i;:::-;77395:9;77415:28;77454;77722:17;;:::i;:::-;77760:31;;:::i;:::-;77845;;:::i;:::-;77551:43;77582:11;77551:30;:43::i;:::-;77493:101;;-1:-1:-1;77493:101:0;-1:-1:-1;77493:101:0;-1:-1:-1;77616:14:0;77609:3;:21;;;;;;;;;77605:105;;77659:18;;;;;;;;;-1:-1:-1;77659:18:0;;;77679;;;;;;;;;;;77654:3;;-1:-1:-1;77659:18:0;;-1:-1:-1;77679:18:0;;-1:-1:-1;77654:3:0;;77647:51;;77605:105;77794:40;;;;;;;;;;;;77953:65;;;;;;;77960:15;77953:65;;;77977:40;;;;;;;;;;;77794;;-1:-1:-1;77953:65:0;;;:6;:65::i;:::-;77923:95;;-1:-1:-1;77923:95:0;-1:-1:-1;78040:14:0;78033:3;:21;;;;;;;;;78029:106;;78084:18;;;;;;;;;-1:-1:-1;78084:18:0;;;78104;;;;;;;;;;;78079:3;;-1:-1:-1;78084:18:0;;-1:-1:-1;78104:18:0;;-1:-1:-1;78079:3:0;;78071:52;;78029:106;78337:55;78349:20;78371;78337:11;:55::i;:::-;78333:819;;;78479:50;78486:20;78508;78479:6;:50::i;:::-;78463:66;;-1:-1:-1;78463:66:0;-1:-1:-1;78558:14:0;78551:3;:21;;;;;;;;;78544:29;;;;78731:18;;;;;;;;;78715:14;78731:18;;;78715:14;-1:-1:-1;78731:18:0;-1:-1:-1;78751:6:0;;-1:-1:-1;78751:6:0;;78707:51;;78333:819;78861:50;78868:20;78890;78861:6;:50::i;:::-;78845:66;;-1:-1:-1;78845:66:0;-1:-1:-1;78940:14:0;78933:3;:21;;;;;;;;;78926:29;;;;79121:18;;;;;;;;;79097:14;79121:18;;;79097:14;-1:-1:-1;79113:6:0;;-1:-1:-1;79121:18:0;;-1:-1:-1;79113:6:0;;78333:819;77274:1885;;;;;;;;;;;:::o;26260:111::-;26344:14;:19;;26260:111::o;40415:822::-;40517:5;40524:3;;:::i;:::-;40548:9;40568:21;;:::i;:::-;40600:22;;:::i;:::-;40653;40669:5;40653:15;:22::i;:::-;40633:42;;-1:-1:-1;40633:42:0;-1:-1:-1;40697:14:0;40690:3;:21;;;;;;;;;40686:86;;40741:18;;;;;;;;;-1:-1:-1;40741:18:0;;40736:3;;-1:-1:-1;40741:18:0;;-1:-1:-1;40736:3:0;;40728:32;;40686:86;40788:21;40798:10;40788:9;:21::i;:::-;40784:108;;;40861:18;;;;;;;;;-1:-1:-1;40861:18:0;;40834:25;;-1:-1:-1;40861:18:0;-1:-1:-1;40826:54:0;;40784:108;40990:35;;;;;;;;;40997:15;40990:35;;;;;41014:10;40990:6;:35::i;:::-;40969:56;;-1:-1:-1;40969:56:0;-1:-1:-1;41047:14:0;41040:3;:21;;;;;;;;;41036:86;;41091:18;;;;;;;;;-1:-1:-1;41091:18:0;;41086:3;;-1:-1:-1;41091:18:0;;-1:-1:-1;41086:3:0;;41078:32;;41036:86;41194:35;41204:11;41217;41194:9;:35::i;:::-;41187:42;;;;40415:822;;;;;;;;;:::o;25762:198::-;25881:14;25865:13;;:30;;25762:198::o;14808:220::-;14860:5;;14888:6;;;14884:137;;-1:-1:-1;14919:14:0;;-1:-1:-1;14935:5:0;;;14911:30;;14884:137;-1:-1:-1;14982:23:0;;-1:-1:-1;15007:1:0;14884:137;14808:220;;;;;:::o;7229:206::-;7303:4;7325:58;7338:18;7364:4;7359:10;;;;;;;;7325:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;7408:18;7403:24;;42404:421;42467:5;42474:3;;:::i;:::-;42501:6;;42616:36;;;;-1:-1:-1;;;;;42501:6:0;:20;42497:107;;;42573:18;;;;;;;;;-1:-1:-1;42573:18:0;;42546:25;;-1:-1:-1;42573:18:0;-1:-1:-1;42538:54:0;;42497:107;42676:6;;42715:34;;;;;;-1:-1:-1;;;;;42715:34:0;;;;;;;;;42676:6;;;;;-1:-1:-1;42676:6:0;;42715:27;;:34;;;;;;;;;;;;;;42676:6;;42715:34;;;5:2:-1;;;;30:1;27;20:12;5:2;42715:34:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;42715:34:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;42715:34:0;42786:30;;;42715:34;42786:30;;;;;;;;42770:14;;-1:-1:-1;42786:30:0;-1:-1:-1;42715:34:0;-1:-1:-1;42404:421:0;;;;;;:::o;25465:211::-;25647:12;25662:6;25647:21;;;25465:211::o;79915:4247::-;79999:5;80006:4;80012;80452:41;;:::i;:::-;80571:18;;;;;;;;;80655:9;80571:18;;;80544:24;;;:45;;;;80626:18;;;;;;;;;;;80600:23;;;:44;;;;80753:17;:24;80714:36;;;:63;;;;80655:9;;;;80790:3252;80811:12;:36;;;80807:1;:40;80790:3252;;;80897:17;:20;;80915:1;;80897:20;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;80897:20:0;;;80869:48;;;80963:34;;:7;:34;;;;;;81044:27;;;;;;:14;:27;;;;;81072:25;;81044:54;;;;;;;;;81145:27;;;:14;:27;;;;;81173:25;;81145:54;;;;;;;;;;;81220:23;;80963:34;;-1:-1:-1;81044:54:0;;-1:-1:-1;81145:54:0;-1:-1:-1;81220:27:0;81216:1413;;;81404:128;81427:13;:25;;;81454:13;:32;;;81488:13;:25;;;81515:16;:14;:16::i;81404:128::-;81373:27;;;81367:165;;-1:-1:-1;81562:14:0;81555:3;:21;;;;;;;;;81551:88;;81609:3;;-1:-1:-1;81614:1:0;;-1:-1:-1;81614:1:0;;-1:-1:-1;81609:3:0;;81601:18;;81551:88;81699:99;81716:13;:23;;;81741:13;:27;;;81770:12;:27;;;81699:16;:99::i;:::-;81665:30;;;81659:139;;-1:-1:-1;81828:14:0;81821:3;:21;;;;;;;;;81817:88;;81875:3;;-1:-1:-1;81880:1:0;;-1:-1:-1;81880:1:0;;-1:-1:-1;81875:3:0;;81867:18;;81817:88;82092:81;82115:12;:25;;;82142:12;:30;;;82092:22;:81::i;:::-;82059:29;;;82053:120;;-1:-1:-1;82253:14:0;82246:3;:21;;;;;;;;;82242:88;;82300:3;;-1:-1:-1;82305:1:0;;-1:-1:-1;82305:1:0;;-1:-1:-1;82300:3:0;;82292:18;;82242:88;82444:63;82451:12;:29;;;82482:12;:24;;;82444:6;:63::i;:::-;82416:24;;;82410:97;;-1:-1:-1;82537:14:0;82530:3;:21;;;;;;;;;82526:88;;82584:3;;-1:-1:-1;82589:1:0;;-1:-1:-1;82589:1:0;;-1:-1:-1;82584:3:0;;82576:18;;82526:88;82649:23;;82675:1;-1:-1:-1;82645:1386:0;;;82816:128;82839:13;:25;;;82866:13;:32;;;82900:13;:25;;;82927:16;:14;:16::i;82816:128::-;82785:27;;;82779:165;;-1:-1:-1;82974:14:0;82967:3;:21;;;;;;;;;82963:88;;83021:3;;-1:-1:-1;83026:1:0;;-1:-1:-1;83026:1:0;;-1:-1:-1;83021:3:0;;83013:18;;82963:88;83111:99;83128:13;:23;;;83153:13;:27;;;83182:12;:27;;;83111:16;:99::i;:::-;83077:30;;;83071:139;;-1:-1:-1;83240:14:0;83233:3;:21;;;;;;;;;83229:88;;83287:3;;-1:-1:-1;83292:1:0;;-1:-1:-1;83292:1:0;;-1:-1:-1;83287:3:0;;83279:18;;83229:88;83472:81;83495:12;:25;;;83522:12;:30;;;83472:22;:81::i;:::-;83439:29;;;83433:120;;-1:-1:-1;83658:14:0;83651:3;:21;;;;;;;;;83647:88;;83705:3;;-1:-1:-1;83710:1:0;;-1:-1:-1;83710:1:0;;-1:-1:-1;83705:3:0;;83697:18;;83647:88;83847:62;83854:12;:29;;;83885:12;:23;;;83847:6;:62::i;:::-;83820:23;;;83814:95;;-1:-1:-1;83939:14:0;83932:3;:21;;;;;;;;;83928:88;;83986:3;;-1:-1:-1;83991:1:0;;-1:-1:-1;83991:1:0;;-1:-1:-1;83986:3:0;;83978:18;;83928:88;80849:3;;;;;80790:3252;;;-1:-1:-1;;;;84086:24:0;;;;:33;84121:23;;;;;:32;84070:14;;84086:33;;-1:-1:-1;84121:32:0;-1:-1:-1;79915:4247:0;;-1:-1:-1;;;79915:4247:0:o;18446:184::-;18520:4;18537:20;18575:5;18537:44;;18601:5;-1:-1:-1;;;;;18601:15:0;;18617:4;18601:21;;;;;-1:-1:-1;;;18601:21:0;;;;;;;-1:-1:-1;;;;;18601:21:0;-1:-1:-1;;;;;18601:21:0;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;18601:21:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;18601:21:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;18601:21:0;;18446:184;-1:-1:-1;;;;18446:184:0:o;35433:163::-;35485:4;35510:1;35506;:5;35502:87;;;-1:-1:-1;35535:1:0;35528:8;;35502:87;-1:-1:-1;35576:1:0;35569:8;;15951:441;16122:36;;;;;;-1:-1:-1;;;;;16122:36:0;;;;;;;16152:4;16122:36;;;;;;16041:5;;16099;;16161:6;;16122:15;;;;;;:36;;;;;;;;;;;;;;;16041:5;16122:15;:36;;;5:2:-1;;;;30:1;27;20:12;5:2;16122:36:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;16122:36:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;16122:36:0;:45;16118:119;;;16191:34;16184:41;;;;16118:119;16277:6;16253:5;-1:-1:-1;;;;;16253:15:0;;16269:4;16253:21;;;;;-1:-1:-1;;;16253:21:0;;;;;;;-1:-1:-1;;;;;16253:21:0;-1:-1:-1;;;;;16253:21:0;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;16253:21:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;16253:21:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;16253:21:0;:30;16249:102;;;16307:32;16300:39;;;;16249:102;16370:14;16363:21;;15951:441;;;;;;;:::o;17106:1007::-;17309:47;;;;;;-1:-1:-1;;;;;17309:47:0;;;;;;;17342:4;17309:47;;;;;;;;;;;;17188:5;;17266;;17188;;17309:18;;;;;;:47;;;;;17188:5;;17309:47;;;;;;;;17188:5;17309:18;:47;;;5:2:-1;;;;30:1;27;20:12;5:2;17309:47:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;17309:47:0;;;;17400:16;17439:1;17434:150;;;;17607:2;17602:217;;;;17954:1;17951;17944:12;17434:150;-1:-1:-1;;17528:6:0;-1:-1:-1;17434:150:0;;17602:217;17704:2;17701:1;17698;17683:24;17745:1;17739:8;17729:18;;17393:582;;18003:6;18002:7;17998:74;;;18033:27;18026:34;;;;36061:267;36130:6;36125:154;36146:17;:24;36142:28;;36125:154;;;36220:5;-1:-1:-1;;;;;36196:29:0;:17;36214:1;36196:20;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;36196:20:0;:29;36192:76;;;36246:7;;36192:76;36172:3;;36125:154;;;36291:17;27:10:-1;;39:1;23:18;;45:23;;-1:-1;36291:29:0;;;;;;;;-1:-1:-1;;36291:29:0;-1:-1:-1;;;;;36291:29:0;;;;;36061:267;;;:::o;21684:213::-;21751:5;21758:3;;:::i;:::-;21782:11;21795;21810:27;21814:1;:10;;;21826:1;:10;;;21810:3;:27::i;:::-;21865:23;;;;;;;;;;;;21781:56;;-1:-1:-1;21865:23:0;;-1:-1:-1;21781:56:0;;-1:-1:-1;21781:56:0;-1:-1:-1;21684:213:0;;;;;;;;:::o;26034:149::-;26161:14;26144:13;;:31;;;26034:149::o;118918:1645::-;119100:5;119107:4;119367:9;119387:37;;:::i;:::-;119464:45;;:::i;:::-;119571:54;;:::i;:::-;119695:20;;:::i;:::-;119771:28;;;;;;;;;20854:6;119771:28;;119764:57;;;;;;;;119801:19;119764:57;;;;;:6;:57::i;:::-;119728:93;;-1:-1:-1;119728:93:0;-1:-1:-1;119843:14:0;119836:3;:21;;;;;;;;;119832:69;;119882:3;;-1:-1:-1;119887:1:0;;-1:-1:-1;119882:3:0;;119874:15;;119832:69;119957:63;119967:15;119984:35;119957:9;:63::i;:::-;119913:107;;-1:-1:-1;119913:107:0;-1:-1:-1;120042:14:0;120035:3;:21;;;;;;;;;120031:69;;120081:3;;-1:-1:-1;120086:1:0;;-1:-1:-1;120081:3:0;;120073:15;;120031:69;120165:56;120172:26;120200:20;120165:6;:56::i;:::-;120112:109;;-1:-1:-1;120112:109:0;-1:-1:-1;120243:14:0;120236:3;:21;;;;;;;;;120232:69;;120282:3;;-1:-1:-1;120287:1:0;;-1:-1:-1;120282:3:0;;120274:15;;120232:69;120332:87;120339:34;120375:43;120332:6;:87::i;:::-;120313:106;;-1:-1:-1;120313:106:0;-1:-1:-1;120441:14:0;120434:3;:21;;;;;;;;;120430:69;;120480:3;;-1:-1:-1;120485:1:0;;-1:-1:-1;120480:3:0;;120472:15;;120430:69;120519:14;120535:19;120544:9;120535:8;:19::i;:::-;120511:44;;;;118918:1645;;;;;;;;;;;;:::o;116543:2184::-;116668:5;116675:4;116692:9;116712:28;;:::i;:::-;116805:38;;:::i;:::-;116854:50;;:::i;:::-;116956:44;;:::i;:::-;117105:42;;:::i;:::-;117158:20;;:::i;:::-;117367:40;117393:13;117367:25;:40::i;:::-;117311:96;;-1:-1:-1;117311:96:0;-1:-1:-1;117311:96:0;-1:-1:-1;117429:14:0;117422:3;:21;;;;;;;;;117418:69;;117468:3;;-1:-1:-1;117473:1:0;;-1:-1:-1;117468:3:0;;117460:15;;117418:69;117548:44;;;;;;;;;117555:15;117548:44;;;;;;;;;;;117572:19;117548:44;;;;;:6;:44::i;:::-;117499:93;;-1:-1:-1;117499:93:0;-1:-1:-1;117614:14:0;117607:3;:21;;;;;;;;;117603:69;;117653:3;;-1:-1:-1;117658:1:0;;-1:-1:-1;117653:3:0;;117645:15;;117603:69;117727:77;117734:39;117775:28;;;;;;;;;20854:6;117775:28;;;117727:6;:77::i;:::-;117684:120;;-1:-1:-1;117684:120:0;-1:-1:-1;117826:14:0;117819:3;:21;;;;;;;;;117815:69;;117865:3;;-1:-1:-1;117870:1:0;;-1:-1:-1;117865:3:0;;117857:15;;117815:69;117937:63;117944:20;117966:33;117937:6;:63::i;:::-;117896:104;;-1:-1:-1;117896:104:0;-1:-1:-1;118348:14:0;118341:3;:21;;;;;;;;;118334:29;;;;118395:68;118402:27;118431:31;118395:6;:68::i;:::-;118376:87;;-1:-1:-1;118376:87:0;-1:-1:-1;118605:14:0;118598:3;:21;;;;;;;;;118594:69;;118644:3;;-1:-1:-1;118649:1:0;;-1:-1:-1;118644:3:0;;118636:15;;118594:69;118683:14;118699:19;118708:9;118699:8;:19::i;:::-;118675:44;;;;116543:2184;;;;;;;;;;;;;:::o;120711:1951::-;120871:5;120878:4;121223:9;121281:32;;:::i;:::-;121394:57;;:::i;:::-;121692:25;;:::i;:::-;121775:20;;:::i;:::-;121846:28;;;;;;;;;20854:6;121846:28;;121839:57;;;;;;;;121876:19;121839:57;;;;;:6;:57::i;:::-;121808:88;;-1:-1:-1;121808:88:0;-1:-1:-1;122019:14:0;122012:3;:21;;;;;;;;;122005:29;;;;122103:51;122110:20;122132:21;122103:6;:51::i;:::-;122047:107;;-1:-1:-1;122047:107:0;-1:-1:-1;122176:14:0;122169:3;:21;;;;;;;;;122165:69;;122215:3;;-1:-1:-1;122220:1:0;;-1:-1:-1;122215:3:0;;122207:15;;122165:69;122270:98;122280:46;122328:39;122270:9;:98::i;:::-;122246:122;;-1:-1:-1;122246:122:0;-1:-1:-1;122390:14:0;122383:3;:21;;;;;;;;;122379:69;;122429:3;;-1:-1:-1;122434:1:0;;-1:-1:-1;122429:3:0;;122421:15;;122379:69;122479:39;122486:14;122502:15;122479:6;:39::i;114859:1174::-;115305:720;115322:12;:26;;;115363:12;:24;;;115402:12;:56;;;115473:12;:55;;;115543:12;:52;;;115610:12;:55;;;115680:12;:23;;;115718:12;:28;;;115761:12;:56;;;115832:12;:55;;;115902:12;:52;;;115969:12;:55;;;115305:720;;;;-1:-1:-1;;;;;115305:720:0;-1:-1:-1;;;;;115305:720:0;;;;;;-1:-1:-1;;;;;115305:720:0;-1:-1:-1;;;;;115305:720:0;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;115305:720:0;-1:-1:-1;;;;;115305:720:0;;;;;;-1:-1:-1;;;;;115305:720:0;-1:-1:-1;;;;;115305:720:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;114859:1174;:::o;43734:524::-;43818:5;43825:4;43842:9;43862:21;;:::i;:::-;43894:22;;:::i;:::-;43949;43965:5;43949:15;:22::i;:::-;43929:42;;-1:-1:-1;43929:42:0;-1:-1:-1;43993:14:0;43986:3;:21;;;;;;;;;43982:69;;44032:3;;-1:-1:-1;44037:1:0;;-1:-1:-1;44032:3:0;;44024:15;;43982:69;44084:28;44091:8;44101:10;44084:6;:28::i;:::-;44063:49;;-1:-1:-1;44063:49:0;-1:-1:-1;44134:14:0;44127:3;:21;;;;;;;;;44123:69;;44173:3;;-1:-1:-1;44178:1:0;;-1:-1:-1;44173:3:0;;44165:15;;44123:69;44212:14;44228:21;44237:11;44228:8;:21::i;39591:506::-;39679:5;39686:3;;:::i;:::-;39711:9;39722:21;;:::i;:::-;39747:22;39763:5;39747:15;:22::i;:::-;39710:59;;-1:-1:-1;39710:59:0;-1:-1:-1;39791:14:0;39784:3;:21;;;;;;;;;39780:86;;39835:18;;;;;;;;;-1:-1:-1;39835:18:0;;39830:3;;-1:-1:-1;39835:18:0;;-1:-1:-1;39830:3:0;;39822:32;;39780:86;39882:21;39892:10;39882:9;:21::i;:::-;39878:108;;;39955:18;;;;;;;;;-1:-1:-1;39955:18:0;;39928:25;;-1:-1:-1;39955:18:0;-1:-1:-1;39920:54:0;;39878:108;40005:34;40015:10;40027:11;40005:9;:34::i;:::-;39998:41;;;;39591:506;;;;;;;:::o;22291:333::-;22360:5;22367:3;;:::i;:::-;22391:10;22403:19;22426:23;22430:1;:10;;;22442:6;22426:3;:23::i;:::-;22390:59;;-1:-1:-1;22390:59:0;-1:-1:-1;22472:14:0;22464:4;:22;;;;;;;;;22460:88;;22517:18;;;;;;;;;-1:-1:-1;22517:18:0;;22511:4;;-1:-1:-1;22517:18:0;;-1:-1:-1;22511:4:0;;22503:33;;22460:88;22584:31;;;;;;;;;;;;-1:-1:-1;;22584:31:0;;-1:-1:-1;22291:333:0;-1:-1:-1;;;;22291:333:0:o;14056:323::-;14108:5;;;14136:6;;14132:65;;;14167:14;;-1:-1:-1;14167:14:0;;-1:-1:-1;14159:26:0;;14132:65;-1:-1:-1;14218:5:0;;;14222:1;14218;:5;14240;;;;;;;;:10;14236:136;;14275:22;;-1:-1:-1;14299:1:0;;-1:-1:-1;14267:34:0;;14236:136;14342:14;14358:1;14334:26;;;;;;14474:199;14526:5;;14554:6;;14550:73;;;-1:-1:-1;14585:22:0;;-1:-1:-1;14609:1:0;14577:34;;14550:73;14643:14;14663:1;14659;:5;;;;;;;;14635:30;;;;14474:199;;;;;:::o;23831:1088::-;23898:5;23905:3;;:::i;:::-;23931:10;23943:24;24414:10;24426:37;24617:10;24629:12;23971:27;23975:1;:10;;;23987:1;:10;;;23971:3;:27::i;:::-;23930:68;;-1:-1:-1;23930:68:0;-1:-1:-1;24021:14:0;24013:4;:22;;;;;;;;;24009:88;;24066:18;;;;;;;;;-1:-1:-1;24066:18:0;;24060:4;;-1:-1:-1;24066:18:0;;-1:-1:-1;24060:4:0;;24052:33;;24009:88;24467:38;20756:10;24485:19;24467:3;:38::i;:::-;24413:92;;-1:-1:-1;24413:92:0;-1:-1:-1;24528:14:0;24520:4;:22;;;;;;;;;24516:88;;24573:18;;;;;;;;;-1:-1:-1;24573:18:0;;24567:4;;-1:-1:-1;24573:18:0;;-1:-1:-1;24567:4:0;;24559:33;;24516:88;24645:47;24649:32;20683:6;24645:3;:47::i;:::-;24616:76;;-1:-1:-1;24616:76:0;-1:-1:-1;24834:14:0;24826:4;:22;;;;;;;;;24819:30;;;;24886:24;;;;;;;;;;;;24870:14;;-1:-1:-1;24886:24:0;-1:-1:-1;23831:1088:0;;;;;;;;;;;;:::o;21991:213::-;22058:5;22065:3;;:::i;:::-;22089:11;22102;22117:27;22121:1;:10;;;22133:1;:10;;;22117:3;:27::i;25162:142::-;25229:5;25236:3;;:::i;:::-;25273:10;;25285;;25266:30;;25273:10;25266:6;:30::i;:::-;25259:37;;;;25162:142;;;;;:::o;21112:483::-;21173:5;21180:3;;:::i;:::-;21204:10;21216:20;21370:10;21382:13;21240:18;21244:3;20683:6;21240:3;:18::i;:::-;21203:55;;-1:-1:-1;21203:55:0;-1:-1:-1;21281:14:0;21273:4;:22;;;;;;;;;21269:88;;21326:18;;;;;;;;;-1:-1:-1;21326:18:0;;21320:4;;-1:-1:-1;21326:18:0;;-1:-1:-1;21320:4:0;;21312:33;;21269:88;21399:27;21403:15;21420:5;21399:3;:27::i;:::-;21369:57;;-1:-1:-1;21369:57:0;-1:-1:-1;21449:14:0;21441:4;:22;;;;;;;;;21437:88;;21494:18;;;;;;;;;-1:-1:-1;21494:18:0;;21488:4;;-1:-1:-1;21494:18:0;;-1:-1:-1;21488:4:0;;21480:33;;21437:88;21561:25;;;;;;;;;;;;21545:14;;-1:-1:-1;21561:25:0;-1:-1:-1;21112:483:0;;;;;;;;;;:::o;26376:103370::-;;;;;;;;;;-1:-1:-1;26376:103370:0;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;-1:-1:-1;;;;;26376:103370:0;;;;;;-1:-1:-1;;;;;26376:103370:0;;;;;;-1:-1:-1;;;;;26376:103370:0;;;;;;-1:-1:-1;;;;;26376:103370:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;;;:::o;:::-;;;;;;;;;;;-1:-1:-1;;;;;26376:103370:0;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;:::i

Swarm Source

bzzr://c2199b8d2e3296acf70eca2983de510e0993e24123d59b40673e802a7f30e42a
Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.