Contract 0xA07c5b74C9B40447a954e1466938b865b6BBea36

 

Contract Overview

Venus: vBNB Token
Balance:
449,968.69394875472213583 BNB

BNB Value:
$160,908,804.96 (@ $357.60/BNB)

Token:
Txn Hash
Block
From
To
Value [Txn Fee]
0xc1f32a118cb6a8a721fe7902c2e879508ae257b61a5e11d7c6a0643f5f81741e82855542021-06-14 8:52:324 mins ago0xe33dc6024fb048d894deea298e5468bbb2108b7b IN  Venus: vBNB Token0.479384450668345 BNB0.000683355
0xa5178b97a158bbd5f11932dadd3f0947adbaf37dda4065db4fe5b401ac5d273c82855422021-06-14 8:51:565 mins ago0x365658fa637b8d96ee5549913e39d4a3b5c6ba41 IN  Venus: vBNB Token0.051 BNB0.000758355
0x6a7c4eb8348f9c6fcb06696980490e677ea487fce3b9c40608880a8fc7c08d6782854902021-06-14 8:49:187 mins ago0x19132c5d648e0706bda8afa9e8ef3c57e86f50a9 IN  Venus: vBNB Token0.25 BNB0.000683355
0xa1d2f1d3411dbb8b26936cf62c1f1766d7c71be88b77d4b695b0c9dacbc7d51b82853572021-06-14 8:42:1314 mins ago0x0fc257a10bafb66ad3d1340ce8f41aeb294519a1 IN  Venus: vBNB Token0 BNB0.00072121
0xdb322b542944beaabeff6f5d4fc4e2490339696e1960e31bf1aadd7e09ec136382853022021-06-14 8:39:2617 mins ago0x631d53461cb3ad21ba4924b8ba6f53f5bdca78d7 IN  Venus: vBNB Token0 BNB0.002640795
0xdbad83c9d1d454b37ce5f8b6192266d2b4642ed8625675c94683db7668edb0cc82851802021-06-14 8:33:2023 mins ago0xa5fc9776464fc1147bbca0335118d7d9523e3927 IN  Venus: vBNB Token0 BNB0.002878145
0x36ab0aa5f7fb5f1f4ad0d1286cb3c7814e24c19f05db17127c426f9ff2f5765982851302021-06-14 8:30:5026 mins ago0x8f3e0b9ff2e16ff5beeec48c6d3709948940cdfe IN  Venus: vBNB Token0 BNB0.00258604
0xb1b810a9071d6cb247ad1c039e3a3da9e7d5502166e869e135c7598c95bdc84682849882021-06-14 8:23:4433 mins ago0x5102c22c444fe1fcc86fea79b3662ba20b387fa1 IN  Venus: vBNB Token0 BNB0.003419755
0x518ec88ab82a73db9023c611627bcbf842397985686c0f08fd4ea7a52efef5d682849802021-06-14 8:23:2033 mins ago0x4447697173ab120dafda68aad0fa0b7f7e70d706 IN  Venus: vBNB Token7 BNB0.000812165
0x2384b1a91ba4d6a1b39454616f82aed764ea254c15f604b2d6d14e59a3ecaf2882849322021-06-14 8:20:5636 mins ago0xfe63e8b9e77e0a52f19facb88fde997b1631be92 IN  Venus: vBNB Token0 BNB0.00351334
0xc293848a7cc79f376ad3d2168985a66af1f6f7a9993983a1d62fb1816ee065e182849172021-06-14 8:20:1136 mins ago0x4e93fa03afbae1d171189be4878a101113499a7f IN  Venus: vBNB Token0 BNB0.001713145
0xc82b3daea9f55e1a22ff4c6df6b079ec67f51c01956483122af3bbe87bda0ff482849072021-06-14 8:19:4137 mins ago0xca5ae4fdf8efe596f452b4a9ad286b50ff6f358b IN  Venus: vBNB Token0 BNB0.001379785
0xd573fe254c9a5f6f3314e61702fa4ecbbbde8c98f613b2b68f18b22b2ba68f3e82848722021-06-14 8:17:5639 mins ago0x09f454e9b4c40f39adcb35381bca79b71d7a04a4 IN  Venus: vBNB Token0 BNB0.00176608
0xf897007a63ce15129bacef75421fcc347dc37029625774c9a89b71e1cb8da00b82848572021-06-14 8:17:1139 mins ago0x4e93fa03afbae1d171189be4878a101113499a7f IN  Venus: vBNB Token0 BNB0.001713145
0xbafcfcce2efa4070057e4ac69a03fc289d9f0fb66de105204c50ce2c8306cc9982848282021-06-14 8:15:4441 mins ago0x365658fa637b8d96ee5549913e39d4a3b5c6ba41 IN  Venus: vBNB Token0.011 BNB0.000812165
0x25c05da1d41f3d076d233104617f043367818fd535b64d7897ccc4109f67bf8682848012021-06-14 8:14:2342 mins ago0x72774e2fe1992d5da8c6e9cef73fd2ab980c0b98 IN  Venus: vBNB Token0 BNB0.0017883
0x8db643986c11a48f9a50b31fc0a222fcddc8374d5cda71b089484d053aee643382847972021-06-14 8:14:1142 mins ago0x4e93fa03afbae1d171189be4878a101113499a7f IN  Venus: vBNB Token0 BNB0.001713145
0xc8ff3cb40198200a2590fa6d9dde411494f32d63e90e3f22d0ae83898ff4867e82847962021-06-14 8:14:0843 mins ago0x4e93fa03afbae1d171189be4878a101113499a7f IN  Venus: vBNB Token0.05 BNB0.000683355
0x821ea7a4976de9f2777cc4f2463885546f6e439811abe575b3f41788bbac231182847872021-06-14 8:13:4143 mins ago0xa0003adfb1169dc12c0b70b5fcca1cb35e53010c IN  Venus: vBNB Token0 BNB0.002703
0xda0cadc015c0314ee86182bfbd8c6edd81d2357f3bf130001fd1a5b5347db4ad82847822021-06-14 8:13:2643 mins ago0x4000d769c7fe9741eb8c7d83c3b0250479356251 IN  Venus: vBNB Token0 BNB0.00072127
0xec00e8423cc4c47466dfe18fe0c2baae8b579a149a1eb6d6047b1f61db11d71882847612021-06-14 8:12:2344 mins ago0xa0003adfb1169dc12c0b70b5fcca1cb35e53010c IN  Venus: vBNB Token0 BNB0.0023500239
0x7726365b2d1a66cef490787886ee7a40b100846ca957ddebf31708583018b0c982847072021-06-14 8:09:4147 mins ago0x1b7cc71a49c4fbf847de3c50d7d134246e0ac2b4 IN  Venus: vBNB Token0 BNB0.000847465
0xde28572b05abdd2f06be34d438b7369db1e8c567a77d5e494fde4d1bb4b2c29e82846692021-06-14 8:07:4749 mins ago0x63dc61753eb34457fbc60006dfd0f449ce20988f IN  Venus: vBNB Token36 BNB0.000683355
0xea94d15f25ba18495c2d0453e566082d2075ef1ae54ff44f7c65ddc0d7cd339882845902021-06-14 8:03:5053 mins ago0x6ea41313f791661bdb9020407162f803ec744fbf IN  Venus: vBNB Token0 BNB0.00255776
0xff6d3352ed99bc9a32e523ab850a22674cf698e6aed4b31f3f088c80d046e2f482845592021-06-14 8:02:1754 mins ago0x86b4a768072f2c05d24684b3fea83b55a7bc5d9e IN  Venus: vBNB Token2.182467377899141 BNB0.000683355
[ Download CSV Export 

OVERVIEW

Venus is an algorithmic money market and synthetic stablecoin decentralized finance protocol.

Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x4d54d5260406eb9bd80f5f88932da87df66b2d662c1103dc77495cdf998bbba582855922021-06-14 8:54:262 mins ago Venus: vBNB Token 0x5c8c5852f3837b37b50497ea11397ec175b5ccab8.04180918834614325 BNB
0x7e06b04ca349e7ab927a615cf50f56a25bbca684cebf81bad8288e8006ed9dea82854272021-06-14 8:45:5111 mins ago Venus: vBNB Token 0xfa3ccb086bf371a2ff33db8521be47c5b4b9d10e0.11316496 BNB
0x7e06b04ca349e7ab927a615cf50f56a25bbca684cebf81bad8288e8006ed9dea82854272021-06-14 8:45:5111 mins ago 0xfa3ccb086bf371a2ff33db8521be47c5b4b9d10e Venus: vBNB Token0.195112 BNB
0x7e06b04ca349e7ab927a615cf50f56a25bbca684cebf81bad8288e8006ed9dea82854272021-06-14 8:45:5111 mins ago Venus: vBNB Token 0xfa3ccb086bf371a2ff33db8521be47c5b4b9d10e0.195112 BNB
0x7e06b04ca349e7ab927a615cf50f56a25bbca684cebf81bad8288e8006ed9dea82854272021-06-14 8:45:5111 mins ago 0xfa3ccb086bf371a2ff33db8521be47c5b4b9d10e Venus: vBNB Token0.3364 BNB
0x7e06b04ca349e7ab927a615cf50f56a25bbca684cebf81bad8288e8006ed9dea82854272021-06-14 8:45:5111 mins ago Venus: vBNB Token 0xfa3ccb086bf371a2ff33db8521be47c5b4b9d10e0.3364 BNB
0x7e06b04ca349e7ab927a615cf50f56a25bbca684cebf81bad8288e8006ed9dea82854272021-06-14 8:45:5111 mins ago 0xfa3ccb086bf371a2ff33db8521be47c5b4b9d10e Venus: vBNB Token0.58 BNB
0x7e06b04ca349e7ab927a615cf50f56a25bbca684cebf81bad8288e8006ed9dea82854272021-06-14 8:45:5111 mins ago Venus: vBNB Token 0xfa3ccb086bf371a2ff33db8521be47c5b4b9d10e0.58 BNB
0x7e06b04ca349e7ab927a615cf50f56a25bbca684cebf81bad8288e8006ed9dea82854272021-06-14 8:45:5111 mins ago 0xfa3ccb086bf371a2ff33db8521be47c5b4b9d10e Venus: vBNB Token1 BNB
0xca68f316e335e0d6393acfa51c58a646be6faab21cc3303513cfe432951ec7a982854172021-06-14 8:45:1911 mins ago 0xfa3ccb086bf371a2ff33db8521be47c5b4b9d10e Venus: vBNB Token0.622030230592859849 BNB
0xca68f316e335e0d6393acfa51c58a646be6faab21cc3303513cfe432951ec7a982854172021-06-14 8:45:1911 mins ago Venus: vBNB Token 0xfa3ccb086bf371a2ff33db8521be47c5b4b9d10e0.622030230592859849 BNB
0xca68f316e335e0d6393acfa51c58a646be6faab21cc3303513cfe432951ec7a982854172021-06-14 8:45:1911 mins ago 0xfa3ccb086bf371a2ff33db8521be47c5b4b9d10e Venus: vBNB Token1.072465914815275602 BNB
0x3ae56c397bf1b3c535a8b2b201de5d56ac259fd0d2a0d0eb20f89d817d1d02e582853852021-06-14 8:43:3713 mins ago Venus: vBNB Token 0x5c8c5852f3837b37b50497ea11397ec175b5ccab7.999998077089457922 BNB
0xb4fd52dea0512b3d10205138863c6affdb09d5351b1b11eb4facd71b13b523e882853832021-06-14 8:43:3113 mins ago Venus: vBNB Token 0xc1e16013a158d57a60d6aa5bb3108722b0ac6df50.11127732109715867 BNB
0xa674493bfe9b1d8cf82d833089f5b4b068aacd86867854cbac6d1b147891c42d82853692021-06-14 8:42:4914 mins ago Venus: vBNB Token 0x8123cafca48b37e0f4936b2388d6b8a29f8f0da550.307011478810976506 BNB
0xa1d2f1d3411dbb8b26936cf62c1f1766d7c71be88b77d4b695b0c9dacbc7d51b82853572021-06-14 8:42:1314 mins ago Venus: vBNB Token0x0fc257a10bafb66ad3d1340ce8f41aeb294519a10.501911745043869077 BNB
0xdb322b542944beaabeff6f5d4fc4e2490339696e1960e31bf1aadd7e09ec136382853022021-06-14 8:39:2617 mins ago Venus: vBNB Token0x631d53461cb3ad21ba4924b8ba6f53f5bdca78d70.2733 BNB
0x06a687904f913990d74c101cffe6bfd27c53e811d3364abf79ca7e98ea95e5fb82852812021-06-14 8:38:2318 mins ago 0xc1e16013a158d57a60d6aa5bb3108722b0ac6df5 Venus: vBNB Token0.090000000000000005 BNB
0xb3bc662dae11bacd7c25bda5eb4766c2a1299b412208ab33099c8f46a536a69782852352021-06-14 8:36:0521 mins ago Venus: vBNB Token 0x9e6f925ea55f7e575549f5dea6d8e8112ce2e4be32.1861690151255571 BNB
0x70466b8bb61f2d9fdde3c554ca0a2a66d878b4ba4057aaa0e19981f5526bd18b82852312021-06-14 8:35:5321 mins ago Venus: vBNB Token 0x8123cafca48b37e0f4936b2388d6b8a29f8f0da585.470908462661965318 BNB
0xdbad83c9d1d454b37ce5f8b6192266d2b4642ed8625675c94683db7668edb0cc82851802021-06-14 8:33:2023 mins ago Venus: vBNB Token0xa5fc9776464fc1147bbca0335118d7d9523e39271.5 BNB
0x7868c4f0be57c43c68b3f68de0e5b26e7e149a27957498b4a459ebd3815a635c82851452021-06-14 8:31:3525 mins ago Venus: vBNB Token 0x8123cafca48b37e0f4936b2388d6b8a29f8f0da5433.39338018849601259 BNB
0x36ab0aa5f7fb5f1f4ad0d1286cb3c7814e24c19f05db17127c426f9ff2f5765982851302021-06-14 8:30:5026 mins ago Venus: vBNB Token0x8f3e0b9ff2e16ff5beeec48c6d3709948940cdfe699.01068962208515129 BNB
0x1c43bfb9761105c569fc797d36929bec60c2c4b6b7634475bfcbcd9b693f072382851202021-06-14 8:30:2026 mins ago Venus: vBNB Token 0xfa3ccb086bf371a2ff33db8521be47c5b4b9d10e0.033949488 BNB
0x1c43bfb9761105c569fc797d36929bec60c2c4b6b7634475bfcbcd9b693f072382851202021-06-14 8:30:2026 mins ago 0xfa3ccb086bf371a2ff33db8521be47c5b4b9d10e Venus: vBNB Token0.0585336 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
VBNB

Compiler Version
v0.5.17+commit.d19bba13

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity Multiple files format)

File 1 of 12: VBNB.sol
pragma solidity ^0.5.16;

import "./VToken.sol";

/**
 * @title Venus's VBNB Contract
 * @notice VToken which wraps BNB
 * @author Venus
 */
contract VBNB is VToken {
    /**
     * @notice Construct a new VBNB 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_ BEP-20 name of this token
     * @param symbol_ BEP-20 symbol of this token
     * @param decimals_ BEP-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 vTokens in exchange
     * @dev Reverts upon any failure
     */
    function mint() external payable {
        (uint err,) = mintInternal(msg.value);
        requireNoError(err, "mint failed");
    }

    /**
     * @notice Sender redeems vTokens in exchange for the underlying asset
     * @dev Accrues interest whether or not the operation succeeds, unless reverted
     * @param redeemTokens The number of vTokens 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 vTokens 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 vToken to be liquidated
     * @param vTokenCollateral The market in which to seize collateral from the borrower
     */
    function liquidateBorrow(address borrower, VToken vTokenCollateral) external payable {
        (uint err,) = liquidateBorrowInternal(borrower, msg.value, vTokenCollateral);
        requireNoError(err, "liquidateBorrow failed");
    }

    /**
     * @notice Send BNB to VBNB 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 BNB, before this message
     * @dev This excludes the value of the current message, if any
     * @return The quantity of BNB 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, "cash prior math error");
        return startingBalance;
    }

    /**
     * @notice Perform the actual transfer in, which is a no-op
     * @param from Address sending the BNB
     * @param amount Amount of BNB being sent
     * @return The actual amount of BNB 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 BNB, 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));
    }
}

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

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

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

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

        uint c = a * b;

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

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

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

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

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

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

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

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

        return subUInt(sum, c);
    }
}

File 3 of 12: 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 vTokens) external returns (uint[] memory);
    function exitMarket(address vToken) external returns (uint);

    /*** Policy Hooks ***/

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

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

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

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

    function liquidateBorrowAllowed(
        address vTokenBorrowed,
        address vTokenCollateral,
        address liquidator,
        address borrower,
        uint repayAmount) external returns (uint);
    function liquidateBorrowVerify(
        address vTokenBorrowed,
        address vTokenCollateral,
        address liquidator,
        address borrower,
        uint repayAmount,
        uint seizeTokens) external;

    function seizeAllowed(
        address vTokenCollateral,
        address vTokenBorrowed,
        address liquidator,
        address borrower,
        uint seizeTokens) external returns (uint);
    function seizeVerify(
        address vTokenCollateral,
        address vTokenBorrowed,
        address liquidator,
        address borrower,
        uint seizeTokens) external;

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

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

    function liquidateCalculateSeizeTokens(
        address vTokenBorrowed,
        address vTokenCollateral,
        uint repayAmount) external view returns (uint, uint);

    function mintedVAIOf(address owner) external view returns (uint);
    function setMintedVAIOf(address owner, uint amount) external returns (uint);
    function getVAIMintRate() external view returns (uint);
}

