Contract 0x824151251b38056d54a15e56b73c54ba44811af8 5

Contract Overview

Balance:
2,309,578.377972650994637845 HT

HT Value:
$21,967,559.36 (@ $9.51/HT)

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x11ad1de68b9079c501594ebe42ba1aa870aa21792b4fec7b8fa209ae807e6c0bMint105032652021-12-02 0:10:276 mins ago0xaae76650cd7339e771dc5c404753343fcef7cab1 IN  0x824151251b38056d54a15e56b73c54ba44811af80.213563826898821 HT0.001502410
0x8e02f43aebe13c57798f594e75c22a584d658b3f8c4cb45035a79ec4ac01e06fBorrow105031662021-12-02 0:05:3011 mins ago0x5d68b7a6138d8f1007f25a0153f9ea739c341f4b IN  0x824151251b38056d54a15e56b73c54ba44811af80 HT0.0014131263.25
0x6fc598045a561cc19ffb1fa07628a08b1a1c70d7b4a05f5df6d32f3bd4cfca78Redeem105024022021-12-01 23:27:1849 mins ago0x367b09862168c826950c1fa312943e4f6783d6fb IN  0x824151251b38056d54a15e56b73c54ba44811af80 HT0.000489921253.25
0x86a450ba010c0b36d26bb57ff5d3f4399fc49d683cbb33fda644d0a06817bbb1Mint105020632021-12-01 23:10:211 hr 6 mins ago0xaae76650cd7339e771dc5c404753343fcef7cab1 IN  0x824151251b38056d54a15e56b73c54ba44811af80.216610653856372 HT0.001502410
0x5ed277d2da96a88a488b44c57dd276afc6ecef49edbc73d4c678b7d590449a8bRedeem105013212021-12-01 22:33:151 hr 43 mins ago0xe2ceab09b447596b77eb67eef124aa4359ae6800 IN  0x824151251b38056d54a15e56b73c54ba44811af80 HT0.00045311672.7
0x25ff647519b64e6adcf954020f098d48005fac0200f239ed9cbba954cb6b0e65Mint105008632021-12-01 22:10:212 hrs 6 mins ago0xaae76650cd7339e771dc5c404753343fcef7cab1 IN  0x824151251b38056d54a15e56b73c54ba44811af80.218746232096091 HT0.001502410
0xf346364844a2fe301fd974c224e04ed10360695b9f7161e34d29b86066b0467aMint104996652021-12-01 21:10:273 hrs 6 mins ago0xaae76650cd7339e771dc5c404753343fcef7cab1 IN  0x824151251b38056d54a15e56b73c54ba44811af80.219875197726545 HT0.001502410
0x36a19489a943e6f3c9ff91d14a7c0d1795159fbdd23ef6cb3902901768433d2eRepay Borrow104992782021-12-01 20:51:063 hrs 25 mins ago0xf15620451b5b5831fc96031498cb9fd73feb59dc IN  0x824151251b38056d54a15e56b73c54ba44811af867 HT0.000473391753.25
0x6b283009173c8b54fdafa2258bfe80fa1b108a02b85fbdd7ce244683b93c7b74Mint104984632021-12-01 20:10:214 hrs 6 mins ago0xaae76650cd7339e771dc5c404753343fcef7cab1 IN  0x824151251b38056d54a15e56b73c54ba44811af80.227112147393867 HT0.001502410
0x29a9f16224b2753dc13552cc0098cb431e71c29a85b59a4ee4cccdfa408552f3Mint104972632021-12-01 19:10:215 hrs 6 mins ago0xaae76650cd7339e771dc5c404753343fcef7cab1 IN  0x824151251b38056d54a15e56b73c54ba44811af80.219695583213496 HT0.001502410
0xd9f436352302e3f52a11c270974baaff5915871d6a27fa8033934a50b6d86d5aMint104960642021-12-01 18:10:246 hrs 6 mins ago0xaae76650cd7339e771dc5c404753343fcef7cab1 IN  0x824151251b38056d54a15e56b73c54ba44811af80.220812859885066 HT0.001502410
0x8f8642c5a21ee7e12ec67b9fd9d6a815fc252207ea911d08558aec5f77564dcbMint104948632021-12-01 17:10:217 hrs 6 mins ago0xaae76650cd7339e771dc5c404753343fcef7cab1 IN  0x824151251b38056d54a15e56b73c54ba44811af80.220212216143396 HT0.001502410
0x30c2341f8a1931deb97bdc8673373e02e45de3c1d0f08ee9e24517a7b833bdc4Redeem104944772021-12-01 16:51:037 hrs 25 mins ago0x42a7111cc4b72a6a6ecd0e42f537b4490ea2c6ca IN  0x824151251b38056d54a15e56b73c54ba44811af80 HT0.000489882253.25
0xe3216a189bdb7a829b9b76f536246fc52337b68e4f759aae9b1636ffab6a55a2Redeem104944042021-12-01 16:47:247 hrs 29 mins ago0x7392213d7847685d31743692caaaae4caddeb051 IN  0x824151251b38056d54a15e56b73c54ba44811af80 HT0.000489882253.25
0x3aee1d5bebee87c8440aef586cac9b9890f4e775c6051d70e3a37204b960de81Redeem Underlyin...104939792021-12-01 16:26:097 hrs 50 mins ago0x290831ab0d3d6c8c0d304a9cfabf6c62c451639d IN  0x824151251b38056d54a15e56b73c54ba44811af80 HT0.001312263 2.25
0xeca2db80fe10f97967dbecb5078adc9a90ff43cdcd79e3bbcfc3c31355b6ada2Redeem Underlyin...104939692021-12-01 16:25:397 hrs 50 mins ago0x290831ab0d3d6c8c0d304a9cfabf6c62c451639d IN  0x824151251b38056d54a15e56b73c54ba44811af80 HT0.001312263 2.25
0x3bc302e3fcf2bf3af03d4004dec3f2707181f5d144981dc48888770fee3746dcRedeem Underlyin...104939632021-12-01 16:25:217 hrs 51 mins ago0x290831ab0d3d6c8c0d304a9cfabf6c62c451639d IN  0x824151251b38056d54a15e56b73c54ba44811af80 HT0.0013372155 2.25
0x16d418d8c2b8dc3c47577b0c3cbb470e39057d22441d2afa355658a3e28a2295Redeem Underlyin...104939562021-12-01 16:25:007 hrs 51 mins ago0x290831ab0d3d6c8c0d304a9cfabf6c62c451639d IN  0x824151251b38056d54a15e56b73c54ba44811af80 HT0.0013415175 2.25
0xa91817d3a4118e9b139733666f8f09961baef494baccd92f8874f28d7155249bRedeem Underlyin...104939512021-12-01 16:24:457 hrs 51 mins ago0x290831ab0d3d6c8c0d304a9cfabf6c62c451639d IN  0x824151251b38056d54a15e56b73c54ba44811af80 HT0.001312263 2.25
0x18350cc4fdf3dcb67cdf7d17228e0922fbbe5e0090c3e0c8e796a440c99a09d1Redeem Underlyin...104939442021-12-01 16:24:247 hrs 52 mins ago0x290831ab0d3d6c8c0d304a9cfabf6c62c451639d IN  0x824151251b38056d54a15e56b73c54ba44811af80 HT0.001197234 2.25
0x5ff368330676636d287cd8879d0e5a1a1928e97072b8c30155a9baa3ae378741Redeem Underlyin...104939382021-12-01 16:24:067 hrs 52 mins ago0x290831ab0d3d6c8c0d304a9cfabf6c62c451639d IN  0x824151251b38056d54a15e56b73c54ba44811af80 HT0.001312263 2.25
0xca5cc875b8b202faff7fb75972a90ae7b7a903631c8a5dbb6932a11f836babddRedeem Underlyin...104939302021-12-01 16:23:427 hrs 52 mins ago0x290831ab0d3d6c8c0d304a9cfabf6c62c451639d IN  0x824151251b38056d54a15e56b73c54ba44811af80 HT0.001312263 2.25
0x4e24a4cbee9b5c6795c53e7fe6d37e871a92f9bb4d10b77de5c3b92f8eaa6045Redeem Underlyin...104939222021-12-01 16:23:187 hrs 53 mins ago0x290831ab0d3d6c8c0d304a9cfabf6c62c451639d IN  0x824151251b38056d54a15e56b73c54ba44811af80 HT0.001350711 2.25
0x99d50764073702458399634b69ec4a53af1a08603e22d4ae1f42e1037383596dRedeem Underlyin...104939112021-12-01 16:22:457 hrs 53 mins ago0x290831ab0d3d6c8c0d304a9cfabf6c62c451639d IN  0x824151251b38056d54a15e56b73c54ba44811af80 HT0.0013414905 2.25
0xe00b79ef0f2056b7cf0f63512d2e5b8a45005fe24efbc442d73ce6fb172d0fdaMint104936632021-12-01 16:10:218 hrs 6 mins ago0xaae76650cd7339e771dc5c404753343fcef7cab1 IN  0x824151251b38056d54a15e56b73c54ba44811af80.214954381651139 HT0.001502410
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x8e02f43aebe13c57798f594e75c22a584d658b3f8c4cb45035a79ec4ac01e06f105031662021-12-02 0:05:3011 mins ago 0x824151251b38056d54a15e56b73c54ba44811af80x5d68b7a6138d8f1007f25a0153f9ea739c341f4b30,000 HT
0xb97cb8c8669935453d15cc3f1b8b3af707004b05084482f423dad086da5889b3105030912021-12-02 0:01:4514 mins ago 0xb8bd90e32f37ced177de4340eabac0d2bada52d1 0x824151251b38056d54a15e56b73c54ba44811af811.173070826847236136 HT
0x75c3c53645e6fc1a09273c9aabd8b309c2c6b07c1b779955fd0f54cf44cd6b98105030742021-12-02 0:00:5415 mins ago 0xb8bd90e32f37ced177de4340eabac0d2bada52d1 0x824151251b38056d54a15e56b73c54ba44811af80.4 HT
0x6d9aea0edc79ff52a81ae4ae26a8df5c82c5dbd887314574c9e15ddfce52bf0d105027162021-12-01 23:43:0033 mins ago 0x9908f1c6eba68192c216b6daf41c064b1ae57cc3 0x824151251b38056d54a15e56b73c54ba44811af80.022498941929751525 HT
0x6fc598045a561cc19ffb1fa07628a08b1a1c70d7b4a05f5df6d32f3bd4cfca78105024022021-12-01 23:27:1849 mins ago 0x824151251b38056d54a15e56b73c54ba44811af80x367b09862168c826950c1fa312943e4f6783d6fb30,788.928516418784673786 HT
0xe1635fb6f045d97e1215970f203e9878009c14345f80ad67ec997668e79b440f105014922021-12-01 22:41:481 hr 34 mins ago 0x9908f1c6eba68192c216b6daf41c064b1ae57cc3 0x824151251b38056d54a15e56b73c54ba44811af80.022525294392257115 HT
0x5ed277d2da96a88a488b44c57dd276afc6ecef49edbc73d4c678b7d590449a8b105013212021-12-01 22:33:151 hr 43 mins ago 0x824151251b38056d54a15e56b73c54ba44811af80xe2ceab09b447596b77eb67eef124aa4359ae680039.337661920037186813 HT
0x16b92466e7e065aa3c8a29aec13c9c964971b0803651daf414a1793627aa4137105002702021-12-01 21:40:422 hrs 35 mins ago 0x9908f1c6eba68192c216b6daf41c064b1ae57cc3 0x824151251b38056d54a15e56b73c54ba44811af80.022709143484833042 HT
0x5a430b4dc4f0f1023d570abbcd5cc4237b768220cd4e98d4e1e0528ae55d439d104990482021-12-01 20:39:363 hrs 37 mins ago 0x9908f1c6eba68192c216b6daf41c064b1ae57cc3 0x824151251b38056d54a15e56b73c54ba44811af80.023530103403477603 HT
0xef02c0560096456fc51c6724546e8ad38cbbc3e98c967835b636b053bfcda04a104978252021-12-01 19:38:274 hrs 38 mins ago 0x9908f1c6eba68192c216b6daf41c064b1ae57cc3 0x824151251b38056d54a15e56b73c54ba44811af80.022777924233884323 HT
0xebb92597d123da18e0576b191798b098dd9f4800f2e8f6287f3941267b7af3e8104976062021-12-01 19:27:304 hrs 49 mins ago 0x32fbb9c822abd1fd9e4655bfa55a45285fb8992d 0x824151251b38056d54a15e56b73c54ba44811af81,821.714006825955217212 HT
0xd5acf7a0d85914422937630fc90cc3b504a69ab11c091ff7708356ccd934092e104965972021-12-01 18:37:035 hrs 39 mins ago 0x9908f1c6eba68192c216b6daf41c064b1ae57cc3 0x824151251b38056d54a15e56b73c54ba44811af80.023197245092664253 HT
0xf51ba6feddc787c6aab1141fae6a713e20373bf422ef7e7cba32d63e0932d32e104965332021-12-01 18:33:515 hrs 42 mins ago 0x32fbb9c822abd1fd9e4655bfa55a45285fb8992d 0x824151251b38056d54a15e56b73c54ba44811af871.901294809870558316 HT
0x970a8a585fd7d7aa522d27a594e9d217d35ad7701e8a30385553c1de605f0f7c104958762021-12-01 18:01:006 hrs 15 mins ago 0xb8bd90e32f37ced177de4340eabac0d2bada52d1 0x824151251b38056d54a15e56b73c54ba44811af860,341.509890489983144886 HT
0x440564ef530af08f0f340fd3e717ccd3cf4e1cc501f58aff8502cc48a3803654104953722021-12-01 17:35:486 hrs 40 mins ago 0x9908f1c6eba68192c216b6daf41c064b1ae57cc3 0x824151251b38056d54a15e56b73c54ba44811af80.02341245868195827 HT
0x37e6830121b208b08b371fcea49c0bf971fe9344b71e8b0dea45b8a929f195a5104948792021-12-01 17:11:097 hrs 5 mins ago 0x32fbb9c822abd1fd9e4655bfa55a45285fb8992d 0x824151251b38056d54a15e56b73c54ba44811af8912.759230618830076583 HT
0x30c2341f8a1931deb97bdc8673373e02e45de3c1d0f08ee9e24517a7b833bdc4104944772021-12-01 16:51:037 hrs 25 mins ago 0x824151251b38056d54a15e56b73c54ba44811af80x42a7111cc4b72a6a6ecd0e42f537b4490ea2c6ca3,022.472236419800045489 HT
0xe3216a189bdb7a829b9b76f536246fc52337b68e4f759aae9b1636ffab6a55a2104944042021-12-01 16:47:247 hrs 29 mins ago 0x824151251b38056d54a15e56b73c54ba44811af80x7392213d7847685d31743692caaaae4caddeb0519,854.93713538108065619 HT
0x9d5b23b3ae7bf21af7e724f63c4d62ff373be0d4d7dc33c3215759f38bb2d85f104941552021-12-01 16:34:577 hrs 41 mins ago 0x824151251b38056d54a15e56b73c54ba44811af8 0xef75ac20b1105ab658a50a9b3ec9a15eb3832a3753.721711105472323645 HT
0x44ae222223512c38d7cb8844b31a88faa60e4ffd9e117f780495340738a867a7104941492021-12-01 16:34:397 hrs 41 mins ago 0x9908f1c6eba68192c216b6daf41c064b1ae57cc3 0x824151251b38056d54a15e56b73c54ba44811af80.02356361388788732 HT
0x3aee1d5bebee87c8440aef586cac9b9890f4e775c6051d70e3a37204b960de81104939792021-12-01 16:26:097 hrs 50 mins ago 0x824151251b38056d54a15e56b73c54ba44811af80x290831ab0d3d6c8c0d304a9cfabf6c62c451639d0.921093906968533151 HT
0xeca2db80fe10f97967dbecb5078adc9a90ff43cdcd79e3bbcfc3c31355b6ada2104939692021-12-01 16:25:397 hrs 50 mins ago 0x824151251b38056d54a15e56b73c54ba44811af80x290831ab0d3d6c8c0d304a9cfabf6c62c451639d0.921093906968533151 HT
0x3bc302e3fcf2bf3af03d4004dec3f2707181f5d144981dc48888770fee3746dc104939632021-12-01 16:25:217 hrs 51 mins ago 0x824151251b38056d54a15e56b73c54ba44811af80x290831ab0d3d6c8c0d304a9cfabf6c62c451639d0.921093906968533151 HT
0x16d418d8c2b8dc3c47577b0c3cbb470e39057d22441d2afa355658a3e28a2295104939562021-12-01 16:25:007 hrs 51 mins ago 0x824151251b38056d54a15e56b73c54ba44811af80x290831ab0d3d6c8c0d304a9cfabf6c62c451639d0.921093906968533151 HT
0xa91817d3a4118e9b139733666f8f09961baef494baccd92f8874f28d7155249b104939512021-12-01 16:24:457 hrs 51 mins ago 0x824151251b38056d54a15e56b73c54ba44811af80x290831ab0d3d6c8c0d304a9cfabf6c62c451639d0.921093906968533151 HT
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CEther

Compiler Version
v0.5.16+commit.9c3226ce

Optimization Enabled:
Yes with 20 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at hecoinfo.com on 2021-02-04
*/

// File: contracts/compound/ComptrollerInterface.sol

pragma solidity ^0.5.16;

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

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

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

    /*** Policy Hooks ***/

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

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

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

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

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

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

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

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

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

// File: contracts/compound/InterestRateModel.sol

pragma solidity ^0.5.16;

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

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

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

}

// File: contracts/compound/CTokenInterfaces.sol

pragma solidity ^0.5.16;



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

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

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

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

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

    uint internal constant borrowRateMaxMantissa = 0.0005e16;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


    /*** Market Events ***/

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

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

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

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

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

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


    /*** Admin Events ***/

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

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

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

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

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

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

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

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

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

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


    /*** User Interface ***/

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


    /*** Admin Functions ***/

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

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

contract CErc20Interface is CErc20Storage {

    /*** User Interface ***/

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


    /*** Admin Functions ***/

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

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

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

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

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

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

// File: contracts/compound/ErrorReporter.sol

pragma solidity ^0.5.16;

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

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

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

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

        return uint(err);
    }

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

        return uint(err);
    }
}

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

    /*
     * Note: FailureInfo (but not Error) is kept in alphabetical order
     *       This is because FailureInfo grows significantly faster, and
     *       the order of Error has some meaning, while the order of FailureInfo
     *       is entirely arbitrary.
     */
    enum FailureInfo {
        ACCEPT_ADMIN_PENDING_ADMIN_CHECK,
        ACCRUE_INTEREST_ACCUMULATED_INTEREST_CALCULATION_FAILED,
        ACCRUE_INTEREST_BORROW_RATE_CALCULATION_FAILED,
        ACCRUE_INTEREST_NEW_BORROW_INDEX_CALCULATION_FAILED,
        ACCRUE_INTEREST_NEW_TOTAL_BORROWS_CALCULATION_FAILED,
        ACCRUE_INTEREST_NEW_TOTAL_RESERVES_CALCULATION_FAILED,
        ACCRUE_INTEREST_SIMPLE_INTEREST_FACTOR_CALCULATION_FAILED,
        BORROW_ACCUMULATED_BALANCE_CALCULATION_FAILED,
        BORROW_ACCRUE_INTEREST_FAILED,
        BORROW_CASH_NOT_AVAILABLE,
        BORROW_FRESHNESS_CHECK,
        BORROW_NEW_TOTAL_BALANCE_CALCULATION_FAILED,
        BORROW_NEW_ACCOUNT_BORROW_BALANCE_CALCULATION_FAILED,
        BORROW_MARKET_NOT_LISTED,
        BORROW_COMPTROLLER_REJECTION,
        LIQUIDATE_ACCRUE_BORROW_INTEREST_FAILED,
        LIQUIDATE_ACCRUE_COLLATERAL_INTEREST_FAILED,
        LIQUIDATE_COLLATERAL_FRESHNESS_CHECK,
        LIQUIDATE_COMPTROLLER_REJECTION,
        LIQUIDATE_COMPTROLLER_CALCULATE_AMOUNT_SEIZE_FAILED,
        LIQUIDATE_CLOSE_AMOUNT_IS_UINT_MAX,
        LIQUIDATE_CLOSE_AMOUNT_IS_ZERO,
        LIQUIDATE_FRESHNESS_CHECK,
        LIQUIDATE_LIQUIDATOR_IS_BORROWER,
        LIQUIDATE_REPAY_BORROW_FRESH_FAILED,
        LIQUIDATE_SEIZE_BALANCE_INCREMENT_FAILED,
        LIQUIDATE_SEIZE_BALANCE_DECREMENT_FAILED,
        LIQUIDATE_SEIZE_COMPTROLLER_REJECTION,
        LIQUIDATE_SEIZE_LIQUIDATOR_IS_BORROWER,
        LIQUIDATE_SEIZE_TOO_MUCH,
        MINT_ACCRUE_INTEREST_FAILED,
        MINT_COMPTROLLER_REJECTION,
        MINT_EXCHANGE_CALCULATION_FAILED,
        MINT_EXCHANGE_RATE_READ_FAILED,
        MINT_FRESHNESS_CHECK,
        MINT_NEW_ACCOUNT_BALANCE_CALCULATION_FAILED,
        MINT_NEW_TOTAL_SUPPLY_CALCULATION_FAILED,
        MINT_TRANSFER_IN_FAILED,
        MINT_TRANSFER_IN_NOT_POSSIBLE,
        REDEEM_ACCRUE_INTEREST_FAILED,
        REDEEM_COMPTROLLER_REJECTION,
        REDEEM_EXCHANGE_TOKENS_CALCULATION_FAILED,
        REDEEM_EXCHANGE_AMOUNT_CALCULATION_FAILED,
        REDEEM_EXCHANGE_RATE_READ_FAILED,
        REDEEM_FRESHNESS_CHECK,
        REDEEM_NEW_ACCOUNT_BALANCE_CALCULATION_FAILED,
        REDEEM_NEW_TOTAL_SUPPLY_CALCULATION_FAILED,
        REDEEM_TRANSFER_OUT_NOT_POSSIBLE,
        REDUCE_RESERVES_ACCRUE_INTEREST_FAILED,
        REDUCE_RESERVES_ADMIN_CHECK,
        REDUCE_RESERVES_CASH_NOT_AVAILABLE,
        REDUCE_RESERVES_FRESH_CHECK,
        REDUCE_RESERVES_VALIDATION,
        REPAY_BEHALF_ACCRUE_INTEREST_FAILED,
        REPAY_BORROW_ACCRUE_INTEREST_FAILED,
        REPAY_BORROW_ACCUMULATED_BALANCE_CALCULATION_FAILED,
        REPAY_BORROW_COMPTROLLER_REJECTION,
        REPAY_BORROW_FRESHNESS_CHECK,
        REPAY_BORROW_NEW_ACCOUNT_BORROW_BALANCE_CALCULATION_FAILED,
        REPAY_BORROW_NEW_TOTAL_BALANCE_CALCULATION_FAILED,
        REPAY_BORROW_TRANSFER_IN_NOT_POSSIBLE,
        SET_COLLATERAL_FACTOR_OWNER_CHECK,
        SET_COLLATERAL_FACTOR_VALIDATION,
        SET_COMPTROLLER_OWNER_CHECK,
        SET_INTEREST_RATE_MODEL_ACCRUE_INTEREST_FAILED,
        SET_INTEREST_RATE_MODEL_FRESH_CHECK,
        SET_INTEREST_RATE_MODEL_OWNER_CHECK,
        SET_MAX_ASSETS_OWNER_CHECK,
        SET_ORACLE_MARKET_NOT_LISTED,
        SET_PENDING_ADMIN_OWNER_CHECK,
        SET_RESERVE_FACTOR_ACCRUE_INTEREST_FAILED,
        SET_RESERVE_FACTOR_ADMIN_CHECK,
        SET_RESERVE_FACTOR_FRESH_CHECK,
        SET_RESERVE_FACTOR_BOUNDS_CHECK,
        TRANSFER_COMPTROLLER_REJECTION,
        TRANSFER_NOT_ALLOWED,
        TRANSFER_NOT_ENOUGH,
        TRANSFER_TOO_MUCH,
        ADD_RESERVES_ACCRUE_INTEREST_FAILED,
        ADD_RESERVES_FRESH_CHECK,
        ADD_RESERVES_TRANSFER_IN_NOT_POSSIBLE
    }

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

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

        return uint(err);
    }

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

        return uint(err);
    }
}

// File: contracts/compound/CarefulMath.sol

pragma solidity ^0.5.16;

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

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

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

        uint c = a * b;

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

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

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

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

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

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

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

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

        return subUInt(sum, c);
    }
}

// File: contracts/compound/Exponential.sol

pragma solidity ^0.5.16;


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

    struct Exp {
        uint mantissa;
    }

    struct Double {
        uint mantissa;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: contracts/compound/EIP20Interface.sol

pragma solidity ^0.5.16;

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

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

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

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

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

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

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

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

// File: contracts/compound/EIP20NonStandardInterface.sol

pragma solidity ^0.5.16;

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

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

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

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

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

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

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

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

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

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

// File: contracts/compound/CToken.sol

pragma solidity ^0.5.16;








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

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

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

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

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

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

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

    /**
     * @notice Transfer `tokens` tokens from `src` to `dst` by `spender`
     * @dev Called by both `transfer` and `transferFrom` internally
     * @param spender The address of the account performing the transfer
     * @param src The address of the source account
     * @param dst The address of the destination account
     * @param tokens The number of tokens to transfer
     * @return Whether or not the transfer succeeded
     */
    function transferTokens(address spender, address src, address dst, uint tokens) internal returns (uint) {
        /* Fail if transfer not allowed */
        uint allowed = comptroller.transferAllowed(address(this), src, dst, tokens);
        if (allowed != 0) {
            return failOpaque(Error.COMPTROLLER_REJECTION, FailureInfo.TRANSFER_COMPTROLLER_REJECTION, allowed);
        }

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

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

        /* Do the calculations, checking for {under,over}flow */
        MathError mathErr;
        uint allowanceNew;
        uint srcTokensNew;
        uint dstTokensNew;

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

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

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

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

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

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

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

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

        return uint(Error.NO_ERROR);
    }

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

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

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

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

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

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

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

        MathError mErr;

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

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

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

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

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

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

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

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

    /**
     * @notice Return the borrow balance of account based on stored data
     * @param account The address whose balance should be calculated
     * @return The calculated balance
     */
    function borrowBalanceStored(address account) public view returns (uint) {
        (MathError err, uint result) = borrowBalanceStoredInternal(account);
        require(err == MathError.NO_ERROR, "borrowBalanceStored: borrowBalanceStoredInternal failed");
        return result;
    }

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

        /* Get borrowBalance and borrowIndex */
        BorrowSnapshot storage borrowSnapshot = accountBorrows[account];

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

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

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

        return (MathError.NO_ERROR, result);
    }

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

    /**
     * @notice Calculates the exchange rate from the underlying to the CToken
     * @dev This function does not accrue interest before calculating the exchange rate
     * @return Calculated exchange rate scaled by 1e18
     */
    function exchangeRateStored() public view returns (uint) {
        (MathError err, uint result) = exchangeRateStoredInternal();
        require(err == MathError.NO_ERROR, "exchangeRateStored: exchangeRateStoredInternal failed");
        return result;
    }

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

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

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

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

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

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

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

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

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

        /* Calculate the number of blocks elapsed since the last accrual */
        (MathError mathErr, uint blockDelta) = subUInt(currentBlockNumber, accrualBlockNumberPrior);
        require(mathErr == MathError.NO_ERROR, "could not calculate block delta");

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

        Exp memory simpleInterestFactor;
        uint interestAccumulated;
        uint totalBorrowsNew;
        uint totalReservesNew;
        uint borrowIndexNew;

        (mathErr, simpleInterestFactor) = mulScalar(Exp({mantissa: borrowRateMantissa}), blockDelta);
        if (mathErr != MathError.NO_ERROR) {
            return failOpaque(Error.MATH_ERROR, FailureInfo.ACCRUE_INTEREST_SIMPLE_INTEREST_FACTOR_CALCULATION_FAILED, uint(mathErr));
        }

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

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

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

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

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

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

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

        return uint(Error.NO_ERROR);
    }

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

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

    /**
     * @notice User supplies assets into the market and receives cTokens in exchange
     * @dev Assumes interest has already been accrued up to the current block
     * @param minter The address of the account which is supplying the assets
     * @param mintAmount The amount of the underlying asset to supply
     * @return (uint, uint) An error code (0=success, otherwise a failure, see ErrorReporter.sol), and the actual mint amount.
     */
    function mintFresh(address minter, uint mintAmount) internal returns (uint, uint) {
        /* Fail if mint not allowed */
        uint allowed = comptroller.mintAllowed(address(this), minter, mintAmount);
        if (allowed != 0) {
            return (failOpaque(Error.COMPTROLLER_REJECTION, FailureInfo.MINT_COMPTROLLER_REJECTION, allowed), 0);
        }

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

        MintLocalVars memory vars;

        (vars.mathErr, vars.exchangeRateMantissa) = exchangeRateStoredInternal();
        if (vars.mathErr != MathError.NO_ERROR) {
            return (failOpaque(Error.MATH_ERROR, FailureInfo.MINT_EXCHANGE_RATE_READ_FAILED, uint(vars.mathErr)), 0);
        }

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

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

        /*
         * We get the current exchange rate and calculate the number of cTokens to be minted:
         *  mintTokens = actualMintAmount / exchangeRate
         */

        (vars.mathErr, vars.mintTokens) = divScalarByExpTruncate(vars.actualMintAmount, Exp({mantissa: vars.exchangeRateMantissa}));
        require(vars.mathErr == MathError.NO_ERROR, "MINT_EXCHANGE_CALCULATION_FAILED");

        /*
         * We calculate the new total supply of cTokens and minter token balance, checking for overflow:
         *  totalSupplyNew = totalSupply + mintTokens
         *  accountTokensNew = accountTokens[minter] + mintTokens
         */
        (vars.mathErr, vars.totalSupplyNew) = addUInt(totalSupply, vars.mintTokens);
        require(vars.mathErr == MathError.NO_ERROR, "MINT_NEW_TOTAL_SUPPLY_CALCULATION_FAILED");

        (vars.mathErr, vars.accountTokensNew) = addUInt(accountTokens[minter], vars.mintTokens);
        require(vars.mathErr == MathError.NO_ERROR, "MINT_NEW_ACCOUNT_BALANCE_CALCULATION_FAILED");

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

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

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

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

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

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

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

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

        RedeemLocalVars memory vars;

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

        /* If redeemTokensIn > 0: */
        if (redeemTokensIn > 0) {
            /*
             * We calculate the exchange rate and the amount of underlying to be redeemed:
             *  redeemTokens = redeemTokensIn
             *  redeemAmount = redeemTokensIn x exchangeRateCurrent
             */
            vars.redeemTokens = redeemTokensIn;

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

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

            vars.redeemAmount = redeemAmountIn;
        }

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

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

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

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

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

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

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

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

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

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

        return uint(Error.NO_ERROR);
    }

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

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

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

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

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

        BorrowLocalVars memory vars;

        /*
         * We calculate the new borrower and total borrow balances, failing on overflow:
         *  accountBorrowsNew = accountBorrows + borrowAmount
         *  totalBorrowsNew = totalBorrows + borrowAmount
         */
        (vars.mathErr, vars.accountBorrows) = borrowBalanceStoredInternal(borrower);
        if (vars.mathErr != MathError.NO_ERROR) {
            return failOpaque(Error.MATH_ERROR, FailureInfo.BORROW_ACCUMULATED_BALANCE_CALCULATION_FAILED, uint(vars.mathErr));
        }

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

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

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

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

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

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

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

        return uint(Error.NO_ERROR);
    }

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

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

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

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

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

        RepayBorrowLocalVars memory vars;

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

        /* We fetch the amount the borrower owes, with accumulated interest */
        (vars.mathErr, vars.accountBorrows) = borrowBalanceStoredInternal(borrower);
        if (vars.mathErr != MathError.NO_ERROR) {
            return (failOpaque(Error.MATH_ERROR, FailureInfo.REPAY_BORROW_ACCUMULATED_BALANCE_CALCULATION_FAILED, uint(vars.mathErr)), 0);
        }

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

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

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

        /*
         * We calculate the new borrower and total borrow balances, failing on underflow:
         *  accountBorrowsNew = accountBorrows - actualRepayAmount
         *  totalBorrowsNew = totalBorrows - actualRepayAmount
         */
        (vars.mathErr, vars.accountBorrowsNew) = subUInt(vars.accountBorrows, vars.actualRepayAmount);
        require(vars.mathErr == MathError.NO_ERROR, "REPAY_BORROW_NEW_ACCOUNT_BORROW_BALANCE_CALCULATION_FAILED");

        (vars.mathErr, vars.totalBorrowsNew) = subUInt(totalBorrows, vars.actualRepayAmount);
        require(vars.mathErr == MathError.NO_ERROR, "REPAY_BORROW_NEW_TOTAL_BALANCE_CALCULATION_FAILED");

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

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

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

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

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

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

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

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

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


    /*** Admin Functions ***/

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

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

        // Store pendingAdmin with value newPendingAdmin
        pendingAdmin = newPendingAdmin;

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

        return uint(Error.NO_ERROR);
    }

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

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

        // Store admin with value pendingAdmin
        admin = pendingAdmin;

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

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

        return uint(Error.NO_ERROR);
    }

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

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

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

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

        return uint(Error.NO_ERROR);
    }

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

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

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

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

        uint oldReserveFactorMantissa = reserveFactorMantissa;
        reserveFactorMantissa = newReserveFactorMantissa;

        emit NewReserveFactor(oldReserveFactorMantissa, newReserveFactorMantissa);

        return uint(Error.NO_ERROR);
    }

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

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

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

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

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

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

        actualAddAmount = doTransferIn(msg.sender, addAmount);

        totalReservesNew = totalReserves + actualAddAmount;

        /* Revert on overflow */
        require(totalReservesNew >= totalReserves, "add reserves unexpected overflow");

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

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

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


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

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

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

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

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

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

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

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

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

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

        emit ReservesReduced(admin, reduceAmount, totalReservesNew);

        return uint(Error.NO_ERROR);
    }

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

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

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

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

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

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

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

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

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

        return uint(Error.NO_ERROR);
    }

    /*** Safe Token ***/

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

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

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


    /*** Reentrancy Guard ***/

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

// File: contracts/compound/PriceOracle.sol

pragma solidity ^0.5.16;


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

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

// File: contracts/compound/ComptrollerStorage.sol

pragma solidity ^0.5.16;



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

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

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

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

contract ComptrollerV1Storage is UnitrollerAdminStorage {

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

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

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

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

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

}

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

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

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

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

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


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

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

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

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

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

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

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

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

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

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

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

// File: contracts/compound/Unitroller.sol

pragma solidity ^0.5.16;


/**
 * @title ComptrollerCore
 * @dev Storage for the comptroller is at this address, while execution is delegated to the `comptrollerImplementation`.
 * CTokens should reference this contract as their comptroller.
 */
contract Unitroller is UnitrollerAdminStorage, ComptrollerErrorReporter {

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

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

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

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

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

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

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

        address oldPendingImplementation = pendingComptrollerImplementation;

        pendingComptrollerImplementation = newPendingImplementation;

        emit NewPendingImplementation(oldPendingImplementation, pendingComptrollerImplementation);

        return uint(Error.NO_ERROR);
    }

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

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

        comptrollerImplementation = pendingComptrollerImplementation;

        pendingComptrollerImplementation = address(0);

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

        return uint(Error.NO_ERROR);
    }


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

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

        // Store pendingAdmin with value newPendingAdmin
        pendingAdmin = newPendingAdmin;

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

        return uint(Error.NO_ERROR);
    }

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

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

        // Store admin with value pendingAdmin
        admin = pendingAdmin;

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

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

        return uint(Error.NO_ERROR);
    }

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

        assembly {
              let free_mem_ptr := mload(0x40)
              returndatacopy(free_mem_ptr, 0, returndatasize)

              switch success
              case 0 { revert(free_mem_ptr, returndatasize) }
              default { return(free_mem_ptr, returndatasize) }
        }
    }
}

// File: contracts/compound/Comptroller.sol

pragma solidity ^0.5.16;








/**
 * @title Compound's Comptroller Contract
 * @author Compound
 */