File 4 of 12: EIP20Interface.sol
pragma solidity ^0.5.16;

/**
 * @title BEP 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`
      * @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 5 of 12: EIP20NonStandardInterface.sol
pragma solidity ^0.5.16;

/**
 * @title EIP20NonStandardInterface
 * @dev Version of BEP20 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 BEP-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 BEP-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`
      * @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 6 of 12: 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,
        NONZERO_MINTEDVAI_BALANCE,
        /// @dev VAI Integration^
        INSUFFICIENT_BALANCE_FOR_VAI
        /// @dev VAI Integration$
    }

    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,
        SET_VAI_MINT_RATE_CHECK,
        SET_VAICONTROLLER_OWNER_CHECK,
        SET_MINTED_VAI_REJECTION
    }

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

    /*
     * 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,
        TOKEN_GET_UNDERLYING_PRICE_ERROR,
        REPAY_VAI_COMPTROLLER_REJECTION,
        REPAY_VAI_FRESHNESS_CHECK,
        VAI_MINT_EXCHANGE_CALCULATION_FAILED,
        VAI_MINT_NEW_ACCOUNT_BALANCE_CALCULATION_FAILED
    }

    /**
      * @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 VAIControllerErrorReporter {
    enum Error {
        NO_ERROR,
        UNAUTHORIZED,
        REJECTION,
        SNAPSHOT_ERROR,
        PRICE_ERROR,
        MATH_ERROR,
        INSUFFICIENT_BALANCE_FOR_VAI
    }

    enum FailureInfo {
        SET_PENDING_ADMIN_OWNER_CHECK,
        SET_PENDING_IMPLEMENTATION_OWNER_CHECK,
        SET_COMPTROLLER_OWNER_CHECK,
        ACCEPT_ADMIN_PENDING_ADMIN_CHECK,
        ACCEPT_PENDING_IMPLEMENTATION_ADDRESS_CHECK,
        VAI_MINT_REJECTION,
        VAI_BURN_REJECTION
    }

    /**
      * @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 7 of 12: Exponential.sol
pragma solidity ^0.5.16;

import "./CarefulMath.sol";

/**
 * @title Exponential module for storing fixed-precision decimals
 * @author Venus
 * @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) internal pure 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) internal pure 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) internal pure 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) internal pure 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) internal pure 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) internal pure 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) internal pure 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) internal pure 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) internal pure 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) internal pure 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) internal pure 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) internal pure 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) internal pure 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) internal pure 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) internal pure returns (bool) {
        return left.mantissa < right.mantissa;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    function mul_(uint a, uint b, string memory errorMessage) internal pure 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) internal pure returns (Exp memory) {
        return Exp({mantissa: div_(mul_(a.mantissa, expScale), b.mantissa)});
    }

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

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

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

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

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

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

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

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

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

/**
  * @title Venus's InterestRateModel Interface
  * @author Venus
  */
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 9 of 12: VAIControllerInterface.sol
pragma solidity ^0.5.16;

contract VAIControllerInterface {
    function getMintableVAI(address minter) public view returns (uint, uint);
    function mintVAI(address minter, uint mintVAIAmount) external returns (uint);
    function repayVAI(address repayer, uint repayVAIAmount) external returns (uint);
}

File 10 of 12: VBep20.sol
pragma solidity ^0.5.16;

import "./VToken.sol";

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

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

    /*** User Interface ***/

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

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

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

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

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

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

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

    /*** Safe Token ***/

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

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

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

        // Calculate the amount that was *actually* transferred
        uint balanceAfter = EIP20Interface(underlying).balanceOf(address(this));
        require(balanceAfter >= balanceBefore, "TOKEN_TRANSFER_IN_OVERFLOW");
        return balanceAfter - balanceBefore;   // underflow already checked above, just subtract
    }

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

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

File 11 of 12: VToken.sol
pragma solidity ^0.5.16;

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

/**
 * @title Venus's VToken Contract
 * @notice Abstract base for VTokens
 * @author Venus
 */