contract Comptroller is ComptrollerV3Storage, ComptrollerInterface, ComptrollerErrorReporter, Exponential {
    /// @notice Emitted when an admin supports a market
    event MarketListed(CToken cToken);

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

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

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

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

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

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

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

    /// @notice Emitted when pause guardian is changed
    event NewPauseGuardian(address oldPauseGuardian, address newPauseGuardian);

    /// @notice Emitted when an action is paused globally
    event ActionPaused(string action, bool pauseState);

    /// @notice Emitted when an action is paused on a market
    event ActionPaused(CToken cToken, string action, bool pauseState);

    /// @notice Emitted when market comped status is changed
    event MarketComped(CToken cToken, bool isComped);

    /// @notice Emitted when COMP rate is changed
    event NewCompRate(uint oldCompRate, uint newCompRate);

    /// @notice Emitted when a new COMP speed is calculated for a market
    event CompSpeedUpdated(CToken indexed cToken, uint newSpeed);

    /// @notice Emitted when COMP is distributed to a supplier
    event DistributedSupplierComp(CToken indexed cToken, address indexed supplier, uint compDelta, uint compSupplyIndex);

    /// @notice Emitted when COMP is distributed to a borrower
    event DistributedBorrowerComp(CToken indexed cToken, address indexed borrower, uint compDelta, uint compBorrowIndex);

    /// @notice The threshold above which the flywheel transfers COMP, in wei
    uint public constant compClaimThreshold = 0.001e18;

    /// @notice The initial COMP index for a market
    uint224 public constant compInitialIndex = 1e36;

    // closeFactorMantissa must be strictly greater than this value
    uint internal constant closeFactorMinMantissa = 0.05e18; // 0.05

    // closeFactorMantissa must not exceed this value
    uint internal constant closeFactorMaxMantissa = 0.9e18; // 0.9

    // No collateralFactorMantissa may exceed this value
    uint internal constant collateralFactorMaxMantissa = 0.9e18; // 0.9

    // liquidationIncentiveMantissa must be no less than this value
    uint internal constant liquidationIncentiveMinMantissa = 1.0e18; // 1.0

    // liquidationIncentiveMantissa must be no greater than this value
    uint internal constant liquidationIncentiveMaxMantissa = 1.5e18; // 1.5

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

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

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

        return assetsIn;
    }

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

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

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

            results[i] = uint(addToMarketInternal(cToken, msg.sender));
        }

        return results;
    }

    /**
     * @notice Add the market to the borrower's "assets in" for liquidity calculations
     * @param cToken The market to enter
     * @param borrower The address of the account to modify
     * @return Success indicator for whether the market was entered
     */
    function addToMarketInternal(CToken cToken, address borrower) internal returns (Error) {
        Market storage marketToJoin = markets[address(cToken)];

        if (!marketToJoin.isListed) {
            // market is not listed, cannot join
            return Error.MARKET_NOT_LISTED;
        }

        if (marketToJoin.accountMembership[borrower] == true) {
            // already joined
            return Error.NO_ERROR;
        }

        if (accountAssets[borrower].length >= maxAssets)  {
            // no space, cannot join
            return Error.TOO_MANY_ASSETS;
        }

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

        emit MarketEntered(cToken, borrower);

        return Error.NO_ERROR;
    }

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

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

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

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

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

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

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

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

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

        emit MarketExited(cToken, msg.sender);

        return uint(Error.NO_ERROR);
    }

    /*** Policy Hooks ***/

    /**
     * @notice Checks if the account should be allowed to mint tokens in the given market
     * @param cToken The market to verify the mint against
     * @param minter The account which would get the minted tokens
     * @param mintAmount The amount of underlying being supplied to the market in exchange for tokens
     * @return 0 if the mint is allowed, otherwise a semi-opaque error code (See ErrorReporter.sol)
     */
    function mintAllowed(address cToken, address minter, uint mintAmount) external returns (uint) {
        // Pausing is a very serious situation - we revert to sound the alarms
        require(!mintGuardianPaused[cToken], "mint is paused");

        // Shh - currently unused
        minter;
        mintAmount;

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

        // Keep the flywheel moving
        updateCompSupplyIndex(cToken);
        distributeSupplierComp(cToken, minter, false);

        return uint(Error.NO_ERROR);
    }

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

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

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

        // Keep the flywheel moving
        updateCompSupplyIndex(cToken);
        distributeSupplierComp(cToken, redeemer, false);

        return uint(Error.NO_ERROR);
    }

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

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

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

        return uint(Error.NO_ERROR);
    }

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

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

    /**
     * @notice Checks if the account should be allowed to borrow the underlying asset of the given market
     * @param cToken The market to verify the borrow against
     * @param borrower The account which would borrow the asset
     * @param borrowAmount The amount of underlying the account would borrow
     * @return 0 if the borrow is allowed, otherwise a semi-opaque error code (See ErrorReporter.sol)
     */
    function borrowAllowed(address cToken, address borrower, uint borrowAmount) external returns (uint) {
        // Pausing is a very serious situation - we revert to sound the alarms
        require(!borrowGuardianPaused[cToken], "borrow is paused");

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

        if (!markets[cToken].accountMembership[borrower]) {
            // only cTokens may call borrowAllowed if borrower not in market
            require(msg.sender == cToken, "sender must be cToken");

            // attempt to add borrower to the market
            Error err = addToMarketInternal(CToken(msg.sender), borrower);
            if (err != Error.NO_ERROR) {
                return uint(err);
            }

            // it should be impossible to break the important invariant
            assert(markets[cToken].accountMembership[borrower]);
        }

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

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

        // Keep the flywheel moving
        Exp memory borrowIndex = Exp({mantissa: CToken(cToken).borrowIndex()});
        updateCompBorrowIndex(cToken, borrowIndex);
        distributeBorrowerComp(cToken, borrower, borrowIndex, false);

        return uint(Error.NO_ERROR);
    }

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

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

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

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

        // Keep the flywheel moving
        Exp memory borrowIndex = Exp({mantissa: CToken(cToken).borrowIndex()});
        updateCompBorrowIndex(cToken, borrowIndex);
        distributeBorrowerComp(cToken, borrower, borrowIndex, false);

        return uint(Error.NO_ERROR);
    }

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

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

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

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

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

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

        return uint(Error.NO_ERROR);
    }

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

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

    /**
     * @notice Checks if the seizing of assets should be allowed to occur
     * @param cTokenCollateral Asset which was used as collateral and will be seized
     * @param cTokenBorrowed Asset which was borrowed by the borrower
     * @param liquidator The address repaying the borrow and seizing the collateral
     * @param borrower The address of the borrower
     * @param seizeTokens The number of collateral tokens to seize
     */
    function seizeAllowed(
        address cTokenCollateral,
        address cTokenBorrowed,
        address liquidator,
        address borrower,
        uint seizeTokens) external returns (uint) {
        // Pausing is a very serious situation - we revert to sound the alarms
        require(!seizeGuardianPaused, "seize is paused");

        // Shh - currently unused
        seizeTokens;

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

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

        // Keep the flywheel moving
        updateCompSupplyIndex(cTokenCollateral);
        distributeSupplierComp(cTokenCollateral, borrower, false);
        distributeSupplierComp(cTokenCollateral, liquidator, false);

        return uint(Error.NO_ERROR);
    }

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

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

    /**
     * @notice Checks if the account should be allowed to transfer tokens in the given market
     * @param cToken The market to verify the transfer against
     * @param src The account which sources the tokens
     * @param dst The account which receives the tokens
     * @param transferTokens The number of cTokens to transfer
     * @return 0 if the transfer is allowed, otherwise a semi-opaque error code (See ErrorReporter.sol)
     */
    function transferAllowed(address cToken, address src, address dst, uint transferTokens) external returns (uint) {
        // Pausing is a very serious situation - we revert to sound the alarms
        require(!transferGuardianPaused, "transfer is paused");

        // Currently the only consideration is whether or not
        //  the src is allowed to redeem this many tokens
        uint allowed = redeemAllowedInternal(cToken, src, transferTokens);
        if (allowed != uint(Error.NO_ERROR)) {
            return allowed;
        }

        // Keep the flywheel moving
        updateCompSupplyIndex(cToken);
        distributeSupplierComp(cToken, src, false);
        distributeSupplierComp(cToken, dst, false);

        return uint(Error.NO_ERROR);
    }

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

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

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

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

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

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

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

    /**
     * @notice Determine what the account liquidity would be if the given amounts were redeemed/borrowed
     * @param cTokenModify The market to hypothetically redeem/borrow in
     * @param account The account to determine liquidity for
     * @param redeemTokens The number of tokens to hypothetically redeem
     * @param borrowAmount The amount of underlying to hypothetically borrow
     * @return (possible error code (semi-opaque),
                hypothetical account liquidity in excess of collateral requirements,
     *          hypothetical account shortfall below collateral requirements)
     */
    function getHypotheticalAccountLiquidity(
        address account,
        address cTokenModify,
        uint redeemTokens,
        uint borrowAmount) public view returns (uint, uint, uint) {
        (Error err, uint liquidity, uint shortfall) = getHypotheticalAccountLiquidityInternal(account, CToken(cTokenModify), redeemTokens, borrowAmount);
        return (uint(err), liquidity, shortfall);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /*** Admin Functions ***/

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

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

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

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

        return uint(Error.NO_ERROR);
    }

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

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

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

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

        return uint(Error.NO_ERROR);
    }

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

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

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

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

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

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

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

        return uint(Error.NO_ERROR);
    }

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

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

        return uint(Error.NO_ERROR);
    }

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

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

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

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

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

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

        return uint(Error.NO_ERROR);
    }

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

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

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

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

        _addMarketInternal(address(cToken));

        emit MarketListed(cToken);

        return uint(Error.NO_ERROR);
    }

    function _addMarketInternal(address cToken) internal {
        for (uint i = 0; i < allMarkets.length; i ++) {
            require(allMarkets[i] != CToken(cToken), "market already added");
        }
        allMarkets.push(CToken(cToken));
    }

    /**
     * @notice Admin function to change the Pause Guardian
     * @param newPauseGuardian The address of the new Pause Guardian
     * @return uint 0=success, otherwise a failure. (See enum Error for details)
     */
    function _setPauseGuardian(address newPauseGuardian) public returns (uint) {
        if (msg.sender != admin) {
            return fail(Error.UNAUTHORIZED, FailureInfo.SET_PAUSE_GUARDIAN_OWNER_CHECK);
        }

        // Save current value for inclusion in log
        address oldPauseGuardian = pauseGuardian;

        // Store pauseGuardian with value newPauseGuardian
        pauseGuardian = newPauseGuardian;

        // Emit NewPauseGuardian(OldPauseGuardian, NewPauseGuardian)
        emit NewPauseGuardian(oldPauseGuardian, pauseGuardian);

        return uint(Error.NO_ERROR);
    }

    function _setMintPaused(CToken cToken, bool state) public returns (bool) {
        require(markets[address(cToken)].isListed, "cannot pause a market that is not listed");
        require(msg.sender == pauseGuardian || msg.sender == admin, "only pause guardian and admin can pause");
        require(msg.sender == admin || state == true, "only admin can unpause");

        mintGuardianPaused[address(cToken)] = state;
        emit ActionPaused(cToken, "Mint", state);
        return state;
    }

    function _setBorrowPaused(CToken cToken, bool state) public returns (bool) {
        require(markets[address(cToken)].isListed, "cannot pause a market that is not listed");
        require(msg.sender == pauseGuardian || msg.sender == admin, "only pause guardian and admin can pause");
        require(msg.sender == admin || state == true, "only admin can unpause");

        borrowGuardianPaused[address(cToken)] = state;
        emit ActionPaused(cToken, "Borrow", state);
        return state;
    }

    function _setTransferPaused(bool state) public returns (bool) {
        require(msg.sender == pauseGuardian || msg.sender == admin, "only pause guardian and admin can pause");
        require(msg.sender == admin || state == true, "only admin can unpause");

        transferGuardianPaused = state;
        emit ActionPaused("Transfer", state);
        return state;
    }

    function _setSeizePaused(bool state) public returns (bool) {
        require(msg.sender == pauseGuardian || msg.sender == admin, "only pause guardian and admin can pause");
        require(msg.sender == admin || state == true, "only admin can unpause");

        seizeGuardianPaused = state;
        emit ActionPaused("Seize", state);
        return state;
    }

    function _become(Unitroller unitroller) public {
        require(msg.sender == unitroller.admin(), "only unitroller admin can change brains");
        require(unitroller._acceptImplementation() == 0, "change not authorized");
    }

    /**
     * @notice Checks caller is admin, or this contract is becoming the new implementation
     */
    function adminOrInitializing() internal view returns (bool) {
        return msg.sender == admin || msg.sender == comptrollerImplementation;
    }

    /*** Comp Distribution ***/

    /**
     * @notice Recalculate and update COMP speeds for all COMP markets
     */
    function refreshCompSpeeds() public {
        require(msg.sender == tx.origin, "only externally owned accounts may refresh speeds");
        refreshCompSpeedsInternal();
    }

    function refreshCompSpeedsInternal() internal {
        CToken[] memory allMarkets_ = allMarkets;

        for (uint i = 0; i < allMarkets_.length; i++) {
            CToken cToken = allMarkets_[i];
            Exp memory borrowIndex = Exp({mantissa: cToken.borrowIndex()});
            updateCompSupplyIndex(address(cToken));
            updateCompBorrowIndex(address(cToken), borrowIndex);
        }

        Exp memory totalUtility = Exp({mantissa: 0});
        Exp[] memory utilities = new Exp[](allMarkets_.length);
        for (uint i = 0; i < allMarkets_.length; i++) {
            CToken cToken = allMarkets_[i];
            if (markets[address(cToken)].isComped) {
                Exp memory assetPrice = Exp({mantissa: oracle.getUnderlyingPrice(cToken)});
                Exp memory utility = mul_(assetPrice, cToken.totalBorrows());
                utilities[i] = utility;
                totalUtility = add_(totalUtility, utility);
            }
        }

        for (uint i = 0; i < allMarkets_.length; i++) {
            CToken cToken = allMarkets[i];
            uint newSpeed = totalUtility.mantissa > 0 ? mul_(compRate, div_(utilities[i], totalUtility)) : 0;
            compSpeeds[address(cToken)] = newSpeed;
            emit CompSpeedUpdated(cToken, newSpeed);
        }
    }

    /**
     * @notice Accrue COMP to the market by updating the supply index
     * @param cToken The market whose supply index to update
     */
    function updateCompSupplyIndex(address cToken) internal {
        CompMarketState storage supplyState = compSupplyState[cToken];
        uint supplySpeed = compSpeeds[cToken];
        uint blockNumber = getBlockNumber();
        uint deltaBlocks = sub_(blockNumber, uint(supplyState.block));
        if (deltaBlocks > 0 && supplySpeed > 0) {
            uint supplyTokens = CToken(cToken).totalSupply();
            uint compAccrued = mul_(deltaBlocks, supplySpeed);
            Double memory ratio = supplyTokens > 0 ? fraction(compAccrued, supplyTokens) : Double({mantissa: 0});
            Double memory index = add_(Double({mantissa: supplyState.index}), ratio);
            compSupplyState[cToken] = CompMarketState({
                index: safe224(index.mantissa, "new index exceeds 224 bits"),
                block: safe32(blockNumber, "block number exceeds 32 bits")
            });
        } else if (deltaBlocks > 0) {
            supplyState.block = safe32(blockNumber, "block number exceeds 32 bits");
        }
    }

    /**
     * @notice Accrue COMP to the market by updating the borrow index
     * @param cToken The market whose borrow index to update
     */
    function updateCompBorrowIndex(address cToken, Exp memory marketBorrowIndex) internal {
        CompMarketState storage borrowState = compBorrowState[cToken];
        uint borrowSpeed = compSpeeds[cToken];
        uint blockNumber = getBlockNumber();
        uint deltaBlocks = sub_(blockNumber, uint(borrowState.block));
        if (deltaBlocks > 0 && borrowSpeed > 0) {
            uint borrowAmount = div_(CToken(cToken).totalBorrows(), marketBorrowIndex);
            uint compAccrued = mul_(deltaBlocks, borrowSpeed);
            Double memory ratio = borrowAmount > 0 ? fraction(compAccrued, borrowAmount) : Double({mantissa: 0});
            Double memory index = add_(Double({mantissa: borrowState.index}), ratio);
            compBorrowState[cToken] = CompMarketState({
                index: safe224(index.mantissa, "new index exceeds 224 bits"),
                block: safe32(blockNumber, "block number exceeds 32 bits")
            });
        } else if (deltaBlocks > 0) {
            borrowState.block = safe32(blockNumber, "block number exceeds 32 bits");
        }
    }

    /**
     * @notice Calculate COMP accrued by a supplier and possibly transfer it to them
     * @param cToken The market in which the supplier is interacting
     * @param supplier The address of the supplier to distribute COMP to
     */
    function distributeSupplierComp(address cToken, address supplier, bool distributeAll) internal {
        CompMarketState storage supplyState = compSupplyState[cToken];
        Double memory supplyIndex = Double({mantissa: supplyState.index});
        Double memory supplierIndex = Double({mantissa: compSupplierIndex[cToken][supplier]});
        compSupplierIndex[cToken][supplier] = supplyIndex.mantissa;

        if (supplierIndex.mantissa == 0 && supplyIndex.mantissa > 0) {
            supplierIndex.mantissa = compInitialIndex;
        }

        Double memory deltaIndex = sub_(supplyIndex, supplierIndex);
        uint supplierTokens = CToken(cToken).balanceOf(supplier);
        uint supplierDelta = mul_(supplierTokens, deltaIndex);
        uint supplierAccrued = add_(compAccrued[supplier], supplierDelta);
        compAccrued[supplier] = transferComp(supplier, supplierAccrued, distributeAll ? 0 : compClaimThreshold);
        emit DistributedSupplierComp(CToken(cToken), supplier, supplierDelta, supplyIndex.mantissa);
    }

    /**
     * @notice Calculate COMP accrued by a borrower and possibly transfer it to them
     * @dev Borrowers will not begin to accrue until after the first interaction with the protocol.
     * @param cToken The market in which the borrower is interacting
     * @param borrower The address of the borrower to distribute COMP to
     */
    function distributeBorrowerComp(address cToken, address borrower, Exp memory marketBorrowIndex, bool distributeAll) internal {
        CompMarketState storage borrowState = compBorrowState[cToken];
        Double memory borrowIndex = Double({mantissa: borrowState.index});
        Double memory borrowerIndex = Double({mantissa: compBorrowerIndex[cToken][borrower]});
        compBorrowerIndex[cToken][borrower] = borrowIndex.mantissa;

        if (borrowerIndex.mantissa > 0) {
            Double memory deltaIndex = sub_(borrowIndex, borrowerIndex);
            uint borrowerAmount = div_(CToken(cToken).borrowBalanceStored(borrower), marketBorrowIndex);
            uint borrowerDelta = mul_(borrowerAmount, deltaIndex);
            uint borrowerAccrued = add_(compAccrued[borrower], borrowerDelta);
            compAccrued[borrower] = transferComp(borrower, borrowerAccrued, distributeAll ? 0 : compClaimThreshold);
            emit DistributedBorrowerComp(CToken(cToken), borrower, borrowerDelta, borrowIndex.mantissa);
        }
    }

    function transferComp(address user, uint userAccrued, uint threshold) internal returns (uint);

    /**
     * @notice Transfer COMP to the user, if they are above the threshold
     * @dev Note: If there is not enough COMP, we do not perform the transfer all.
     * @param user The address of the user to transfer COMP to
     * @param userAccrued The amount of COMP to (possibly) transfer
     * @return The amount of COMP which was NOT transferred to the user
     */
    // function transferComp(address user, uint userAccrued, uint threshold) internal returns (uint) {
    //     if (userAccrued >= threshold && userAccrued > 0) {
    //         Comp comp = Comp(getCompAddress());
    //         uint compRemaining = comp.balanceOf(address(this));
    //         if (userAccrued <= compRemaining) {
    //             comp.transfer(user, userAccrued);
    //             return 0;
    //         }
    //     }
    //     return userAccrued;
    // }

    /**
     * @notice Claim all the comp accrued by holder in all markets
     * @param holder The address to claim COMP for
     */
    function claimComp(address holder) public {
        return claimComp(holder, allMarkets);
    }

    /**
     * @notice Claim all the comp accrued by holder in the specified markets
     * @param holder The address to claim COMP for
     * @param cTokens The list of markets to claim COMP in
     */
    function claimComp(address holder, CToken[] memory cTokens) public {
        address[] memory holders = new address[](1);
        holders[0] = holder;
        claimComp(holders, cTokens, true, true);
    }

    /**
     * @notice Claim all comp accrued by the holders
     * @param holders The addresses to claim COMP for
     * @param cTokens The list of markets to claim COMP in
     * @param borrowers Whether or not to claim COMP earned by borrowing
     * @param suppliers Whether or not to claim COMP earned by supplying
     */
    function claimComp(address[] memory holders, CToken[] memory cTokens, bool borrowers, bool suppliers) public {
        for (uint i = 0; i < cTokens.length; i++) {
            CToken cToken = cTokens[i];
            require(markets[address(cToken)].isListed, "market must be listed");
            if (borrowers == true) {
                Exp memory borrowIndex = Exp({mantissa: cToken.borrowIndex()});
                updateCompBorrowIndex(address(cToken), borrowIndex);
                for (uint j = 0; j < holders.length; j++) {
                    distributeBorrowerComp(address(cToken), holders[j], borrowIndex, true);
                }
            }
            if (suppliers == true) {
                updateCompSupplyIndex(address(cToken));
                for (uint j = 0; j < holders.length; j++) {
                    distributeSupplierComp(address(cToken), holders[j], true);
                }
            }
        }
    }

    /*** Comp Distribution Admin ***/

    /**
     * @notice Set the amount of COMP distributed per block
     * @param compRate_ The amount of COMP wei per block to distribute
     */
    function _setCompRate(uint compRate_) public {
        require(adminOrInitializing(), "only admin can change comp rate");

        uint oldRate = compRate;
        compRate = compRate_;
        emit NewCompRate(oldRate, compRate_);

        refreshCompSpeedsInternal();
    }

    /**
     * @notice Add markets to compMarkets, allowing them to earn COMP in the flywheel
     * @param cTokens The addresses of the markets to add
     */
    function _addCompMarkets(address[] memory cTokens) public {
        require(adminOrInitializing(), "only admin can add comp market");

        for (uint i = 0; i < cTokens.length; i++) {
            _addCompMarketInternal(cTokens[i]);
        }

        refreshCompSpeedsInternal();
    }

    function _addCompMarketInternal(address cToken) internal {
        Market storage market = markets[cToken];
        require(market.isListed == true, "comp market is not listed");
        require(market.isComped == false, "comp market already added");

        market.isComped = true;
        emit MarketComped(CToken(cToken), true);

        if (compSupplyState[cToken].index == 0 && compSupplyState[cToken].block == 0) {
            compSupplyState[cToken] = CompMarketState({
                index: compInitialIndex,
                block: safe32(getBlockNumber(), "block number exceeds 32 bits")
            });
        }

        if (compBorrowState[cToken].index == 0 && compBorrowState[cToken].block == 0) {
            compBorrowState[cToken] = CompMarketState({
                index: compInitialIndex,
                block: safe32(getBlockNumber(), "block number exceeds 32 bits")
            });
        }
    }

    /**
     * @notice Remove a market from compMarkets, preventing it from earning COMP in the flywheel
     * @param cToken The address of the market to drop
     */
    function _dropCompMarket(address cToken) public {
        require(msg.sender == admin, "only admin can drop comp market");

        Market storage market = markets[cToken];
        require(market.isComped == true, "market is not a comp market");

        market.isComped = false;
        emit MarketComped(CToken(cToken), false);

        refreshCompSpeedsInternal();
    }

    /**
     * @notice Return all of the markets
     * @dev The automatic getter may be used to access an individual market.
     * @return The list of market addresses
     */
    function getAllMarkets() public view returns (CToken[] memory) {
        return allMarkets;
    }

    function getBlockNumber() public view returns (uint) {
        return block.number;
    }

    /**
     * @notice Return the address of the COMP token
     * @return The address of COMP
     */
    function getCompAddress() public view returns (address) {
        return 0xc00e94Cb662C3520282E6f5717214004A7f26888;
    }
}

// File: contracts/Ownable.sol

pragma solidity ^0.5.16;

contract Ownable {
    address public _owner;
    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    constructor () internal {
        _owner = msg.sender;

        emit OwnershipTransferred(address(0), msg.sender);
    }

    function owner() public view returns (address) {
        return _owner;
    }

    modifier onlyOwner() {
        require(_owner == msg.sender, "Ownable: caller is not the owner");
        _;
    }

    function renounceOwnership() public onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    function transferOwnership(address newOwner) public onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

// File: contracts/QsConfig.sol

pragma solidity ^0.5.16;




contract QsConfig is Ownable, Exponential {
    bool public compSpeedGuardianPaused = true;
    address public compToken;
    uint public safetyVaultRatio;
    address public safetyVault;

    event NewCompToken(address oldCompToken, address newCompToken);
    event NewSafetyVault(address oldSafetyVault, address newSafetyVault);
    event NewSafetyVaultRatio(uint oldSafetyVaultRatio, uint newSafetyVault);

    function _setCompToken(address _compToken) public onlyOwner {
        address oldCompToken = compToken;
        compToken = _compToken;
        emit NewCompToken(oldCompToken, compToken);
    }

    function _setSafetyVault(address _safetyVault) public onlyOwner {
        address oldSafetyVault = safetyVault;
        safetyVault = _safetyVault;
        emit NewSafetyVault(oldSafetyVault, safetyVault);
    }

    function _setSafetyVaultRatio(uint _safetyVaultRatio) public onlyOwner {
        uint oldSafetyVaultRatio = safetyVaultRatio;
        safetyVaultRatio = _safetyVaultRatio;
        emit NewSafetyVaultRatio(oldSafetyVaultRatio, safetyVaultRatio);
    }
    
    function _setCompSpeedGuardianPaused(bool state) public onlyOwner returns (bool) {
        compSpeedGuardianPaused = state;
        return state;
    }
    
    function calculateSeizeTokenAllocation(uint _seizeTokenAmount, uint liquidationIncentiveMantissa) public view returns(uint liquidatorAmount, uint safetyVaultAmount) {
        Exp memory vaultRatio = Exp({mantissa:safetyVaultRatio});
        (,Exp memory tmp) = mulScalar(vaultRatio, _seizeTokenAmount);
        safetyVaultAmount = div_(tmp, liquidationIncentiveMantissa).mantissa;
        liquidatorAmount = sub_(_seizeTokenAmount, safetyVaultAmount);
    }
}

// File: contracts/Qstroller.sol

pragma solidity ^0.5.16;




contract Qstroller is Comptroller {
    QsConfig public qsConfig;

    function _setQsConfig(QsConfig _qsConfig) public {
        require(msg.sender == admin, "Only admin can set quick silver configuration data.");

        qsConfig = _qsConfig;
    }

    /**
     * @notice Sets new governance token distribution speed
     * @dev Admin function to set new token distribution speed
     */
    function _setCompSpeeds(address[] memory _allMarkets, uint[] memory _compSpeeds) public {
        // Check caller is admin
        require(msg.sender == admin, "Only admin can update token distribution");
        
        require(_allMarkets.length == _compSpeeds.length, "Incomplete parameter");
        require(allMarkets.length == _allMarkets.length, "Must update token distribution within one transaction");

        uint _compRate = 0;
        for (uint i = 0; i < _allMarkets.length; i++) {
            address cToken = _allMarkets[i];
            Market storage market = markets[cToken];
            if (market.isComped == false) {
                _addCompMarketInternal(cToken);
            }
            compSpeeds[cToken] = _compSpeeds[i];
            _compRate = add_(_compRate, _compSpeeds[i]);
        }
        _setCompRate(_compRate);
    }


    function refreshCompSpeeds() public {
        require(!qsConfig.compSpeedGuardianPaused(), "compSpeed is paused");
        require(msg.sender == tx.origin, "only externally owned accounts may refresh speeds");

        refreshCompSpeedsInternal();
    }

    function refreshCompSpeedsInternal() internal {
        if (qsConfig.compSpeedGuardianPaused()) {
            return;
        } else {
            super.refreshCompSpeedsInternal();
        }
    }

    function getCompAddress() public view returns (address) {
        return qsConfig.compToken();
    }
    
    function calculateSeizeTokenAllocation(uint _seizeTokenAmount) public view returns(uint liquidatorAmount, uint safetyVaultAmount) {
        return qsConfig.calculateSeizeTokenAllocation(_seizeTokenAmount, liquidationIncentiveMantissa);
    }
    
    function transferComp(address user, uint userAccrued, uint threshold) internal returns (uint) {
        address compAddress = getCompAddress();
        if (userAccrued >= threshold && userAccrued > 0 && compAddress != address(0x0)) {
            EIP20Interface comp = EIP20Interface(compAddress);
            uint compRemaining = comp.balanceOf(address(this));
            if (userAccrued <= compRemaining) {
                comp.transfer(user, userAccrued);
                return 0;
            }
        }
        return userAccrued;
    }
}

// File: contracts/SToken.sol

pragma solidity ^0.5.16;



contract SToken is CToken {

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

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

        MathError mathErr;
        uint borrowerTokensNew;
        uint liquidatorTokensNew;
        uint safetyVaultTokensNew;
        uint safetyVaultTokens;
        uint liquidatorSeizeTokens;

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

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

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

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

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

        /* Emit a Transfer event */
        emit Transfer(borrower, liquidator, liquidatorSeizeTokens);
        emit Transfer(borrower, safetyVault, safetyVaultTokens);

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

        return uint(Error.NO_ERROR);
    }

    function isNativeToken() public pure returns (bool) {
        return false;
    }

}

// File: contracts/compound/CEther.sol

pragma solidity ^0.5.16;



/**
 * @title Compound's CEther Contract
 * @notice CToken which wraps Ether
 * @author Compound
 */