contract VToken is VTokenInterface, 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 srvTokensNew;
        uint dstTokensNew;

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

        (mathErr, srvTokensNew) = 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] = srvTokensNew;
        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 vTokenBalance = 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), vTokenBalance, 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 vToken
     * @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 vToken
     * @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 VToken
     * @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 VToken
     * @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 vToken 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 vTokens 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 vTokens 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 vToken must handle variations between BEP-20 and BNB 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 vToken holds an additional `actualMintAmount`
         *  of cash.
         */
        vars.actualMintAmount = doTransferIn(minter, mintAmount);

        /*
         * We get the current exchange rate and calculate the number of vTokens 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 vTokens 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 vTokens in exchange for the underlying asset
     * @dev Accrues interest whether or not the operation succeeds, unless reverted
     * @param redeemTokens The number of vTokens 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 vTokens 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 vTokens
     * @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 vTokens 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 vTokens 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 vTokens (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 vToken must handle variations between BEP-20 and BNB underlying.
         *  On success, the vToken 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 vToken must handle variations between BEP-20 and BNB underlying.
         *  On success, the vToken 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 vToken must handle variations between BEP-20 and BNB underlying.
         *  On success, the vToken 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 vToken to be liquidated
     * @param vTokenCollateral 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, VTokenInterface vTokenCollateral) 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 = vTokenCollateral.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, vTokenCollateral);
    }

    /**
     * @notice The liquidator liquidates the borrowers collateral.
     *  The collateral seized is transferred to the liquidator.
     * @param borrower The borrower of this vToken to be liquidated
     * @param liquidator The address repaying the borrow and seizing collateral
     * @param vTokenCollateral 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, VTokenInterface vTokenCollateral) internal returns (uint, uint) {
        /* Fail if liquidate not allowed */
        uint allowed = comptroller.liquidateBorrowAllowed(address(this), address(vTokenCollateral), 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 vTokenCollateral market's block number equals current block number */
        if (vTokenCollateral.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(vTokenCollateral), actualRepayAmount);
        require(amountSeizeError == uint(Error.NO_ERROR), "LIQUIDATE_COMPTROLLER_CALCULATE_AMOUNT_SEIZE_FAILED");

        /* Revert if borrower collateral token balance < seizeTokens */
        require(vTokenCollateral.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(vTokenCollateral) == address(this)) {
            seizeError = seizeInternal(address(this), liquidator, borrower, seizeTokens);
        } else {
            seizeError = vTokenCollateral.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(vTokenCollateral), seizeTokens);

        /* We call the defense hook */
        comptroller.liquidateBorrowVerify(address(this), address(vTokenCollateral), 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 vToken during the process of liquidation.
     *  Its absolutely critical to use msg.sender as the borrowed vToken and not a parameter.
     * @param liquidator The account receiving seized collateral
     * @param borrower The account having collateral seized
     * @param seizeTokens The number of vTokens 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 VToken.
     *  Its absolutely critical to use msg.sender as the seizer vToken and not a parameter.
     * @param seizerToken The contract seizing the collateral (i.e. borrowed vToken)
     * @param liquidator The account receiving seized collateral
     * @param borrower The account having collateral seized
     * @param seizeTokens The number of vTokens 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) {
        /* 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;

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

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

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

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

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

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

        return uint(Error.NO_ERROR);
    }


    /*** Admin Functions ***/

    /**
      * @notice Begins transfer of admin rights. The newPendingAdmin must call `_acceptAdmin` to finalize the transfer.
      * @dev Admin function to begin change of admin. The newPendingAdmin must call `_acceptAdmin` to finalize the transfer.
      * @param newPendingAdmin New pending admin.
      * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details)
      */
    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 vToken must handle variations between BEP-20 and BNB underlying.
         *  On success, the vToken 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 12 of 12: VTokenInterfaces.sol
pragma solidity ^0.5.16;

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

contract VTokenStorage {
    /**
     * @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-vToken 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 VTokens (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 VTokenInterface is VTokenStorage {
    /**
     * @notice Indicator that this is a VToken contract (for inspection)
     */
    bool public constant isVToken = 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 vTokenCollateral, 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 VBep20Storage {
    /**
     * @notice Underlying asset for this VToken
     */
    address public underlying;
}

contract VBep20Interface is VBep20Storage {

    /*** 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, VTokenInterface vTokenCollateral) external returns (uint);


    /*** Admin Functions ***/

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

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

contract VDelegatorInterface is VDelegationStorage {
    /**
     * @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 VDelegateInterface is VDelegationStorage {
    /**
     * @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;
}

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":"vTokenCollateral","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":"isVToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"borrower","type":"address"},{"internalType":"contract VToken","name":"vTokenCollateral","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"}]

60806040523480156200001157600080fd5b50604051620056be380380620056be833981810160405260e08110156200003757600080fd5b8151602083015160408085015160608601805192519496939591949391820192846401000000008211156200006b57600080fd5b9083019060208201858111156200008157600080fd5b82516401000000008111828201881017156200009c57600080fd5b82525081516020918201929091019080838360005b83811015620000cb578181015183820152602001620000b1565b50505050905090810190601f168015620000f95780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200011d57600080fd5b9083019060208201858111156200013357600080fd5b82516401000000008111828201881017156200014e57600080fd5b82525081516020918201929091019080838360005b838110156200017d57818101518382015260200162000163565b50505050905090810190601f168015620001ab5780820380516001836020036101000a031916815260200191505b506040908152602082015191015160038054610100600160a81b03191633610100021790559092509050620001e587878787878762000218565b600380546001600160a01b0390921661010002610100600160a81b03199092169190911790555062000853945050505050565b60035461010090046001600160a01b03163314620002685760405162461bcd60e51b8152600401808060200182810382526024815260200180620056256024913960400191505060405180910390fd5b600954158015620002795750600a54155b620002b65760405162461bcd60e51b8152600401808060200182810382526023815260200180620056496023913960400191505060405180910390fd5b600784905583620002f95760405162461bcd60e51b81526004018080602001828103825260308152602001806200566c6030913960400191505060405180910390fd5b60006200030f876001600160e01b036200042e16565b9050801562000365576040805162461bcd60e51b815260206004820152601a60248201527f73657474696e6720636f6d7074726f6c6c6572206661696c6564000000000000604482015290519081900360640190fd5b620003786001600160e01b036200059616565b600955670de0b6b3a7640000600a556200039b866001600160e01b036200059b16565b90508015620003dc5760405162461bcd60e51b81526004018080602001828103825260228152602001806200569c6022913960400191505060405180910390fd5b8351620003f1906001906020870190620007b1565b50825162000407906002906020860190620007b1565b50506003805460ff90921660ff199283161790556000805490911660011790555050505050565b60035460009061010090046001600160a01b031633146200046857620004606001603f6001600160e01b036200074116565b905062000591565b60055460408051623f1ee960e11b815290516001600160a01b0392831692851691627e3dd2916004808301926020929190829003018186803b158015620004ae57600080fd5b505afa158015620004c3573d6000803e3d6000fd5b505050506040513d6020811015620004da57600080fd5b50516200052e576040805162461bcd60e51b815260206004820152601c60248201527f6d61726b6572206d6574686f642072657475726e65642066616c736500000000604482015290519081900360640190fd5b600580546001600160a01b0319166001600160a01b03858116918217909255604080519284168352602083019190915280517f7ac369dbd14fa5ea3f473ed67cc9d598964a77501540ba6751eb0b3decf5870d9281900390910190a160005b9150505b919050565b435b90565b600354600090819061010090046001600160a01b03163314620005d857620005cf600160426001600160e01b036200074116565b91505062000591565b620005eb6001600160e01b036200059616565b600954146200060b57620005cf600a60416001600160e01b036200074116565b600660009054906101000a90046001600160a01b03169050826001600160a01b0316632191f92a6040518163ffffffff1660e01b815260040160206040518083038186803b1580156200065d57600080fd5b505afa15801562000672573d6000803e3d6000fd5b505050506040513d60208110156200068957600080fd5b5051620006dd576040805162461bcd60e51b815260206004820152601c60248201527f6d61726b6572206d6574686f642072657475726e65642066616c736500000000604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b03858116918217909255604080519284168352602083019190915280517fedffc32e068c7c95dfd4bdfd5c4d939a084d6b11c4199eac8436ed234d72f9269281900390910190a160006200058d565b60007f45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa08360118111156200077157fe5b8360558111156200077e57fe5b604080519283526020830191909152600082820152519081900360600190a1826011811115620007aa57fe5b9392505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620007f457805160ff191683800117855562000824565b8280016001018555821562000824579182015b828111156200082457825182559160200191906001019062000807565b506200083292915062000836565b5090565b6200059891905b808211156200083257600081556001016200083d565b614dc280620008636000396000f3fe6080604052600436106102725760003560e01c80638f840ddd1161014f578063bd6d894d116100c1578063e9c714f21161007a578063e9c714f214610a22578063f2b3abbd14610a37578063f3fdb15a14610a6a578063f851a44014610a7f578063f8f9da2814610a94578063fca7820b14610aa957610272565b8063bd6d894d146108ff578063c37f68e214610914578063c5ebeaec1461096d578063db006a7514610997578063dd62ed3e146109c1578063e5974619146109fc57610272565b8063a9059cbb11610113578063a9059cbb146107f8578063aa5af0fd14610831578063aae40a2a14610846578063ae9d70b014610874578063b2a02ff114610889578063b71d1a0c146108cc57610272565b80638f840ddd1461062757806395d89b411461063c57806395dd91931461065157806399d8c1b414610684578063a6afed95146107e357610272565b80633b1d21a2116101e85780635fe3b567116101ac5780635fe3b56714610561578063601a0bf1146105765780636c540baf146105a057806370a08231146105b557806373acee98146105e8578063852a12e3146105fd57610272565b80633b1d21a2146104e75780633d9ea3a1146104fc5780634576b5db1461051157806347bd3718146105445780634e4d9fea1461055957610272565b806318160ddd1161023a57806318160ddd146103eb578063182df0f51461040057806323b872dd146104155780632678224714610458578063313ce567146104895780633af9e669146104b457610272565b806306fdde03146102b0578063095ea7b31461033a5780631249c58b14610387578063173b99041461039157806317bfdfbc146103b8575b600061027d34610ad3565b5090506102ad816040518060400160405280600b81526020016a1b5a5b9d0819985a5b195960aa1b815250610b7b565b50005b3480156102bc57600080fd5b506102c5610d7b565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102ff5781810151838201526020016102e7565b50505050905090810190601f16801561032c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561034657600080fd5b506103736004803603604081101561035d57600080fd5b506001600160a01b038135169060200135610e08565b604080519115158252519081900360200190f35b61038f610e75565b005b34801561039d57600080fd5b506103a6610eb3565b60408051918252519081900360200190f35b3480156103c457600080fd5b506103a6600480360360208110156103db57600080fd5b50356001600160a01b0316610eb9565b3480156103f757600080fd5b506103a6610f79565b34801561040c57600080fd5b506103a6610f7f565b34801561042157600080fd5b506103736004803603606081101561043857600080fd5b506001600160a01b03813581169160208101359091169060400135610fe2565b34801561046457600080fd5b5061046d611054565b604080516001600160a01b039092168252519081900360200190f35b34801561049557600080fd5b5061049e611063565b6040805160ff9092168252519081900360200190f35b3480156104c057600080fd5b506103a6600480360360208110156104d757600080fd5b50356001600160a01b031661106c565b3480156104f357600080fd5b506103a6611124565b34801561050857600080fd5b50610373611133565b34801561051d57600080fd5b506103a66004803603602081101561053457600080fd5b50356001600160a01b0316611138565b34801561055057600080fd5b506103a661128d565b61038f611293565b34801561056d57600080fd5b5061046d6112d5565b34801561058257600080fd5b506103a66004803603602081101561059957600080fd5b50356112e4565b3480156105ac57600080fd5b506103a661137f565b3480156105c157600080fd5b506103a6600480360360208110156105d857600080fd5b50356001600160a01b0316611385565b3480156105f457600080fd5b506103a66113a0565b34801561060957600080fd5b506103a66004803603602081101561062057600080fd5b5035611456565b34801561063357600080fd5b506103a6611461565b34801561064857600080fd5b506102c5611467565b34801561065d57600080fd5b506103a66004803603602081101561067457600080fd5b50356001600160a01b03166114bf565b34801561069057600080fd5b5061038f600480360360c08110156106a757600080fd5b6001600160a01b038235811692602081013590911691604082013591908101906080810160608201356401000000008111156106e257600080fd5b8201836020820111156106f457600080fd5b8035906020019184600183028401116401000000008311171561071657600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929594936020810193503591505064010000000081111561076957600080fd5b82018360208201111561077b57600080fd5b8035906020019184600183028401116401000000008311171561079d57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505050903560ff16915061151c9050565b3480156107ef57600080fd5b506103a6611703565b34801561080457600080fd5b506103736004803603604081101561081b57600080fd5b506001600160a01b038135169060200135611a5b565b34801561083d57600080fd5b506103a6611acc565b61038f6004803603604081101561085c57600080fd5b506001600160a01b0381358116916020013516611ad2565b34801561088057600080fd5b506103a6611b1f565b34801561089557600080fd5b506103a6600480360360608110156108ac57600080fd5b506001600160a01b03813581169160208101359091169060400135611bbe565b3480156108d857600080fd5b506103a6600480360360208110156108ef57600080fd5b50356001600160a01b0316611c2f565b34801561090b57600080fd5b506103a6611cbb565b34801561092057600080fd5b506109476004803603602081101561093757600080fd5b50356001600160a01b0316611d77565b604080519485526020850193909352838301919091526060830152519081900360800190f35b34801561097957600080fd5b506103a66004803603602081101561099057600080fd5b5035611e0c565b3480156109a357600080fd5b506103a6600480360360208110156109ba57600080fd5b5035611e17565b3480156109cd57600080fd5b506103a6600480360360408110156109e457600080fd5b506001600160a01b0381358116916020013516611e22565b61038f60048036036020811015610a1257600080fd5b50356001600160a01b0316611e4d565b348015610a2e57600080fd5b506103a6611e9b565b348015610a4357600080fd5b506103a660048036036020811015610a5a57600080fd5b50356001600160a01b0316611f9e565b348015610a7657600080fd5b5061046d611fd8565b348015610a8b57600080fd5b5061046d611fe7565b348015610aa057600080fd5b506103a6611ffb565b348015610ab557600080fd5b506103a660048036036020811015610acc57600080fd5b503561205f565b60008054819060ff16610b1a576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155610b2c611703565b90508015610b5757610b4a816011811115610b4357fe5b601e6120dd565b925060009150610b679050565b610b613385612143565b92509250505b6000805460ff191660011790559092909150565b81610b8557610d77565b606081516005016040519080825280601f01601f191660200182016040528015610bb6576020820181803883390190505b50905060005b8251811015610c0757828181518110610bd157fe5b602001015160f81c60f81b828281518110610be857fe5b60200101906001600160f81b031916908160001a905350600101610bbc565b8151600160fd1b90839083908110610c1b57fe5b60200101906001600160f81b031916908160001a905350602860f81b828260010181518110610c4657fe5b60200101906001600160f81b031916908160001a905350600a840460300160f81b828260020181518110610c7657fe5b60200101906001600160f81b031916908160001a905350600a840660300160f81b828260030181518110610ca657fe5b60200101906001600160f81b031916908160001a905350602960f81b828260040181518110610cd157fe5b60200101906001600160f81b031916908160001a905350818415610d735760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610d38578181015183820152602001610d20565b50505050905090810190601f168015610d655780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5050505b5050565b60018054604080516020600284861615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610e005780601f10610dd557610100808354040283529160200191610e00565b820191906000526020600020905b815481529060010190602001808311610de357829003601f168201915b505050505081565b336000818152600f602090815260408083206001600160a01b03871680855290835281842086905581518681529151939493909284927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929081900390910190a360019150505b92915050565b6000610e8034610ad3565b509050610eb0816040518060400160405280600b81526020016a1b5a5b9d0819985a5b195960aa1b815250610b7b565b50565b60085481565b6000805460ff16610efe576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155610f10611703565b14610f5b576040805162461bcd60e51b81526020600482015260166024820152751858d8dc9d59481a5b9d195c995cdd0819985a5b195960521b604482015290519081900360640190fd5b610f64826114bf565b90505b6000805460ff19166001179055919050565b600d5481565b6000806000610f8c6125a3565b90925090506000826003811115610f9f57fe5b14610fdb5760405162461bcd60e51b8152600401808060200182810382526035815260200180614cd96035913960400191505060405180910390fd5b9150505b90565b6000805460ff16611027576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff1916815561103d33868686612652565b1490506000805460ff191660011790559392505050565b6004546001600160a01b031681565b60035460ff1681565b60006110766149c7565b6040518060200160405280611089611cbb565b90526001600160a01b0384166000908152600e60205260408120549192509081906110b5908490612962565b909250905060008260038111156110c857fe5b1461111a576040805162461bcd60e51b815260206004820152601f60248201527f62616c616e636520636f756c64206e6f742062652063616c63756c6174656400604482015290519081900360640190fd5b925050505b919050565b600061112e6129b5565b905090565b600181565b60035460009061010090046001600160a01b031633146111655761115e6001603f6120dd565b905061111f565b60055460408051623f1ee960e11b815290516001600160a01b0392831692851691627e3dd2916004808301926020929190829003018186803b1580156111aa57600080fd5b505afa1580156111be573d6000803e3d6000fd5b505050506040513d60208110156111d457600080fd5b5051611227576040805162461bcd60e51b815260206004820152601c60248201527f6d61726b6572206d6574686f642072657475726e65642066616c736500000000604482015290519081900360640190fd5b600580546001600160a01b0319166001600160a01b03858116918217909255604080519284168352602083019190915280517f7ac369dbd14fa5ea3f473ed67cc9d598964a77501540ba6751eb0b3decf5870d9281900390910190a160005b9392505050565b600b5481565b600061129e34612a21565b509050610eb081604051806040016040528060128152602001711c995c185e509bdc9c9bddc819985a5b195960721b815250610b7b565b6005546001600160a01b031681565b6000805460ff16611329576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff1916815561133b611703565b905080156113615761135981601181111561135257fe5b60306120dd565b915050610f67565b61136a83612aa3565b9150506000805460ff19166001179055919050565b60095481565b6001600160a01b03166000908152600e602052604090205490565b6000805460ff166113e5576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556113f7611703565b14611442576040805162461bcd60e51b81526020600482015260166024820152751858d8dc9d59481a5b9d195c995cdd0819985a5b195960521b604482015290519081900360640190fd5b50600b546000805460ff1916600117905590565b6000610e6f82612bd6565b600c5481565b6002805460408051602060018416156101000260001901909316849004601f81018490048402820184019092528181529291830182828015610e005780601f10610dd557610100808354040283529160200191610e00565b60008060006114cd84612c57565b909250905060008260038111156114e057fe5b146112865760405162461bcd60e51b8152600401808060200182810382526037815260200180614be46037913960400191505060405180910390fd5b60035461010090046001600160a01b0316331461156a5760405162461bcd60e51b8152600401808060200182810382526024815260200180614b206024913960400191505060405180910390fd5b60095415801561157a5750600a54155b6115b55760405162461bcd60e51b8152600401808060200182810382526023815260200180614b446023913960400191505060405180910390fd5b6007849055836115f65760405162461bcd60e51b8152600401808060200182810382526030815260200180614b676030913960400191505060405180910390fd5b600061160187611138565b90508015611656576040805162461bcd60e51b815260206004820152601a60248201527f73657474696e6720636f6d7074726f6c6c6572206661696c6564000000000000604482015290519081900360640190fd5b61165e612d0b565b600955670de0b6b3a7640000600a5561167686612d0f565b905080156116b55760405162461bcd60e51b8152600401808060200182810382526022815260200180614b976022913960400191505060405180910390fd5b83516116c89060019060208701906149da565b5082516116dc9060029060208601906149da565b50506003805460ff90921660ff199283161790556000805490911660011790555050505050565b60008061170e612d0b565b6009549091508082141561172757600092505050610fdf565b60006117316129b5565b600b54600c54600a54600654604080516315f2405360e01b815260048101879052602481018690526044810185905290519596509394929391926000926001600160a01b03909216916315f24053916064808301926020929190829003018186803b15801561179f57600080fd5b505afa1580156117b3573d6000803e3d6000fd5b505050506040513d60208110156117c957600080fd5b5051905065048c27395000811115611828576040805162461bcd60e51b815260206004820152601c60248201527f626f72726f772072617465206973206162737572646c79206869676800000000604482015290519081900360640190fd5b6000806118358989612e84565b9092509050600082600381111561184857fe5b1461189a576040805162461bcd60e51b815260206004820152601f60248201527f636f756c64206e6f742063616c63756c61746520626c6f636b2064656c746100604482015290519081900360640190fd5b6118a26149c7565b6000806000806118c060405180602001604052808a81525087612ea7565b909750945060008760038111156118d357fe5b14611905576118f0600960068960038111156118eb57fe5b612f0f565b9e505050505050505050505050505050610fdf565b61190f858c612962565b9097509350600087600381111561192257fe5b1461193a576118f0600960018960038111156118eb57fe5b611944848c612f75565b9097509250600087600381111561195757fe5b1461196f576118f0600960048960038111156118eb57fe5b61198a6040518060200160405280600854815250858c612f9b565b9097509150600087600381111561199d57fe5b146119b5576118f0600960058960038111156118eb57fe5b6119c0858a8b612f9b565b909750905060008760038111156119d357fe5b146119eb576118f0600960038960038111156118eb57fe5b60098e9055600a819055600b839055600c829055604080518d8152602081018690528082018390526060810185905290517f4dec04e750ca11537cabcd8a9eab06494de08da3735bc8871cd41250e190bc049181900360800190a160009e50505050505050505050505050505090565b6000805460ff16611aa0576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155611ab633338686612652565b1490506000805460ff1916600117905592915050565b600a5481565b6000611adf833484612ff7565b509050611b1a81604051806040016040528060168152602001751b1a5c5d5a59185d19509bdc9c9bddc819985a5b195960521b815250610b7b565b505050565b6006546000906001600160a01b031663b8168816611b3b6129b5565b600b54600c546008546040518563ffffffff1660e01b81526004018085815260200184815260200183815260200182815260200194505050505060206040518083038186803b158015611b8d57600080fd5b505afa158015611ba1573d6000803e3d6000fd5b505050506040513d6020811015611bb757600080fd5b5051905090565b6000805460ff16611c03576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19169055611c1933858585613129565b90506000805460ff191660011790559392505050565b60035460009061010090046001600160a01b03163314611c555761115e600160456120dd565b600480546001600160a01b038481166001600160a01b0319831681179093556040805191909216808252602082019390935281517fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a9929181900390910190a16000611286565b6000805460ff16611d00576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155611d12611703565b14611d5d576040805162461bcd60e51b81526020600482015260166024820152751858d8dc9d59481a5b9d195c995cdd0819985a5b195960521b604482015290519081900360640190fd5b611d65610f7f565b90506000805460ff1916600117905590565b6001600160a01b0381166000908152600e6020526040812054819081908190818080611da289612c57565b935090506000816003811115611db457fe5b14611dd25760095b975060009650869550859450611e059350505050565b611dda6125a3565b925090506000816003811115611dec57fe5b14611df8576009611dbc565b5060009650919450925090505b9193509193565b6000610e6f8261338f565b6000610e6f8261340e565b6001600160a01b039182166000908152600f6020908152604080832093909416825291909152205490565b6000611e598234613488565b509050610d77816040518060400160405280601881526020017f7265706179426f72726f77426568616c66206661696c65640000000000000000815250610b7b565b6004546000906001600160a01b031633141580611eb6575033155b15611ece57611ec7600160006120dd565b9050610fdf565b60038054600480546001600160a01b03818116610100818102610100600160a81b0319871617968790556001600160a01b031990931690935560408051948390048216808652929095041660208401528351909391927ff9ffabca9c8276e99321725bcb43fb076a6c66a54b7f21c4e8146d8519b417dc92908290030190a1600454604080516001600160a01b038085168252909216602083015280517fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a99281900390910190a160009250505090565b600080611fa9611703565b90508015611fcf57611fc7816011811115611fc057fe5b60406120dd565b91505061111f565b61128683612d0f565b6006546001600160a01b031681565b60035461010090046001600160a01b031681565b6006546000906001600160a01b03166315f240536120176129b5565b600b54600c546040518463ffffffff1660e01b815260040180848152602001838152602001828152602001935050505060206040518083038186803b158015611b8d57600080fd5b6000805460ff166120a4576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556120b6611703565b905080156120d4576113598160118111156120cd57fe5b60466120dd565b61136a83613533565b60007f45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa083601181111561210c57fe5b83605581111561211857fe5b604080519283526020830191909152600082820152519081900360600190a182601181111561128657fe5b60055460408051634ef4c3e160e01b81523060048201526001600160a01b03858116602483015260448201859052915160009384938493911691634ef4c3e19160648082019260209290919082900301818787803b1580156121a457600080fd5b505af11580156121b8573d6000803e3d6000fd5b505050506040513d60208110156121ce57600080fd5b5051905080156121f2576121e56003601f83612f0f565b92506000915061259c9050565b6121fa612d0b565b6009541461220e576121e5600a60226120dd565b612216614a58565b61221e6125a3565b604083018190526020830182600381111561223557fe5b600381111561224057fe5b905250600090508160200151600381111561225757fe5b146122815761227360096021836020015160038111156118eb57fe5b93506000925061259c915050565b61228b86866135db565b60c08201819052604080516020810182529083015181526122ac9190613677565b60608301819052602083018260038111156122c357fe5b60038111156122ce57fe5b90525060009050816020015160038111156122e557fe5b14612337576040805162461bcd60e51b815260206004820181905260248201527f4d494e545f45584348414e47455f43414c43554c4154494f4e5f4641494c4544604482015290519081900360640190fd5b612347600d548260600151612f75565b608083018190526020830182600381111561235e57fe5b600381111561236957fe5b905250600090508160200151600381111561238057fe5b146123bc5760405162461bcd60e51b8152600401808060200182810382526028815260200180614d0e6028913960400191505060405180910390fd5b6001600160a01b0386166000908152600e602052604090205460608201516123e49190612f75565b60a08301819052602083018260038111156123fb57fe5b600381111561240657fe5b905250600090508160200151600381111561241d57fe5b146124595760405162461bcd60e51b815260040180806020018281038252602b815260200180614bb9602b913960400191505060405180910390fd5b6080810151600d5560a08101516001600160a01b0387166000818152600e60209081526040918290209390935560c084015160608086015183519485529484019190915282820193909352517f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f929181900390910190a1606081015160408051918252516001600160a01b038816913091600080516020614c558339815191529181900360200190a360055460c08201516060830151604080516341c728b960e01b81523060048201526001600160a01b038b81166024830152604482019490945260648101929092525191909216916341c728b991608480830192600092919082900301818387803b15801561256f57600080fd5b505af1158015612583573d6000803e3d6000fd5b5060009250612590915050565b8160c001519350935050505b9250929050565b600d546000908190806125be5750506007546000915061264e565b60006125c86129b5565b905060006125d46149c7565b60006125e584600b54600c5461368e565b9350905060008160038111156125f757fe5b1461260c5795506000945061264e9350505050565b61261683866136cc565b92509050600081600381111561262857fe5b1461263d5795506000945061264e9350505050565b505160009550935061264e92505050565b9091565b600554604080516317b9b84b60e31b81523060048201526001600160a01b03868116602483015285811660448301526064820185905291516000938493169163bdcdc25891608480830192602092919082900301818787803b1580156126b757600080fd5b505af11580156126cb573d6000803e3d6000fd5b505050506040513d60208110156126e157600080fd5b505190508015612700576126f86003604a83612f0f565b91505061295a565b836001600160a01b0316856001600160a01b03161415612726576126f86002604b6120dd565b60006001600160a01b038781169087161415612745575060001961276d565b506001600160a01b038086166000908152600f60209081526040808320938a16835292905220545b60008060008061277d8589612e84565b9094509250600084600381111561279057fe5b146127ae576127a16009604b6120dd565b965050505050505061295a565b6001600160a01b038a166000908152600e60205260409020546127d19089612e84565b909450915060008460038111156127e457fe5b146127f5576127a16009604c6120dd565b6001600160a01b0389166000908152600e60205260409020546128189089612f75565b9094509050600084600381111561282b57fe5b1461283c576127a16009604d6120dd565b6001600160a01b03808b166000908152600e6020526040808220859055918b168152208190556000198514612894576001600160a01b03808b166000908152600f60209081526040808320938f168352929052208390555b886001600160a01b03168a6001600160a01b0316600080516020614c558339815191528a6040518082815260200191505060405180910390a36005546040805163352b4a3f60e11b81523060048201526001600160a01b038d811660248301528c81166044830152606482018c905291519190921691636a56947e91608480830192600092919082900301818387803b15801561293057600080fd5b505af1158015612944573d6000803e3d6000fd5b5060009250612951915050565b96505050505050505b949350505050565b600080600061296f6149c7565b6129798686612ea7565b9092509050600082600381111561298c57fe5b1461299d575091506000905061259c565b60006129a88261377c565b9350935050509250929050565b60008060006129c44734612e84565b909250905060008260038111156129d757fe5b14610fdb576040805162461bcd60e51b815260206004820152601560248201527431b0b9b410383934b7b91036b0ba341032b93937b960591b604482015290519081900360640190fd5b60008054819060ff16612a68576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155612a7a611703565b90508015612a9857610b4a816011811115612a9157fe5b60366120dd565b610b6133338661378b565b600354600090819061010090046001600160a01b03163314612acb57611fc7600160316120dd565b612ad3612d0b565b60095414612ae757611fc7600a60336120dd565b82612af06129b5565b1015612b0257611fc7600e60326120dd565b600c54831115612b1857611fc7600260346120dd565b50600c5482810390811115612b5e5760405162461bcd60e51b8152600401808060200182810382526024815260200180614d6a6024913960400191505060405180910390fd5b600c819055600354612b7e9061010090046001600160a01b031684613b70565b600354604080516101009092046001600160a01b0316825260208201859052818101839052517f3bad0c59cf2f06e7314077049f48a93578cd16f5ef92329f1dab1420a99c177e916060908290030190a16000611286565b6000805460ff16612c1b576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155612c2d611703565b90508015612c4b57611359816011811115612c4457fe5b60276120dd565b61136a33600085613ba6565b6001600160a01b038116600090815260106020526040812080548291829182918291612c8e575060009450849350612d0692505050565b612c9e8160000154600a5461406d565b90945092506000846003811115612cb157fe5b14612cc6575091935060009250612d06915050565b612cd48382600101546140ac565b90945091506000846003811115612ce757fe5b14612cfc575091935060009250612d06915050565b5060009450925050505b915091565b4390565b600354600090819061010090046001600160a01b03163314612d3757611fc7600160426120dd565b612d3f612d0b565b60095414612d5357611fc7600a60416120dd565b600660009054906101000a90046001600160a01b03169050826001600160a01b0316632191f92a6040518163ffffffff1660e01b815260040160206040518083038186803b158015612da457600080fd5b505afa158015612db8573d6000803e3d6000fd5b505050506040513d6020811015612dce57600080fd5b5051612e21576040805162461bcd60e51b815260206004820152601c60248201527f6d61726b6572206d6574686f642072657475726e65642066616c736500000000604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b03858116918217909255604080519284168352602083019190915280517fedffc32e068c7c95dfd4bdfd5c4d939a084d6b11c4199eac8436ed234d72f9269281900390910190a16000611286565b600080838311612e9b57506000905081830361259c565b5060039050600061259c565b6000612eb16149c7565b600080612ec286600001518661406d565b90925090506000826003811115612ed557fe5b14612ef45750604080516020810190915260008152909250905061259c565b60408051602081019091529081526000969095509350505050565b60007f45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa0846011811115612f3e57fe5b846055811115612f4a57fe5b604080519283526020830191909152818101859052519081900360600190a183601181111561295a57fe5b600080838301848110612f8d5760009250905061259c565b50600291506000905061259c565b6000806000612fa86149c7565b612fb28787612ea7565b90925090506000826003811115612fc557fe5b14612fd65750915060009050612fef565b612fe8612fe28261377c565b86612f75565b9350935050505b935093915050565b60008054819060ff1661303e576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155613050611703565b9050801561307b5761306e81601181111561306757fe5b600f6120dd565b9250600091506131129050565b836001600160a01b031663a6afed956040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156130b657600080fd5b505af11580156130ca573d6000803e3d6000fd5b505050506040513d60208110156130e057600080fd5b5051905080156131005761306e8160118111156130f957fe5b60106120dd565b61310c338787876140d7565b92509250505b6000805460ff191660011790559094909350915050565b6005546040805163d02f735160e01b81523060048201526001600160a01b038781166024830152868116604483015285811660648301526084820185905291516000938493169163d02f73519160a480830192602092919082900301818787803b15801561319657600080fd5b505af11580156131aa573d6000803e3d6000fd5b505050506040513d60208110156131c057600080fd5b5051905080156131d7576126f86003601b83612f0f565b846001600160a01b0316846001600160a01b031614156131fd576126f86006601c6120dd565b6001600160a01b0384166000908152600e6020526040812054819081906132249087612e84565b9093509150600083600381111561323757fe5b1461325a5761324f6009601a8560038111156118eb57fe5b94505050505061295a565b6001600160a01b0388166000908152600e602052604090205461327d9087612f75565b9093509050600083600381111561329057fe5b146132a85761324f600960198560038111156118eb57fe5b6001600160a01b038088166000818152600e60209081526040808320879055938c168083529184902085905583518a815293519193600080516020614c55833981519152929081900390910190a360055460408051636d35bf9160e01b81523060048201526001600160a01b038c811660248301528b811660448301528a81166064830152608482018a905291519190921691636d35bf919160a480830192600092919082900301818387803b15801561336157600080fd5b505af1158015613375573d6000803e3d6000fd5b5060009250613382915050565b9998505050505050505050565b6000805460ff166133d4576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556133e6611703565b90508015613404576113598160118111156133fd57fe5b60086120dd565b61136a338461465a565b6000805460ff16613453576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155613465611703565b9050801561347c57611359816011811115612c4457fe5b61136a33846000613ba6565b60008054819060ff166134cf576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556134e1611703565b9050801561350c576134ff8160118111156134f857fe5b60356120dd565b92506000915061351d9050565b61351733868661378b565b92509250505b6000805460ff1916600117905590939092509050565b60035460009061010090046001600160a01b031633146135595761115e600160476120dd565b613561612d0b565b600954146135755761115e600a60486120dd565b670de0b6b3a76400008211156135915761115e600260496120dd565b6008805490839055604080518281526020810185905281517faaa68312e2ea9d50e16af5068410ab56e1a1fd06037b1a35664812c30f821460929181900390910190a16000611286565b6000336001600160a01b0384161461362c576040805162461bcd60e51b815260206004820152600f60248201526e0e6cadcc8cae440dad2e6dac2e8c6d608b1b604482015290519081900360640190fd5b813414613671576040805162461bcd60e51b815260206004820152600e60248201526d0ecc2d8eaca40dad2e6dac2e8c6d60931b604482015290519081900360640190fd5b50919050565b60008060006136846149c7565b6129798686614968565b60008060008061369e8787612f75565b909250905060008260038111156136b157fe5b146136c25750915060009050612fef565b612fe88186612e84565b60006136d66149c7565b6000806136eb86670de0b6b3a764000061406d565b909250905060008260038111156136fe57fe5b1461371d5750604080516020810190915260008152909250905061259c565b60008061372a83886140ac565b9092509050600082600381111561373d57fe5b1461375f5750604080516020810190915260008152909450925061259c915050565b604080516020810190915290815260009890975095505050505050565b51670de0b6b3a7640000900490565b60055460408051631200453160e11b81523060048201526001600160a01b0386811660248301528581166044830152606482018590529151600093849384939116916324008a629160848082019260209290919082900301818787803b1580156137f457600080fd5b505af1158015613808573d6000803e3d6000fd5b505050506040513d602081101561381e57600080fd5b505190508015613842576138356003603883612f0f565b925060009150612fef9050565b61384a612d0b565b6009541461385e57613835600a60396120dd565b613866614a96565b6001600160a01b038616600090815260106020526040902060010154606082015261389086612c57565b60808301819052602083018260038111156138a757fe5b60038111156138b257fe5b90525060009050816020015160038111156138c957fe5b146138f3576138e560096037836020015160038111156118eb57fe5b935060009250612fef915050565b60001985141561390c5760808101516040820152613914565b604081018590525b6139228782604001516135db565b60e08201819052608082015161393791612e84565b60a083018190526020830182600381111561394e57fe5b600381111561395957fe5b905250600090508160200151600381111561397057fe5b146139ac5760405162461bcd60e51b815260040180806020018281038252603a815260200180614c1b603a913960400191505060405180910390fd5b6139bc600b548260e00151612e84565b60c08301819052602083018260038111156139d357fe5b60038111156139de57fe5b90525060009050816020015160038111156139f557fe5b14613a315760405162461bcd60e51b8152600401808060200182810382526031815260200180614c756031913960400191505060405180910390fd5b60a080820180516001600160a01b03808a16600081815260106020908152604091829020948555600a5460019095019490945560c0870151600b81905560e088015195518251948f16855294840192909252828101949094526060820192909252608081019190915290517f1a2a22cb034d26d1854bdc6666a5b91fe25efbbb5dcad3b0355478d6f5c362a1929181900390910190a160055460e0820151606083015160408051631ededc9160e01b81523060048201526001600160a01b038c811660248301528b8116604483015260648201949094526084810192909252519190921691631ededc919160a480830192600092919082900301818387803b158015613b3c57600080fd5b505af1158015613b50573d6000803e3d6000fd5b5060009250613b5d915050565b8160e00151935093505050935093915050565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015611b1a573d6000803e3d6000fd5b6000821580613bb3575081155b613bee5760405162461bcd60e51b8152600401808060200182810382526034815260200180614d366034913960400191505060405180910390fd5b613bf6614a58565b613bfe6125a3565b6040830181905260208301826003811115613c1557fe5b6003811115613c2057fe5b9052506000905081602001516003811115613c3757fe5b14613c5b57613c536009602b836020015160038111156118eb57fe5b915050611286565b8315613cdc576060810184905260408051602081018252908201518152613c829085612962565b6080830181905260208301826003811115613c9957fe5b6003811115613ca457fe5b9052506000905081602001516003811115613cbb57fe5b14613cd757613c5360096029836020015160038111156118eb57fe5b613d55565b613cf88360405180602001604052808460400151815250613677565b6060830181905260208301826003811115613d0f57fe5b6003811115613d1a57fe5b9052506000905081602001516003811115613d3157fe5b14613d4d57613c536009602a836020015160038111156118eb57fe5b608081018390525b60055460608201516040805163eabe7d9160e01b81523060048201526001600160a01b03898116602483015260448201939093529051600093929092169163eabe7d919160648082019260209290919082900301818787803b158015613dba57600080fd5b505af1158015613dce573d6000803e3d6000fd5b505050506040513d6020811015613de457600080fd5b505190508015613e0457613dfb6003602883612f0f565b92505050611286565b613e0c612d0b565b60095414613e2057613dfb600a602c6120dd565b613e30600d548360600151612e84565b60a0840181905260208401826003811115613e4757fe5b6003811115613e5257fe5b9052506000905082602001516003811115613e6957fe5b14613e8557613dfb6009602e846020015160038111156118eb57fe5b6001600160a01b0386166000908152600e60205260409020546060830151613ead9190612e84565b60c0840181905260208401826003811115613ec457fe5b6003811115613ecf57fe5b9052506000905082602001516003811115613ee657fe5b14613f0257613dfb6009602d846020015160038111156118eb57fe5b8160800151613f0f6129b5565b1015613f2157613dfb600e602f6120dd565b613f2f868360800151613b70565b60a0820151600d5560c08201516001600160a01b0387166000818152600e6020908152604091829020939093556060850151815190815290513093600080516020614c55833981519152928290030190a36080820151606080840151604080516001600160a01b038b168152602081019490945283810191909152517fe5b754fb1abb7f01b499791d0b820ae3b6af3424ac1c59768edb53f4ec31a9299281900390910190a160055460808301516060840151604080516351dff98960e01b81523060048201526001600160a01b038b81166024830152604482019490945260648101929092525191909216916351dff98991608480830192600092919082900301818387803b15801561404257600080fd5b505af1158015614056573d6000803e3d6000fd5b5060009250614063915050565b9695505050505050565b600080836140805750600090508061259c565b8383028385828161408d57fe5b04146140a15750600291506000905061259c565b60009250905061259c565b600080826140c0575060019050600061259c565b60008385816140cb57fe5b04915091509250929050565b60055460408051632fe3f38f60e11b81523060048201526001600160a01b0384811660248301528781166044830152868116606483015260848201869052915160009384938493911691635fc7e71e9160a48082019260209290919082900301818787803b15801561414857600080fd5b505af115801561415c573d6000803e3d6000fd5b505050506040513d602081101561417257600080fd5b505190508015614196576141896003601283612f0f565b9250600091506146519050565b61419e612d0b565b600954146141b257614189600a60166120dd565b6141ba612d0b565b846001600160a01b0316636c540baf6040518163ffffffff1660e01b815260040160206040518083038186803b1580156141f357600080fd5b505afa158015614207573d6000803e3d6000fd5b505050506040513d602081101561421d57600080fd5b50511461423057614189600a60116120dd565b866001600160a01b0316866001600160a01b0316141561425657614189600660176120dd565b8461426757614189600760156120dd565b60001985141561427d57614189600760146120dd565b60008061428b89898961378b565b909250905081156142bb576142ac8260118111156142a557fe5b60186120dd565b94506000935061465192505050565b6005546040805163c488847b60e01b81523060048201526001600160a01b038981166024830152604482018590528251600094859492169263c488847b926064808301939192829003018186803b15801561431557600080fd5b505afa158015614329573d6000803e3d6000fd5b505050506040513d604081101561433f57600080fd5b5080516020909101519092509050811561438a5760405162461bcd60e51b8152600401808060200182810382526033815260200180614ca66033913960400191505060405180910390fd5b80886001600160a01b03166370a082318c6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b1580156143e157600080fd5b505afa1580156143f5573d6000803e3d6000fd5b505050506040513d602081101561440b57600080fd5b50511015614460576040805162461bcd60e51b815260206004820152601860248201527f4c49515549444154455f5345495a455f544f4f5f4d5543480000000000000000604482015290519081900360640190fd5b60006001600160a01b0389163014156144865761447f308d8d85613129565b9050614510565b6040805163b2a02ff160e01b81526001600160a01b038e811660048301528d81166024830152604482018590529151918b169163b2a02ff1916064808201926020929091908290030181600087803b1580156144e157600080fd5b505af11580156144f5573d6000803e3d6000fd5b505050506040513d602081101561450b57600080fd5b505190505b801561455a576040805162461bcd60e51b81526020600482015260146024820152731d1bdad95b881cd95a5e9d5c994819985a5b195960621b604482015290519081900360640190fd5b604080516001600160a01b03808f168252808e1660208301528183018790528b1660608201526080810184905290517f298637f684da70674f26509b10f07ec2fbc77a335ab1e7d6215a4b2484d8bb529181900360a00190a1600554604080516347ef3b3b60e01b81523060048201526001600160a01b038c811660248301528f811660448301528e811660648301526084820188905260a48201869052915191909216916347ef3b3b9160c480830192600092919082900301818387803b15801561462557600080fd5b505af1158015614639573d6000803e3d6000fd5b5060009250614646915050565b975092955050505050505b94509492505050565b6005546040805163368f515360e21b81523060048201526001600160a01b0385811660248301526044820185905291516000938493169163da3d454c91606480830192602092919082900301818787803b1580156146b757600080fd5b505af11580156146cb573d6000803e3d6000fd5b505050506040513d60208110156146e157600080fd5b505190508015614700576146f86003600e83612f0f565b915050610e6f565b614708612d0b565b6009541461471b576146f8600a806120dd565b826147246129b5565b1015614736576146f8600e60096120dd565b61473e614adc565b61474785612c57565b602083018190528282600381111561475b57fe5b600381111561476657fe5b905250600090508151600381111561477a57fe5b1461479f5761479660096007836000015160038111156118eb57fe5b92505050610e6f565b6147ad816020015185612f75565b60408301819052828260038111156147c157fe5b60038111156147cc57fe5b90525060009050815160038111156147e057fe5b146147fc576147966009600c836000015160038111156118eb57fe5b614808600b5485612f75565b606083018190528282600381111561481c57fe5b600381111561482757fe5b905250600090508151600381111561483b57fe5b14614857576147966009600b836000015160038111156118eb57fe5b6148618585613b70565b604080820180516001600160a01b03881660008181526010602090815290859020928355600a54600190930192909255606080860151600b81905593518551928352928201899052818501929092529081019190915290517f13ed6866d4e1ee6da46f845c46d7e54120883d75c5ea9a2dacc1c4ca8984ab809181900360800190a160055460408051635c77860560e01b81523060048201526001600160a01b0388811660248301526044820188905291519190921691635c77860591606480830192600092919082900301818387803b15801561493e57600080fd5b505af1158015614952573d6000803e3d6000fd5b506000925061495f915050565b95945050505050565b60006149726149c7565b600080614987670de0b6b3a76400008761406d565b9092509050600082600381111561499a57fe5b146149b95750604080516020810190915260008152909250905061259c565b6129a88186600001516136cc565b6040518060200160405280600081525090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10614a1b57805160ff1916838001178555614a48565b82800160010185558215614a48579182015b82811115614a48578251825591602001919060010190614a2d565b50614a54929150614b05565b5090565b6040805160e0810190915280600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6040805161010081019091528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b604080516080810190915280600081526020016000815260200160008152602001600081525090565b610fdf91905b80821115614a545760008155600101614b0b56fe6f6e6c792061646d696e206d617920696e697469616c697a6520746865206d61726b65746d61726b6574206d6179206f6e6c7920626520696e697469616c697a6564206f6e6365696e697469616c2065786368616e67652072617465206d7573742062652067726561746572207468616e207a65726f2e73657474696e6720696e7465726573742072617465206d6f64656c206661696c65644d494e545f4e45575f4143434f554e545f42414c414e43455f43414c43554c4154494f4e5f4641494c4544626f72726f7742616c616e636553746f7265643a20626f72726f7742616c616e636553746f726564496e7465726e616c206661696c656452455041595f424f52524f575f4e45575f4143434f554e545f424f52524f575f42414c414e43455f43414c43554c4154494f4e5f4641494c4544ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef52455041595f424f52524f575f4e45575f544f54414c5f42414c414e43455f43414c43554c4154494f4e5f4641494c45444c49515549444154455f434f4d5054524f4c4c45525f43414c43554c4154455f414d4f554e545f5345495a455f4641494c454465786368616e67655261746553746f7265643a2065786368616e67655261746553746f726564496e7465726e616c206661696c65644d494e545f4e45575f544f54414c5f535550504c595f43414c43554c4154494f4e5f4641494c45446f6e65206f662072656465656d546f6b656e73496e206f722072656465656d416d6f756e74496e206d757374206265207a65726f72656475636520726573657276657320756e657870656374656420756e646572666c6f77a265627a7a72315820df0284085f4d424eea660a511f5369545cf9b326126f19ac8881bf6fef4e0c6d64736f6c634300051100326f6e6c792061646d696e206d617920696e697469616c697a6520746865206d61726b65746d61726b6574206d6179206f6e6c7920626520696e697469616c697a6564206f6e6365696e697469616c2065786368616e67652072617465206d7573742062652067726561746572207468616e207a65726f2e73657474696e6720696e7465726573742072617465206d6f64656c206661696c6564000000000000000000000000fd36e2c2a6789db23113685031d7f1632915838400000000000000000000000049fade95f94e5ec7c1f4ae13a6d6f9ca18b2f430000000000000000000000000000000000000000000a56fa5b99019a5c800000000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000080000000000000000000000001ca3ac3686071be692be7f1fbecd668641476d7e000000000000000000000000000000000000000000000000000000000000000956656e757320424e420000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000476424e4200000000000000000000000000000000000000000000000000000000

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

000000000000000000000000fd36e2c2a6789db23113685031d7f1632915838400000000000000000000000049fade95f94e5ec7c1f4ae13a6d6f9ca18b2f430000000000000000000000000000000000000000000a56fa5b99019a5c800000000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000080000000000000000000000001ca3ac3686071be692be7f1fbecd668641476d7e000000000000000000000000000000000000000000000000000000000000000956656e757320424e420000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000476424e4200000000000000000000000000000000000000000000000000000000

-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 000000000000000000000000fd36e2c2a6789db23113685031d7f16329158384
Arg [1] : 00000000000000000000000049fade95f94e5ec7c1f4ae13a6d6f9ca18b2f430
Arg [2] : 000000000000000000000000000000000000000000a56fa5b99019a5c8000000
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [6] : 0000000000000000000000001ca3ac3686071be692be7f1fbecd668641476d7e
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [8] : 56656e757320424e420000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [10] : 76424e4200000000000000000000000000000000000000000000000000000000


Deployed ByteCode Sourcemap

141:6007:8:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4212:8;4225:23;4238:9;4225:12;:23::i;:::-;4211:37;;;4258:34;4273:3;4258:34;;;;;;;;;;;;;-1:-1:-1;;;4258:34:8;;;:14;:34::i;:::-;4172:127;141:6007;289:18:11;;8:9:-1;5:2;;;30:1;27;20:12;5:2;289:18:11;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;289:18:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6359:232:10;;8:9:-1;5:2;;;30:1;27;20:12;5:2;6359:232:10;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;6359:232:10;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;1461:131:8;;;:::i;:::-;;1541:33:11;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1541:33:11;;;:::i;:::-;;;;;;;;;;;;;;;;10505:221:10;;8:9:-1;5:2;;;30:1;27;20:12;5:2;10505:221:10;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;10505:221:10;-1:-1:-1;;;;;10505:221:10;;:::i;2161:23:11:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2161:23:11;;;:::i;13283:257:10:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;13283:257:10;;;:::i;5706:193::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5706:193:10;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;5706:193:10;;;;;;;;;;;;;;;;;:::i;985:35:11:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;985:35:11;;;:::i;:::-;;;;-1:-1:-1;;;;;985:35:11;;;;;;;;;;;;;;475:21;;8:9:-1;5:2;;;30:1;27;20:12;5:2;475:21:11;;;:::i;:::-;;;;;;;;;;;;;;;;;;;7595:349:10;;8:9:-1;5:2;;;30:1;27;20:12;5:2;7595:349:10;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;7595:349:10;-1:-1:-1;;;;;7595:349:10;;:::i;15117:86::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;15117:86:10;;;:::i;3155:36:11:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3155:36:11;;;:::i;52385:718:10:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;52385:718:10;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;52385:718:10;-1:-1:-1;;;;;52385:718:10;;:::i;1935:24:11:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1935:24:11;;;:::i;3002:152:8:-;;;:::i;1106:39:11:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1106:39:11;;;:::i;58212:563:10:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;58212:563:10;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;58212:563:10;;:::i;1659:30:11:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1659:30:11;;;:::i;7237:110:10:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;7237:110:10;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;7237:110:10;-1:-1:-1;;;;;7237:110:10;;:::i;10032:189::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;10032:189:10;;;:::i;2394:131:8:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2394:131:8;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2394:131:8;;:::i;2060:25:11:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2060:25:11;;;:::i;380:20::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;380:20:11;;;:::i;10928:283:10:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;10928:283:10;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;10928:283:10;-1:-1:-1;;;;;10928:283:10;;:::i;865:1498::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;865:1498:10;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;865:1498:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;865:1498:10;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;865:1498:10;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;865:1498:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;865:1498:10;;;;;;;;-1:-1:-1;865:1498:10;;-1:-1:-1;;21:11;5:28;;2:2;;;46:1;43;36:12;2:2;865:1498:10;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;865:1498:10;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;865:1498:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;865:1498:10;;-1:-1:-1;;;865:1498:10;;;;;-1:-1:-1;865:1498:10;;-1:-1:-1;865:1498:10:i;15444:3774::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;15444:3774:10;;;:::i;5225:183::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5225:183:10;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;5225:183:10;;;;;;;;:::i;1805:23:11:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1805:23:11;;;:::i;3877:233:8:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;3877:233:8;;;;;;;;;;:::i;9710:182:10:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;9710:182:10;;;:::i;47157:192::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;47157:192:10;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;47157:192:10;;;;;;;;;;;;;;;;;:::i;50543:631::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;50543:631:10;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;50543:631:10;-1:-1:-1;;;;;50543:631:10;;:::i;12845:195::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;12845:195:10;;;:::i;8282:685::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;8282:685:10;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;8282:685:10;-1:-1:-1;;;;;8282:685:10;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2786:111:8;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2786:111:8;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2786:111:8;;:::i;1935:::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1935:111:8;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1935:111:8;;:::i;6913:141:10:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;6913:141:10;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;6913:141:10;;;;;;;;;;:::i;3338:196:8:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;3338:196:8;-1:-1:-1;;;;;3338:196:8;;:::i;51445:722:10:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;51445:722:10;;;:::i;61111:625::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;61111:625:10;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;61111:625:10;-1:-1:-1;;;;;61111:625:10;;:::i;1242:42:11:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1242:42:11;;;:::i;879:28::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;879:28:11;;;:::i;9381:159:10:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;9381:159:10;;;:::i;53399:599::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;53399:599:10;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;53399:599:10;;:::i;19608:539::-;19678:4;64565:11;;19678:4;;64565:11;;64557:34;;;;;-1:-1:-1;;;64557:34:10;;;;;;;;;;;;-1:-1:-1;;;64557:34:10;;;;;;;;;;;;;;;64615:5;64601:19;;-1:-1:-1;;64601:19:10;;;19713:16;:14;:16::i;:::-;19700:29;-1:-1:-1;19743:29:10;;19739:249;;19914:59;19925:5;19919:12;;;;;;;;19933:39;19914:4;:59::i;:::-;19906:71;-1:-1:-1;19975:1:10;;-1:-1:-1;19906:71:10;;-1:-1:-1;19906:71:10;19739:249;20107:33;20117:10;20129;20107:9;:33::i;:::-;20100:40;;;;;64630:1;64641:11;:18;;-1:-1:-1;;64641:18:10;64655:4;64641:18;;;19608:539;;;;-1:-1:-1;19608:539:10:o;5453:693:8:-;5542:31;5538:68;;5589:7;;5538:68;5616:24;5659:7;5653:21;5677:1;5653:25;5643:36;;;;;;;;;;;;;;;;;;;;;;;;;21:6:-1;;104:10;5643:36:8;87:34:-1;135:17;;-1:-1;5643:36:8;-1:-1:-1;5616:63:8;-1:-1:-1;5689:6:8;5706:103;5728:7;5722:21;5718:1;:25;5706:103;;;5787:7;5796:1;5781:17;;;;;;;;;;;;;;;;5764:11;5776:1;5764:14;;;;;;;;;;;:34;-1:-1:-1;;;;;5764:34:8;;;;;;;;-1:-1:-1;5745:3:8;;5706:103;;;5819:16;;-1:-1:-1;;;5838:15:8;5819:11;;5831:1;;5819:16;;;;;;;;;:34;-1:-1:-1;;;;;5819:34:8;;;;;;;;;5893:2;5882:15;;5863:11;5875:1;5877;5875:3;5863:16;;;;;;;;;;;:34;-1:-1:-1;;;;;5863:34:8;;;;;;;;-1:-1:-1;5954:2:8;5944:7;:12;5937:2;:21;5926:34;;5907:11;5919:1;5921;5919:3;5907:16;;;;;;;;;;;:53;-1:-1:-1;;;;;5907:53:8;;;;;;;;-1:-1:-1;6017:2:8;6007:7;:12;6000:2;:21;5989:34;;5970:11;5982:1;5984;5982:3;5970:16;;;;;;;;;;;:53;-1:-1:-1;;;;;5970:53:8;;;;;;;;;6063:2;6052:15;;6033:11;6045:1;6047;6045:3;6033:16;;;;;;;;;;;:34;-1:-1:-1;;;;;6033:34:8;;;;;;;;-1:-1:-1;6126:11:8;6086:31;;6078:61;;;;-1:-1:-1;;;6078:61:8;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;6078:61:8;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5453:693;;;;;:::o;289:18:11:-;;;;;;;;;;;;;;;-1:-1:-1;;289:18:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;6359:232:10:-;6457:10;6427:4;6477:23;;;:18;:23;;;;;;;;-1:-1:-1;;;;;6477:32:10;;;;;;;;;;;:41;;;6533:30;;;;;;;6427:4;;6457:10;6477:32;;6457:10;;6533:30;;;;;;;;;;;6580:4;6573:11;;;6359:232;;;;;:::o;1461:131:8:-;1505:8;1518:23;1531:9;1518:12;:23::i;:::-;1504:37;;;1551:34;1566:3;1551:34;;;;;;;;;;;;;-1:-1:-1;;;1551:34:8;;;:14;:34::i;:::-;1461:131;:::o;1541:33:11:-;;;;:::o;10505:221:10:-;10583:4;64565:11;;;;64557:34;;;;;-1:-1:-1;;;64557:34:10;;;;;;;;;;;;-1:-1:-1;;;64557:34:10;;;;;;;;;;;;;;;64615:5;64601:19;;-1:-1:-1;;64601:19:10;;;10607:16;:14;:16::i;:::-;:40;10599:75;;;;;-1:-1:-1;;;10599:75:10;;;;;;;;;;;;-1:-1:-1;;;10599:75:10;;;;;;;;;;;;;;;10691:28;10711:7;10691:19;:28::i;:::-;10684:35;;64630:1;64641:11;:18;;-1:-1:-1;;64641:18:10;64655:4;64641:18;;;10505:221;;-1:-1:-1;10505:221:10:o;2161:23:11:-;;;;:::o;13283:257:10:-;13334:4;13351:13;13366:11;13381:28;:26;:28::i;:::-;13350:59;;-1:-1:-1;13350:59:10;-1:-1:-1;13434:18:10;13427:3;:25;;;;;;;;;13419:91;;;;-1:-1:-1;;;13419:91:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13527:6;-1:-1:-1;;13283:257:10;;:::o;5706:193::-;5801:4;64565:11;;;;64557:34;;;;;-1:-1:-1;;;64557:34:10;;;;;;;;;;;;-1:-1:-1;;;64557:34:10;;;;;;;;;;;;;;;64615:5;64601:19;;-1:-1:-1;;64601:19:10;;;5824:44;5839:10;5851:3;5856;5861:6;5824:14;:44::i;:::-;:68;5817:75;;64641:11;:18;;-1:-1:-1;;64641:18:10;64655:4;64641:18;;;5706:193;;-1:-1:-1;;;5706:193:10:o;985:35:11:-;;;-1:-1:-1;;;;;985:35:11;;:::o;475:21::-;;;;;;:::o;7595:349:10:-;7657:4;7673:23;;:::i;:::-;7699:38;;;;;;;;7714:21;:19;:21::i;:::-;7699:38;;-1:-1:-1;;;;;7812:20:10;;7748:14;7812:20;;;:13;:20;;;;;;7673:64;;-1:-1:-1;7748:14:10;;;7780:53;;7673:64;;7780:17;:53::i;:::-;7747:86;;-1:-1:-1;7747:86:10;-1:-1:-1;7859:18:10;7851:4;:26;;;;;;;;;7843:70;;;;;-1:-1:-1;;;7843:70:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;7930:7;-1:-1:-1;;;7595:349:10;;;;:::o;15117:86::-;15159:4;15182:14;:12;:14::i;:::-;15175:21;;15117:86;:::o;3155:36:11:-;3187:4;3155:36;:::o;52385:718:10:-;52530:5;;52463:4;;52530:5;;;-1:-1:-1;;;;;52530:5:10;52516:10;:19;52512:122;;52558:65;52563:18;52583:39;52558:4;:65::i;:::-;52551:72;;;;52512:122;52682:11;;52777:30;;;-1:-1:-1;;;52777:30:10;;;;-1:-1:-1;;;;;52682:11:10;;;;52777:28;;;;;:30;;;;;;;;;;;;;;:28;:30;;;5:2:-1;;;;30:1;27;20:12;5:2;52777:30:10;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;52777:30:10;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;52777:30:10;52769:71;;;;;-1:-1:-1;;;52769:71:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;52905:11;:28;;-1:-1:-1;;;;;;52905:28:10;-1:-1:-1;;;;;52905:28:10;;;;;;;;;53012:46;;;;;;;;;;;;;;;;;;;;;;;;;;;53081:14;53076:20;53069:27;52385:718;-1:-1:-1;;;52385:718:10:o;1935:24:11:-;;;;:::o;3002:152:8:-;3053:8;3066:30;3086:9;3066:19;:30::i;:::-;3052:44;;;3106:41;3121:3;3106:41;;;;;;;;;;;;;-1:-1:-1;;;3106:41:8;;;:14;:41::i;1106:39:11:-;;;-1:-1:-1;;;;;1106:39:11;;:::o;58212:563:10:-;58287:4;64565:11;;;;64557:34;;;;;-1:-1:-1;;;64557:34:10;;;;;;;;;;;;-1:-1:-1;;;64557:34:10;;;;;;;;;;;;;;;64615:5;64601:19;;-1:-1:-1;;64601:19:10;;;58316:16;:14;:16::i;:::-;58303:29;-1:-1:-1;58346:29:10;;58342:274;;58535:70;58546:5;58540:12;;;;;;;;58554:50;58535:4;:70::i;:::-;58528:77;;;;;58342:274;58734:34;58755:12;58734:20;:34::i;:::-;58727:41;;;64641:11;:18;;-1:-1:-1;;64641:18:10;64655:4;64641:18;;;58212:563;;-1:-1:-1;58212:563:10:o;1659:30:11:-;;;;:::o;7237:110:10:-;-1:-1:-1;;;;;7320:20:10;7294:7;7320:20;;;:13;:20;;;;;;;7237:110::o;10032:189::-;10094:4;64565:11;;;;64557:34;;;;;-1:-1:-1;;;64557:34:10;;;;;;;;;;;;-1:-1:-1;;;64557:34:10;;;;;;;;;;;;;;;64615:5;64601:19;;-1:-1:-1;;64601:19:10;;;10118:16;:14;:16::i;:::-;:40;10110:75;;;;;-1:-1:-1;;;10110:75:10;;;;;;;;;;;;-1:-1:-1;;;10110:75:10;;;;;;;;;;;;;;;-1:-1:-1;10202:12:10;;64641:11;:18;;-1:-1:-1;;64641:18:10;64655:4;64641:18;;;10032:189;:::o;2394:131:8:-;2457:4;2480:38;2505:12;2480:24;:38::i;2060:25:11:-;;;;:::o;380:20::-;;;;;;;;;;;;;;-1:-1:-1;;380:20:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10928:283:10;10995:4;11012:13;11027:11;11042:36;11070:7;11042:27;:36::i;:::-;11011:67;;-1:-1:-1;11011:67:10;-1:-1:-1;11103:18:10;11096:3;:25;;;;;;;;;11088:93;;;;-1:-1:-1;;;11088:93:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;865:1498;1213:5;;;;;-1:-1:-1;;;;;1213:5:10;1199:10;:19;1191:68;;;;-1:-1:-1;;;1191:68:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1277:18;;:23;:43;;;;-1:-1:-1;1304:11:10;;:16;1277:43;1269:91;;;;-1:-1:-1;;;1269:91:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1408:27;:58;;;1484:31;1476:92;;;;-1:-1:-1;;;1476:92:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1610:8;1621:29;1637:12;1621:15;:29::i;:::-;1610:40;-1:-1:-1;1668:27:10;;1660:66;;;;;-1:-1:-1;;;1660:66:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;1863:16;:14;:16::i;:::-;1842:18;:37;444:4:5;1889:11:10;:25;2011:46;2038:18;2011:26;:46::i;:::-;2005:52;-1:-1:-1;2075:27:10;;2067:74;;;;-1:-1:-1;;;2067:74:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2152:12;;;;:4;;:12;;;;;:::i;:::-;-1:-1:-1;2174:16:10;;;;:6;;:16;;;;;:::i;:::-;-1:-1:-1;;2200:8:10;:20;;;;;;-1:-1:-1;;2200:20:10;;;;;;:8;2338:18;;;;;2200:20;2338:18;;;-1:-1:-1;;;;;865:1498:10:o;15444:3774::-;15486:4;15550:23;15576:16;:14;:16::i;:::-;15633:18;;15550:42;;-1:-1:-1;15718:45:10;;;15714:103;;;15791:14;15779:27;;;;;;15714:103;15881:14;15898;:12;:14::i;:::-;15942:12;;15985:13;;16032:11;;16137:17;;:71;;;-1:-1:-1;;;16137:71:10;;;;;;;;;;;;;;;;;;;;;;15881:31;;-1:-1:-1;15942:12:10;;15985:13;;16032:11;;15922:17;;-1:-1:-1;;;;;16137:17:10;;;;:31;;:71;;;;;;;;;;;;;;:17;:71;;;5:2:-1;;;;30:1;27;20:12;5:2;16137:71:10;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;16137:71:10;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;16137:71:10;;-1:-1:-1;644:9:11;16226:43:10;;;16218:84;;;;;-1:-1:-1;;;16218:84:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;16390:17;16409:15;16428:52;16436:18;16456:23;16428:7;:52::i;:::-;16389:91;;-1:-1:-1;16389:91:10;-1:-1:-1;16509:18:10;16498:7;:29;;;;;;;;;16490:73;;;;;-1:-1:-1;;;16490:73:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;17044:31;;:::i;:::-;17085:24;17119:20;17149:21;17180:19;17244:58;17254:35;;;;;;;;17269:18;17254:35;;;17291:10;17244:9;:58::i;:::-;17210:92;;-1:-1:-1;17210:92:10;-1:-1:-1;17327:18:10;17316:7;:29;;;;;;;;;17312:181;;17368:114;17379:16;17397:69;17473:7;17468:13;;;;;;;;17368:10;:114::i;:::-;17361:121;;;;;;;;;;;;;;;;;;17312:181;17536:53;17554:20;17576:12;17536:17;:53::i;:::-;17503:86;;-1:-1:-1;17503:86:10;-1:-1:-1;17614:18:10;17603:7;:29;;;;;;;;;17599:179;;17655:112;17666:16;17684:67;17758:7;17753:13;;;;;;;17599:179;17817:42;17825:19;17846:12;17817:7;:42::i;:::-;17788:71;;-1:-1:-1;17788:71:10;-1:-1:-1;17884:18:10;17873:7;:29;;;;;;;;;17869:176;;17925:109;17936:16;17954:64;18025:7;18020:13;;;;;;;17869:176;18085:100;18110:38;;;;;;;;18125:21;;18110:38;;;18150:19;18171:13;18085:24;:100::i;:::-;18055:130;;-1:-1:-1;18055:130:10;-1:-1:-1;18210:18:10;18199:7;:29;;;;;;;;;18195:177;;18251:110;18262:16;18280:65;18352:7;18347:13;;;;;;;18195:177;18410:82;18435:20;18457:16;18475;18410:24;:82::i;:::-;18382:110;;-1:-1:-1;18382:110:10;-1:-1:-1;18517:18:10;18506:7;:29;;;;;;;;;18502:175;;18558:108;18569:16;18587:63;18657:7;18652:13;;;;;;;18502:175;18873:18;:39;;;18922:11;:28;;;18960:12;:30;;;19000:13;:32;;;19094:79;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19196:14;19184:27;;;;;;;;;;;;;;;;15444:3774;:::o;5225:183::-;5303:4;64565:11;;;;64557:34;;;;;-1:-1:-1;;;64557:34:10;;;;;;;;;;;;-1:-1:-1;;;64557:34:10;;;;;;;;;;;;;;;64615:5;64601:19;;-1:-1:-1;;64601:19:10;;;5326:51;5341:10;5353;5365:3;5370:6;5326:14;:51::i;:::-;:75;5319:82;;64641:11;:18;;-1:-1:-1;;64641:18:10;64655:4;64641:18;;;5225:183;;-1:-1:-1;;5225:183:10:o;1805:23:11:-;;;;:::o;3877:233:8:-;3973:8;3986:62;4010:8;4020:9;4031:16;3986:23;:62::i;:::-;3972:76;;;4058:45;4073:3;4058:45;;;;;;;;;;;;;-1:-1:-1;;;4058:45:8;;;:14;:45::i;:::-;3877:233;;;:::o;9710:182:10:-;9786:17;;9763:4;;-1:-1:-1;;;;;9786:17:10;:31;9818:14;:12;:14::i;:::-;9834:12;;9848:13;;9863:21;;9786:99;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;9786:99:10;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;9786:99:10;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;9786:99:10;;-1:-1:-1;9710:182:10;:::o;47157:192::-;47259:4;64565:11;;;;64557:34;;;;;-1:-1:-1;;;64557:34:10;;;;;;;;;;;;-1:-1:-1;;;64557:34:10;;;;;;;;;;;;;;;64615:5;64601:19;;-1:-1:-1;;64601:19:10;;;47282:60;47296:10;47308;47320:8;47330:11;47282:13;:60::i;:::-;47275:67;;64641:11;:18;;-1:-1:-1;;64641:18:10;64655:4;64641:18;;;47157:192;;-1:-1:-1;;;47157:192:10:o;50543:631::-;50686:5;;50620:4;;50686:5;;;-1:-1:-1;;;;;50686:5:10;50672:10;:19;50668:124;;50714:67;50719:18;50739:41;50714:4;:67::i;50668:124::-;50888:12;;;-1:-1:-1;;;;;50968:30:10;;;-1:-1:-1;;;;;;50968:30:10;;;;;;;51080:49;;;50888:12;;;;51080:49;;;;;;;;;;;;;;;;;;;;;;;51152:14;51147:20;;12845:195;12905:4;64565:11;;;;64557:34;;;;;-1:-1:-1;;;64557:34:10;;;;;;;;;;;;-1:-1:-1;;;64557:34:10;;;;;;;;;;;;;;;64615:5;64601:19;;-1:-1:-1;;64601:19:10;;;12929:16;:14;:16::i;:::-;:40;12921:75;;;;;-1:-1:-1;;;12921:75:10;;;;;;;;;;;;-1:-1:-1;;;12921:75:10;;;;;;;;;;;;;;;13013:20;:18;:20::i;:::-;13006:27;;64641:11;:18;;-1:-1:-1;;64641:18:10;64655:4;64641:18;;;12845:195;:::o;8282:685::-;-1:-1:-1;;;;;8405:22:10;;8350:4;8405:22;;;:13;:22;;;;;;8350:4;;;;;;;;;8550:36;8419:7;8550:27;:36::i;:::-;8526:60;-1:-1:-1;8526:60:10;-1:-1:-1;8608:18:10;8600:4;:26;;;;;;;;;8596:97;;8655:16;8650:22;8642:40;-1:-1:-1;8674:1:10;;-1:-1:-1;8674:1:10;;-1:-1:-1;8674:1:10;;-1:-1:-1;8642:40:10;;-1:-1:-1;;;;8642:40:10;8596:97;8734:28;:26;:28::i;:::-;8703:59;-1:-1:-1;8703:59:10;-1:-1:-1;8784:18:10;8776:4;:26;;;;;;;;;8772:97;;8831:16;8826:22;;8772:97;-1:-1:-1;8892:14:10;;-1:-1:-1;8909:13:10;;-1:-1:-1;8924:13:10;-1:-1:-1;8924:13:10;-1:-1:-1;8282:685:10;;;;;;:::o;2786:111:8:-;2839:4;2862:28;2877:12;2862:14;:28::i;1935:111::-;1988:4;2011:28;2026:12;2011:14;:28::i;6913:141:10:-;-1:-1:-1;;;;;7013:25:10;;;6987:7;7013:25;;;:18;:25;;;;;;;;:34;;;;;;;;;;;;;6913:141::o;3338:196:8:-;3411:8;3424:46;3450:8;3460:9;3424:25;:46::i;:::-;3410:60;;;3480:47;3495:3;3480:47;;;;;;;;;;;;;;;;;:14;:47::i;51445:722:10:-;51593:12;;51487:4;;-1:-1:-1;;;;;51593:12:10;51579:10;:26;;;:54;;-1:-1:-1;51609:10:10;:24;51579:54;51575:162;;;51656:70;51661:18;51681:44;51656:4;:70::i;:::-;51649:77;;;;51575:162;51818:5;;;51859:12;;;-1:-1:-1;;;;;51859:12:10;;;51818:5;51929:20;;;-1:-1:-1;;;;;;51929:20:10;;;;;;;-1:-1:-1;;;;;;51995:25:10;;;;;;52036;;;51818:5;;;;;;52036:25;;;52055:5;;;;;52036:25;;;;;;51818:5;;51859:12;;52036:25;;;;;;;;;52109:12;;52076:46;;;-1:-1:-1;;;;;52076:46:10;;;;;52109:12;;;52076:46;;;;;;;;;;;;;;;;52145:14;52133:27;;;;51445:722;:::o;61111:625::-;61198:4;61214:10;61227:16;:14;:16::i;:::-;61214:29;-1:-1:-1;61257:29:10;;61253:295;;61459:78;61470:5;61464:12;;;;;;;;61478:58;61459:4;:78::i;:::-;61452:85;;;;;61253:295;61681:48;61708:20;61681:26;:48::i;1242:42:11:-;;;-1:-1:-1;;;;;1242:42:11;;:::o;879:28::-;;;;;;-1:-1:-1;;;;;879:28:11;;:::o;9381:159:10:-;9457:17;;9434:4;;-1:-1:-1;;;;;9457:17:10;:31;9489:14;:12;:14::i;:::-;9505:12;;9519:13;;9457:76;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;53399:599:10;53488:4;64565:11;;;;64557:34;;;;;-1:-1:-1;;;64557:34:10;;;;;;;;;;;;-1:-1:-1;;;64557:34:10;;;;;;;;;;;;;;;64615:5;64601:19;;-1:-1:-1;;64601:19:10;;;53517:16;:14;:16::i;:::-;53504:29;-1:-1:-1;53547:29:10;;53543:283;;53742:73;53753:5;53747:12;;;;;;;;53761:53;53742:4;:73::i;53543:283::-;53943:48;53966:24;53943:22;:48::i;7728:149:4:-;7789:4;7810:33;7823:3;7818:9;;;;;;;;7834:4;7829:10;;;;;;;;7810:33;;;;;;;;;;;;;7841:1;7810:33;;;;;;;;;;;;;7866:3;7861:9;;;;;;;20838:3112:10;20984:11;;:58;;;-1:-1:-1;;;20984:58:10;;21016:4;20984:58;;;;-1:-1:-1;;;;;20984:58:10;;;;;;;;;;;;;;;20908:4;;;;;;20984:11;;;:23;;:58;;;;;;;;;;;;;;;20908:4;20984:11;:58;;;5:2:-1;;;;30:1;27;20:12;5:2;20984:58:10;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;20984:58:10;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;20984:58:10;;-1:-1:-1;21056:12:10;;21052:143;;21092:88;21103:27;21132:38;21172:7;21092:10;:88::i;:::-;21084:100;-1:-1:-1;21182:1:10;;-1:-1:-1;21084:100:10;;-1:-1:-1;21084:100:10;21052:143;21302:16;:14;:16::i;:::-;21280:18;;:38;21276:143;;21342:62;21347:22;21371:32;21342:4;:62::i;21276:143::-;21429:25;;:::i;:::-;21509:28;:26;:28::i;:::-;21480:25;;;21465:72;;;21466:12;;;21465:72;;;;;;;;;;;;;;;;;;;-1:-1:-1;21567:18:10;;-1:-1:-1;21551:4:10;:12;;;:34;;;;;;;;;21547:169;;21609:92;21620:16;21638:42;21687:4;:12;;;21682:18;;;;;;;21609:92;21601:104;-1:-1:-1;21703:1:10;;-1:-1:-1;21601:104:10;;-1:-1:-1;;21601:104:10;21547:169;22334:32;22347:6;22355:10;22334:12;:32::i;:::-;22310:21;;;:56;;;22632:42;;;;;;;;22647:25;;;;22632:42;;22586:89;;22310:56;22586:22;:89::i;:::-;22567:15;;;22552:123;;;22553:12;;;22552:123;;;;;;;;;;;;;;;;;;;-1:-1:-1;22709:18:10;;-1:-1:-1;22693:4:10;:12;;;:34;;;;;;;;;22685:79;;;;;-1:-1:-1;;;22685:79:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23061:37;23069:11;;23082:4;:15;;;23061:7;:37::i;:::-;23038:19;;;23023:75;;;23024:12;;;23023:75;;;;;;;;;;;;;;;;;;;-1:-1:-1;23132:18:10;;-1:-1:-1;23116:4:10;:12;;;:34;;;;;;;;;23108:87;;;;-1:-1:-1;;;23108:87:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;23254:21:10;;;;;;:13;:21;;;;;;23277:15;;;;23246:47;;23254:21;23246:7;:47::i;:::-;23221:21;;;23206:87;;;23207:12;;;23206:87;;;;;;;;;;;;;;;;;;;-1:-1:-1;23327:18:10;;-1:-1:-1;23311:4:10;:12;;;:34;;;;;;;;;23303:90;;;;-1:-1:-1;;;23303:90:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23483:19;;;;23469:11;:33;23536:21;;;;-1:-1:-1;;;;;23512:21:10;;;;;;:13;:21;;;;;;;;;:45;;;;23643:21;;;;23666:15;;;;;23630:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23729:15;;;;23697:48;;;;;;;-1:-1:-1;;;;;23697:48:10;;;23714:4;;-1:-1:-1;;;;;;;;;;;23697:48:10;;;;;;;;23795:11;;23841:21;;;;23864:15;;;;23795:85;;;-1:-1:-1;;;23795:85:10;;23826:4;23795:85;;;;-1:-1:-1;;;;;23795:85:10;;;;;;;;;;;;;;;;;;;;;;:11;;;;;:22;;:85;;;;;:11;;:85;;;;;;;:11;;:85;;;5:2:-1;;;;30:1;27;20:12;5:2;23795:85:10;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;23904:14:10;;-1:-1:-1;23899:20:10;;-1:-1:-1;;23899:20:10;;23921:4;:21;;;23891:52;;;;;;20838:3112;;;;;;:::o;13797:1156::-;13905:11;;13858:9;;;;13930:17;13926:1021;;-1:-1:-1;;14119:27:10;;14099:18;;-1:-1:-1;14091:56:10;;13926:1021;14323:14;14340;:12;:14::i;:::-;14323:31;;14368:33;14415:23;;:::i;:::-;14452:17;14526:54;14541:9;14552:12;;14566:13;;14526:14;:54::i;:::-;14484:96;-1:-1:-1;14484:96:10;-1:-1:-1;14609:18:10;14598:7;:29;;;;;;;;;14594:87;;14655:7;-1:-1:-1;14664:1:10;;-1:-1:-1;14647:19:10;;-1:-1:-1;;;;14647:19:10;14594:87;14721:50;14728:28;14758:12;14721:6;:50::i;:::-;14695:76;-1:-1:-1;14695:76:10;-1:-1:-1;14800:18:10;14789:7;:29;;;;;;;;;14785:87;;14846:7;-1:-1:-1;14855:1:10;;-1:-1:-1;14838:19:10;;-1:-1:-1;;;;14838:19:10;14785:87;-1:-1:-1;14914:21:10;14894:18;;-1:-1:-1;14914:21:10;-1:-1:-1;14886:50:10;;-1:-1:-1;;;14886:50:10;13797:1156;;;:::o;2815:2157::-;2987:11;;:60;;;-1:-1:-1;;;2987:60:10;;3023:4;2987:60;;;;-1:-1:-1;;;;;2987:60:10;;;;;;;;;;;;;;;;;;;;;;2913:4;;;;2987:11;;:27;;:60;;;;;;;;;;;;;;2913:4;2987:11;:60;;;5:2:-1;;;;30:1;27;20:12;5:2;2987:60:10;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2987:60:10;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2987:60:10;;-1:-1:-1;3061:12:10;;3057:142;;3096:92;3107:27;3136:42;3180:7;3096:10;:92::i;:::-;3089:99;;;;;3057:142;3262:3;-1:-1:-1;;;;;3255:10:10;:3;-1:-1:-1;;;;;3255:10:10;;3251:103;;;3288:55;3293:15;3310:32;3288:4;:55::i;3251:103::-;3428:22;-1:-1:-1;;;;;3468:14:10;;;;;;;3464:156;;;-1:-1:-1;;;3464:156:10;;;-1:-1:-1;;;;;;3577:23:10;;;;;;;:18;:23;;;;;;;;:32;;;;;;;;;;3464:156;3695:17;3722;3749;3776;3830:34;3838:17;3857:6;3830:7;:34::i;:::-;3804:60;;-1:-1:-1;3804:60:10;-1:-1:-1;3889:18:10;3878:7;:29;;;;;;;;;3874:123;;3930:56;3935:16;3953:32;3930:4;:56::i;:::-;3923:63;;;;;;;;;;3874:123;-1:-1:-1;;;;;4041:18:10;;;;;;:13;:18;;;;;;4033:35;;4061:6;4033:7;:35::i;:::-;4007:61;;-1:-1:-1;4007:61:10;-1:-1:-1;4093:18:10;4082:7;:29;;;;;;;;;4078:122;;4134:55;4139:16;4157:31;4134:4;:55::i;4078:122::-;-1:-1:-1;;;;;4244:18:10;;;;;;:13;:18;;;;;;4236:35;;4264:6;4236:7;:35::i;:::-;4210:61;;-1:-1:-1;4210:61:10;-1:-1:-1;4296:18:10;4285:7;:29;;;;;;;;;4281:120;;4337:53;4342:16;4360:29;4337:4;:53::i;4281:120::-;-1:-1:-1;;;;;4528:18:10;;;;;;;:13;:18;;;;;;:33;;;4571:18;;;;;;:33;;;-1:-1:-1;;4674:29:10;;4670:107;;-1:-1:-1;;;;;4719:23:10;;;;;;;:18;:23;;;;;;;;:32;;;;;;;;;:47;;;4670:107;4845:3;-1:-1:-1;;;;;4831:26:10;4840:3;-1:-1:-1;;;;;4831:26:10;-1:-1:-1;;;;;;;;;;;4850:6:10;4831:26;;;;;;;;;;;;;;;;;;4868:11;;:59;;;-1:-1:-1;;;4868:59:10;;4903:4;4868:59;;;;-1:-1:-1;;;;;4868:59:10;;;;;;;;;;;;;;;;;;;;;;:11;;;;;:26;;:59;;;;;:11;;:59;;;;;;;:11;;:59;;;5:2:-1;;;;30:1;27;20:12;5:2;4868:59:10;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;4950:14:10;;-1:-1:-1;4945:20:10;;-1:-1:-1;;4945:20:10;;4938:27;;;;;;;;2815:2157;;;;;;;:::o;2533:306:5:-;2610:9;2621:4;2638:13;2653:18;;:::i;:::-;2675:20;2685:1;2688:6;2675:9;:20::i;:::-;2637:58;;-1:-1:-1;2637:58:5;-1:-1:-1;2716:18:5;2709:3;:25;;;;;;;;;2705:71;;-1:-1:-1;2758:3:5;-1:-1:-1;2763:1:5;;-1:-1:-1;2750:15:5;;2705:71;2794:18;2814:17;2823:7;2814:8;:17::i;:::-;2786:46;;;;;;2533:306;;;;;:::o;4554:252:8:-;4601:4;4618:13;4633:20;4657:41;4665:21;4688:9;4657:7;:41::i;:::-;4617:81;;-1:-1:-1;4617:81:8;-1:-1:-1;4723:18:8;4716:3;:25;;;;;;;;;4708:59;;;;;-1:-1:-1;;;4708:59:8;;;;;;;;;;;;-1:-1:-1;;;4708:59:8;;;;;;;;;;;;;;35493:564:10;35571:4;64565:11;;35571:4;;64565:11;;64557:34;;;;;-1:-1:-1;;;64557:34:10;;;;;;;;;;;;-1:-1:-1;;;64557:34:10;;;;;;;;;;;;;;;64615:5;64601:19;;-1:-1:-1;;64601:19:10;;;35606:16;:14;:16::i;:::-;35593:29;-1:-1:-1;35636:29:10;;35632:257;;35807:67;35818:5;35812:12;;;;;;;;35826:47;35807:4;:67::i;35632:257::-;35997:53;36014:10;36026;36038:11;35997:16;:53::i;59044:1706::-;59250:5;;59111:4;;;;59250:5;;;-1:-1:-1;;;;;59250:5:10;59236:10;:19;59232:122;;59278:65;59283:18;59303:39;59278:4;:65::i;59232:122::-;59477:16;:14;:16::i;:::-;59455:18;;:38;59451:145;;59516:69;59521:22;59545:39;59516:4;:69::i;59451:145::-;59699:12;59682:14;:12;:14::i;:::-;:29;59678:150;;;59734:83;59739:29;59770:46;59734:4;:83::i;59678:150::-;59919:13;;59904:12;:28;59900:127;;;59955:61;59960:15;59977:38;59955:4;:61::i;59900:127::-;-1:-1:-1;60173:13:10;;:28;;;;60307:33;;;60299:82;;;;-1:-1:-1;;;60299:82:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60452:13;:32;;;60615:5;;60601:34;;60615:5;;;-1:-1:-1;;;;;60615:5:10;60622:12;60601:13;:34::i;:::-;60667:5;;60651:54;;;60667:5;;;;-1:-1:-1;;;;;60667:5:10;60651:54;;;;;;;;;;;;;;;;;;;;;;;;;60728:14;60723:20;;25184:529;25268:4;64565:11;;;;64557:34;;;;;-1:-1:-1;;;64557:34:10;;;;;;;;;;;;-1:-1:-1;;;64557:34:10;;;;;;;;;;;;;;;64615:5;64601:19;;-1:-1:-1;;64601:19:10;;;25297:16;:14;:16::i;:::-;25284:29;-1:-1:-1;25327:29:10;;25323:246;;25497:61;25508:5;25502:12;;;;;;;;25516:41;25497:4;:61::i;25323:246::-;25666:40;25678:10;25690:1;25693:12;25666:11;:40::i;11458:1238::-;-1:-1:-1;;;;;11800:23:10;;11535:9;11800:23;;;:14;:23;;;;;12024:24;;11535:9;;;;;;;;12020:90;;-1:-1:-1;12077:18:10;;-1:-1:-1;12077:18:10;;-1:-1:-1;12069:30:10;;-1:-1:-1;;;12069:30:10;12020:90;12332:46;12340:14;:24;;;12366:11;;12332:7;:46::i;:::-;12299:79;;-1:-1:-1;12299:79:10;-1:-1:-1;12403:18:10;12392:7;:29;;;;;;;;;12388:79;;-1:-1:-1;12445:7:10;;-1:-1:-1;12454:1:10;;-1:-1:-1;12437:19:10;;-1:-1:-1;;12437:19:10;12388:79;12497:58;12505:19;12526:14;:28;;;12497:7;:58::i;:::-;12477:78;;-1:-1:-1;12477:78:10;-1:-1:-1;12580:18:10;12569:7;:29;;;;;;;;;12565:79;;-1:-1:-1;12622:7:10;;-1:-1:-1;12631:1:10;;-1:-1:-1;12614:19:10;;-1:-1:-1;;12614:19:10;12565:79;-1:-1:-1;12662:18:10;;-1:-1:-1;12682:6:10;-1:-1:-1;;;11458:1238:10;;;;:::o;9120:91::-;9192:12;9120:91;:::o;62058:1271::-;62352:5;;62152:4;;;;62352:5;;;-1:-1:-1;;;;;62352:5:10;62338:10;:19;62334:130;;62380:73;62385:18;62405:47;62380:4;:73::i;62334:130::-;62587:16;:14;:16::i;:::-;62565:18;;:38;62561:153;;62626:77;62631:22;62655:47;62626:4;:77::i;62561:153::-;62805:17;;;;;;;;;-1:-1:-1;;;;;62805:17:10;62782:40;;62922:20;-1:-1:-1;;;;;62922:40:10;;:42;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;62922:42:10;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;62922:42:10;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;62922:42:10;62914:83;;;;;-1:-1:-1;;;62914:83:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;63071:17;:40;;-1:-1:-1;;;;;;63071:40:10;-1:-1:-1;;;;;63071:40:10;;;;;;;;;63214:70;;;;;;;;;;;;;;;;;;;;;;;;;;;63307:14;63302:20;;1300:230:0;1356:9;1367:4;1392:1;1387;:6;1383:141;;-1:-1:-1;1417:18:0;;-1:-1:-1;1437:5:0;;;1409:34;;1383:141;-1:-1:-1;1482:27:0;;-1:-1:-1;1511:1:0;1474:39;;2079:346:5;2148:9;2159:10;;:::i;:::-;2182:14;2198:19;2221:27;2229:1;:10;;;2241:6;2221:7;:27::i;:::-;2181:67;;-1:-1:-1;2181:67:5;-1:-1:-1;2270:18:5;2262:4;:26;;;;;;;;;2258:90;;-1:-1:-1;2318:18:5;;;;;;;;;-1:-1:-1;2318:18:5;;2312:4;;-1:-1:-1;2318:18:5;-1:-1:-1;2304:33:5;;2258:90;2386:31;;;;;;;;;;;;-1:-1:-1;;2386:31:5;;-1:-1:-1;2079:346:5;-1:-1:-1;;;;2079:346:5:o;7995:183:4:-;8080:4;8101:43;8114:3;8109:9;;;;;;;;8125:4;8120:10;;;;;;;;8101:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;8167:3;8162:9;;;;;;;1610:250:0;1666:9;;1702:5;;;1722:6;;;1718:136;;1752:18;;-1:-1:-1;1772:1:0;-1:-1:-1;1744:30:0;;1718:136;-1:-1:-1;1813:26:0;;-1:-1:-1;1841:1:0;;-1:-1:-1;1805:38:0;;2979:321:5;3076:9;3087:4;3104:13;3119:18;;:::i;:::-;3141:20;3151:1;3154:6;3141:9;:20::i;:::-;3103:58;;-1:-1:-1;3103:58:5;-1:-1:-1;3182:18:5;3175:3;:25;;;;;;;;;3171:71;;-1:-1:-1;3224:3:5;-1:-1:-1;3229:1:5;;-1:-1:-1;3216:15:5;;3171:71;3259:34;3267:17;3276:7;3267:8;:17::i;:::-;3286:6;3259:7;:34::i;:::-;3252:41;;;;;;2979:321;;;;;;;:::o;41513:979:10:-;41647:4;64565:11;;41647:4;;64565:11;;64557:34;;;;;-1:-1:-1;;;64557:34:10;;;;;;;;;;;;-1:-1:-1;;;64557:34:10;;;;;;;;;;;;;;;64615:5;64601:19;;-1:-1:-1;;64601:19:10;;;41682:16;:14;:16::i;:::-;41669:29;-1:-1:-1;41712:29:10;;41708:266;;41888:71;41899:5;41893:12;;;;;;;;41907:51;41888:4;:71::i;:::-;41880:83;-1:-1:-1;41961:1:10;;-1:-1:-1;41880:83:10;;-1:-1:-1;41880:83:10;41708:266;41992:16;-1:-1:-1;;;;;41992:31:10;;:33;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;41992:33:10;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;41992:33:10;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;41992:33:10;;-1:-1:-1;42039:29:10;;42035:270;;42215:75;42226:5;42220:12;;;;;;;;42234:55;42215:4;:75::i;42035:270::-;42412:73;42433:10;42445:8;42455:11;42468:16;42412:20;:73::i;:::-;42405:80;;;;;64630:1;64641:11;:18;;-1:-1:-1;;64641:18:10;64655:4;64641:18;;;41513:979;;;;-1:-1:-1;41513:979:10;-1:-1:-1;;41513:979:10:o;48012:2093::-;48201:11;;:87;;;-1:-1:-1;;;48201:87:10;;48234:4;48201:87;;;;-1:-1:-1;;;;;48201:87:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48130:4;;;;48201:11;;:24;;:87;;;;;;;;;;;;;;48130:4;48201:11;:87;;;5:2:-1;;;;30:1;27;20:12;5:2;48201:87:10;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;48201:87:10;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;48201:87:10;;-1:-1:-1;48302:12:10;;48298:149;;48337:99;48348:27;48377:49;48428:7;48337:10;:99::i;48298:149::-;48517:10;-1:-1:-1;;;;;48505:22:10;:8;-1:-1:-1;;;;;48505:22:10;;48501:144;;;48550:84;48555:26;48583:50;48550:4;:84::i;48501:144::-;-1:-1:-1;;;;;49058:23:10;;48655:17;49058:23;;;:13;:23;;;;;;48655:17;;;;49050:45;;49083:11;49050:7;:45::i;:::-;49019:76;;-1:-1:-1;49019:76:10;-1:-1:-1;49120:18:10;49109:7;:29;;;;;;;;;49105:164;;49161:97;49172:16;49190:52;49249:7;49244:13;;;;;;;49161:97;49154:104;;;;;;;;49105:164;-1:-1:-1;;;;;49320:25:10;;;;;;:13;:25;;;;;;49312:47;;49347:11;49312:7;:47::i;:::-;49279:80;;-1:-1:-1;49279:80:10;-1:-1:-1;49384:18:10;49373:7;:29;;;;;;;;;49369:164;;49425:97;49436:16;49454:52;49513:7;49508:13;;;;;;;49369:164;-1:-1:-1;;;;;49729:23:10;;;;;;;:13;:23;;;;;;;;:43;;;49782:25;;;;;;;;;;:47;;;49881:43;;;;;;;49782:25;;-1:-1:-1;;;;;;;;;;;49881:43:10;;;;;;;;;;49974:11;;:86;;;-1:-1:-1;;;49974:86:10;;50006:4;49974:86;;;;-1:-1:-1;;;;;49974:86:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:11;;;;;:23;;:86;;;;;:11;;:86;;;;;;;:11;;:86;;;5:2:-1;;;;30:1;27;20:12;5:2;49974:86:10;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;50083:14:10;;-1:-1:-1;50078:20:10;;-1:-1:-1;;50078:20:10;;50071:27;48012:2093;-1:-1:-1;;;;;;;;;48012:2093:10:o;31347:516::-;31421:4;64565:11;;;;64557:34;;;;;-1:-1:-1;;;64557:34:10;;;;;;;;;;;;-1:-1:-1;;;64557:34:10;;;;;;;;;;;;;;;64615:5;64601:19;;-1:-1:-1;;64601:19:10;;;31450:16;:14;:16::i;:::-;31437:29;-1:-1:-1;31480:29:10;;31476:246;;31650:61;31661:5;31655:12;;;;;;;;31669:41;31650:4;:61::i;31476:246::-;31819:37;31831:10;31843:12;31819:11;:37::i;24293:519::-;24367:4;64565:11;;;;64557:34;;;;;-1:-1:-1;;;64557:34:10;;;;;;;;;;;;-1:-1:-1;;;64557:34:10;;;;;;;;;;;;;;;64615:5;64601:19;;-1:-1:-1;;64601:19:10;;;24396:16;:14;:16::i;:::-;24383:29;-1:-1:-1;24426:29:10;;24422:246;;24596:61;24607:5;24601:12;;;;;;;24422:246;24765:40;24777:10;24789:12;24803:1;24765:11;:40::i;36382:586::-;36484:4;64565:11;;36484:4;;64565:11;;64557:34;;;;;-1:-1:-1;;;64557:34:10;;;;;;;;;;;;-1:-1:-1;;;64557:34:10;;;;;;;;;;;;;;;64615:5;64601:19;;-1:-1:-1;;64601:19:10;;;36519:16;:14;:16::i;:::-;36506:29;-1:-1:-1;36549:29:10;;36545:257;;36720:67;36731:5;36725:12;;;;;;;;36739:47;36720:4;:67::i;:::-;36712:79;-1:-1:-1;36789:1:10;;-1:-1:-1;36712:79:10;;-1:-1:-1;36712:79:10;36545:257;36910:51;36927:10;36939:8;36949:11;36910:16;:51::i;:::-;36903:58;;;;;64630:1;64641:11;:18;;-1:-1:-1;;64641:18:10;64655:4;64641:18;;;36382:586;;;;-1:-1:-1;36382:586:10;-1:-1:-1;36382:586:10:o;54259:951::-;54407:5;;54340:4;;54407:5;;;-1:-1:-1;;;;;54407:5:10;54393:10;:19;54389:125;;54435:68;54440:18;54460:42;54435:4;:68::i;54389:125::-;54618:16;:14;:16::i;:::-;54596:18;;:38;54592:148;;54657:72;54662:22;54686:42;54657:4;:72::i;54592:148::-;805:4:11;54809:24:10;:51;54805:155;;;54883:66;54888:15;54905:43;54883:4;:66::i;54805:155::-;55002:21;;;55033:48;;;;55097:68;;;;;;;;;;;;;;;;;;;;;;;;;55188:14;55183:20;;5033:240:8;5100:4;5149:10;-1:-1:-1;;;;;5149:18:8;;;5141:46;;;;;-1:-1:-1;;;5141:46:8;;;;;;;;;;;;-1:-1:-1;;;5141:46:8;;;;;;;;;;;;;;;5218:6;5205:9;:19;5197:46;;;;;-1:-1:-1;;;5197:46:8;;;;;;;;;;;;-1:-1:-1;;;5197:46:8;;;;;;;;;;;;;;;-1:-1:-1;5260:6:8;5033:240;-1:-1:-1;5033:240:8:o;4525:330:5:-;4613:9;4624:4;4641:13;4656:19;;:::i;:::-;4679:31;4694:6;4702:7;4679:14;:31::i;1924:263:0:-;1995:9;2006:4;2023:14;2039:8;2051:13;2059:1;2062;2051:7;:13::i;:::-;2022:42;;-1:-1:-1;2022:42:0;-1:-1:-1;2087:18:0;2079:4;:26;;;;;;;;;2075:73;;-1:-1:-1;2129:4:0;-1:-1:-1;2135:1:0;;-1:-1:-1;2121:16:0;;2075:73;2165:15;2173:3;2178:1;2165:7;:15::i;873:503:5:-;934:9;945:10;;:::i;:::-;968:14;984:20;1008:22;1016:3;444:4;1008:7;:22::i;:::-;967:63;;-1:-1:-1;967:63:5;-1:-1:-1;1052:18:5;1044:4;:26;;;;;;;;;1040:90;;-1:-1:-1;1100:18:5;;;;;;;;;-1:-1:-1;1100:18:5;;1094:4;;-1:-1:-1;1100:18:5;-1:-1:-1;1086:33:5;;1040:90;1141:14;1157:13;1174:31;1182:15;1199:5;1174:7;:31::i;:::-;1140:65;;-1:-1:-1;1140:65:5;-1:-1:-1;1227:18:5;1219:4;:26;;;;;;;;;1215:90;;-1:-1:-1;1275:18:5;;;;;;;;;-1:-1:-1;1275:18:5;;1269:4;;-1:-1:-1;1275:18:5;-1:-1:-1;1261:33:5;;-1:-1:-1;;1261:33:5;1215:90;1343:25;;;;;;;;;;;;-1:-1:-1;;1343:25:5;;-1:-1:-1;873:503:5;-1:-1:-1;;;;;;873:503:5:o;7225:210::-;7405:12;444:4;7405:23;;;7225:210::o;37653:3343:10:-;37831:11;;:75;;;-1:-1:-1;;;37831:75:10;;37870:4;37831:75;;;;-1:-1:-1;;;;;37831:75:10;;;;;;;;;;;;;;;;;;;;;;37748:4;;;;;;37831:11;;;:30;;:75;;;;;;;;;;;;;;;37748:4;37831:11;:75;;;5:2:-1;;;;30:1;27;20:12;5:2;37831:75:10;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;37831:75:10;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;37831:75:10;;-1:-1:-1;37920:12:10;;37916:151;;37956:96;37967:27;37996:46;38044:7;37956:10;:96::i;:::-;37948:108;-1:-1:-1;38054:1:10;;-1:-1:-1;37948:108:10;;-1:-1:-1;37948:108:10;37916:151;38174:16;:14;:16::i;:::-;38152:18;;:38;38148:151;;38214:70;38219:22;38243:40;38214:4;:70::i;38148:151::-;38309:32;;:::i;:::-;-1:-1:-1;;;;;38452:24:10;;;;;;:14;:24;;;;;:38;;;38431:18;;;:59;38618:37;38467:8;38618:27;:37::i;:::-;38595:19;;;38580:75;;;38581:12;;;38580:75;;;;;;;;;;;;;;;;;;;-1:-1:-1;38685:18:10;;-1:-1:-1;38669:4:10;:12;;;:34;;;;;;;;;38665:190;;38727:113;38738:16;38756:63;38826:4;:12;;;38821:18;;;;;;;38727:113;38719:125;-1:-1:-1;38842:1:10;;-1:-1:-1;38719:125:10;;-1:-1:-1;;38719:125:10;38665:190;-1:-1:-1;;38934:11:10;:23;38930:153;;;38992:19;;;;38973:16;;;:38;38930:153;;;39042:16;;;:30;;;38930:153;39668:37;39681:5;39688:4;:16;;;39668:12;:37::i;:::-;39643:22;;;:62;;;40008:19;;;;40000:52;;:7;:52::i;:::-;39974:22;;;39959:93;;;39960:12;;;39959:93;;;;;;;;;;;;;;;;;;;-1:-1:-1;40086:18:10;;-1:-1:-1;40070:4:10;:12;;;:34;;;;;;;;;40062:105;;;;-1:-1:-1;;;40062:105:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40217:45;40225:12;;40239:4;:22;;;40217:7;:45::i;:::-;40193:20;;;40178:84;;;40179:12;;;40178:84;;;;;;;;;;;;;;;;;;;-1:-1:-1;40296:18:10;;-1:-1:-1;40280:4:10;:12;;;:34;;;;;;;;;40272:96;;;;-1:-1:-1;;;40272:96:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40485:22;;;;;;-1:-1:-1;;;;;40448:24:10;;;;;;;:14;:24;;;;;;;;;:59;;;40558:11;;40517:38;;;;:52;;;;40594:20;;;;40579:12;:35;;;40701:22;;;;40725;;40672:98;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40820:11;;40882:22;;;;40906:18;;;;40820:105;;;-1:-1:-1;;;40820:105:10;;40858:4;40820:105;;;;-1:-1:-1;;;;;40820:105:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:11;;;;;:29;;:105;;;;;:11;;:105;;;;;;;:11;;:105;;;5:2:-1;;;;30:1;27;20:12;5:2;40820:105:10;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;40949:14:10;;-1:-1:-1;40944:20:10;;-1:-1:-1;;40944:20:10;;40966:4;:22;;;40936:53;;;;;;37653:3343;;;;;;:::o;5279:168:8:-;5421:19;;-1:-1:-1;;;;;5421:11:8;;;:19;;;;;5433:6;;5421:19;;;;5433:6;5421:11;:19;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;26582:4504:10;26689:4;26713:19;;;:42;;-1:-1:-1;26736:19:10;;26713:42;26705:107;;;;-1:-1:-1;;;26705:107:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26823:27;;:::i;:::-;26964:28;:26;:28::i;:::-;26935:25;;;26920:72;;;26921:12;;;26920:72;;;;;;;;;;;;;;;;;;;-1:-1:-1;27022:18:10;;-1:-1:-1;27006:4:10;:12;;;:34;;;;;;;;;27002:166;;27063:94;27074:16;27092:44;27143:4;:12;;;27138:18;;;;;;;27063:94;27056:101;;;;;27002:166;27219:18;;27215:1265;;27489:17;;;:34;;;27592:42;;;;;;;;27607:25;;;;27592:42;;27574:77;;27509:14;27574:17;:77::i;:::-;27553:17;;;27538:113;;;27539:12;;;27538:113;;;;;;;;;;;;;;;;;;;-1:-1:-1;27685:18:10;;-1:-1:-1;27669:4:10;:12;;;:34;;;;;;;;;27665:183;;27730:103;27741:16;27759:53;27819:4;:12;;;27814:18;;;;;;;27665:183;27215:1265;;;28142:82;28165:14;28181:42;;;;;;;;28196:4;:25;;;28181:42;;;28142:22;:82::i;:::-;28121:17;;;28106:118;;;28107:12;;;28106:118;;;;;;;;;;;;;;;;;;;-1:-1:-1;28258:18:10;;-1:-1:-1;28242:4:10;:12;;;:34;;;;;;;;;28238:183;;28303:103;28314:16;28332:53;28392:4;:12;;;28387:18;;;;;;;28238:183;28435:17;;;:34;;;27215:1265;28546:11;;28597:17;;;;28546:69;;;-1:-1:-1;;;28546:69:10;;28580:4;28546:69;;;;-1:-1:-1;;;;;28546:69:10;;;;;;;;;;;;;;;;28531:12;;28546:11;;;;;:25;;:69;;;;;;;;;;;;;;;28531:12;28546:11;:69;;;5:2:-1;;;;30:1;27;20:12;5:2;28546:69:10;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;28546:69:10;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;28546:69:10;;-1:-1:-1;28629:12:10;;28625:140;;28664:90;28675:27;28704:40;28746:7;28664:10;:90::i;:::-;28657:97;;;;;;28625:140;28872:16;:14;:16::i;:::-;28850:18;;:38;28846:140;;28911:64;28916:22;28940:34;28911:4;:64::i;28846:140::-;29274:39;29282:11;;29295:4;:17;;;29274:7;:39::i;:::-;29251:19;;;29236:77;;;29237:12;;;29236:77;;;;;;;;;;;;;;;;;;;-1:-1:-1;29343:18:10;;-1:-1:-1;29327:4:10;:12;;;:34;;;;;;;;;29323:176;;29384:104;29395:16;29413:54;29474:4;:12;;;29469:18;;;;;;;29323:176;-1:-1:-1;;;;;29557:23:10;;;;;;:13;:23;;;;;;29582:17;;;;29549:51;;29557:23;29549:7;:51::i;:::-;29524:21;;;29509:91;;;29510:12;;;29509:91;;;;;;;;;;;;;;;;;;;-1:-1:-1;29630:18:10;;-1:-1:-1;29614:4:10;:12;;;:34;;;;;;;;;29610:179;;29671:107;29682:16;29700:57;29764:4;:12;;;29759:18;;;;;;;29610:179;29884:4;:17;;;29867:14;:12;:14::i;:::-;:34;29863:153;;;29924:81;29929:29;29960:44;29924:4;:81::i;29863:153::-;30500:42;30514:8;30524:4;:17;;;30500:13;:42::i;:::-;30632:19;;;;30618:11;:33;30687:21;;;;-1:-1:-1;;;;;30661:23:10;;;;;;:13;:23;;;;;;;;;:47;;;;30817:17;;;;30783:52;;;;;;;30810:4;;-1:-1:-1;;;;;;;;;;;30783:52:10;;;;;;;30867:17;;;;30886;;;;;30850:54;;;-1:-1:-1;;;;;30850:54:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30954:11;;31004:17;;;;31023;;;;30954:87;;;-1:-1:-1;;;30954:87:10;;30987:4;30954:87;;;;-1:-1:-1;;;;;30954:87:10;;;;;;;;;;;;;;;;;;;;;;:11;;;;;:24;;:87;;;;;:11;;:87;;;;;;;:11;;:87;;;5:2:-1;;;;30:1;27;20:12;5:2;30954:87:10;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;31064:14:10;;-1:-1:-1;31059:20:10;;-1:-1:-1;;31059:20:10;;31052:27;26582:4504;-1:-1:-1;;;;;;26582:4504:10:o;540:331:0:-;596:9;;627:6;623:67;;-1:-1:-1;657:18:0;;-1:-1:-1;657:18:0;649:30;;623:67;709:5;;;713:1;709;:5;:1;729:5;;;;;:10;725:140;;-1:-1:-1;763:26:0;;-1:-1:-1;791:1:0;;-1:-1:-1;755:38:0;;725:140;832:18;;-1:-1:-1;852:1:0;-1:-1:-1;824:30:0;;961:209;1017:9;;1048:6;1044:75;;-1:-1:-1;1078:26:0;;-1:-1:-1;1106:1:0;1070:38;;1044:75;1137:18;1161:1;1157;:5;;;;;;1129:34;;;;961:209;;;;;:::o;43093:3514:10:-;43312:11;;:111;;;-1:-1:-1;;;43312:111:10;;43355:4;43312:111;;;;-1:-1:-1;;;;;43312:111:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43231:4;;;;;;43312:11;;;:34;;:111;;;;;;;;;;;;;;;43231:4;43312:11;:111;;;5:2:-1;;;;30:1;27;20:12;5:2;43312:111:10;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;43312:111:10;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;43312:111:10;;-1:-1:-1;43437:12:10;;43433:148;;43473:93;43484:27;43513:43;43558:7;43473:10;:93::i;:::-;43465:105;-1:-1:-1;43568:1:10;;-1:-1:-1;43465:105:10;;-1:-1:-1;43465:105:10;43433:148;43688:16;:14;:16::i;:::-;43666:18;;:38;43662:148;;43728:67;43733:22;43757:37;43728:4;:67::i;43662:148::-;43953:16;:14;:16::i;:::-;43912;-1:-1:-1;;;;;43912:35:10;;:37;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;43912:37:10;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;43912:37:10;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;43912:37:10;:57;43908:178;;43993:78;43998:22;44022:48;43993:4;:78::i;43908:178::-;44156:10;-1:-1:-1;;;;;44144:22:10;:8;-1:-1:-1;;;;;44144:22:10;;44140:143;;;44190:78;44195:26;44223:44;44190:4;:78::i;44140:143::-;44335:16;44331:145;;44375:86;44380:36;44418:42;44375:4;:86::i;44331:145::-;-1:-1:-1;;44529:11:10;:23;44525:156;;;44576:90;44581:36;44619:46;44576:4;:90::i;44525:156::-;44733:21;44756:22;44782:51;44799:10;44811:8;44821:11;44782:16;:51::i;:::-;44732:101;;-1:-1:-1;44732:101:10;-1:-1:-1;44847:40:10;;44843:161;;44911:78;44922:16;44916:23;;;;;;;;44941:47;44911:4;:78::i;:::-;44903:90;-1:-1:-1;44991:1:10;;-1:-1:-1;44903:90:10;;-1:-1:-1;;;44903:90:10;44843:161;45254:11;;:102;;;-1:-1:-1;;;45254:102:10;;45304:4;45254:102;;;;-1:-1:-1;;;;;45254:102:10;;;;;;;;;;;;;;;45211:21;;;;45254:11;;;:41;;:102;;;;;;;;;;;;:11;:102;;;5:2:-1;;;;30:1;27;20:12;5:2;45254:102:10;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;45254:102:10;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;45254:102:10;;;;;;;;;-1:-1:-1;45254:102:10;-1:-1:-1;45374:40:10;;45366:104;;;;-1:-1:-1;;;45366:104:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45601:11;45561:16;-1:-1:-1;;;;;45561:26:10;;45588:8;45561:36;;;;;;;;;;;;;-1:-1:-1;;;;;45561:36:10;-1:-1:-1;;;;;45561:36:10;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;45561:36:10;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;45561:36:10;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;45561:36:10;:51;;45553:88;;;;;-1:-1:-1;;;45553:88:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;45767:15;-1:-1:-1;;;;;45796:42:10;;45833:4;45796:42;45792:250;;;45867:63;45889:4;45896:10;45908:8;45918:11;45867:13;:63::i;:::-;45854:76;;45792:250;;;45974:57;;;-1:-1:-1;;;45974:57:10;;-1:-1:-1;;;;;45974:57:10;;;;;;;;;;;;;;;;;;;;;;:22;;;;;;:57;;;;;;;;;;;;;;;-1:-1:-1;45974:22:10;:57;;;5:2:-1;;;;30:1;27;20:12;5:2;45974:57:10;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;45974:57:10;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;45974:57:10;;-1:-1:-1;45792:250:10;46145:34;;46137:67;;;;;-1:-1:-1;;;46137:67:10;;;;;;;;;;;;-1:-1:-1;;;46137:67:10;;;;;;;;;;;;;;;46266:96;;;-1:-1:-1;;;;;46266:96:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46412:11;;:129;;;-1:-1:-1;;;46412:129:10;;46454:4;46412:129;;;;-1:-1:-1;;;;;46412:129:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:11;;;;;:33;;:129;;;;;:11;;:129;;;;;;;:11;;:129;;;5:2:-1;;;;30:1;27;20:12;5:2;46412:129:10;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;46565:14:10;;-1:-1:-1;46560:20:10;;-1:-1:-1;;46560:20:10;;46552:48;-1:-1:-1;46582:17:10;;-1:-1:-1;;;;;;43093:3514:10;;;;;;;;:::o;32276:2971::-;32432:11;;:64;;;-1:-1:-1;;;32432:64:10;;32466:4;32432:64;;;;-1:-1:-1;;;;;32432:64:10;;;;;;;;;;;;;;;32360:4;;;;32432:11;;:25;;:64;;;;;;;;;;;;;;32360:4;32432:11;:64;;;5:2:-1;;;;30:1;27;20:12;5:2;32432:64:10;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;32432:64:10;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;32432:64:10;;-1:-1:-1;32510:12:10;;32506:140;;32545:90;32556:27;32585:40;32627:7;32545:10;:90::i;:::-;32538:97;;;;;32506:140;32753:16;:14;:16::i;:::-;32731:18;;:38;32727:140;;32792:64;32797:22;32821:34;32792:4;:64::i;32727:140::-;32973:12;32956:14;:12;:14::i;:::-;:29;32952:141;;;33008:74;33013:29;33044:37;33008:4;:74::i;32952:141::-;33103:27;;:::i;:::-;33411:37;33439:8;33411:27;:37::i;:::-;33388:19;;;33373:75;;;33374:4;33373:75;;;;;;;;;;;;;;;;;;;-1:-1:-1;33478:18:10;;-1:-1:-1;33462:12:10;;:34;;;;;;;;;33458:179;;33519:107;33530:16;33548:57;33612:4;:12;;;33607:18;;;;;;;33519:107;33512:114;;;;;;33458:179;33688:42;33696:4;:19;;;33717:12;33688:7;:42::i;:::-;33662:22;;;33647:83;;;33648:4;33647:83;;;;;;;;;;;;;;;;;;;-1:-1:-1;33760:18:10;;-1:-1:-1;33744:12:10;;:34;;;;;;;;;33740:186;;33801:114;33812:16;33830:64;33901:4;:12;;;33896:18;;;;;;;33740:186;33975:35;33983:12;;33997;33975:7;:35::i;:::-;33951:20;;;33936:74;;;33937:4;33936:74;;;;;;;;;;;;;;;;;;;-1:-1:-1;34040:18:10;;-1:-1:-1;34024:12:10;;:34;;;;;;;;;34020:177;;34081:105;34092:16;34110:55;34172:4;:12;;;34167:18;;;;;;;34020:177;34677:37;34691:8;34701:12;34677:13;:37::i;:::-;34831:22;;;;;;-1:-1:-1;;;;;34794:24:10;;;;;;:14;:24;;;;;;;;:59;;;34904:11;;34863:38;;;;:52;;;;34940:20;;;;;34925:12;:35;;;35044:22;;35013:76;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35139:11;;:63;;;-1:-1:-1;;;35139:63:10;;35172:4;35139:63;;;;-1:-1:-1;;;;;35139:63:10;;;;;;;;;;;;;;;:11;;;;;:24;;:63;;;;;:11;;:63;;;;;;;:11;;:63;;;5:2:-1;;;;30:1;27;20:12;5:2;35139:63:10;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;35225:14:10;;-1:-1:-1;35220:20:10;;-1:-1:-1;;35220:20:10;;35213:27;32276:2971;-1:-1:-1;;;;;32276:2971:10:o;3814:605:5:-;3894:9;3905:10;;:::i;:::-;4202:14;4218;4236:25;444:4;4254:6;4236:7;:25::i;:::-;4201:60;;-1:-1:-1;4201:60:5;-1:-1:-1;4283:18:5;4275:4;:26;;;;;;;;;4271:90;;-1:-1:-1;4331:18:5;;;;;;;;;-1:-1:-1;4331:18:5;;4325:4;;-1:-1:-1;4331:18:5;-1:-1:-1;4317:33:5;;4271:90;4377:35;4384:9;4395:7;:16;;;4377:6;:35::i;141:6007:8:-;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;141:6007:8;;;-1:-1:-1;141:6007:8;:::i;:::-;;;:::o;:::-;;;;;;;;;;;-1:-1:-1;141:6007:8;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;-1:-1:-1;141:6007:8;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;-1:-1:-1;141:6007:8;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;

Swarm Source

bzzr://df0284085f4d424eea660a511f5369545cf9b326126f19ac8881bf6fef4e0c6d
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.