contract CEther is SToken {
    /**
     * @notice Construct a new CEther money market
     * @param comptroller_ The address of the Comptroller
     * @param interestRateModel_ The address of the interest rate model
     * @param initialExchangeRateMantissa_ The initial exchange rate, scaled by 1e18
     * @param name_ ERC-20 name of this token
     * @param symbol_ ERC-20 symbol of this token
     * @param decimals_ ERC-20 decimal precision of this token
     * @param admin_ Address of the administrator of this token
     */
    constructor(ComptrollerInterface comptroller_,
                InterestRateModel interestRateModel_,
                uint initialExchangeRateMantissa_,
                string memory name_,
                string memory symbol_,
                uint8 decimals_,
                address payable admin_) public {
        // Creator of the contract is admin during initialization
        admin = msg.sender;

        initialize(comptroller_, interestRateModel_, initialExchangeRateMantissa_, name_, symbol_, decimals_);

        // Set the proper admin now that initialization is done
        admin = admin_;
    }


    /*** User Interface ***/

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

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

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

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

    /**
     * @notice Sender repays their own borrow
     * @dev Reverts upon any failure
     */
    function repayBorrow() external payable {
        (uint err,) = repayBorrowInternal(msg.value);
        requireNoError(err, "repayBorrow failed");
    }

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

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

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

    /*** Safe Token ***/

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

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

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

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

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

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

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

        require(errCode == uint(Error.NO_ERROR), string(fullMessage));
    }

    function isNativeToken() public pure returns (bool) {
        return true;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract ComptrollerInterface","name":"comptroller_","type":"address"},{"internalType":"contract InterestRateModel","name":"interestRateModel_","type":"address"},{"internalType":"uint256","name":"initialExchangeRateMantissa_","type":"uint256"},{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"uint8","name":"decimals_","type":"uint8"},{"internalType":"address payable","name":"admin_","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"cashPrior","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"interestAccumulated","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"borrowIndex","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalBorrows","type":"uint256"}],"name":"AccrueInterest","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"borrower","type":"address"},{"indexed":false,"internalType":"uint256","name":"borrowAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"accountBorrows","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalBorrows","type":"uint256"}],"name":"Borrow","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"error","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"info","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"detail","type":"uint256"}],"name":"Failure","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"liquidator","type":"address"},{"indexed":false,"internalType":"address","name":"borrower","type":"address"},{"indexed":false,"internalType":"uint256","name":"repayAmount","type":"uint256"},{"indexed":false,"internalType":"address","name":"cTokenCollateral","type":"address"},{"indexed":false,"internalType":"uint256","name":"seizeTokens","type":"uint256"}],"name":"LiquidateBorrow","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"uint256","name":"mintAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"mintTokens","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"NewAdmin","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"contract ComptrollerInterface","name":"oldComptroller","type":"address"},{"indexed":false,"internalType":"contract ComptrollerInterface","name":"newComptroller","type":"address"}],"name":"NewComptroller","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"contract InterestRateModel","name":"oldInterestRateModel","type":"address"},{"indexed":false,"internalType":"contract InterestRateModel","name":"newInterestRateModel","type":"address"}],"name":"NewMarketInterestRateModel","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldPendingAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newPendingAdmin","type":"address"}],"name":"NewPendingAdmin","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldReserveFactorMantissa","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newReserveFactorMantissa","type":"uint256"}],"name":"NewReserveFactor","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"redeemer","type":"address"},{"indexed":false,"internalType":"uint256","name":"redeemAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"redeemTokens","type":"uint256"}],"name":"Redeem","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"payer","type":"address"},{"indexed":false,"internalType":"address","name":"borrower","type":"address"},{"indexed":false,"internalType":"uint256","name":"repayAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"accountBorrows","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalBorrows","type":"uint256"}],"name":"RepayBorrow","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"benefactor","type":"address"},{"indexed":false,"internalType":"uint256","name":"addAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newTotalReserves","type":"uint256"}],"name":"ReservesAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"admin","type":"address"},{"indexed":false,"internalType":"uint256","name":"reduceAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newTotalReserves","type":"uint256"}],"name":"ReservesReduced","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Transfer","type":"event"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"constant":false,"inputs":[],"name":"_acceptAdmin","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"reduceAmount","type":"uint256"}],"name":"_reduceReserves","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"contract ComptrollerInterface","name":"newComptroller","type":"address"}],"name":"_setComptroller","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"contract InterestRateModel","name":"newInterestRateModel","type":"address"}],"name":"_setInterestRateModel","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address payable","name":"newPendingAdmin","type":"address"}],"name":"_setPendingAdmin","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"newReserveFactorMantissa","type":"uint256"}],"name":"_setReserveFactor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"accrualBlockNumber","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"accrueInterest","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"admin","outputs":[{"internalType":"address payable","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOfUnderlying","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"borrowAmount","type":"uint256"}],"name":"borrow","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"borrowBalanceCurrent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"borrowBalanceStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"borrowIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"borrowRatePerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"comptroller","outputs":[{"internalType":"contract ComptrollerInterface","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"exchangeRateCurrent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"exchangeRateStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getAccountSnapshot","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getCash","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"contract ComptrollerInterface","name":"comptroller_","type":"address"},{"internalType":"contract InterestRateModel","name":"interestRateModel_","type":"address"},{"internalType":"uint256","name":"initialExchangeRateMantissa_","type":"uint256"},{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"uint8","name":"decimals_","type":"uint8"}],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"interestRateModel","outputs":[{"internalType":"contract InterestRateModel","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isCToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isNativeToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"borrower","type":"address"},{"internalType":"contract CToken","name":"cTokenCollateral","type":"address"}],"name":"liquidateBorrow","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[],"name":"mint","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"pendingAdmin","outputs":[{"internalType":"address payable","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"redeemTokens","type":"uint256"}],"name":"redeem","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"redeemAmount","type":"uint256"}],"name":"redeemUnderlying","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"repayBorrow","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"borrower","type":"address"}],"name":"repayBorrowBehalf","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[],"name":"reserveFactorMantissa","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"liquidator","type":"address"},{"internalType":"address","name":"borrower","type":"address"},{"internalType":"uint256","name":"seizeTokens","type":"uint256"}],"name":"seize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"supplyRatePerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalBorrows","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"totalBorrowsCurrent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalReserves","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"src","type":"address"},{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604051620059d4380380620059d4833981810160405260e08110156200003757600080fd5b8151602083015160408085015160608601805192519496939591949391820192846401000000008211156200006b57600080fd5b9083019060208201858111156200008157600080fd5b82516401000000008111828201881017156200009c57600080fd5b82525081516020918201929091019080838360005b83811015620000cb578181015183820152602001620000b1565b50505050905090810190601f168015620000f95780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200011d57600080fd5b9083019060208201858111156200013357600080fd5b82516401000000008111828201881017156200014e57600080fd5b82525081516020918201929091019080838360005b838110156200017d57818101518382015260200162000163565b50505050905090810190601f168015620001ab5780820380516001836020036101000a031916815260200191505b506040908152602082015191015160038054610100600160a81b03191633610100021790559092509050620001e587878787878762000218565b600380546001600160a01b0390921661010002610100600160a81b03199092169190911790555062000853945050505050565b60035461010090046001600160a01b03163314620002685760405162461bcd60e51b81526004018080602001828103825260248152602001806200593b6024913960400191505060405180910390fd5b600954158015620002795750600a54155b620002b65760405162461bcd60e51b81526004018080602001828103825260238152602001806200595f6023913960400191505060405180910390fd5b600784905583620002f95760405162461bcd60e51b8152600401808060200182810382526030815260200180620059826030913960400191505060405180910390fd5b60006200030f876001600160e01b036200042e16565b9050801562000365576040805162461bcd60e51b815260206004820152601a60248201527f73657474696e6720636f6d7074726f6c6c6572206661696c6564000000000000604482015290519081900360640190fd5b620003786001600160e01b036200059616565b600955670de0b6b3a7640000600a556200039b866001600160e01b036200059b16565b90508015620003dc5760405162461bcd60e51b8152600401808060200182810382526022815260200180620059b26022913960400191505060405180910390fd5b8351620003f1906001906020870190620007b1565b50825162000407906002906020860190620007b1565b50506003805460ff90921660ff199283161790556000805490911660011790555050505050565b60035460009061010090046001600160a01b031633146200046857620004606001603f6001600160e01b036200074116565b905062000591565b60055460408051623f1ee960e11b815290516001600160a01b0392831692851691627e3dd2916004808301926020929190829003018186803b158015620004ae57600080fd5b505afa158015620004c3573d6000803e3d6000fd5b505050506040513d6020811015620004da57600080fd5b50516200052e576040805162461bcd60e51b815260206004820152601c60248201527f6d61726b6572206d6574686f642072657475726e65642066616c736500000000604482015290519081900360640190fd5b600580546001600160a01b0319166001600160a01b03858116918217909255604080519284168352602083019190915280517f7ac369dbd14fa5ea3f473ed67cc9d598964a77501540ba6751eb0b3decf5870d9281900390910190a160005b9150505b919050565b435b90565b600354600090819061010090046001600160a01b03163314620005d857620005cf600160426001600160e01b036200074116565b91505062000591565b620005eb6001600160e01b036200059616565b600954146200060b57620005cf600a60416001600160e01b036200074116565b600660009054906101000a90046001600160a01b03169050826001600160a01b0316632191f92a6040518163ffffffff1660e01b815260040160206040518083038186803b1580156200065d57600080fd5b505afa15801562000672573d6000803e3d6000fd5b505050506040513d60208110156200068957600080fd5b5051620006dd576040805162461bcd60e51b815260206004820152601c60248201527f6d61726b6572206d6574686f642072657475726e65642066616c736500000000604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b03858116918217909255604080519284168352602083019190915280517fedffc32e068c7c95dfd4bdfd5c4d939a084d6b11c4199eac8436ed234d72f9269281900390910190a160006200058d565b60007f45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa08360108111156200077157fe5b8360508111156200077e57fe5b604080519283526020830191909152600082820152519081900360600190a1826010811115620007aa57fe5b9392505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620007f457805160ff191683800117855562000824565b8280016001018555821562000824579182015b828111156200082457825182559160200191906001019062000807565b506200083292915062000836565b5090565b6200059891905b808211156200083257600081556001016200083d565b6150d880620008636000396000f3fe60806040526004361061021d5760003560e01c806395dd91931161011f57806395dd9193146105e757806399d8c1b41461061a5780639af4ee7e14610775578063a6afed951461078a578063a9059cbb1461079f578063aa5af0fd146107d8578063aae40a2a146107ed578063ae9d70b01461081b578063b2a02ff114610830578063b71d1a0c14610873578063bd6d894d146108a6578063c37f68e2146108bb578063c5ebeaec14610914578063db006a751461093e578063dd62ed3e14610968578063e5974619146109a3578063e9c714f2146109c9578063f2b3abbd146109de578063f3fdb15a14610a11578063f851a44014610a26578063f8f9da2814610a3b578063fca7820b14610a50578063fe9c44ae14610a7a5761021d565b806306fdde031461025b578063095ea7b3146102e55780631249c58b14610332578063173b99041461033c57806317bfdfbc1461036357806318160ddd14610396578063182df0f5146103ab57806323b872dd146103c05780632678224714610403578063313ce567146104345780633af9e6691461045f5780633b1d21a2146104925780634576b5db146104a757806347bd3718146104da5780634e4d9fea146104ef5780635fe3b567146104f7578063601a0bf11461050c5780636c540baf1461053657806370a082311461054b57806373acee981461057e578063852a12e3146105935780638f840ddd146105bd57806395d89b41146105d2575b600061022834610a8f565b509050610258816040518060400160405280600b81526020016a1b5a5b9d0819985a5b195960aa1b815250610b37565b50005b34801561026757600080fd5b50610270610d37565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102aa578181015183820152602001610292565b50505050905090810190601f1680156102d75780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156102f157600080fd5b5061031e6004803603604081101561030857600080fd5b506001600160a01b038135169060200135610dc4565b604080519115158252519081900360200190f35b61033a610e31565b005b34801561034857600080fd5b50610351610e6f565b60408051918252519081900360200190f35b34801561036f57600080fd5b506103516004803603602081101561038657600080fd5b50356001600160a01b0316610e75565b3480156103a257600080fd5b50610351610f35565b3480156103b757600080fd5b50610351610f3b565b3480156103cc57600080fd5b5061031e600480360360608110156103e357600080fd5b506001600160a01b03813581169160208101359091169060400135610f9e565b34801561040f57600080fd5b50610418611010565b604080516001600160a01b039092168252519081900360200190f35b34801561044057600080fd5b5061044961101f565b6040805160ff9092168252519081900360200190f35b34801561046b57600080fd5b506103516004803603602081101561048257600080fd5b50356001600160a01b0316611028565b34801561049e57600080fd5b506103516110e0565b3480156104b357600080fd5b50610351600480360360208110156104ca57600080fd5b50356001600160a01b03166110ef565b3480156104e657600080fd5b50610351611243565b61033a611249565b34801561050357600080fd5b5061041861128b565b34801561051857600080fd5b506103516004803603602081101561052f57600080fd5b503561129a565b34801561054257600080fd5b50610351611335565b34801561055757600080fd5b506103516004803603602081101561056e57600080fd5b50356001600160a01b031661133b565b34801561058a57600080fd5b50610351611356565b34801561059f57600080fd5b50610351600480360360208110156105b657600080fd5b503561140c565b3480156105c957600080fd5b50610351611417565b3480156105de57600080fd5b5061027061141d565b3480156105f357600080fd5b506103516004803603602081101561060a57600080fd5b50356001600160a01b0316611475565b34801561062657600080fd5b5061033a600480360360c081101561063d57600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b81111561067757600080fd5b82018360208201111561068957600080fd5b803590602001918460018302840111600160201b831117156106aa57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b8111156106fc57600080fd5b82018360208201111561070e57600080fd5b803590602001918460018302840111600160201b8311171561072f57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505050903560ff1691506114d29050565b34801561078157600080fd5b5061031e6116b6565b34801561079657600080fd5b506103516116bb565b3480156107ab57600080fd5b5061031e600480360360408110156107c257600080fd5b506001600160a01b038135169060200135611a12565b3480156107e457600080fd5b50610351611a83565b61033a6004803603604081101561080357600080fd5b506001600160a01b0381358116916020013516611a89565b34801561082757600080fd5b50610351611ad6565b34801561083c57600080fd5b506103516004803603606081101561085357600080fd5b506001600160a01b03813581169160208101359091169060400135611b75565b34801561087f57600080fd5b506103516004803603602081101561089657600080fd5b50356001600160a01b0316611be6565b3480156108b257600080fd5b50610351611c72565b3480156108c757600080fd5b506108ee600480360360208110156108de57600080fd5b50356001600160a01b0316611d2e565b604080519485526020850193909352838301919091526060830152519081900360800190f35b34801561092057600080fd5b506103516004803603602081101561093757600080fd5b5035611dc3565b34801561094a57600080fd5b506103516004803603602081101561096157600080fd5b5035611dce565b34801561097457600080fd5b506103516004803603604081101561098b57600080fd5b506001600160a01b0381358116916020013516611dd9565b61033a600480360360208110156109b957600080fd5b50356001600160a01b0316611e04565b3480156109d557600080fd5b50610351611e4d565b3480156109ea57600080fd5b5061035160048036036020811015610a0157600080fd5b50356001600160a01b0316611f50565b348015610a1d57600080fd5b50610418611f8a565b348015610a3257600080fd5b50610418611f99565b348015610a4757600080fd5b50610351611fad565b348015610a5c57600080fd5b5061035160048036036020811015610a7357600080fd5b5035612011565b348015610a8657600080fd5b5061031e61208f565b60008054819060ff16610ad6576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155610ae86116bb565b90508015610b1357610b06816010811115610aff57fe5b601e612094565b925060009150610b239050565b610b1d33856120fa565b92509250505b6000805460ff191660011790559092909150565b81610b4157610d33565b606081516005016040519080825280601f01601f191660200182016040528015610b72576020820181803883390190505b50905060005b8251811015610bc357828181518110610b8d57fe5b602001015160f81c60f81b828281518110610ba457fe5b60200101906001600160f81b031916908160001a905350600101610b78565b8151600160fd1b90839083908110610bd757fe5b60200101906001600160f81b031916908160001a905350602860f81b828260010181518110610c0257fe5b60200101906001600160f81b031916908160001a905350600a840460300160f81b828260020181518110610c3257fe5b60200101906001600160f81b031916908160001a905350600a840660300160f81b828260030181518110610c6257fe5b60200101906001600160f81b031916908160001a905350602960f81b828260040181518110610c8d57fe5b60200101906001600160f81b031916908160001a905350818415610d2f5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610cf4578181015183820152602001610cdc565b50505050905090810190601f168015610d215780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5050505b5050565b60018054604080516020600284861615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610dbc5780601f10610d9157610100808354040283529160200191610dbc565b820191906000526020600020905b815481529060010190602001808311610d9f57829003601f168201915b505050505081565b336000818152600f602090815260408083206001600160a01b03871680855290835281842086905581518681529151939493909284927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929081900390910190a360019150505b92915050565b6000610e3c34610a8f565b509050610e6c816040518060400160405280600b81526020016a1b5a5b9d0819985a5b195960aa1b815250610b37565b50565b60085481565b6000805460ff16610eba576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155610ecc6116bb565b14610f17576040805162461bcd60e51b81526020600482015260166024820152751858d8dc9d59481a5b9d195c995cdd0819985a5b195960521b604482015290519081900360640190fd5b610f2082611475565b90505b6000805460ff19166001179055919050565b600d5481565b6000806000610f4861255a565b90925090506000826003811115610f5b57fe5b14610f975760405162461bcd60e51b8152600401808060200182810382526035815260200180614fef6035913960400191505060405180910390fd5b9150505b90565b6000805460ff16610fe3576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155610ff933868686612609565b1490506000805460ff191660011790559392505050565b6004546001600160a01b031681565b60035460ff1681565b6000611032614cdd565b6040518060200160405280611045611c72565b90526001600160a01b0384166000908152600e6020526040812054919250908190611071908490612919565b9092509050600082600381111561108457fe5b146110d6576040805162461bcd60e51b815260206004820152601f60248201527f62616c616e636520636f756c64206e6f742062652063616c63756c6174656400604482015290519081900360640190fd5b925050505b919050565b60006110ea61296c565b905090565b60035460009061010090046001600160a01b0316331461111c576111156001603f612094565b90506110db565b60055460408051623f1ee960e11b815290516001600160a01b0392831692851691627e3dd2916004808301926020929190829003018186803b15801561116157600080fd5b505afa158015611175573d6000803e3d6000fd5b505050506040513d602081101561118b57600080fd5b50516111dd576040805162461bcd60e51b815260206004820152601c60248201527b6d61726b6572206d6574686f642072657475726e65642066616c736560201b604482015290519081900360640190fd5b600580546001600160a01b0319166001600160a01b03858116918217909255604080519284168352602083019190915280517f7ac369dbd14fa5ea3f473ed67cc9d598964a77501540ba6751eb0b3decf5870d9281900390910190a160005b9392505050565b600b5481565b600061125434612998565b509050610e6c81604051806040016040528060128152602001711c995c185e509bdc9c9bddc819985a5b195960721b815250610b37565b6005546001600160a01b031681565b6000805460ff166112df576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556112f16116bb565b905080156113175761130f81601081111561130857fe5b6030612094565b915050610f23565b61132083612a1a565b9150506000805460ff19166001179055919050565b60095481565b6001600160a01b03166000908152600e602052604090205490565b6000805460ff1661139b576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556113ad6116bb565b146113f8576040805162461bcd60e51b81526020600482015260166024820152751858d8dc9d59481a5b9d195c995cdd0819985a5b195960521b604482015290519081900360640190fd5b50600b546000805460ff1916600117905590565b6000610e2b82612b4d565b600c5481565b6002805460408051602060018416156101000260001901909316849004601f81018490048402820184019092528181529291830182828015610dbc5780601f10610d9157610100808354040283529160200191610dbc565b600080600061148384612bce565b9092509050600082600381111561149657fe5b1461123c5760405162461bcd60e51b8152600401808060200182810382526037815260200180614efa6037913960400191505060405180910390fd5b60035461010090046001600160a01b031633146115205760405162461bcd60e51b8152600401808060200182810382526024815260200180614e366024913960400191505060405180910390fd5b6009541580156115305750600a54155b61156b5760405162461bcd60e51b8152600401808060200182810382526023815260200180614e5a6023913960400191505060405180910390fd5b6007849055836115ac5760405162461bcd60e51b8152600401808060200182810382526030815260200180614e7d6030913960400191505060405180910390fd5b60006115b7876110ef565b90508015611609576040805162461bcd60e51b815260206004820152601a6024820152791cd95d1d1a5b99c818dbdb5c1d1c9bdb1b195c8819985a5b195960321b604482015290519081900360640190fd5b611611612c82565b600955670de0b6b3a7640000600a5561162986612c86565b905080156116685760405162461bcd60e51b8152600401808060200182810382526022815260200180614ead6022913960400191505060405180910390fd5b835161167b906001906020870190614cf0565b50825161168f906002906020860190614cf0565b50506003805460ff90921660ff199283161790556000805490911660011790555050505050565b600190565b6000806116c6612c82565b600954909150808214156116df57600092505050610f9b565b60006116e961296c565b600b54600c54600a54600654604080516315f2405360e01b815260048101879052602481018690526044810185905290519596509394929391926000926001600160a01b03909216916315f24053916064808301926020929190829003018186803b15801561175757600080fd5b505afa15801561176b573d6000803e3d6000fd5b505050506040513d602081101561178157600080fd5b5051905065048c273950008111156117df576040805162461bcd60e51b815260206004820152601c60248201527b0c4dee4e4deee40e4c2e8ca40d2e640c2c4e6eae4c8d8f240d0d2ced60231b604482015290519081900360640190fd5b6000806117ec8989612dfa565b909250905060008260038111156117ff57fe5b14611851576040805162461bcd60e51b815260206004820152601f60248201527f636f756c64206e6f742063616c63756c61746520626c6f636b2064656c746100604482015290519081900360640190fd5b611859614cdd565b60008060008061187760405180602001604052808a81525087612e1d565b9097509450600087600381111561188a57fe5b146118bc576118a7600960068960038111156118a257fe5b612e85565b9e505050505050505050505050505050610f9b565b6118c6858c612919565b909750935060008760038111156118d957fe5b146118f1576118a7600960018960038111156118a257fe5b6118fb848c612eeb565b9097509250600087600381111561190e57fe5b14611926576118a7600960048960038111156118a257fe5b6119416040518060200160405280600854815250858c612f11565b9097509150600087600381111561195457fe5b1461196c576118a7600960058960038111156118a257fe5b611977858a8b612f11565b9097509050600087600381111561198a57fe5b146119a2576118a7600960038960038111156118a257fe5b60098e9055600a819055600b839055600c829055604080518d8152602081018690528082018390526060810185905290517f4dec04e750ca11537cabcd8a9eab06494de08da3735bc8871cd41250e190bc049181900360800190a160009e50505050505050505050505050505090565b6000805460ff16611a57576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155611a6d33338686612609565b1490506000805460ff1916600117905592915050565b600a5481565b6000611a96833484612f6d565b509050611ad181604051806040016040528060168152602001751b1a5c5d5a59185d19509bdc9c9bddc819985a5b195960521b815250610b37565b505050565b6006546000906001600160a01b031663b8168816611af261296c565b600b54600c546008546040518563ffffffff1660e01b81526004018085815260200184815260200183815260200182815260200194505050505060206040518083038186803b158015611b4457600080fd5b505afa158015611b58573d6000803e3d6000fd5b505050506040513d6020811015611b6e57600080fd5b5051905090565b6000805460ff16611bba576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19169055611bd03385858561309f565b90506000805460ff191660011790559392505050565b60035460009061010090046001600160a01b03163314611c0c5761111560016045612094565b600480546001600160a01b038481166001600160a01b0319831681179093556040805191909216808252602082019390935281517fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a9929181900390910190a1600061123c565b6000805460ff16611cb7576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155611cc96116bb565b14611d14576040805162461bcd60e51b81526020600482015260166024820152751858d8dc9d59481a5b9d195c995cdd0819985a5b195960521b604482015290519081900360640190fd5b611d1c610f3b565b90506000805460ff1916600117905590565b6001600160a01b0381166000908152600e6020526040812054819081908190818080611d5989612bce565b935090506000816003811115611d6b57fe5b14611d895760095b975060009650869550859450611dbc9350505050565b611d9161255a565b925090506000816003811115611da357fe5b14611daf576009611d73565b5060009650919450925090505b9193509193565b6000610e2b826136aa565b6000610e2b82613729565b6001600160a01b039182166000908152600f6020908152604080832093909416825291909152205490565b6000611e1082346137a3565b509050610d3381604051806040016040528060188152602001771c995c185e509bdc9c9bddd0995a185b198819985a5b195960421b815250610b37565b6004546000906001600160a01b031633141580611e68575033155b15611e8057611e7960016000612094565b9050610f9b565b60038054600480546001600160a01b03818116610100818102610100600160a81b0319871617968790556001600160a01b031990931690935560408051948390048216808652929095041660208401528351909391927ff9ffabca9c8276e99321725bcb43fb076a6c66a54b7f21c4e8146d8519b417dc92908290030190a1600454604080516001600160a01b038085168252909216602083015280517fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a99281900390910190a160009250505090565b600080611f5b6116bb565b90508015611f8157611f79816010811115611f7257fe5b6040612094565b9150506110db565b61123c83612c86565b6006546001600160a01b031681565b60035461010090046001600160a01b031681565b6006546000906001600160a01b03166315f24053611fc961296c565b600b54600c546040518463ffffffff1660e01b815260040180848152602001838152602001828152602001935050505060206040518083038186803b158015611b4457600080fd5b6000805460ff16612056576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556120686116bb565b905080156120865761130f81601081111561207f57fe5b6046612094565b6113208361384e565b600181565b60007f45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa08360108111156120c357fe5b8360508111156120cf57fe5b604080519283526020830191909152600082820152519081900360600190a182601081111561123c57fe5b60055460408051634ef4c3e160e01b81523060048201526001600160a01b03858116602483015260448201859052915160009384938493911691634ef4c3e19160648082019260209290919082900301818787803b15801561215b57600080fd5b505af115801561216f573d6000803e3d6000fd5b505050506040513d602081101561218557600080fd5b5051905080156121a95761219c6003601f83612e85565b9250600091506125539050565b6121b1612c82565b600954146121c55761219c600a6022612094565b6121cd614d6e565b6121d561255a565b60408301819052602083018260038111156121ec57fe5b60038111156121f757fe5b905250600090508160200151600381111561220e57fe5b146122385761222a60096021836020015160038111156118a257fe5b935060009250612553915050565b61224286866138f6565b60c08201819052604080516020810182529083015181526122639190613992565b606083018190526020830182600381111561227a57fe5b600381111561228557fe5b905250600090508160200151600381111561229c57fe5b146122ee576040805162461bcd60e51b815260206004820181905260248201527f4d494e545f45584348414e47455f43414c43554c4154494f4e5f4641494c4544604482015290519081900360640190fd5b6122fe600d548260600151612eeb565b608083018190526020830182600381111561231557fe5b600381111561232057fe5b905250600090508160200151600381111561233757fe5b146123735760405162461bcd60e51b81526004018080602001828103825260288152602001806150246028913960400191505060405180910390fd5b6001600160a01b0386166000908152600e6020526040902054606082015161239b9190612eeb565b60a08301819052602083018260038111156123b257fe5b60038111156123bd57fe5b90525060009050816020015160038111156123d457fe5b146124105760405162461bcd60e51b815260040180806020018281038252602b815260200180614ecf602b913960400191505060405180910390fd5b6080810151600d5560a08101516001600160a01b0387166000818152600e60209081526040918290209390935560c084015160608086015183519485529484019190915282820193909352517f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f929181900390910190a1606081015160408051918252516001600160a01b038816913091600080516020614f6b8339815191529181900360200190a360055460c08201516060830151604080516341c728b960e01b81523060048201526001600160a01b038b81166024830152604482019490945260648101929092525191909216916341c728b991608480830192600092919082900301818387803b15801561252657600080fd5b505af115801561253a573d6000803e3d6000fd5b5060009250612547915050565b8160c001519350935050505b9250929050565b600d5460009081908061257557505060075460009150612605565b600061257f61296c565b9050600061258b614cdd565b600061259c84600b54600c546139a9565b9350905060008160038111156125ae57fe5b146125c3579550600094506126059350505050565b6125cd83866139e7565b9250905060008160038111156125df57fe5b146125f4579550600094506126059350505050565b505160009550935061260592505050565b9091565b600554604080516317b9b84b60e31b81523060048201526001600160a01b03868116602483015285811660448301526064820185905291516000938493169163bdcdc25891608480830192602092919082900301818787803b15801561266e57600080fd5b505af1158015612682573d6000803e3d6000fd5b505050506040513d602081101561269857600080fd5b5051905080156126b7576126af6003604a83612e85565b915050612911565b836001600160a01b0316856001600160a01b031614156126dd576126af6002604b612094565b60006001600160a01b0387811690871614156126fc5750600019612724565b506001600160a01b038086166000908152600f60209081526040808320938a16835292905220545b6000806000806127348589612dfa565b9094509250600084600381111561274757fe5b14612765576127586009604b612094565b9650505050505050612911565b6001600160a01b038a166000908152600e60205260409020546127889089612dfa565b9094509150600084600381111561279b57fe5b146127ac576127586009604c612094565b6001600160a01b0389166000908152600e60205260409020546127cf9089612eeb565b909450905060008460038111156127e257fe5b146127f3576127586009604d612094565b6001600160a01b03808b166000908152600e6020526040808220859055918b16815220819055600019851461284b576001600160a01b03808b166000908152600f60209081526040808320938f168352929052208390555b886001600160a01b03168a6001600160a01b0316600080516020614f6b8339815191528a6040518082815260200191505060405180910390a36005546040805163352b4a3f60e11b81523060048201526001600160a01b038d811660248301528c81166044830152606482018c905291519190921691636a56947e91608480830192600092919082900301818387803b1580156128e757600080fd5b505af11580156128fb573d6000803e3d6000fd5b5060009250612908915050565b96505050505050505b949350505050565b6000806000612926614cdd565b6129308686612e1d565b9092509050600082600381111561294357fe5b146129545750915060009050612553565b600061295f82613a97565b9350935050509250929050565b600080600061297b4734612dfa565b9092509050600082600381111561298e57fe5b14610f9757600080fd5b60008054819060ff166129df576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556129f16116bb565b90508015612a0f57610b06816010811115612a0857fe5b6036612094565b610b1d333386613aa6565b600354600090819061010090046001600160a01b03163314612a4257611f7960016031612094565b612a4a612c82565b60095414612a5e57611f79600a6033612094565b82612a6761296c565b1015612a7957611f79600e6032612094565b600c54831115612a8f57611f7960026034612094565b50600c5482810390811115612ad55760405162461bcd60e51b81526004018080602001828103825260248152602001806150806024913960400191505060405180910390fd5b600c819055600354612af59061010090046001600160a01b031684613e8b565b600354604080516101009092046001600160a01b0316825260208201859052818101839052517f3bad0c59cf2f06e7314077049f48a93578cd16f5ef92329f1dab1420a99c177e916060908290030190a1600061123c565b6000805460ff16612b92576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155612ba46116bb565b90508015612bc25761130f816010811115612bbb57fe5b6027612094565b61132033600085613ec1565b6001600160a01b038116600090815260106020526040812080548291829182918291612c05575060009450849350612c7d92505050565b612c158160000154600a54614388565b90945092506000846003811115612c2857fe5b14612c3d575091935060009250612c7d915050565b612c4b8382600101546143c7565b90945091506000846003811115612c5e57fe5b14612c73575091935060009250612c7d915050565b5060009450925050505b915091565b4390565b600354600090819061010090046001600160a01b03163314612cae57611f7960016042612094565b612cb6612c82565b60095414612cca57611f79600a6041612094565b600660009054906101000a90046001600160a01b03169050826001600160a01b0316632191f92a6040518163ffffffff1660e01b815260040160206040518083038186803b158015612d1b57600080fd5b505afa158015612d2f573d6000803e3d6000fd5b505050506040513d6020811015612d4557600080fd5b5051612d97576040805162461bcd60e51b815260206004820152601c60248201527b6d61726b6572206d6574686f642072657475726e65642066616c736560201b604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b03858116918217909255604080519284168352602083019190915280517fedffc32e068c7c95dfd4bdfd5c4d939a084d6b11c4199eac8436ed234d72f9269281900390910190a1600061123c565b600080838311612e11575060009050818303612553565b50600390506000612553565b6000612e27614cdd565b600080612e38866000015186614388565b90925090506000826003811115612e4b57fe5b14612e6a57506040805160208101909152600081529092509050612553565b60408051602081019091529081526000969095509350505050565b60007f45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa0846010811115612eb457fe5b846050811115612ec057fe5b604080519283526020830191909152818101859052519081900360600190a183601081111561291157fe5b600080838301848110612f0357600092509050612553565b506002915060009050612553565b6000806000612f1e614cdd565b612f288787612e1d565b90925090506000826003811115612f3b57fe5b14612f4c5750915060009050612f65565b612f5e612f5882613a97565b86612eeb565b9350935050505b935093915050565b60008054819060ff16612fb4576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155612fc66116bb565b90508015612ff157612fe4816010811115612fdd57fe5b600f612094565b9250600091506130889050565b836001600160a01b031663a6afed956040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561302c57600080fd5b505af1158015613040573d6000803e3d6000fd5b505050506040513d602081101561305657600080fd5b50519050801561307657612fe481601081111561306f57fe5b6010612094565b613082338787876143f2565b92509250505b6000805460ff191660011790559094909350915050565b6005546040805163d02f735160e01b81523060048201526001600160a01b038781166024830152868116604483015285811660648301526084820185905291516000938493169163d02f73519160a480830192602092919082900301818787803b15801561310c57600080fd5b505af1158015613120573d6000803e3d6000fd5b505050506040513d602081101561313657600080fd5b50519050801561314d576126af6003601b83612e85565b846001600160a01b0316846001600160a01b03161415613173576126af6006601c612094565b600080600080600080600560009054906101000a90046001600160a01b03166001600160a01b0316636995d7d06040518163ffffffff1660e01b815260040160206040518083038186803b1580156131ca57600080fd5b505afa1580156131de573d6000803e3d6000fd5b505050506040513d60208110156131f457600080fd5b505160055460408051634ada90af60e01b815290516001600160a01b0393841693630cab477a938e93911691634ada90af91600480820192602092909190829003018186803b15801561324657600080fd5b505afa15801561325a573d6000803e3d6000fd5b505050506040513d602081101561327057600080fd5b5051604080516001600160e01b031960e086901b168152600481019390935260248301919091528051604480840193829003018186803b1580156132b357600080fd5b505afa1580156132c7573d6000803e3d6000fd5b505050506040513d60408110156132dd57600080fd5b508051602091820151600554604080516306995d7d60e41b815290519296509294506000936001600160a01b0390911692636995d7d09260048083019392829003018186803b15801561332f57600080fd5b505afa158015613343573d6000803e3d6000fd5b505050506040513d602081101561335957600080fd5b50516040805163ee9e819960e01b815290516001600160a01b039092169163ee9e819991600480820192602092909190829003018186803b15801561339d57600080fd5b505afa1580156133b1573d6000803e3d6000fd5b505050506040513d60208110156133c757600080fd5b50516001600160a01b038c166000908152600e60205260409020549091506133ef908b612dfa565b9097509550600087600381111561340257fe5b146134295761341a6009601a8960038111156118a257fe5b98505050505050505050612911565b6001600160a01b038c166000908152600e602052604090205461344c9083612eeb565b9097509450600087600381111561345f57fe5b146134775761341a600960198960038111156118a257fe5b6001600160a01b0381166000908152600e602052604090205461349a9084612eeb565b909750935060008760038111156134ad57fe5b146134c55761341a600960198960038111156118a257fe5b85600e60008d6001600160a01b03166001600160a01b031681526020019081526020016000208190555084600e60008e6001600160a01b03166001600160a01b031681526020019081526020016000208190555083600e6000836001600160a01b03166001600160a01b03168152602001908152602001600020819055508b6001600160a01b03168b6001600160a01b0316600080516020614f6b833981519152846040518082815260200191505060405180910390a3806001600160a01b03168b6001600160a01b0316600080516020614f6b833981519152856040518082815260200191505060405180910390a3600560009054906101000a90046001600160a01b03166001600160a01b0316636d35bf91308f8f8f8f6040518663ffffffff1660e01b815260040180866001600160a01b03166001600160a01b03168152602001856001600160a01b03166001600160a01b03168152602001846001600160a01b03166001600160a01b03168152602001836001600160a01b03166001600160a01b0316815260200182815260200195505050505050600060405180830381600087803b15801561367857600080fd5b505af115801561368c573d6000803e3d6000fd5b5060009250613699915050565b9d9c50505050505050505050505050565b6000805460ff166136ef576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556137016116bb565b9050801561371f5761130f81601081111561371857fe5b6008612094565b6113203384614970565b6000805460ff1661376e576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556137806116bb565b905080156137975761130f816010811115612bbb57fe5b61132033846000613ec1565b60008054819060ff166137ea576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556137fc6116bb565b905080156138275761381a81601081111561381357fe5b6035612094565b9250600091506138389050565b613832338686613aa6565b92509250505b6000805460ff1916600117905590939092509050565b60035460009061010090046001600160a01b031633146138745761111560016047612094565b61387c612c82565b6009541461389057611115600a6048612094565b670de0b6b3a76400008211156138ac5761111560026049612094565b6008805490839055604080518281526020810185905281517faaa68312e2ea9d50e16af5068410ab56e1a1fd06037b1a35664812c30f821460929181900390910190a1600061123c565b6000336001600160a01b03841614613947576040805162461bcd60e51b815260206004820152600f60248201526e0e6cadcc8cae440dad2e6dac2e8c6d608b1b604482015290519081900360640190fd5b81341461398c576040805162461bcd60e51b815260206004820152600e60248201526d0ecc2d8eaca40dad2e6dac2e8c6d60931b604482015290519081900360640190fd5b50919050565b600080600061399f614cdd565b6129308686614c7e565b6000806000806139b98787612eeb565b909250905060008260038111156139cc57fe5b146139dd5750915060009050612f65565b612f5e8186612dfa565b60006139f1614cdd565b600080613a0686670de0b6b3a7640000614388565b90925090506000826003811115613a1957fe5b14613a3857506040805160208101909152600081529092509050612553565b600080613a4583886143c7565b90925090506000826003811115613a5857fe5b14613a7a57506040805160208101909152600081529094509250612553915050565b604080516020810190915290815260009890975095505050505050565b51670de0b6b3a7640000900490565b60055460408051631200453160e11b81523060048201526001600160a01b0386811660248301528581166044830152606482018590529151600093849384939116916324008a629160848082019260209290919082900301818787803b158015613b0f57600080fd5b505af1158015613b23573d6000803e3d6000fd5b505050506040513d6020811015613b3957600080fd5b505190508015613b5d57613b506003603883612e85565b925060009150612f659050565b613b65612c82565b60095414613b7957613b50600a6039612094565b613b81614dac565b6001600160a01b0386166000908152601060205260409020600101546060820152613bab86612bce565b6080830181905260208301826003811115613bc257fe5b6003811115613bcd57fe5b9052506000905081602001516003811115613be457fe5b14613c0e57613c0060096037836020015160038111156118a257fe5b935060009250612f65915050565b600019851415613c275760808101516040820152613c2f565b604081018590525b613c3d8782604001516138f6565b60e082018190526080820151613c5291612dfa565b60a0830181905260208301826003811115613c6957fe5b6003811115613c7457fe5b9052506000905081602001516003811115613c8b57fe5b14613cc75760405162461bcd60e51b815260040180806020018281038252603a815260200180614f31603a913960400191505060405180910390fd5b613cd7600b548260e00151612dfa565b60c0830181905260208301826003811115613cee57fe5b6003811115613cf957fe5b9052506000905081602001516003811115613d1057fe5b14613d4c5760405162461bcd60e51b8152600401808060200182810382526031815260200180614f8b6031913960400191505060405180910390fd5b60a080820180516001600160a01b03808a16600081815260106020908152604091829020948555600a5460019095019490945560c0870151600b81905560e088015195518251948f16855294840192909252828101949094526060820192909252608081019190915290517f1a2a22cb034d26d1854bdc6666a5b91fe25efbbb5dcad3b0355478d6f5c362a1929181900390910190a160055460e0820151606083015160408051631ededc9160e01b81523060048201526001600160a01b038c811660248301528b8116604483015260648201949094526084810192909252519190921691631ededc919160a480830192600092919082900301818387803b158015613e5757600080fd5b505af1158015613e6b573d6000803e3d6000fd5b5060009250613e78915050565b8160e00151935093505050935093915050565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015611ad1573d6000803e3d6000fd5b6000821580613ece575081155b613f095760405162461bcd60e51b815260040180806020018281038252603481526020018061504c6034913960400191505060405180910390fd5b613f11614d6e565b613f1961255a565b6040830181905260208301826003811115613f3057fe5b6003811115613f3b57fe5b9052506000905081602001516003811115613f5257fe5b14613f7657613f6e6009602b836020015160038111156118a257fe5b91505061123c565b8315613ff7576060810184905260408051602081018252908201518152613f9d9085612919565b6080830181905260208301826003811115613fb457fe5b6003811115613fbf57fe5b9052506000905081602001516003811115613fd657fe5b14613ff257613f6e60096029836020015160038111156118a257fe5b614070565b6140138360405180602001604052808460400151815250613992565b606083018190526020830182600381111561402a57fe5b600381111561403557fe5b905250600090508160200151600381111561404c57fe5b1461406857613f6e6009602a836020015160038111156118a257fe5b608081018390525b60055460608201516040805163eabe7d9160e01b81523060048201526001600160a01b03898116602483015260448201939093529051600093929092169163eabe7d919160648082019260209290919082900301818787803b1580156140d557600080fd5b505af11580156140e9573d6000803e3d6000fd5b505050506040513d60208110156140ff57600080fd5b50519050801561411f576141166003602883612e85565b9250505061123c565b614127612c82565b6009541461413b57614116600a602c612094565b61414b600d548360600151612dfa565b60a084018190526020840182600381111561416257fe5b600381111561416d57fe5b905250600090508260200151600381111561418457fe5b146141a0576141166009602e846020015160038111156118a257fe5b6001600160a01b0386166000908152600e602052604090205460608301516141c89190612dfa565b60c08401819052602084018260038111156141df57fe5b60038111156141ea57fe5b905250600090508260200151600381111561420157fe5b1461421d576141166009602d846020015160038111156118a257fe5b816080015161422a61296c565b101561423c57614116600e602f612094565b61424a868360800151613e8b565b60a0820151600d5560c08201516001600160a01b0387166000818152600e6020908152604091829020939093556060850151815190815290513093600080516020614f6b833981519152928290030190a36080820151606080840151604080516001600160a01b038b168152602081019490945283810191909152517fe5b754fb1abb7f01b499791d0b820ae3b6af3424ac1c59768edb53f4ec31a9299281900390910190a160055460808301516060840151604080516351dff98960e01b81523060048201526001600160a01b038b81166024830152604482019490945260648101929092525191909216916351dff98991608480830192600092919082900301818387803b15801561435d57600080fd5b505af1158015614371573d6000803e3d6000fd5b506000925061437e915050565b9695505050505050565b6000808361439b57506000905080612553565b838302838582816143a857fe5b04146143bc57506002915060009050612553565b600092509050612553565b600080826143db5750600190506000612553565b60008385816143e657fe5b04915091509250929050565b60055460408051632fe3f38f60e11b81523060048201526001600160a01b0384811660248301528781166044830152868116606483015260848201869052915160009384938493911691635fc7e71e9160a48082019260209290919082900301818787803b15801561446357600080fd5b505af1158015614477573d6000803e3d6000fd5b505050506040513d602081101561448d57600080fd5b5051905080156144b1576144a46003601283612e85565b9250600091506149679050565b6144b9612c82565b600954146144cd576144a4600a6016612094565b6144d5612c82565b846001600160a01b0316636c540baf6040518163ffffffff1660e01b815260040160206040518083038186803b15801561450e57600080fd5b505afa158015614522573d6000803e3d6000fd5b505050506040513d602081101561453857600080fd5b50511461454b576144a4600a6011612094565b866001600160a01b0316866001600160a01b03161415614571576144a460066017612094565b84614582576144a460076015612094565b600019851415614598576144a460076014612094565b6000806145a6898989613aa6565b909250905081156145d6576145c78260108111156145c057fe5b6018612094565b94506000935061496792505050565b6005546040805163c488847b60e01b81523060048201526001600160a01b038981166024830152604482018590528251600094859492169263c488847b926064808301939192829003018186803b15801561463057600080fd5b505afa158015614644573d6000803e3d6000fd5b505050506040513d604081101561465a57600080fd5b508051602090910151909250905081156146a55760405162461bcd60e51b8152600401808060200182810382526033815260200180614fbc6033913960400191505060405180910390fd5b80886001600160a01b03166370a082318c6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b1580156146fc57600080fd5b505afa158015614710573d6000803e3d6000fd5b505050506040513d602081101561472657600080fd5b50511015614776576040805162461bcd60e51b815260206004820152601860248201527709892a2aa928882a88abea68a92b48abea89e9ebe9aaa86960431b604482015290519081900360640190fd5b60006001600160a01b03891630141561479c57614795308d8d8561309f565b9050614826565b6040805163b2a02ff160e01b81526001600160a01b038e811660048301528d81166024830152604482018590529151918b169163b2a02ff1916064808201926020929091908290030181600087803b1580156147f757600080fd5b505af115801561480b573d6000803e3d6000fd5b505050506040513d602081101561482157600080fd5b505190505b8015614870576040805162461bcd60e51b81526020600482015260146024820152731d1bdad95b881cd95a5e9d5c994819985a5b195960621b604482015290519081900360640190fd5b604080516001600160a01b03808f168252808e1660208301528183018790528b1660608201526080810184905290517f298637f684da70674f26509b10f07ec2fbc77a335ab1e7d6215a4b2484d8bb529181900360a00190a1600554604080516347ef3b3b60e01b81523060048201526001600160a01b038c811660248301528f811660448301528e811660648301526084820188905260a48201869052915191909216916347ef3b3b9160c480830192600092919082900301818387803b15801561493b57600080fd5b505af115801561494f573d6000803e3d6000fd5b506000925061495c915050565b975092955050505050505b94509492505050565b6005546040805163368f515360e21b81523060048201526001600160a01b0385811660248301526044820185905291516000938493169163da3d454c91606480830192602092919082900301818787803b1580156149cd57600080fd5b505af11580156149e1573d6000803e3d6000fd5b505050506040513d60208110156149f757600080fd5b505190508015614a1657614a0e6003600e83612e85565b915050610e2b565b614a1e612c82565b60095414614a3157614a0e600a80612094565b82614a3a61296c565b1015614a4c57614a0e600e6009612094565b614a54614df2565b614a5d85612bce565b6020830181905282826003811115614a7157fe5b6003811115614a7c57fe5b9052506000905081516003811115614a9057fe5b14614ab557614aac60096007836000015160038111156118a257fe5b92505050610e2b565b614ac3816020015185612eeb565b6040830181905282826003811115614ad757fe5b6003811115614ae257fe5b9052506000905081516003811115614af657fe5b14614b1257614aac6009600c836000015160038111156118a257fe5b614b1e600b5485612eeb565b6060830181905282826003811115614b3257fe5b6003811115614b3d57fe5b9052506000905081516003811115614b5157fe5b14614b6d57614aac6009600b836000015160038111156118a257fe5b614b778585613e8b565b604080820180516001600160a01b03881660008181526010602090815290859020928355600a54600190930192909255606080860151600b81905593518551928352928201899052818501929092529081019190915290517f13ed6866d4e1ee6da46f845c46d7e54120883d75c5ea9a2dacc1c4ca8984ab809181900360800190a160055460408051635c77860560e01b81523060048201526001600160a01b0388811660248301526044820188905291519190921691635c77860591606480830192600092919082900301818387803b158015614c5457600080fd5b505af1158015614c68573d6000803e3d6000fd5b5060009250614c75915050565b95945050505050565b6000614c88614cdd565b600080614c9d670de0b6b3a764000087614388565b90925090506000826003811115614cb057fe5b14614ccf57506040805160208101909152600081529092509050612553565b61295f8186600001516139e7565b6040518060200160405280600081525090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10614d3157805160ff1916838001178555614d5e565b82800160010185558215614d5e579182015b82811115614d5e578251825591602001919060010190614d43565b50614d6a929150614e1b565b5090565b6040805160e0810190915280600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6040805161010081019091528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b604080516080810190915280600081526020016000815260200160008152602001600081525090565b610f9b91905b80821115614d6a5760008155600101614e2156fe6f6e6c792061646d696e206d617920696e697469616c697a6520746865206d61726b65746d61726b6574206d6179206f6e6c7920626520696e697469616c697a6564206f6e6365696e697469616c2065786368616e67652072617465206d7573742062652067726561746572207468616e207a65726f2e73657474696e6720696e7465726573742072617465206d6f64656c206661696c65644d494e545f4e45575f4143434f554e545f42414c414e43455f43414c43554c4154494f4e5f4641494c4544626f72726f7742616c616e636553746f7265643a20626f72726f7742616c616e636553746f726564496e7465726e616c206661696c656452455041595f424f52524f575f4e45575f4143434f554e545f424f52524f575f42414c414e43455f43414c43554c4154494f4e5f4641494c4544ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef52455041595f424f52524f575f4e45575f544f54414c5f42414c414e43455f43414c43554c4154494f4e5f4641494c45444c49515549444154455f434f4d5054524f4c4c45525f43414c43554c4154455f414d4f554e545f5345495a455f4641494c454465786368616e67655261746553746f7265643a2065786368616e67655261746553746f726564496e7465726e616c206661696c65644d494e545f4e45575f544f54414c5f535550504c595f43414c43554c4154494f4e5f4641494c45446f6e65206f662072656465656d546f6b656e73496e206f722072656465656d416d6f756e74496e206d757374206265207a65726f72656475636520726573657276657320756e657870656374656420756e646572666c6f77a265627a7a72315820e57af24f23e4a28aa4c8c48bf502db4366985058ed59b125be5efb9902ff841264736f6c634300051000326f6e6c792061646d696e206d617920696e697469616c697a6520746865206d61726b65746d61726b6574206d6179206f6e6c7920626520696e697469616c697a6564206f6e6365696e697469616c2065786368616e67652072617465206d7573742062652067726561746572207468616e207a65726f2e73657474696e6720696e7465726573742072617465206d6f64656c206661696c6564000000000000000000000000b74633f2022452f377403b638167b0a135db096d0000000000000000000000001fdc098d27565eb1193d166abb926c764ab3204900000000000000000000000000000000000000000000000000470de4df82000000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000012000000000000000000000000800e34455cfe0eaaaab92aa6c99e26d0a8527616000000000000000000000000000000000000000000000000000000000000000846696c646120485400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036648540000000000000000000000000000000000000000000000000000000000

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

000000000000000000000000b74633f2022452f377403b638167b0a135db096d0000000000000000000000001fdc098d27565eb1193d166abb926c764ab3204900000000000000000000000000000000000000000000000000470de4df82000000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000012000000000000000000000000800e34455cfe0eaaaab92aa6c99e26d0a8527616000000000000000000000000000000000000000000000000000000000000000846696c646120485400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036648540000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : comptroller_ (address): 0xb74633f2022452f377403b638167b0a135db096d
Arg [1] : interestRateModel_ (address): 0x1fdc098d27565eb1193d166abb926c764ab32049
Arg [2] : initialExchangeRateMantissa_ (uint256): 20000000000000000
Arg [3] : name_ (string): Filda HT
Arg [4] : symbol_ (string): fHT
Arg [5] : decimals_ (uint8): 18
Arg [6] : admin_ (address): 0x800e34455cfe0eaaaab92aa6c99e26d0a8527616

-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 000000000000000000000000b74633f2022452f377403b638167b0a135db096d
Arg [1] : 0000000000000000000000001fdc098d27565eb1193d166abb926c764ab32049
Arg [2] : 00000000000000000000000000000000000000000000000000470de4df820000
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [6] : 000000000000000000000000800e34455cfe0eaaaab92aa6c99e26d0a8527616
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [8] : 46696c6461204854000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [10] : 6648540000000000000000000000000000000000000000000000000000000000


Deployed ByteCode Sourcemap

184913:6250:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;189095:8;189108:23;189121:9;189108:12;:23::i;:::-;189094:37;;;189142:34;189157:3;189142:34;;;;;;;;;;;;;-1:-1:-1;;;189142:34:0;;;:14;:34::i;:::-;189054:130;184913:6250;4413:18;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4413:18:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;4413:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49171:237;;8:9:-1;5:2;;;30:1;27;20:12;5:2;49171:237:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;49171:237:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;186271:134;;;:::i;:::-;;5716:33;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5716:33:0;;;:::i;:::-;;;;;;;;;;;;;;;;53420:224;;8:9:-1;5:2;;;30:1;27;20:12;5:2;53420:224:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;53420:224:0;-1:-1:-1;;;;;53420:224:0;;:::i;6361:23::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;6361:23:0;;;:::i;56265:261::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;56265:261:0;;;:::i;48506:195::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;48506:195:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;48506:195:0;;;;;;;;;;;;;;;;;:::i;5140:35::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5140:35:0;;;:::i;:::-;;;;-1:-1:-1;;;;;5140:35:0;;;;;;;;;;;;;;4609:21;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4609:21:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;50439:354;;8:9:-1;5:2;;;30:1;27;20:12;5:2;50439:354:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;50439:354:0;-1:-1:-1;;;;;50439:354:0;;:::i;58146:88::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;58146:88:0;;;:::i;94176:735::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;94176:735:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;94176:735:0;-1:-1:-1;;;;;94176:735:0;;:::i;6125:24::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;6125:24:0;;;:::i;187850:155::-;;;:::i;5266:39::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5266:39:0;;;:::i;100134:571::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;100134:571:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;100134:571:0;;:::i;5839:30::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5839:30:0;;;:::i;50071:112::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;50071:112:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;50071:112:0;-1:-1:-1;;;;;50071:112:0;;:::i;52937:192::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;52937:192:0;;;:::i;187225:133::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;187225:133:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;187225:133:0;;:::i;6255:25::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;6255:25:0;;;:::i;4509:20::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4509:20:0;;;:::i;53853:287::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;53853:287:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;53853:287:0;-1:-1:-1;;;;;53853:287:0;;:::i;43545:1529::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;43545:1529:0;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;43545:1529:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;43545:1529:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;43545:1529:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;43545:1529:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;43545:1529:0;;;;;;;;-1:-1:-1;43545:1529:0;;-1:-1:-1;;;;;5:28;;2:2;;;46:1;43;36:12;2:2;43545:1529:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;43545:1529:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;43545:1529:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;43545:1529:0;;-1:-1:-1;;;43545:1529:0;;;;;-1:-1:-1;43545:1529:0;;-1:-1:-1;43545:1529:0:i;191078:82::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;191078:82:0;;;:::i;58482:3852::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;58482:3852:0;;;:::i;48014:185::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;48014:185:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;48014:185:0;;;;;;;;:::i;5990:23::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5990:23:0;;;:::i;188747:236::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;188747:236:0;;;;;;;;;;:::i;52607:184::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;52607:184:0;;;:::i;90842:194::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;90842:194:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;90842:194:0;;;;;;;;;;;;;;;;;:::i;92284:647::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;92284:647:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;92284:647:0;-1:-1:-1;;;;;92284:647:0;;:::i;55817:198::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;55817:198:0;;;:::i;51139:703::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;51139:703:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;51139:703:0;-1:-1:-1;;;;;51139:703:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;187626:113;;8:9:-1;5:2;;;30:1;27;20:12;5:2;187626:113:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;187626:113:0;;:::i;186756:::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;186756:113:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;186756:113:0;;:::i;49738:143::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;49738:143:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;49738:143:0;;;;;;;;;;:::i;188196:199::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;188196:199:0;-1:-1:-1;;;;;188196:199:0;;:::i;93209:742::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;93209:742:0;;;:::i;103098:633::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;103098:633:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;103098:633:0;-1:-1:-1;;;;;103098:633:0;;:::i;5407:42::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5407:42:0;;;:::i;5029:28::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5029:28:0;;;:::i;52270:161::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;52270:161:0;;;:::i;95214:607::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;95214:607:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;95214:607:0;;:::i;7387:36::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;7387:36:0;;;:::i;62732:547::-;62802:4;106627:11;;62802:4;;106627:11;;106619:34;;;;;-1:-1:-1;;;106619:34:0;;;;;;;;;;;;-1:-1:-1;;;106619:34:0;;;;;;;;;;;;;;;106678:5;106664:19;;-1:-1:-1;;106664:19:0;;;62838:16;:14;:16::i;:::-;62825:29;-1:-1:-1;62869:29:0;;62865:252;;63042:59;63053:5;63047:12;;;;;;;;63061:39;63042:4;:59::i;:::-;63034:71;-1:-1:-1;63103:1:0;;-1:-1:-1;63034:71:0;;-1:-1:-1;63034:71:0;62865:252;63238:33;63248:10;63260;63238:9;:33::i;:::-;63231:40;;;;;106694:1;106706:11;:18;;-1:-1:-1;;106706:18:0;106720:4;106706:18;;;62732:547;;;;-1:-1:-1;62732:547:0:o;190358:712::-;190448:31;190444:70;;190496:7;;190444:70;190526:24;190569:7;190563:21;190587:1;190563:25;190553:36;;;;;;;;;;;;;;;;;;;;;;;;;21:6:-1;;104:10;190553:36:0;87:34:-1;135:17;;-1:-1;190553:36:0;-1:-1:-1;190526:63:0;-1:-1:-1;190600:6:0;190619:105;190641:7;190635:21;190631:1;:25;190619:105;;;190701:7;190710:1;190695:17;;;;;;;;;;;;;;;;190678:11;190690:1;190678:14;;;;;;;;;;;:34;-1:-1:-1;;;;;190678:34:0;;;;;;;;-1:-1:-1;190658:3:0;;190619:105;;;190736:16;;-1:-1:-1;;;190755:15:0;190736:11;;190748:1;;190736:16;;;;;;;;;:34;-1:-1:-1;;;;;190736:34:0;;;;;;;;;190811:2;190800:15;;190781:11;190793:1;190795;190793:3;190781:16;;;;;;;;;;;:34;-1:-1:-1;;;;;190781:34:0;;;;;;;;-1:-1:-1;190873:2:0;190863:7;:12;190856:2;:21;190845:34;;190826:11;190838:1;190840;190838:3;190826:16;;;;;;;;;;;:53;-1:-1:-1;;;;;190826:53:0;;;;;;;;-1:-1:-1;190937:2:0;190927:7;:12;190920:2;:21;190909:34;;190890:11;190902:1;190904;190902:3;190890:16;;;;;;;;;;;:53;-1:-1:-1;;;;;190890:53:0;;;;;;;;;190984:2;190973:15;;190954:11;190966:1;190968;190966:3;190954:16;;;;;;;;;;;:34;-1:-1:-1;;;;;190954:34:0;;;;;;;;-1:-1:-1;191049:11:0;191009:31;;191001:61;;;;-1:-1:-1;;;191001:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;191001:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;190358:712;;;;;:::o;4413:18::-;;;;;;;;;;;;;;;-1:-1:-1;;4413:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;49171:237::-;49270:10;49239:4;49291:23;;;:18;:23;;;;;;;;-1:-1:-1;;;;;49291:32:0;;;;;;;;;;;:41;;;49348:30;;;;;;;49239:4;;49270:10;49291:32;;49270:10;;49348:30;;;;;;;;;;;49396:4;49389:11;;;49171:237;;;;;:::o;186271:134::-;186316:8;186329:23;186342:9;186329:12;:23::i;:::-;186315:37;;;186363:34;186378:3;186363:34;;;;;;;;;;;;;-1:-1:-1;;;186363:34:0;;;:14;:34::i;:::-;186271:134;:::o;5716:33::-;;;;:::o;53420:224::-;53498:4;106627:11;;;;106619:34;;;;;-1:-1:-1;;;106619:34:0;;;;;;;;;;;;-1:-1:-1;;;106619:34:0;;;;;;;;;;;;;;;106678:5;106664:19;;-1:-1:-1;;106664:19:0;;;53523:16;:14;:16::i;:::-;:40;53515:75;;;;;-1:-1:-1;;;53515:75:0;;;;;;;;;;;;-1:-1:-1;;;53515:75:0;;;;;;;;;;;;;;;53608:28;53628:7;53608:19;:28::i;:::-;53601:35;;106694:1;106706:11;:18;;-1:-1:-1;;106706:18:0;106720:4;106706:18;;;53420:224;;-1:-1:-1;53420:224:0:o;6361:23::-;;;;:::o;56265:261::-;56316:4;56334:13;56349:11;56364:28;:26;:28::i;:::-;56333:59;;-1:-1:-1;56333:59:0;-1:-1:-1;56418:18:0;56411:3;:25;;;;;;;;;56403:91;;;;-1:-1:-1;;;56403:91:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56512:6;-1:-1:-1;;56265:261:0;;:::o;48506:195::-;48601:4;106627:11;;;;106619:34;;;;;-1:-1:-1;;;106619:34:0;;;;;;;;;;;;-1:-1:-1;;;106619:34:0;;;;;;;;;;;;;;;106678:5;106664:19;;-1:-1:-1;;106664:19:0;;;48625:44;48640:10;48652:3;48657;48662:6;48625:14;:44::i;:::-;:68;48618:75;;106706:11;:18;;-1:-1:-1;;106706:18:0;106720:4;106706:18;;;48506:195;;-1:-1:-1;;;48506:195:0:o;5140:35::-;;;-1:-1:-1;;;;;5140:35:0;;:::o;4609:21::-;;;;;;:::o;50439:354::-;50501:4;50518:23;;:::i;:::-;50544:38;;;;;;;;50559:21;:19;:21::i;:::-;50544:38;;-1:-1:-1;;;;;50658:20:0;;50594:14;50658:20;;;:13;:20;;;;;;50518:64;;-1:-1:-1;50594:14:0;;;50626:53;;50518:64;;50626:17;:53::i;:::-;50593:86;;-1:-1:-1;50593:86:0;-1:-1:-1;50706:18:0;50698:4;:26;;;;;;;;;50690:70;;;;;-1:-1:-1;;;50690:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;50778:7;-1:-1:-1;;;50439:354:0;;;;:::o;58146:88::-;58188:4;58212:14;:12;:14::i;:::-;58205:21;;58146:88;:::o;94176:735::-;94323:5;;94254:4;;94323:5;;;-1:-1:-1;;;;;94323:5:0;94309:10;:19;94305:124;;94352:65;94357:18;94377:39;94352:4;:65::i;:::-;94345:72;;;;94305:124;94479:11;;94576:30;;;-1:-1:-1;;;94576:30:0;;;;-1:-1:-1;;;;;94479:11:0;;;;94576:28;;;;;:30;;;;;;;;;;;;;;:28;:30;;;5:2:-1;;;;30:1;27;20:12;5:2;94576:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;94576:30:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;94576:30:0;94568:71;;;;;-1:-1:-1;;;94568:71:0;;;;;;;;;;;;-1:-1:-1;;;94568:71:0;;;;;;;;;;;;;;;94707:11;:28;;-1:-1:-1;;;;;;94707:28:0;-1:-1:-1;;;;;94707:28:0;;;;;;;;;94817:46;;;;;;;;;;;;;;;;;;;;;;;;;;;94888:14;94883:20;94876:27;94176:735;-1:-1:-1;;;94176:735:0:o;6125:24::-;;;;:::o;187850:155::-;187902:8;187915:30;187935:9;187915:19;:30::i;:::-;187901:44;;;187956:41;187971:3;187956:41;;;;;;;;;;;;;-1:-1:-1;;;187956:41:0;;;:14;:41::i;5266:39::-;;;-1:-1:-1;;;;;5266:39:0;;:::o;100134:571::-;100209:4;106627:11;;;;106619:34;;;;;-1:-1:-1;;;106619:34:0;;;;;;;;;;;;-1:-1:-1;;;106619:34:0;;;;;;;;;;;;;;;106678:5;106664:19;;-1:-1:-1;;106664:19:0;;;100239:16;:14;:16::i;:::-;100226:29;-1:-1:-1;100270:29:0;;100266:277;;100461:70;100472:5;100466:12;;;;;;;;100480:50;100461:4;:70::i;:::-;100454:77;;;;;100266:277;100663:34;100684:12;100663:20;:34::i;:::-;100656:41;;;106706:11;:18;;-1:-1:-1;;106706:18:0;106720:4;106706:18;;;100134:571;;-1:-1:-1;100134:571:0:o;5839:30::-;;;;:::o;50071:112::-;-1:-1:-1;;;;;50155:20:0;50128:7;50155:20;;;:13;:20;;;;;;;50071:112::o;52937:192::-;52999:4;106627:11;;;;106619:34;;;;;-1:-1:-1;;;106619:34:0;;;;;;;;;;;;-1:-1:-1;;;106619:34:0;;;;;;;;;;;;;;;106678:5;106664:19;;-1:-1:-1;;106664:19:0;;;53024:16;:14;:16::i;:::-;:40;53016:75;;;;;-1:-1:-1;;;53016:75:0;;;;;;;;;;;;-1:-1:-1;;;53016:75:0;;;;;;;;;;;;;;;-1:-1:-1;53109:12:0;;106706:11;:18;;-1:-1:-1;;106706:18:0;106720:4;106706:18;;;52937:192;:::o;187225:133::-;187288:4;187312:38;187337:12;187312:24;:38::i;6255:25::-;;;;:::o;4509:20::-;;;;;;;;;;;;;;-1:-1:-1;;4509:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;53853:287;53920:4;53938:13;53953:11;53968:36;53996:7;53968:27;:36::i;:::-;53937:67;;-1:-1:-1;53937:67:0;-1:-1:-1;54030:18:0;54023:3;:25;;;;;;;;;54015:93;;;;-1:-1:-1;;;54015:93:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43545:1529;43899:5;;;;;-1:-1:-1;;;;;43899:5:0;43885:10;:19;43877:68;;;;-1:-1:-1;;;43877:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43964:18;;:23;:43;;;;-1:-1:-1;43991:11:0;;:16;43964:43;43956:91;;;;-1:-1:-1;;;43956:91:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44098:27;:58;;;44175:31;44167:92;;;;-1:-1:-1;;;44167:92:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44304:8;44315:29;44331:12;44315:15;:29::i;:::-;44304:40;-1:-1:-1;44363:27:0;;44355:66;;;;;-1:-1:-1;;;44355:66:0;;;;;;;;;;;;-1:-1:-1;;;44355:66:0;;;;;;;;;;;;;;;44561:16;:14;:16::i;:::-;44540:18;:37;24956:4;44588:11;:25;44713:46;44740:18;44713:26;:46::i;:::-;44707:52;-1:-1:-1;44778:27:0;;44770:74;;;;-1:-1:-1;;;44770:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44857:12;;;;:4;;:12;;;;;:::i;:::-;-1:-1:-1;44880:16:0;;;;:6;;:16;;;;;:::i;:::-;-1:-1:-1;;44907:8:0;:20;;;;;;-1:-1:-1;;44907:20:0;;;;;;:8;45048:18;;;;;44907:20;45048:18;;;-1:-1:-1;;;;;43545:1529:0:o;191078:82::-;191148:4;191078:82;:::o;58482:3852::-;58524:4;58590:23;58616:16;:14;:16::i;:::-;58674:18;;58590:42;;-1:-1:-1;58762:45:0;;;58758:105;;;58836:14;58824:27;;;;;;58758:105;58930:14;58947;:12;:14::i;:::-;58992:12;;59036:13;;59084:11;;59192:17;;:71;;;-1:-1:-1;;;59192:71:0;;;;;;;;;;;;;;;;;;;;;;58930:31;;-1:-1:-1;58992:12:0;;59036:13;;59084:11;;58972:17;;-1:-1:-1;;;;;59192:17:0;;;;:31;;:71;;;;;;;;;;;;;;:17;:71;;;5:2:-1;;;;30:1;27;20:12;5:2;59192:71:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;59192:71:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;59192:71:0;;-1:-1:-1;4784:9:0;59282:43;;;59274:84;;;;;-1:-1:-1;;;59274:84:0;;;;;;;;;;;;-1:-1:-1;;;59274:84:0;;;;;;;;;;;;;;;59449:17;59468:15;59487:52;59495:18;59515:23;59487:7;:52::i;:::-;59448:91;;-1:-1:-1;59448:91:0;-1:-1:-1;59569:18:0;59558:7;:29;;;;;;;;;59550:73;;;;;-1:-1:-1;;;59550:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;60115:31;;:::i;:::-;60157:24;60192:20;60223:21;60255:19;60321:58;60331:35;;;;;;;;60346:18;60331:35;;;60368:10;60321:9;:58::i;:::-;60287:92;;-1:-1:-1;60287:92:0;-1:-1:-1;60405:18:0;60394:7;:29;;;;;;;;;60390:183;;60447:114;60458:16;60476:69;60552:7;60547:13;;;;;;;;60447:10;:114::i;:::-;60440:121;;;;;;;;;;;;;;;;;;60390:183;60618:53;60636:20;60658:12;60618:17;:53::i;:::-;60585:86;;-1:-1:-1;60585:86:0;-1:-1:-1;60697:18:0;60686:7;:29;;;;;;;;;60682:181;;60739:112;60750:16;60768:67;60842:7;60837:13;;;;;;;60682:181;60904:42;60912:19;60933:12;60904:7;:42::i;:::-;60875:71;;-1:-1:-1;60875:71:0;-1:-1:-1;60972:18:0;60961:7;:29;;;;;;;;;60957:178;;61014:109;61025:16;61043:64;61114:7;61109:13;;;;;;;60957:178;61177:100;61202:38;;;;;;;;61217:21;;61202:38;;;61242:19;61263:13;61177:24;:100::i;:::-;61147:130;;-1:-1:-1;61147:130:0;-1:-1:-1;61303:18:0;61292:7;:29;;;;;;;;;61288:179;;61345:110;61356:16;61374:65;61446:7;61441:13;;;;;;;61288:179;61507:82;61532:20;61554:16;61572;61507:24;:82::i;:::-;61479:110;;-1:-1:-1;61479:110:0;-1:-1:-1;61615:18:0;61604:7;:29;;;;;;;;;61600:177;;61657:108;61668:16;61686:63;61756:7;61751:13;;;;;;;61600:177;61980:18;:39;;;62030:11;:28;;;62069:12;:30;;;62110:13;:32;;;62207:79;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;62311:14;62299:27;;;;;;;;;;;;;;;;58482:3852;:::o;48014:185::-;48092:4;106627:11;;;;106619:34;;;;;-1:-1:-1;;;106619:34:0;;;;;;;;;;;;-1:-1:-1;;;106619:34:0;;;;;;;;;;;;;;;106678:5;106664:19;;-1:-1:-1;;106664:19:0;;;48116:51;48131:10;48143;48155:3;48160:6;48116:14;:51::i;:::-;:75;48109:82;;106706:11;:18;;-1:-1:-1;;106706:18:0;106720:4;106706:18;;;48014:185;;-1:-1:-1;;48014:185:0:o;5990:23::-;;;;:::o;188747:236::-;188844:8;188857:62;188881:8;188891:9;188902:16;188857:23;:62::i;:::-;188843:76;;;188930:45;188945:3;188930:45;;;;;;;;;;;;;-1:-1:-1;;;188930:45:0;;;:14;:45::i;:::-;188747:236;;;:::o;52607:184::-;52684:17;;52660:4;;-1:-1:-1;;;;;52684:17:0;:31;52716:14;:12;:14::i;:::-;52732:12;;52746:13;;52761:21;;52684:99;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;52684:99:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;52684:99:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;52684:99:0;;-1:-1:-1;52607:184:0;:::o;90842:194::-;90944:4;106627:11;;;;106619:34;;;;;-1:-1:-1;;;106619:34:0;;;;;;;;;;;;-1:-1:-1;;;106619:34:0;;;;;;;;;;;;;;;106678:5;106664:19;;-1:-1:-1;;106664:19:0;;;90968:60;90982:10;90994;91006:8;91016:11;90968:13;:60::i;:::-;90961:67;;106706:11;:18;;-1:-1:-1;;106706:18:0;106720:4;106706:18;;;90842:194;;-1:-1:-1;;;90842:194:0:o;92284:647::-;92429:5;;92361:4;;92429:5;;;-1:-1:-1;;;;;92429:5:0;92415:10;:19;92411:126;;92458:67;92463:18;92483:41;92458:4;:67::i;92411:126::-;92636:12;;;-1:-1:-1;;;;;92719:30:0;;;-1:-1:-1;;;;;;92719:30:0;;;;;;;92834:49;;;92636:12;;;;92834:49;;;;;;;;;;;;;;;;;;;;;;;92908:14;92903:20;;55817:198;55877:4;106627:11;;;;106619:34;;;;;-1:-1:-1;;;106619:34:0;;;;;;;;;;;;-1:-1:-1;;;106619:34:0;;;;;;;;;;;;;;;106678:5;106664:19;;-1:-1:-1;;106664:19:0;;;55902:16;:14;:16::i;:::-;:40;55894:75;;;;;-1:-1:-1;;;55894:75:0;;;;;;;;;;;;-1:-1:-1;;;55894:75:0;;;;;;;;;;;;;;;55987:20;:18;:20::i;:::-;55980:27;;106706:11;:18;;-1:-1:-1;;106706:18:0;106720:4;106706:18;;;55817:198;:::o;51139:703::-;-1:-1:-1;;;;;51263:22:0;;51207:4;51263:22;;;:13;:22;;;;;;51207:4;;;;;;;;;51414:36;51277:7;51414:27;:36::i;:::-;51390:60;-1:-1:-1;51390:60:0;-1:-1:-1;51473:18:0;51465:4;:26;;;;;;;;;51461:99;;51521:16;51516:22;51508:40;-1:-1:-1;51540:1:0;;-1:-1:-1;51540:1:0;;-1:-1:-1;51540:1:0;;-1:-1:-1;51508:40:0;;-1:-1:-1;;;;51508:40:0;51461:99;51603:28;:26;:28::i;:::-;51572:59;-1:-1:-1;51572:59:0;-1:-1:-1;51654:18:0;51646:4;:26;;;;;;;;;51642:99;;51702:16;51697:22;;51642:99;-1:-1:-1;51766:14:0;;-1:-1:-1;51783:13:0;;-1:-1:-1;51798:13:0;-1:-1:-1;51798:13:0;-1:-1:-1;51139:703:0;;;;;;:::o;187626:113::-;187679:4;187703:28;187718:12;187703:14;:28::i;186756:113::-;186809:4;186833:28;186848:12;186833:14;:28::i;49738:143::-;-1:-1:-1;;;;;49839:25:0;;;49812:7;49839:25;;;:18;:25;;;;;;;;:34;;;;;;;;;;;;;49738:143::o;188196:199::-;188270:8;188283:46;188309:8;188319:9;188283:25;:46::i;:::-;188269:60;;;188340:47;188355:3;188340:47;;;;;;;;;;;;;-1:-1:-1;;;188340:47:0;;;:14;:47::i;93209:742::-;93359:12;;93251:4;;-1:-1:-1;;;;;93359:12:0;93345:10;:26;;;:54;;-1:-1:-1;93375:10:0;:24;93345:54;93341:164;;;93423:70;93428:18;93448:44;93423:4;:70::i;:::-;93416:77;;;;93341:164;93589:5;;;93631:12;;;-1:-1:-1;;;;;93631:12:0;;;93589:5;93704:20;;;-1:-1:-1;;;;;;93704:20:0;;;;;;;-1:-1:-1;;;;;;93773:25:0;;;;;;93816;;;93589:5;;;;;;93816:25;;;93835:5;;;;;93816:25;;;;;;93589:5;;93631:12;;93816:25;;;;;;;;;93890:12;;93857:46;;;-1:-1:-1;;;;;93857:46:0;;;;;93890:12;;;93857:46;;;;;;;;;;;;;;;;93928:14;93916:27;;;;93209:742;:::o;103098:633::-;103185:4;103202:10;103215:16;:14;:16::i;:::-;103202:29;-1:-1:-1;103246:29:0;;103242:298;;103450:78;103461:5;103455:12;;;;;;;;103469:58;103450:4;:78::i;:::-;103443:85;;;;;103242:298;103675:48;103702:20;103675:26;:48::i;5407:42::-;;;-1:-1:-1;;;;;5407:42:0;;:::o;5029:28::-;;;;;;-1:-1:-1;;;;;5029:28:0;;:::o;52270:161::-;52347:17;;52323:4;;-1:-1:-1;;;;;52347:17:0;:31;52379:14;:12;:14::i;:::-;52395:12;;52409:13;;52347:76;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;95214:607:0;95303:4;106627:11;;;;106619:34;;;;;-1:-1:-1;;;106619:34:0;;;;;;;;;;;;-1:-1:-1;;;106619:34:0;;;;;;;;;;;;;;;106678:5;106664:19;;-1:-1:-1;;106664:19:0;;;95333:16;:14;:16::i;:::-;95320:29;-1:-1:-1;95364:29:0;;95360:286;;95561:73;95572:5;95566:12;;;;;;;;95580:53;95561:4;:73::i;95360:286::-;95765:48;95788:24;95765:22;:48::i;7387:36::-;7419:4;7387:36;:::o;21682:153::-;21743:4;21765:33;21778:3;21773:9;;;;;;;;21789:4;21784:10;;;;;;;;21765:33;;;;;;;;;;;;;21796:1;21765:33;;;;;;;;;;;;;21823:3;21818:9;;;;;;;63989:3176;64137:11;;:58;;;-1:-1:-1;;;64137:58:0;;64169:4;64137:58;;;;-1:-1:-1;;;;;64137:58:0;;;;;;;;;;;;;;;64059:4;;;;;;64137:11;;;:23;;:58;;;;;;;;;;;;;;;64059:4;64137:11;:58;;;5:2:-1;;;;30:1;27;20:12;5:2;64137:58:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;64137:58:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;64137:58:0;;-1:-1:-1;64210:12:0;;64206:145;;64247:88;64258:27;64287:38;64327:7;64247:10;:88::i;:::-;64239:100;-1:-1:-1;64337:1:0;;-1:-1:-1;64239:100:0;;-1:-1:-1;64239:100:0;64206:145;64461:16;:14;:16::i;:::-;64439:18;;:38;64435:145;;64502:62;64507:22;64531:32;64502:4;:62::i;64435:145::-;64592:25;;:::i;:::-;64674:28;:26;:28::i;:::-;64645:25;;;64630:72;;;64631:12;;;64630:72;;;;;;;;;;;;;;;;;;;-1:-1:-1;64733:18:0;;-1:-1:-1;64717:4:0;:12;;;:34;;;;;;;;;64713:171;;64776:92;64787:16;64805:42;64854:4;:12;;;64849:18;;;;;;;64776:92;64768:104;-1:-1:-1;64870:1:0;;-1:-1:-1;64768:104:0;;-1:-1:-1;;64768:104:0;64713:171;65516:32;65529:6;65537:10;65516:12;:32::i;:::-;65492:21;;;:56;;;65821:42;;;;;;;;65836:25;;;;65821:42;;65775:89;;65492:56;65775:22;:89::i;:::-;65756:15;;;65741:123;;;65742:12;;;65741:123;;;;;;;;;;;;;;;;;;;-1:-1:-1;65899:18:0;;-1:-1:-1;65883:4:0;:12;;;:34;;;;;;;;;65875:79;;;;;-1:-1:-1;;;65875:79:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;66258:37;66266:11;;66279:4;:15;;;66258:7;:37::i;:::-;66235:19;;;66220:75;;;66221:12;;;66220:75;;;;;;;;;;;;;;;;;;;-1:-1:-1;66330:18:0;;-1:-1:-1;66314:4:0;:12;;;:34;;;;;;;;;66306:87;;;;-1:-1:-1;;;66306:87:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;66454:21:0;;;;;;:13;:21;;;;;;66477:15;;;;66446:47;;66454:21;66446:7;:47::i;:::-;66421:21;;;66406:87;;;66407:12;;;66406:87;;;;;;;;;;;;;;;;;;;-1:-1:-1;66528:18:0;;-1:-1:-1;66512:4:0;:12;;;:34;;;;;;;;;66504:90;;;;-1:-1:-1;;;66504:90:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;66687:19;;;;66673:11;:33;66741:21;;;;-1:-1:-1;;;;;66717:21:0;;;;;;:13;:21;;;;;;;;;:45;;;;66851:21;;;;66874:15;;;;;66838:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;66938:15;;;;66906:48;;;;;;;-1:-1:-1;;;;;66906:48:0;;;66923:4;;-1:-1:-1;;;;;;;;;;;66906:48:0;;;;;;;;67007:11;;67053:21;;;;67076:15;;;;67007:85;;;-1:-1:-1;;;67007:85:0;;67038:4;67007:85;;;;-1:-1:-1;;;;;67007:85:0;;;;;;;;;;;;;;;;;;;;;;:11;;;;;:22;;:85;;;;;:11;;:85;;;;;;;:11;;:85;;;5:2:-1;;;;30:1;27;20:12;5:2;67007:85:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;67118:14:0;;-1:-1:-1;67113:20:0;;-1:-1:-1;;67113:20:0;;67135:4;:21;;;67105:52;;;;;;63989:3176;;;;;;:::o;56790:1186::-;56899:11;;56851:9;;;;56925:17;56921:1048;;-1:-1:-1;;57119:27:0;;57099:18;;-1:-1:-1;57091:56:0;;56921:1048;57329:14;57346;:12;:14::i;:::-;57329:31;;57375:33;57423:23;;:::i;:::-;57461:17;57537:54;57552:9;57563:12;;57577:13;;57537:14;:54::i;:::-;57495:96;-1:-1:-1;57495:96:0;-1:-1:-1;57621:18:0;57610:7;:29;;;;;;;;;57606:89;;57668:7;-1:-1:-1;57677:1:0;;-1:-1:-1;57660:19:0;;-1:-1:-1;;;;57660:19:0;57606:89;57737:50;57744:28;57774:12;57737:6;:50::i;:::-;57711:76;-1:-1:-1;57711:76:0;-1:-1:-1;57817:18:0;57806:7;:29;;;;;;;;;57802:89;;57864:7;-1:-1:-1;57873:1:0;;-1:-1:-1;57856:19:0;;-1:-1:-1;;;;57856:19:0;57802:89;-1:-1:-1;57935:21:0;57915:18;;-1:-1:-1;57935:21:0;-1:-1:-1;57907:50:0;;-1:-1:-1;;;57907:50:0;56790:1186;;;:::o;45537:2216::-;45711:11;;:60;;;-1:-1:-1;;;45711:60:0;;45747:4;45711:60;;;;-1:-1:-1;;;;;45711:60:0;;;;;;;;;;;;;;;;;;;;;;45635:4;;;;45711:11;;:27;;:60;;;;;;;;;;;;;;45635:4;45711:11;:60;;;5:2:-1;;;;30:1;27;20:12;5:2;45711:60:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;45711:60:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;45711:60:0;;-1:-1:-1;45786:12:0;;45782:144;;45822:92;45833:27;45862:42;45906:7;45822:10;:92::i;:::-;45815:99;;;;;45782:144;45992:3;-1:-1:-1;;;;;45985:10:0;:3;-1:-1:-1;;;;;45985:10:0;;45981:105;;;46019:55;46024:15;46041:32;46019:4;:55::i;45981:105::-;46163:22;-1:-1:-1;;;;;46204:14:0;;;;;;;46200:160;;;-1:-1:-1;;;46200:160:0;;;-1:-1:-1;;;;;;46316:23:0;;;;;;;:18;:23;;;;;;;;:32;;;;;;;;;;46200:160;46438:17;46466;46494;46522;46578:34;46586:17;46605:6;46578:7;:34::i;:::-;46552:60;;-1:-1:-1;46552:60:0;-1:-1:-1;46638:18:0;46627:7;:29;;;;;;;;;46623:125;;46680:56;46685:16;46703:32;46680:4;:56::i;:::-;46673:63;;;;;;;;;;46623:125;-1:-1:-1;;;;;46794:18:0;;;;;;:13;:18;;;;;;46786:35;;46814:6;46786:7;:35::i;:::-;46760:61;;-1:-1:-1;46760:61:0;-1:-1:-1;46847:18:0;46836:7;:29;;;;;;;;;46832:124;;46889:55;46894:16;46912:31;46889:4;:55::i;46832:124::-;-1:-1:-1;;;;;47002:18:0;;;;;;:13;:18;;;;;;46994:35;;47022:6;46994:7;:35::i;:::-;46968:61;;-1:-1:-1;46968:61:0;-1:-1:-1;47055:18:0;47044:7;:29;;;;;;;;;47040:122;;47097:53;47102:16;47120:29;47097:4;:53::i;47040:122::-;-1:-1:-1;;;;;47295:18:0;;;;;;;:13;:18;;;;;;:33;;;47339:18;;;;;;:33;;;-1:-1:-1;;47445:29:0;;47441:109;;-1:-1:-1;;;;;47491:23:0;;;;;;;:18;:23;;;;;;;;:32;;;;;;;;;:47;;;47441:109;47621:3;-1:-1:-1;;;;;47607:26:0;47616:3;-1:-1:-1;;;;;47607:26:0;-1:-1:-1;;;;;;;;;;;47626:6:0;47607:26;;;;;;;;;;;;;;;;;;47646:11;;:59;;;-1:-1:-1;;;47646:59:0;;47681:4;47646:59;;;;-1:-1:-1;;;;;47646:59:0;;;;;;;;;;;;;;;;;;;;;;:11;;;;;:26;;:59;;;;;:11;;:59;;;;;;;:11;;:59;;;5:2:-1;;;;30:1;27;20:12;5:2;47646:59:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;47730:14:0;;-1:-1:-1;47725:20:0;;-1:-1:-1;;47725:20:0;;47718:27;;;;;;;;45537:2216;;;;;;;:::o;27110:313::-;27187:9;27198:4;27216:13;27231:18;;:::i;:::-;27253:20;27263:1;27266:6;27253:9;:20::i;:::-;27215:58;;-1:-1:-1;27215:58:0;-1:-1:-1;27295:18:0;27288:3;:25;;;;;;;;;27284:73;;-1:-1:-1;27338:3:0;-1:-1:-1;27343:1:0;;-1:-1:-1;27330:15:0;;27284:73;27377:18;27397:17;27406:7;27397:8;:17::i;:::-;27369:46;;;;;;27110:313;;;;;:::o;189452:231::-;189499:4;189517:13;189532:20;189556:41;189564:21;189587:9;189556:7;:41::i;:::-;189516:81;;-1:-1:-1;189516:81:0;-1:-1:-1;189623:18:0;189616:3;:25;;;;;;;;;189608:34;;;;;78953:572;79031:4;106627:11;;79031:4;;106627:11;;106619:34;;;;;-1:-1:-1;;;106619:34:0;;;;;;;;;;;;-1:-1:-1;;;106619:34:0;;;;;;;;;;;;;;;106678:5;106664:19;;-1:-1:-1;;106664:19:0;;;79067:16;:14;:16::i;:::-;79054:29;-1:-1:-1;79098:29:0;;79094:260;;79271:67;79282:5;79276:12;;;;;;;;79290:47;79271:4;:67::i;79094:260::-;79464:53;79481:10;79493;79505:11;79464:16;:53::i;100982:1747::-;101193:5;;101049:4;;;;101193:5;;;-1:-1:-1;;;;;101193:5:0;101179:10;:19;101175:124;;101222:65;101227:18;101247:39;101222:4;:65::i;101175:124::-;101425:16;:14;:16::i;:::-;101403:18;;:38;101399:147;;101465:69;101470:22;101494:39;101465:4;:69::i;101399:147::-;101652:12;101635:14;:12;:14::i;:::-;:29;101631:152;;;101688:83;101693:29;101724:46;101688:4;:83::i;101631:152::-;101877:13;;101862:12;:28;101858:129;;;101914:61;101919:15;101936:38;101914:4;:61::i;101858:129::-;-1:-1:-1;102139:13:0;;:28;;;;102275:33;;;102267:82;;;;-1:-1:-1;;;102267:82:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;102423:13;:32;;;102589:5;;102575:34;;102589:5;;;-1:-1:-1;;;;;102589:5:0;102596:12;102575:13;:34::i;:::-;102643:5;;102627:54;;;102643:5;;;;-1:-1:-1;;;;;102643:5:0;102627:54;;;;;;;;;;;;;;;;;;;;;;;;;102706:14;102701:20;;68423:537;68507:4;106627:11;;;;106619:34;;;;;-1:-1:-1;;;106619:34:0;;;;;;;;;;;;-1:-1:-1;;;106619:34:0;;;;;;;;;;;;;;;106678:5;106664:19;;-1:-1:-1;;106664:19:0;;;68537:16;:14;:16::i;:::-;68524:29;-1:-1:-1;68568:29:0;;68564:249;;68740:61;68751:5;68745:12;;;;;;;;68759:41;68740:4;:61::i;68564:249::-;68912:40;68924:10;68936:1;68939:12;68912:11;:40::i;54394:1268::-;-1:-1:-1;;;;;54743:23:0;;54471:9;54743:23;;;:14;:23;;;;;54972:24;;54471:9;;;;;;;;54968:92;;-1:-1:-1;55026:18:0;;-1:-1:-1;55026:18:0;;-1:-1:-1;55018:30:0;;-1:-1:-1;;;55018:30:0;54968:92;55287:46;55295:14;:24;;;55321:11;;55287:7;:46::i;:::-;55254:79;;-1:-1:-1;55254:79:0;-1:-1:-1;55359:18:0;55348:7;:29;;;;;;;;;55344:81;;-1:-1:-1;55402:7:0;;-1:-1:-1;55411:1:0;;-1:-1:-1;55394:19:0;;-1:-1:-1;;55394:19:0;55344:81;55457:58;55465:19;55486:14;:28;;;55457:7;:58::i;:::-;55437:78;;-1:-1:-1;55437:78:0;-1:-1:-1;55541:18:0;55530:7;:29;;;;;;;;;55526:81;;-1:-1:-1;55584:7:0;;-1:-1:-1;55593:1:0;;-1:-1:-1;55576:19:0;;-1:-1:-1;;55576:19:0;55526:81;-1:-1:-1;55627:18:0;;-1:-1:-1;55647:6:0;-1:-1:-1;;;54394:1268:0;;;;:::o;52001:93::-;52074:12;52001:93;:::o;104061:1299::-;104361:5;;104155:4;;;;104361:5;;;-1:-1:-1;;;;;104361:5:0;104347:10;:19;104343:132;;104390:73;104395:18;104415:47;104390:4;:73::i;104343:132::-;104601:16;:14;:16::i;:::-;104579:18;;:38;104575:155;;104641:77;104646:22;104670:47;104641:4;:77::i;104575:155::-;104824:17;;;;;;;;;-1:-1:-1;;;;;104824:17:0;104801:40;;104944:20;-1:-1:-1;;;;;104944:40:0;;:42;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;104944:42:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;104944:42:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;104944:42:0;104936:83;;;;;-1:-1:-1;;;104936:83:0;;;;;;;;;;;;-1:-1:-1;;;104936:83:0;;;;;;;;;;;;;;;105096:17;:40;;-1:-1:-1;;;;;;105096:40:0;-1:-1:-1;;;;;105096:40:0;;;;;;;;;105242:70;;;;;;;;;;;;;;;;;;;;;;;;;;;105337:14;105332:20;;23553:236;23609:9;23620:4;23646:1;23641;:6;23637:145;;-1:-1:-1;23672:18:0;;-1:-1:-1;23692:5:0;;;23664:34;;23637:145;-1:-1:-1;23739:27:0;;-1:-1:-1;23768:1:0;23731:39;;26644:353;26713:9;26724:10;;:::i;:::-;26748:14;26764:19;26787:27;26795:1;:10;;;26807:6;26787:7;:27::i;:::-;26747:67;;-1:-1:-1;26747:67:0;-1:-1:-1;26837:18:0;26829:4;:26;;;;;;;;;26825:92;;-1:-1:-1;26886:18:0;;;;;;;;;-1:-1:-1;26886:18:0;;26880:4;;-1:-1:-1;26886:18:0;-1:-1:-1;26872:33:0;;26825:92;26957:31;;;;;;;;;;;;-1:-1:-1;;26957:31:0;;-1:-1:-1;26644:353:0;-1:-1:-1;;;;26644:353:0:o;21958:187::-;22043:4;22065:43;22078:3;22073:9;;;;;;;;22089:4;22084:10;;;;;;;;22065:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;22133:3;22128:9;;;;;;;23874:258;23930:9;;23967:5;;;23989:6;;;23985:140;;24020:18;;-1:-1:-1;24040:1:0;-1:-1:-1;24012:30:0;;23985:140;-1:-1:-1;24083:26:0;;-1:-1:-1;24111:1:0;;-1:-1:-1;24075:38:0;;27568:328;27665:9;27676:4;27694:13;27709:18;;:::i;:::-;27731:20;27741:1;27744:6;27731:9;:20::i;:::-;27693:58;;-1:-1:-1;27693:58:0;-1:-1:-1;27773:18:0;27766:3;:25;;;;;;;;;27762:73;;-1:-1:-1;27816:3:0;-1:-1:-1;27821:1:0;;-1:-1:-1;27808:15:0;;27762:73;27854:34;27862:17;27871:7;27862:8;:17::i;:::-;27881:6;27854:7;:34::i;:::-;27847:41;;;;;;27568:328;;;;;;;:::o;85093:994::-;85227:4;106627:11;;85227:4;;106627:11;;106619:34;;;;;-1:-1:-1;;;106619:34:0;;;;;;;;;;;;-1:-1:-1;;;106619:34:0;;;;;;;;;;;;;;;106678:5;106664:19;;-1:-1:-1;;106664:19:0;;;85263:16;:14;:16::i;:::-;85250:29;-1:-1:-1;85294:29:0;;85290:269;;85472:71;85483:5;85477:12;;;;;;;;85491:51;85472:4;:71::i;:::-;85464:83;-1:-1:-1;85545:1:0;;-1:-1:-1;85464:83:0;;-1:-1:-1;85464:83:0;85290:269;85579:16;-1:-1:-1;;;;;85579:31:0;;:33;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;85579:33:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;85579:33:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;85579:33:0;;-1:-1:-1;85627:29:0;;85623:273;;85805:75;85816:5;85810:12;;;;;;;;85824:55;85805:4;:75::i;85623:273::-;86006:73;86027:10;86039:8;86049:11;86062:16;86006:20;:73::i;:::-;85999:80;;;;;106694:1;106706:11;:18;;-1:-1:-1;;106706:18:0;106720:4;106706:18;;;85093:994;;;;-1:-1:-1;85093:994:0;-1:-1:-1;;85093:994:0:o;181671:2962::-;181862:11;;:87;;;-1:-1:-1;;;181862:87:0;;181895:4;181862:87;;;;-1:-1:-1;;;;;181862:87:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;181789:4;;;;181862:11;;:24;;:87;;;;;;;;;;;;;;181789:4;181862:11;:87;;;5:2:-1;;;;30:1;27;20:12;5:2;181862:87:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;181862:87:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;181862:87:0;;-1:-1:-1;181964:12:0;;181960:151;;182000:99;182011:27;182040:49;182091:7;182000:10;:99::i;181960:151::-;182184:10;-1:-1:-1;;;;;182172:22:0;:8;-1:-1:-1;;;;;182172:22:0;;182168:146;;;182218:84;182223:26;182251:50;182218:4;:84::i;182168:146::-;182326:17;182354:22;182387:24;182422:25;182458:22;182491:26;182593:11;;;;;;;;;-1:-1:-1;;;;;182593:11:0;-1:-1:-1;;;;;182575:40:0;;:42;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;182575:42:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;182575:42:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;182575:42:0;182679:11;;182661:62;;;-1:-1:-1;;;182661:62:0;;;;-1:-1:-1;;;;;182575:72:0;;;;;;182648:11;;182679;;;182661:60;;:62;;;;;182575:42;;182661:62;;;;;;;;182679:11;182661:62;;;5:2:-1;;;;30:1;27;20:12;5:2;182661:62:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;182661:62:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;182661:62:0;182575:149;;;-1:-1:-1;;;;;;182575:149:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:2:-1;;;;30:1;27;20:12;5:2;182575:149:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;182575:149:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;182575:149:0;;;;;;;182775:11;;182575:149;182757:42;;-1:-1:-1;;;182757:42:0;;;;182575:149;;-1:-1:-1;182575:149:0;;-1:-1:-1;182735:19:0;;-1:-1:-1;;;;;182775:11:0;;;;182757:40;;:42;;;;;182575:149;182757:42;;;;;182775:11;182757:42;;;5:2:-1;;;;30:1;27;20:12;5:2;182757:42:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;182757:42:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;182757:42:0;:56;;;-1:-1:-1;;;182757:56:0;;;;-1:-1:-1;;;;;182757:54:0;;;;;;:56;;;;;:42;;:56;;;;;;;;:54;:56;;;5:2:-1;;;;30:1;27;20:12;5:2;182757:56:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;182757:56:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;182757:56:0;-1:-1:-1;;;;;183138:23:0;;;;;;:13;182757:56;183138:23;;;;;182757:56;;-1:-1:-1;183130:45:0;;183163:11;183130:7;:45::i;:::-;183099:76;;-1:-1:-1;183099:76:0;-1:-1:-1;183201:18:0;183190:7;:29;;;;;;;;;183186:166;;183243:97;183254:16;183272:52;183331:7;183326:13;;;;;;;183243:97;183236:104;;;;;;;;;;;;183186:166;-1:-1:-1;;;;;183405:25:0;;;;;;:13;:25;;;;;;183397:57;;183432:21;183397:7;:57::i;:::-;183364:90;;-1:-1:-1;183364:90:0;-1:-1:-1;183480:18:0;183469:7;:29;;;;;;;;;183465:166;;183522:97;183533:16;183551:52;183610:7;183605:13;;;;;;;183465:166;-1:-1:-1;;;;;183685:26:0;;;;;;:13;:26;;;;;;183677:54;;183713:17;183677:7;:54::i;:::-;183643:88;;-1:-1:-1;183643:88:0;-1:-1:-1;183757:18:0;183746:7;:29;;;;;;;;;183742:166;;183799:97;183810:16;183828:52;183887:7;183882:13;;;;;;;183742:166;184137:17;184111:13;:23;184125:8;-1:-1:-1;;;;;184111:23:0;-1:-1:-1;;;;;184111:23:0;;;;;;;;;;;;:43;;;;184193:19;184165:13;:25;184179:10;-1:-1:-1;;;;;184165:25:0;-1:-1:-1;;;;;184165:25:0;;;;;;;;;;;;:47;;;;184252:20;184223:13;:26;184237:11;-1:-1:-1;;;;;184223:26:0;-1:-1:-1;;;;;184223:26:0;;;;;;;;;;;;:49;;;;184346:10;-1:-1:-1;;;;;184327:53:0;184336:8;-1:-1:-1;;;;;184327:53:0;-1:-1:-1;;;;;;;;;;;184358:21:0;184327:53;;;;;;;;;;;;;;;;;;184415:11;-1:-1:-1;;;;;184396:50:0;184405:8;-1:-1:-1;;;;;184396:50:0;-1:-1:-1;;;;;;;;;;;184428:17:0;184396:50;;;;;;;;;;;;;;;;;;184499:11;;;;;;;;;-1:-1:-1;;;;;184499:11:0;-1:-1:-1;;;;;184499:23:0;;184531:4;184538:11;184551:10;184563:8;184573:11;184499:86;;;;;;;;;;;;;-1:-1:-1;;;;;184499:86:0;-1:-1:-1;;;;;184499:86:0;;;;;;-1:-1:-1;;;;;184499:86:0;-1:-1:-1;;;;;184499:86:0;;;;;;-1:-1:-1;;;;;184499:86:0;-1:-1:-1;;;;;184499:86:0;;;;;;-1:-1:-1;;;;;184499:86:0;-1:-1:-1;;;;;184499:86:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;184499:86:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;184610:14:0;;-1:-1:-1;184605:20:0;;-1:-1:-1;;184605:20:0;;184598:27;181671:2962;-1:-1:-1;;;;;;;;;;;;;181671:2962:0:o;74715:524::-;74789:4;106627:11;;;;106619:34;;;;;-1:-1:-1;;;106619:34:0;;;;;;;;;;;;-1:-1:-1;;;106619:34:0;;;;;;;;;;;;;;;106678:5;106664:19;;-1:-1:-1;;106664:19:0;;;74819:16;:14;:16::i;:::-;74806:29;-1:-1:-1;74850:29:0;;74846:249;;75022:61;75033:5;75027:12;;;;;;;;75041:41;75022:4;:61::i;74846:249::-;75194:37;75206:10;75218:12;75194:11;:37::i;67516:527::-;67590:4;106627:11;;;;106619:34;;;;;-1:-1:-1;;;106619:34:0;;;;;;;;;;;;-1:-1:-1;;;106619:34:0;;;;;;;;;;;;;;;106678:5;106664:19;;-1:-1:-1;;106664:19:0;;;67620:16;:14;:16::i;:::-;67607:29;-1:-1:-1;67651:29:0;;67647:249;;67823:61;67834:5;67828:12;;;;;;;67647:249;67995:40;68007:10;68019:12;68033:1;67995:11;:40::i;79858:594::-;79960:4;106627:11;;79960:4;;106627:11;;106619:34;;;;;-1:-1:-1;;;106619:34:0;;;;;;;;;;;;-1:-1:-1;;;106619:34:0;;;;;;;;;;;;;;;106678:5;106664:19;;-1:-1:-1;;106664:19:0;;;79996:16;:14;:16::i;:::-;79983:29;-1:-1:-1;80027:29:0;;80023:260;;80200:67;80211:5;80205:12;;;;;;;;80219:47;80200:4;:67::i;:::-;80192:79;-1:-1:-1;80269:1:0;;-1:-1:-1;80192:79:0;;-1:-1:-1;80192:79:0;80023:260;80393:51;80410:10;80422:8;80432:11;80393:16;:51::i;:::-;80386:58;;;;;106694:1;106706:11;:18;;-1:-1:-1;;106706:18:0;106720:4;106706:18;;;79858:594;;;;-1:-1:-1;79858:594:0;-1:-1:-1;79858:594:0:o;96089:973::-;96239:5;;96170:4;;96239:5;;;-1:-1:-1;;;;;96239:5:0;96225:10;:19;96221:127;;96268:68;96273:18;96293:42;96268:4;:68::i;96221:127::-;96455:16;:14;:16::i;:::-;96433:18;;:38;96429:150;;96495:72;96500:22;96524:42;96495:4;:72::i;96429:150::-;4950:4;96651:24;:51;96647:157;;;96726:66;96731:15;96748:43;96726:4;:66::i;96647:157::-;96848:21;;;96880:48;;;;96946:68;;;;;;;;;;;;;;;;;;;;;;;;;97039:14;97034:20;;189924:245;189991:4;190042:10;-1:-1:-1;;;;;190042:18:0;;;190034:46;;;;;-1:-1:-1;;;190034:46:0;;;;;;;;;;;;-1:-1:-1;;;190034:46:0;;;;;;;;;;;;;;;190112:6;190099:9;:19;190091:46;;;;;-1:-1:-1;;;190091:46:0;;;;;;;;;;;;-1:-1:-1;;;190091:46:0;;;;;;;;;;;;;;;-1:-1:-1;190155:6:0;189924:245;-1:-1:-1;189924:245:0:o;29158:337::-;29246:9;29257:4;29275:13;29290:19;;:::i;:::-;29313:31;29328:6;29336:7;29313:14;:31::i;24201:271::-;24272:9;24283:4;24301:14;24317:8;24329:13;24337:1;24340;24329:7;:13::i;:::-;24300:42;;-1:-1:-1;24300:42:0;-1:-1:-1;24367:18:0;24359:4;:26;;;;;;;;;24355:75;;-1:-1:-1;24410:4:0;-1:-1:-1;24416:1:0;;-1:-1:-1;24402:16:0;;24355:75;24449:15;24457:3;24462:1;24449:7;:15::i;25403:515::-;25464:9;25475:10;;:::i;:::-;25499:14;25515:20;25539:22;25547:3;24956:4;25539:7;:22::i;:::-;25498:63;;-1:-1:-1;25498:63:0;-1:-1:-1;25584:18:0;25576:4;:26;;;;;;;;;25572:92;;-1:-1:-1;25633:18:0;;;;;;;;;-1:-1:-1;25633:18:0;;25627:4;;-1:-1:-1;25633:18:0;-1:-1:-1;25619:33:0;;25572:92;25677:14;25693:13;25710:31;25718:15;25735:5;25710:7;:31::i;:::-;25676:65;;-1:-1:-1;25676:65:0;-1:-1:-1;25764:18:0;25756:4;:26;;;;;;;;;25752:92;;-1:-1:-1;25813:18:0;;;;;;;;;-1:-1:-1;25813:18:0;;25807:4;;-1:-1:-1;25813:18:0;-1:-1:-1;25799:33:0;;-1:-1:-1;;25799:33:0;25752:92;25884:25;;;;;;;;;;;;-1:-1:-1;;25884:25:0;;-1:-1:-1;25403:515:0;-1:-1:-1;;;;;;25403:515:0:o;31923:213::-;32105:12;24956:4;32105:23;;;31923:213::o;81157:3409::-;81337:11;;:75;;;-1:-1:-1;;;81337:75:0;;81376:4;81337:75;;;;-1:-1:-1;;;;;81337:75:0;;;;;;;;;;;;;;;;;;;;;;81252:4;;;;;;81337:11;;;:30;;:75;;;;;;;;;;;;;;;81252:4;81337:11;:75;;;5:2:-1;;;;30:1;27;20:12;5:2;81337:75:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;81337:75:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;81337:75:0;;-1:-1:-1;81427:12:0;;81423:153;;81464:96;81475:27;81504:46;81552:7;81464:10;:96::i;:::-;81456:108;-1:-1:-1;81562:1:0;;-1:-1:-1;81456:108:0;;-1:-1:-1;81456:108:0;81423:153;81686:16;:14;:16::i;:::-;81664:18;;:38;81660:153;;81727:70;81732:22;81756:40;81727:4;:70::i;81660:153::-;81825:32;;:::i;:::-;-1:-1:-1;;;;;81971:24:0;;;;;;:14;:24;;;;;:38;;;81950:18;;;:59;82140:37;81986:8;82140:27;:37::i;:::-;82117:19;;;82102:75;;;82103:12;;;82102:75;;;;;;;;;;;;;;;;;;;-1:-1:-1;82208:18:0;;-1:-1:-1;82192:4:0;:12;;;:34;;;;;;;;;82188:192;;82251:113;82262:16;82280:63;82350:4;:12;;;82345:18;;;;;;;82251:113;82243:125;-1:-1:-1;82366:1:0;;-1:-1:-1;82243:125:0;;-1:-1:-1;;82243:125:0;82188:192;-1:-1:-1;;82462:11:0;:23;82458:157;;;82521:19;;;;82502:16;;;:38;82458:157;;;82573:16;;;:30;;;82458:157;83213:37;83226:5;83233:4;:16;;;83213:12;:37::i;:::-;83188:22;;;:62;;;83560:19;;;;83552:52;;:7;:52::i;:::-;83526:22;;;83511:93;;;83512:12;;;83511:93;;;;;;;;;;;;;;;;;;;-1:-1:-1;83639:18:0;;-1:-1:-1;83623:4:0;:12;;;:34;;;;;;;;;83615:105;;;;-1:-1:-1;;;83615:105:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;83772:45;83780:12;;83794:4;:22;;;83772:7;:45::i;:::-;83748:20;;;83733:84;;;83734:12;;;83733:84;;;;;;;;;;;;;;;;;;;-1:-1:-1;83852:18:0;;-1:-1:-1;83836:4:0;:12;;;:34;;;;;;;;;83828:96;;;;-1:-1:-1;;;83828:96:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;84044:22;;;;;;-1:-1:-1;;;;;84007:24:0;;;;;;;:14;:24;;;;;;;;;:59;;;84118:11;;84077:38;;;;:52;;;;84155:20;;;;84140:12;:35;;;84265:22;;;;84289;;84236:98;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;84387:11;;84449:22;;;;84473:18;;;;84387:105;;;-1:-1:-1;;;84387:105:0;;84425:4;84387:105;;;;-1:-1:-1;;;;;84387:105:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:11;;;;;:29;;:105;;;;;:11;;:105;;;;;;;:11;;:105;;;5:2:-1;;;;30:1;27;20:12;5:2;84387:105:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;84518:14:0;;-1:-1:-1;84513:20:0;;-1:-1:-1;;84513:20:0;;84535:4;:22;;;84505:53;;;;;;81157:3409;;;;;;:::o;190177:173::-;190323:19;;-1:-1:-1;;;;;190323:11:0;;;:19;;;;;190335:6;;190323:19;;;;190335:6;190323:11;:19;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;69849:4598:0;69956:4;69981:19;;;:42;;-1:-1:-1;70004:19:0;;69981:42;69973:107;;;;-1:-1:-1;;;69973:107:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;70093:27;;:::i;:::-;70237:28;:26;:28::i;:::-;70208:25;;;70193:72;;;70194:12;;;70193:72;;;;;;;;;;;;;;;;;;;-1:-1:-1;70296:18:0;;-1:-1:-1;70280:4:0;:12;;;:34;;;;;;;;;70276:168;;70338:94;70349:16;70367:44;70418:4;:12;;;70413:18;;;;;;;70338:94;70331:101;;;;;70276:168;70498:18;;70494:1290;;70774:17;;;:34;;;70879:42;;;;;;;;70894:25;;;;70879:42;;70861:77;;70794:14;70861:17;:77::i;:::-;70840:17;;;70825:113;;;70826:12;;;70825:113;;;;;;;;;;;;;;;;;;;-1:-1:-1;70973:18:0;;-1:-1:-1;70957:4:0;:12;;;:34;;;;;;;;;70953:185;;71019:103;71030:16;71048:53;71108:4;:12;;;71103:18;;;;;;;70953:185;70494:1290;;;71440:82;71463:14;71479:42;;;;;;;;71494:4;:25;;;71479:42;;;71440:22;:82::i;:::-;71419:17;;;71404:118;;;71405:12;;;71404:118;;;;;;;;;;;;;;;;;;;-1:-1:-1;71557:18:0;;-1:-1:-1;71541:4:0;:12;;;:34;;;;;;;;;71537:185;;71603:103;71614:16;71632:53;71692:4;:12;;;71687:18;;;;;;;71537:185;71738:17;;;:34;;;70494:1290;71853:11;;71904:17;;;;71853:69;;;-1:-1:-1;;;71853:69:0;;71887:4;71853:69;;;;-1:-1:-1;;;;;71853:69:0;;;;;;;;;;;;;;;;71838:12;;71853:11;;;;;:25;;:69;;;;;;;;;;;;;;;71838:12;71853:11;:69;;;5:2:-1;;;;30:1;27;20:12;5:2;71853:69:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;71853:69:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;71853:69:0;;-1:-1:-1;71937:12:0;;71933:142;;71973:90;71984:27;72013:40;72055:7;71973:10;:90::i;:::-;71966:97;;;;;;71933:142;72185:16;:14;:16::i;:::-;72163:18;;:38;72159:142;;72225:64;72230:22;72254:34;72225:4;:64::i;72159:142::-;72596:39;72604:11;;72617:4;:17;;;72596:7;:39::i;:::-;72573:19;;;72558:77;;;72559:12;;;72558:77;;;;;;;;;;;;;;;;;;;-1:-1:-1;72666:18:0;;-1:-1:-1;72650:4:0;:12;;;:34;;;;;;;;;72646:178;;72708:104;72719:16;72737:54;72798:4;:12;;;72793:18;;;;;;;72646:178;-1:-1:-1;;;;;72884:23:0;;;;;;:13;:23;;;;;;72909:17;;;;72876:51;;72884:23;72876:7;:51::i;:::-;72851:21;;;72836:91;;;72837:12;;;72836:91;;;;;;;;;;;;;;;;;;;-1:-1:-1;72958:18:0;;-1:-1:-1;72942:4:0;:12;;;:34;;;;;;;;;72938:181;;73000:107;73011:16;73029:57;73093:4;:12;;;73088:18;;;;;;;72938:181;73217:4;:17;;;73200:14;:12;:14::i;:::-;:34;73196:155;;;73258:81;73263:29;73294:44;73258:4;:81::i;73196:155::-;73847:42;73861:8;73871:4;:17;;;73847:13;:42::i;:::-;73982:19;;;;73968:11;:33;74038:21;;;;-1:-1:-1;;;;;74012:23:0;;;;;;:13;:23;;;;;;;;;:47;;;;74171:17;;;;74137:52;;;;;;;74164:4;;-1:-1:-1;;;;;;;;;;;74137:52:0;;;;;;;74222:17;;;;74241;;;;;74205:54;;;-1:-1:-1;;;;;74205:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;74312:11;;74362:17;;;;74381;;;;74312:87;;;-1:-1:-1;;;74312:87:0;;74345:4;74312:87;;;;-1:-1:-1;;;;;74312:87:0;;;;;;;;;;;;;;;;;;;;;;:11;;;;;:24;;:87;;;;;:11;;:87;;;;;;;:11;;:87;;;5:2:-1;;;;30:1;27;20:12;5:2;74312:87:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;74424:14:0;;-1:-1:-1;74419:20:0;;-1:-1:-1;;74419:20:0;;74412:27;69849:4598;-1:-1:-1;;;;;;69849:4598:0:o;22765:343::-;22821:9;;22853:6;22849:69;;-1:-1:-1;22884:18:0;;-1:-1:-1;22884:18:0;22876:30;;22849:69;22939:5;;;22943:1;22939;:5;:1;22961:5;;;;;:10;22957:144;;-1:-1:-1;22996:26:0;;-1:-1:-1;23024:1:0;;-1:-1:-1;22988:38:0;;22957:144;23067:18;;-1:-1:-1;23087:1:0;-1:-1:-1;23059:30:0;;23203:215;23259:9;;23291:6;23287:77;;-1:-1:-1;23322:26:0;;-1:-1:-1;23350:1:0;23314:38;;23287:77;23384:18;23408:1;23404;:5;;;;;;23376:34;;;;23203:215;;;;;:::o;86699:3582::-;86920:11;;:111;;;-1:-1:-1;;;86920:111:0;;86963:4;86920:111;;;;-1:-1:-1;;;;;86920:111:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;86837:4;;;;;;86920:11;;;:34;;:111;;;;;;;;;;;;;;;86837:4;86920:11;:111;;;5:2:-1;;;;30:1;27;20:12;5:2;86920:111:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;86920:111:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;86920:111:0;;-1:-1:-1;87046:12:0;;87042:150;;87083:93;87094:27;87123:43;87168:7;87083:10;:93::i;:::-;87075:105;-1:-1:-1;87178:1:0;;-1:-1:-1;87075:105:0;;-1:-1:-1;87075:105:0;87042:150;87302:16;:14;:16::i;:::-;87280:18;;:38;87276:150;;87343:67;87348:22;87372:37;87343:4;:67::i;87276:150::-;87572:16;:14;:16::i;:::-;87531;-1:-1:-1;;;;;87531:35:0;;:37;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;87531:37:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;87531:37:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;87531:37:0;:57;87527:180;;87613:78;87618:22;87642:48;87613:4;:78::i;87527:180::-;87780:10;-1:-1:-1;;;;;87768:22:0;:8;-1:-1:-1;;;;;87768:22:0;;87764:145;;;87815:78;87820:26;87848:44;87815:4;:78::i;87764:145::-;87964:16;87960:147;;88005:86;88010:36;88048:42;88005:4;:86::i;87960:147::-;-1:-1:-1;;88163:11:0;:23;88159:158;;;88211:90;88216:36;88254:46;88211:4;:90::i;88159:158::-;88373:21;88396:22;88422:51;88439:10;88451:8;88461:11;88422:16;:51::i;:::-;88372:101;;-1:-1:-1;88372:101:0;-1:-1:-1;88488:40:0;;88484:163;;88553:78;88564:16;88558:23;;;;;;;;88583:47;88553:4;:78::i;:::-;88545:90;-1:-1:-1;88633:1:0;;-1:-1:-1;88545:90:0;;-1:-1:-1;;;88545:90:0;88484:163;88904:11;;:102;;;-1:-1:-1;;;88904:102:0;;88954:4;88904:102;;;;-1:-1:-1;;;;;88904:102:0;;;;;;;;;;;;;;;88861:21;;;;88904:11;;;:41;;:102;;;;;;;;;;;;:11;:102;;;5:2:-1;;;;30:1;27;20:12;5:2;88904:102:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;88904:102:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;88904:102:0;;;;;;;;;-1:-1:-1;88904:102:0;-1:-1:-1;89025:40:0;;89017:104;;;;-1:-1:-1;;;89017:104:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;89255:11;89215:16;-1:-1:-1;;;;;89215:26:0;;89242:8;89215:36;;;;;;;;;;;;;-1:-1:-1;;;;;89215:36:0;-1:-1:-1;;;;;89215:36:0;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;89215:36:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;89215:36:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;89215:36:0;:51;;89207:88;;;;;-1:-1:-1;;;89207:88:0;;;;;;;;;;;;-1:-1:-1;;;89207:88:0;;;;;;;;;;;;;;;89424:15;-1:-1:-1;;;;;89454:42:0;;89491:4;89454:42;89450:254;;;89526:63;89548:4;89555:10;89567:8;89577:11;89526:13;:63::i;:::-;89513:76;;89450:254;;;89635:57;;;-1:-1:-1;;;89635:57:0;;-1:-1:-1;;;;;89635:57:0;;;;;;;;;;;;;;;;;;;;;;:22;;;;;;:57;;;;;;;;;;;;;;;-1:-1:-1;89635:22:0;:57;;;5:2:-1;;;;30:1;27;20:12;5:2;89635:57:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;89635:57:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;89635:57:0;;-1:-1:-1;89450:254:0;89810:34;;89802:67;;;;;-1:-1:-1;;;89802:67:0;;;;;;;;;;;;-1:-1:-1;;;89802:67:0;;;;;;;;;;;;;;;89934:96;;;-1:-1:-1;;;;;89934:96:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;90083:11;;:129;;;-1:-1:-1;;;90083:129:0;;90125:4;90083:129;;;;-1:-1:-1;;;;;90083:129:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:11;;;;;:33;;:129;;;;;:11;;:129;;;;;;;:11;;:129;;;5:2:-1;;;;30:1;27;20:12;5:2;90083:129:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;90238:14:0;;-1:-1:-1;90233:20:0;;-1:-1:-1;;90233:20:0;;90225:48;-1:-1:-1;90255:17:0;;-1:-1:-1;;;;;;86699:3582:0;;;;;;;;:::o;75666:3034::-;75824:11;;:64;;;-1:-1:-1;;;75824:64:0;;75858:4;75824:64;;;;-1:-1:-1;;;;;75824:64:0;;;;;;;;;;;;;;;75750:4;;;;75824:11;;:25;;:64;;;;;;;;;;;;;;75750:4;75824:11;:64;;;5:2:-1;;;;30:1;27;20:12;5:2;75824:64:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;75824:64:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;75824:64:0;;-1:-1:-1;75903:12:0;;75899:142;;75939:90;75950:27;75979:40;76021:7;75939:10;:90::i;:::-;75932:97;;;;;75899:142;76151:16;:14;:16::i;:::-;76129:18;;:38;76125:142;;76191:64;76196:22;76220:34;76191:4;:64::i;76125:142::-;76376:12;76359:14;:12;:14::i;:::-;:29;76355:143;;;76412:74;76417:29;76448:37;76412:4;:74::i;76355:143::-;76510:27;;:::i;:::-;76825:37;76853:8;76825:27;:37::i;:::-;76802:19;;;76787:75;;;76788:4;76787:75;;;;;;;;;;;;;;;;;;;-1:-1:-1;76893:18:0;;-1:-1:-1;76877:12:0;;:34;;;;;;;;;76873:181;;76935:107;76946:16;76964:57;77028:4;:12;;;77023:18;;;;;;;76935:107;76928:114;;;;;;76873:181;77107:42;77115:4;:19;;;77136:12;77107:7;:42::i;:::-;77081:22;;;77066:83;;;77067:4;77066:83;;;;;;;;;;;;;;;;;;;-1:-1:-1;77180:18:0;;-1:-1:-1;77164:12:0;;:34;;;;;;;;;77160:188;;77222:114;77233:16;77251:64;77322:4;:12;;;77317:18;;;;;;;77160:188;77399:35;77407:12;;77421;77399:7;:35::i;:::-;77375:20;;;77360:74;;;77361:4;77360:74;;;;;;;;;;;;;;;;;;;-1:-1:-1;77465:18:0;;-1:-1:-1;77449:12:0;;:34;;;;;;;;;77445:179;;77507:105;77518:16;77536:55;77598:4;:12;;;77593:18;;;;;;;77445:179;78116:37;78130:8;78140:12;78116:13;:37::i;:::-;78273:22;;;;;;-1:-1:-1;;;;;78236:24:0;;;;;;:14;:24;;;;;;;;:59;;;78347:11;;78306:38;;;;:52;;;;78384:20;;;;;78369:12;:35;;;78491:22;;78460:76;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;78589:11;;:63;;;-1:-1:-1;;;78589:63:0;;78622:4;78589:63;;;;-1:-1:-1;;;;;78589:63:0;;;;;;;;;;;;;;;:11;;;;;:24;;:63;;;;;:11;;:63;;;;;;;:11;;:63;;;5:2:-1;;;;30:1;27;20:12;5:2;78589:63:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;78677:14:0;;-1:-1:-1;78672:20:0;;-1:-1:-1;;78672:20:0;;78665:27;75666:3034;-1:-1:-1;;;;;75666:3034:0:o;28427:620::-;28507:9;28518:10;;:::i;:::-;28825:14;28841;28859:25;24956:4;28877:6;28859:7;:25::i;:::-;28824:60;;-1:-1:-1;28824:60:0;-1:-1:-1;28907:18:0;28899:4;:26;;;;;;;;;28895:92;;-1:-1:-1;28956:18:0;;;;;;;;;-1:-1:-1;28956:18:0;;28950:4;;-1:-1:-1;28956:18:0;-1:-1:-1;28942:33:0;;28895:92;29004:35;29011:9;29022:7;:16;;;29004:6;:35::i;184913:6250::-;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;184913:6250:0;;;-1:-1:-1;184913:6250:0;:::i;:::-;;;:::o;:::-;;;;;;;;;;;-1:-1:-1;184913:6250:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;-1:-1:-1;184913:6250:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;-1:-1:-1;184913:6250:0;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;

Swarm Source

bzzr://e57af24f23e4a28aa4c8c48bf502db4366985058ed59b125be5efb9902ff8412
Block Transaction Gas Used Reward
Age Block Fee Address Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading