ETH Price: $3,397.78 (+1.98%)

Contract

0xc33E1541dC8C9F4BeCb4517EB1Acc5f8C67E766b
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Borrow194797232024-03-21 1:17:11247 days ago1710983831IN
0xc33E1541...8C67E766b
0 ETH0.0186362934.91296096
Borrow193958082024-03-09 6:39:47259 days ago1709966387IN
0xc33E1541...8C67E766b
0 ETH0.0207550241.96130519
Borrow193956732024-03-09 6:12:47259 days ago1709964767IN
0xc33E1541...8C67E766b
0 ETH0.0168084637.34965256
Redeem Underlyin...192543182024-02-18 11:12:47279 days ago1708254767IN
0xc33E1541...8C67E766b
0 ETH0.0089332323.59525273
Repay Borrow192542762024-02-18 11:04:23279 days ago1708254263IN
0xc33E1541...8C67E766b
0 ETH0.0053108723.38952144
Repay Borrow185528862023-11-12 2:34:23377 days ago1699756463IN
0xc33E1541...8C67E766b
0 ETH0.0045927818.90377361
Repay Borrow185528282023-11-12 2:22:47377 days ago1699755767IN
0xc33E1541...8C67E766b
0 ETH0.0043605618.62599611
Redeem Underlyin...174546902023-06-11 5:05:47531 days ago1686459947IN
0xc33E1541...8C67E766b
0 ETH0.0100275218.33638628
Redeem Underlyin...174328072023-06-08 3:04:11534 days ago1686193451IN
0xc33E1541...8C67E766b
0 ETH0.0099823921.2702215
Redeem Underlyin...174328072023-06-08 3:04:11534 days ago1686193451IN
0xc33E1541...8C67E766b
0 ETH0.0116319321.2702215
Mint174154852023-06-05 16:25:59537 days ago1685982359IN
0xc33E1541...8C67E766b
0 ETH0.0381994153.74591784
Repay Borrow171559492023-04-30 2:39:11573 days ago1682822351IN
0xc33E1541...8C67E766b
0 ETH0.0074804730
Redeem Underlyin...160809542022-11-30 6:15:59724 days ago1669788959IN
0xc33E1541...8C67E766b
0 ETH0.0045270611.81035398
Repay Borrow160809482022-11-30 6:14:47724 days ago1669788887IN
0xc33E1541...8C67E766b
0 ETH0.0029730512.80114262
Repay Borrow160024772022-11-19 7:09:35735 days ago1668841775IN
0xc33E1541...8C67E766b
0 ETH0.0032448212.89952989
Borrow159864692022-11-17 1:30:35737 days ago1668648635IN
0xc33E1541...8C67E766b
0 ETH0.0080069514.41958651
Redeem159743212022-11-15 8:43:23739 days ago1668501803IN
0xc33E1541...8C67E766b
0 ETH0.0052487516.28783764
Borrow159700012022-11-14 18:14:59740 days ago1668449699IN
0xc33E1541...8C67E766b
0 ETH0.011904520.79814443
Borrow159632922022-11-13 19:47:47741 days ago1668368867IN
0xc33E1541...8C67E766b
0 ETH0.0118006819.61178441
Borrow158954022022-11-04 8:17:35750 days ago1667549855IN
0xc33E1541...8C67E766b
0 ETH0.0070068118.06821887
Repay Borrow157286992022-10-12 1:18:47773 days ago1665537527IN
0xc33E1541...8C67E766b
0 ETH0.005125620.37641719
Redeem Underlyin...157102872022-10-09 11:37:47776 days ago1665315467IN
0xc33E1541...8C67E766b
0 ETH0.0103626420.10813427
Redeem Underlyin...157101842022-10-09 11:16:59776 days ago1665314219IN
0xc33E1541...8C67E766b
0 ETH0.0101631419.72101538
Redeem Underlyin...157101662022-10-09 11:13:23776 days ago1665314003IN
0xc33E1541...8C67E766b
0 ETH0.0107541720.86788133
Mint157054902022-10-08 19:33:59777 days ago1665257639IN
0xc33E1541...8C67E766b
0 ETH0.0143800857.87174646
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To
119393302021-02-27 12:21:041365 days ago1614428464  Contract Creation0 ETH
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x7776a65d...025e5c448
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
BErc20

Compiler Version
v0.5.16+commit.9c3226ce

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, BSD-3-Clause license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-02-27
*/

/*
B.PROTOCOL TERMS OF USE
=======================

THE TERMS OF USE CONTAINED HEREIN (THESE “TERMS”) GOVERN YOUR USE OF B.PROTOCOL, WHICH IS A DECENTRALIZED PROTOCOL ON THE ETHEREUM BLOCKCHAIN (the “PROTOCOL”) THAT enables a backstop liquidity mechanism FOR DECENTRALIZED LENDING PLATFORMS (“DLPs”).  
PLEASE READ THESE TERMS CAREFULLY AT https://github.com/backstop-protocol/Terms-and-Conditions, INCLUDING ALL DISCLAIMERS AND RISK FACTORS, BEFORE USING THE PROTOCOL. BY USING THE PROTOCOL, YOU ARE IRREVOCABLY CONSENTING TO BE BOUND BY THESE TERMS. 
IF YOU DO NOT AGREE TO ALL OF THESE TERMS, DO NOT USE THE PROTOCOL. YOUR RIGHT TO USE THE PROTOCOL IS SUBJECT AND DEPENDENT BY YOUR AGREEMENT TO ALL TERMS AND CONDITIONS SET FORTH HEREIN, WHICH AGREEMENT SHALL BE EVIDENCED BY YOUR USE OF THE PROTOCOL.
Minors Prohibited: The Protocol is not directed to individuals under the age of eighteen (18) or the age of majority in your jurisdiction if the age of majority is greater. If you are under the age of eighteen or the age of majority (if greater), you are not authorized to access or use the Protocol. By using the Protocol, you represent and warrant that you are above such age.

License; No Warranties; Limitation of Liability;
(a) The software underlying the Protocol is licensed for use in accordance with the 3-clause BSD License, which can be accessed here: https://opensource.org/licenses/BSD-3-Clause.
(b) THE PROTOCOL IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS", “WITH ALL FAULTS” and “AS AVAILABLE” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
(c) IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
*/

// File: contracts/bprotocol/interfaces/IRegistry.sol

pragma solidity 0.5.16;


interface IRegistry {

    // Ownable
    function transferOwnership(address newOwner) external;

    // Compound contracts
    function comp() external view returns (address);
    function comptroller() external view returns (address);
    function cEther() external view returns (address);

    // B.Protocol contracts
    function bComptroller() external view returns (address);
    function score() external view returns (address);
    function pool() external view returns (address);

    // Avatar functions
    function delegate(address avatar, address delegatee) external view returns (bool);
    function doesAvatarExist(address avatar) external view returns (bool);
    function doesAvatarExistFor(address owner) external view returns (bool);
    function ownerOf(address avatar) external view returns (address);
    function avatarOf(address owner) external view returns (address);
    function newAvatar() external returns (address);
    function getAvatar(address owner) external returns (address);
    // avatar whitelisted calls
    function whitelistedAvatarCalls(address target, bytes4 functionSig) external view returns(bool);

    function setPool(address newPool) external;
    function setWhitelistAvatarCall(address target, bytes4 functionSig, bool list) external;
}

// File: contracts/bprotocol/interfaces/IAvatar.sol

pragma solidity 0.5.16;

contract IAvatarERC20 {
    function transfer(address cToken, address dst, uint256 amount) external returns (bool);
    function transferFrom(address cToken, address src, address dst, uint256 amount) external returns (bool);
    function approve(address cToken, address spender, uint256 amount) public returns (bool);
}

contract IAvatar is IAvatarERC20 {
    function initialize(address _registry, address comp, address compVoter) external;
    function quit() external returns (bool);
    function canUntop() public returns (bool);
    function toppedUpCToken() external returns (address);
    function toppedUpAmount() external returns (uint256);
    function redeem(address cToken, uint256 redeemTokens, address payable userOrDelegatee) external returns (uint256);
    function redeemUnderlying(address cToken, uint256 redeemAmount, address payable userOrDelegatee) external returns (uint256);
    function borrow(address cToken, uint256 borrowAmount, address payable userOrDelegatee) external returns (uint256);
    function borrowBalanceCurrent(address cToken) external returns (uint256);
    function collectCToken(address cToken, address from, uint256 cTokenAmt) public;
    function liquidateBorrow(uint repayAmount, address cTokenCollateral) external payable returns (uint256);

    // Comptroller functions
    function enterMarket(address cToken) external returns (uint256);
    function enterMarkets(address[] calldata cTokens) external returns (uint256[] memory);
    function exitMarket(address cToken) external returns (uint256);
    function claimComp() external;
    function claimComp(address[] calldata bTokens) external;
    function claimComp(address[] calldata bTokens, bool borrowers, bool suppliers) external;
    function getAccountLiquidity() external view returns (uint err, uint liquidity, uint shortFall);
}

// Workaround for issue https://github.com/ethereum/solidity/issues/526
// CEther
contract IAvatarCEther is IAvatar {
    function mint() external payable;
    function repayBorrow() external payable;
    function repayBorrowBehalf(address borrower) external payable;
}

// CErc20
contract IAvatarCErc20 is IAvatar {
    function mint(address cToken, uint256 mintAmount) external returns (uint256);
    function repayBorrow(address cToken, uint256 repayAmount) external returns (uint256);
    function repayBorrowBehalf(address cToken, address borrower, uint256 repayAmount) external returns (uint256);
}

contract ICushion {
    function liquidateBorrow(uint256 underlyingAmtToLiquidate, uint256 amtToDeductFromTopup, address cTokenCollateral) external payable returns (uint256);    
    function canLiquidate() external returns (bool);
    function untop(uint amount) external;
    function toppedUpAmount() external returns (uint);
    function remainingLiquidationAmount() external returns(uint);
    function getMaxLiquidationAmount(address debtCToken) public returns (uint256);
}

contract ICushionCErc20 is ICushion {
    function topup(address cToken, uint256 topupAmount) external;
}

contract ICushionCEther is ICushion {
    function topup() external payable;
}

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol

pragma solidity ^0.5.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP. Does not include
 * the optional functions; to access them see {ERC20Detailed}.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

// File: contracts/bprotocol/interfaces/CTokenInterfaces.sol

pragma solidity 0.5.16;


contract CTokenInterface {
    /* ERC20 */
    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 totalSupply() external view returns (uint256);
    function name() external view returns (string memory);
    function symbol() external view returns (string memory);
    function decimals() external view returns (uint8);

    /* User Interface */
    function isCToken() external view returns (bool);
    function underlying() external view returns (IERC20);
    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);

}

contract ICToken is CTokenInterface {

    /* User Interface */
    function redeem(uint redeemTokens) external returns (uint);
    function redeemUnderlying(uint redeemAmount) external returns (uint);
    function borrow(uint borrowAmount) external returns (uint);
}

// Workaround for issue https://github.com/ethereum/solidity/issues/526
// Defined separate contract as `mint()` override with `.value()` has issues
contract ICErc20 is ICToken {
    function mint(uint mintAmount) 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, address cTokenCollateral) external returns (uint);
}

contract ICEther is ICToken {
    function mint() external payable;
    function repayBorrow() external payable;
    function repayBorrowBehalf(address borrower) external payable;
    function liquidateBorrow(address borrower, address cTokenCollateral) external payable;
}

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

// File: contracts/bprotocol/lib/CarefulMath.sol

pragma solidity 0.5.16;

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

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

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

        uint c = a * b;

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

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

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

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

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

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

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

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

        return subUInt(sum, c);
    }
}

// File: contracts/bprotocol/lib/Exponential.sol

pragma solidity 0.5.16;


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

    struct Exp {
        uint mantissa;
    }

    struct Double {
        uint mantissa;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // New functions added by BProtocol
    // =================================

    function mulTrucate(uint a, uint b) internal pure returns (uint) {
        return mul_(a, b) / expScale;
    }
}

// File: @openzeppelin/contracts/math/SafeMath.sol

pragma solidity ^0.5.0;

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

        return c;
    }

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     *
     * _Available since v2.4.0._
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     *
     * _Available since v2.4.0._
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

// File: @openzeppelin/contracts/utils/Address.sol

pragma solidity ^0.5.5;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following 
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != accountHash && codehash != 0x0);
    }

    /**
     * @dev Converts an `address` into `address payable`. Note that this is
     * simply a type cast: the actual underlying value is not changed.
     *
     * _Available since v2.4.0._
     */
    function toPayable(address account) internal pure returns (address payable) {
        return address(uint160(account));
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     *
     * _Available since v2.4.0._
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-call-value
        (bool success, ) = recipient.call.value(amount)("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }
}

// File: @openzeppelin/contracts/token/ERC20/SafeERC20.sol

pragma solidity ^0.5.0;




/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for ERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves.

        // A Solidity high level call has three parts:
        //  1. The target address is checked to verify it contains contract code
        //  2. The call itself is made, and success asserted
        //  3. The return value is decoded, which in turn checks the size of the returned data.
        // solhint-disable-next-line max-line-length
        require(address(token).isContract(), "SafeERC20: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = address(token).call(data);
        require(success, "SafeERC20: low-level call failed");

        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

// File: contracts/bprotocol/btoken/AbsBToken.sol

pragma solidity 0.5.16;

// Interface




// Libs




/**
 * @title AbsBToken is BProtocol token contract which represents the Compound's CToken
 */
contract AbsBToken is Exponential {
    using SafeERC20 for IERC20;

    // BProtocol Registry contract
    IRegistry public registry;
    // Compound's CToken this BToken contract is tied to
    address public cToken;

    modifier onlyDelegatee(address _avatar) {
        // `msg.sender` is delegatee
        require(registry.delegate(_avatar, msg.sender), "BToken: delegatee-not-authorized");
        _;
    }

    constructor(address _registry, address _cToken) internal {
        registry = IRegistry(_registry);
        cToken = _cToken;
    }

    function _myAvatar() internal returns (address) {
        return registry.getAvatar(msg.sender);
    }

    // CEther / CErc20
    // ===============
    function borrowBalanceCurrent(address account) external returns (uint256) {
        address _avatar = registry.getAvatar(account);
        return IAvatar(_avatar).borrowBalanceCurrent(cToken);
    }

    // redeem()
    function redeem(uint256 redeemTokens) external returns (uint256) {
        return _redeem(_myAvatar(), redeemTokens);
    }

    function redeemOnAvatar(address _avatar, uint256 redeemTokens) external onlyDelegatee(_avatar) returns (uint256) {
        return _redeem(_avatar, redeemTokens);
    }

    function _redeem(address _avatar, uint256 redeemTokens) internal returns (uint256) {
        uint256 result = IAvatar(_avatar).redeem(cToken, redeemTokens, msg.sender);
        require(result == 0, "BToken: redeem-failed");
        return result;
    }

    // redeemUnderlying()
    function redeemUnderlying(uint256 redeemAmount) external returns (uint256) {
        return _redeemUnderlying(_myAvatar(), redeemAmount);
    }

    function redeemUnderlyingOnAvatar(address _avatar, uint256 redeemAmount) external onlyDelegatee(_avatar) returns (uint256) {
        return _redeemUnderlying(_avatar, redeemAmount);
    }

    function _redeemUnderlying(address _avatar, uint256 redeemAmount) internal returns (uint256) {
        uint256 result = IAvatar(_avatar).redeemUnderlying(cToken, redeemAmount, msg.sender);
        require(result == 0, "BToken: redeemUnderlying-failed");
        return result;
    }

    // borrow()
    function borrow(uint256 borrowAmount) external returns (uint256) {
        return _borrow(_myAvatar(), borrowAmount);
    }

    function borrowOnAvatar(address _avatar, uint256 borrowAmount) external onlyDelegatee(_avatar) returns (uint256) {
        return _borrow(_avatar, borrowAmount);
    }

    function _borrow(address _avatar, uint256 borrowAmount) internal returns (uint256) {
        uint256 result = IAvatar(_avatar).borrow(cToken, borrowAmount, msg.sender);
        require(result == 0, "BToken: borrow-failed");
        return result;
    }

    // other functions
    function exchangeRateCurrent() public returns (uint256) {
        return ICToken(cToken).exchangeRateCurrent();
    }

    function exchangeRateStored() public view returns (uint) {
        return ICToken(cToken).exchangeRateStored();
    }

    // IERC20
    // =======
    // transfer()
    function transfer(address dst, uint256 amount) external returns (bool) {
        return _transfer(_myAvatar(), dst, amount);
    }

    function transferOnAvatar(address _avatar, address dst, uint256 amount) external onlyDelegatee(_avatar) returns (bool) {
        return _transfer(_avatar, dst, amount);
    }

    function _transfer(address _avatar, address dst, uint256 amount) internal returns (bool) {
        bool result = IAvatar(_avatar).transfer(cToken, dst, amount);
        require(result, "BToken: transfer-failed");
        return result;
    }

    // transferFrom()
    function transferFrom(address src, address dst, uint256 amount) external returns (bool) {
        return _transferFrom(_myAvatar(), src, dst, amount);
    }

    function transferFromOnAvatar(address _avatar, address src, address dst, uint256 amount) external onlyDelegatee(_avatar) returns (bool) {
        return _transferFrom(_avatar, src, dst, amount);
    }

    function _transferFrom(address _avatar, address src, address dst, uint256 amount) internal returns (bool) {
        bool result = IAvatar(_avatar).transferFrom(cToken, src, dst, amount);
        require(result, "BToken: transferFrom-failed");
        return result;
    }

    // approve()
    function approve(address spender, uint256 amount) public returns (bool) {
        return IAvatar(_myAvatar()).approve(cToken, spender, amount);
    }

    function approveOnAvatar(address _avatar, address spender, uint256 amount) public onlyDelegatee(_avatar) returns (bool) {
        return IAvatar(_avatar).approve(cToken, spender, amount);
    }

    function allowance(address owner, address spender) public view returns (uint256) {
        address spenderAvatar = registry.avatarOf(spender);
        if(spenderAvatar == address(0)) return 0;
        return ICToken(cToken).allowance(registry.avatarOf(owner), spenderAvatar);
    }

    function balanceOf(address owner) public view returns (uint256) {
        address avatar = registry.avatarOf(owner);
        if(avatar == address(0)) return 0;
        return ICToken(cToken).balanceOf(avatar);
    }

    function balanceOfUnderlying(address owner) external returns (uint) {
        address avatar = registry.avatarOf(owner);
        if(avatar == address(0)) return 0;
        return ICToken(cToken).balanceOfUnderlying(avatar);
    }

    function name() public view returns (string memory) {
        return ICToken(cToken).name();
    }

    function symbol() public view returns (string memory) {
        return ICToken(cToken).symbol();
    }

    function decimals() public view returns (uint8) {
        return ICToken(cToken).decimals();
    }

    function totalSupply() public view returns (uint256) {
        return ICToken(cToken).totalSupply();
    }
}

// File: contracts/bprotocol/btoken/BErc20.sol

pragma solidity 0.5.16;





contract BErc20 is AbsBToken {

    IERC20 public underlying;

    constructor(
        address _registry,
        address _cToken
    ) public AbsBToken(_registry, _cToken) {
        underlying = ICToken(cToken).underlying();
    }

    // mint()
    function mint(uint256 mintAmount) external returns (uint256) {
        return _mint(_myAvatar(), mintAmount);
    }

    function mintOnAvatar(address _avatar, uint256 mintAmount) external onlyDelegatee(_avatar) returns (uint256) {
        return _mint(_avatar, mintAmount);
    }

    function _mint(address _avatar, uint256 mintAmount) internal returns (uint256) {
        underlying.safeTransferFrom(msg.sender, _avatar, mintAmount);
        uint256 result = IAvatarCErc20(_avatar).mint(cToken, mintAmount);
        require(result == 0, "BErc20: mint-failed");
        return result;
    }

    // repayBorrow()
    function repayBorrow(uint256 repayAmount) external returns (uint256) {
        return _repayBorrow(_myAvatar(), repayAmount);
    }

    function repayBorrowOnAvatar(address _avatar, uint256 repayAmount) external onlyDelegatee(_avatar) returns (uint256) {
        return _repayBorrow(_avatar, repayAmount);
    }

    function _repayBorrow(address _avatar, uint256 repayAmount) internal returns (uint256) {
        uint256 actualRepayAmount = repayAmount;
        if(repayAmount == uint256(-1)) {
            actualRepayAmount = IAvatarCErc20(_avatar).borrowBalanceCurrent(cToken);
        }
        underlying.safeTransferFrom(msg.sender, _avatar, actualRepayAmount);
        uint256 result = IAvatarCErc20(_avatar).repayBorrow(cToken, actualRepayAmount);
        require(result == 0, "BErc20: repayBorrow-failed");
        return result;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_registry","type":"address"},{"internalType":"address","name":"_cToken","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"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":false,"inputs":[{"internalType":"address","name":"_avatar","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approveOnAvatar","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":false,"inputs":[{"internalType":"address","name":"_avatar","type":"address"},{"internalType":"uint256","name":"borrowAmount","type":"uint256"}],"name":"borrowOnAvatar","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"cToken","outputs":[{"internalType":"address","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":false,"inputs":[{"internalType":"uint256","name":"mintAmount","type":"uint256"}],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_avatar","type":"address"},{"internalType":"uint256","name":"mintAmount","type":"uint256"}],"name":"mintOnAvatar","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":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":"address","name":"_avatar","type":"address"},{"internalType":"uint256","name":"redeemTokens","type":"uint256"}],"name":"redeemOnAvatar","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"redeemAmount","type":"uint256"}],"name":"redeemUnderlying","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_avatar","type":"address"},{"internalType":"uint256","name":"redeemAmount","type":"uint256"}],"name":"redeemUnderlyingOnAvatar","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"registry","outputs":[{"internalType":"contract IRegistry","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"repayAmount","type":"uint256"}],"name":"repayBorrow","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_avatar","type":"address"},{"internalType":"uint256","name":"repayAmount","type":"uint256"}],"name":"repayBorrowOnAvatar","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"src","type":"address"},{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_avatar","type":"address"},{"internalType":"address","name":"src","type":"address"},{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFromOnAvatar","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_avatar","type":"address"},{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferOnAvatar","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"underlying","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101cf5760003560e01c806370a082311161010457806395da31ea116100a2578063c5ebeaec11610071578063c5ebeaec14610598578063db006a75146105b5578063dd62ed3e146105d2578063fa8a051b14610600576101cf565b806395da31ea14610511578063a0712d6814610547578063a9059cbb14610564578063bd6d894d14610590576101cf565b8063852a12e3116100de578063852a12e31461049457806393a9f152146104b15780639530bddf146104dd57806395d89b4114610509576101cf565b806370a082311461043a5780637b1039991461046057806383a4df7014610468576101cf565b806327eb8d66116101715780634519c2dc1161014b5780634519c2dc146103a657806369e527da146103e25780636b65715b146104065780636f307dc314610432576101cf565b806327eb8d661461032c578063313ce567146103625780633af9e66914610380576101cf565b806317bfdfbc116101ad57806317bfdfbc146102c057806318160ddd146102e6578063182df0f5146102ee57806323b872dd146102f6576101cf565b806306fdde03146101d4578063095ea7b3146102515780630e75270214610291575b600080fd5b6101dc61062c565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102165781810151838201526020016101fe565b50505050905090810190601f1680156102435780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61027d6004803603604081101561026757600080fd5b506001600160a01b038135169060200135610763565b604080519115158252519081900360200190f35b6102ae600480360360208110156102a757600080fd5b5035610801565b60408051918252519081900360200190f35b6102ae600480360360208110156102d657600080fd5b50356001600160a01b031661081c565b6102ae61091f565b6102ae610995565b61027d6004803603606081101561030c57600080fd5b506001600160a01b038135811691602081013590911690604001356109da565b61027d6004803603606081101561034257600080fd5b506001600160a01b038135811691602081013590911690604001356109f7565b61036a610b4c565b6040805160ff9092168252519081900360200190f35b6102ae6004803603602081101561039657600080fd5b50356001600160a01b0316610b91565b61027d600480360360808110156103bc57600080fd5b506001600160a01b03813581169160208101358216916040820135169060600135610c77565b6103ea610d4f565b604080516001600160a01b039092168252519081900360200190f35b6102ae6004803603604081101561041c57600080fd5b506001600160a01b038135169060200135610d5e565b6103ea610e2a565b6102ae6004803603602081101561045057600080fd5b50356001600160a01b0316610e39565b6103ea610f31565b6102ae6004803603604081101561047e57600080fd5b506001600160a01b038135169060200135610f40565b6102ae600480360360208110156104aa57600080fd5b503561100c565b6102ae600480360360408110156104c757600080fd5b506001600160a01b03813516906020013561101f565b6102ae600480360360408110156104f357600080fd5b506001600160a01b0381351690602001356110eb565b6101dc6111b7565b61027d6004803603606081101561052757600080fd5b506001600160a01b038135811691602081013590911690604001356111fc565b6102ae6004803603602081101561055d57600080fd5b50356112d2565b61027d6004803603604081101561057a57600080fd5b506001600160a01b0381351690602001356112e5565b6102ae611300565b6102ae600480360360208110156105ae57600080fd5b503561135a565b6102ae600480360360208110156105cb57600080fd5b503561136d565b6102ae600480360360408110156105e857600080fd5b506001600160a01b0381358116916020013516611380565b6102ae6004803603604081101561061657600080fd5b506001600160a01b03813516906020013561151e565b600154604080516306fdde0360e01b815290516060926001600160a01b0316916306fdde03916004808301926000929190829003018186803b15801561067157600080fd5b505afa158015610685573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405260208110156106ae57600080fd5b81019080805160405193929190846401000000008211156106ce57600080fd5b9083019060208201858111156106e357600080fd5b82516401000000008111828201881017156106fd57600080fd5b82525081516020918201929091019080838360005b8381101561072a578181015183820152602001610712565b50505050905090810190601f1680156107575780820380516001836020036101000a031916815260200191505b50604052505050905090565b600061076d6115ea565b6001546040805163e1f21c6760e01b81526001600160a01b0392831660048201528683166024820152604481018690529051929091169163e1f21c67916064808201926020929091908290030181600087803b1580156107cc57600080fd5b505af11580156107e0573d6000803e3d6000fd5b505050506040513d60208110156107f657600080fd5b505190505b92915050565b600061081461080e6115ea565b83611637565b90505b919050565b600080546040805163ce8ac03360e01b81526001600160a01b03858116600483015291518493929092169163ce8ac0339160248082019260209290919082900301818787803b15801561086e57600080fd5b505af1158015610882573d6000803e3d6000fd5b505050506040513d602081101561089857600080fd5b5051600154604080516305eff7ef60e21b81526001600160a01b0392831660048201529051929350908316916317bfdfbc916024808201926020929091908290030181600087803b1580156108ec57600080fd5b505af1158015610900573d6000803e3d6000fd5b505050506040513d602081101561091657600080fd5b50519392505050565b600154604080516318160ddd60e01b815290516000926001600160a01b0316916318160ddd916004808301926020929190829003018186803b15801561096457600080fd5b505afa158015610978573d6000803e3d6000fd5b505050506040513d602081101561098e57600080fd5b5051905090565b6001546040805163182df0f560e01b815290516000926001600160a01b03169163182df0f5916004808301926020929190829003018186803b15801561096457600080fd5b60006109ef6109e76115ea565b8585856117b7565b949350505050565b600080546040805163455b2b4360e11b81526001600160a01b038088166004830152336024830152915187939290921691638ab6568691604480820192602092909190829003018186803b158015610a4e57600080fd5b505afa158015610a62573d6000803e3d6000fd5b505050506040513d6020811015610a7857600080fd5b5051610ab9576040805162461bcd60e51b81526020600482018190526024820152600080516020611f56833981519152604482015290519081900360640190fd5b6001546040805163e1f21c6760e01b81526001600160a01b03928316600482015286831660248201526044810186905290519187169163e1f21c67916064808201926020929091908290030181600087803b158015610b1757600080fd5b505af1158015610b2b573d6000803e3d6000fd5b505050506040513d6020811015610b4157600080fd5b505195945050505050565b6001546040805163313ce56760e01b815290516000926001600160a01b03169163313ce567916004808301926020929190829003018186803b15801561096457600080fd5b60008054604080516352407a3d60e11b81526001600160a01b03858116600483015291518493929092169163a480f47a91602480820192602092909190829003018186803b158015610be257600080fd5b505afa158015610bf6573d6000803e3d6000fd5b505050506040513d6020811015610c0c57600080fd5b505190506001600160a01b038116610c28576000915050610817565b60015460408051633af9e66960e01b81526001600160a01b03848116600483015291519190921691633af9e6699160248083019260209291908290030181600087803b1580156108ec57600080fd5b600080546040805163455b2b4360e11b81526001600160a01b038089166004830152336024830152915188939290921691638ab6568691604480820192602092909190829003018186803b158015610cce57600080fd5b505afa158015610ce2573d6000803e3d6000fd5b505050506040513d6020811015610cf857600080fd5b5051610d39576040805162461bcd60e51b81526020600482018190526024820152600080516020611f56833981519152604482015290519081900360640190fd5b610d45868686866117b7565b9695505050505050565b6001546001600160a01b031681565b600080546040805163455b2b4360e11b81526001600160a01b038087166004830152336024830152915186939290921691638ab6568691604480820192602092909190829003018186803b158015610db557600080fd5b505afa158015610dc9573d6000803e3d6000fd5b505050506040513d6020811015610ddf57600080fd5b5051610e20576040805162461bcd60e51b81526020600482018190526024820152600080516020611f56833981519152604482015290519081900360640190fd5b6109ef84846118a1565b6002546001600160a01b031681565b60008054604080516352407a3d60e11b81526001600160a01b03858116600483015291518493929092169163a480f47a91602480820192602092909190829003018186803b158015610e8a57600080fd5b505afa158015610e9e573d6000803e3d6000fd5b505050506040513d6020811015610eb457600080fd5b505190506001600160a01b038116610ed0576000915050610817565b600154604080516370a0823160e01b81526001600160a01b038481166004830152915191909216916370a08231916024808301926020929190829003018186803b158015610f1d57600080fd5b505afa158015610900573d6000803e3d6000fd5b6000546001600160a01b031681565b600080546040805163455b2b4360e11b81526001600160a01b038087166004830152336024830152915186939290921691638ab6568691604480820192602092909190829003018186803b158015610f9757600080fd5b505afa158015610fab573d6000803e3d6000fd5b505050506040513d6020811015610fc157600080fd5b5051611002576040805162461bcd60e51b81526020600482018190526024820152600080516020611f56833981519152604482015290519081900360640190fd5b6109ef8484611982565b60006108146110196115ea565b836118a1565b600080546040805163455b2b4360e11b81526001600160a01b038087166004830152336024830152915186939290921691638ab6568691604480820192602092909190829003018186803b15801561107657600080fd5b505afa15801561108a573d6000803e3d6000fd5b505050506040513d60208110156110a057600080fd5b50516110e1576040805162461bcd60e51b81526020600482018190526024820152600080516020611f56833981519152604482015290519081900360640190fd5b6109ef8484611a70565b600080546040805163455b2b4360e11b81526001600160a01b038087166004830152336024830152915186939290921691638ab6568691604480820192602092909190829003018186803b15801561114257600080fd5b505afa158015611156573d6000803e3d6000fd5b505050506040513d602081101561116c57600080fd5b50516111ad576040805162461bcd60e51b81526020600482018190526024820152600080516020611f56833981519152604482015290519081900360640190fd5b6109ef8484611637565b600154604080516395d89b4160e01b815290516060926001600160a01b0316916395d89b41916004808301926000929190829003018186803b15801561067157600080fd5b600080546040805163455b2b4360e11b81526001600160a01b038088166004830152336024830152915187939290921691638ab6568691604480820192602092909190829003018186803b15801561125357600080fd5b505afa158015611267573d6000803e3d6000fd5b505050506040513d602081101561127d57600080fd5b50516112be576040805162461bcd60e51b81526020600482018190526024820152600080516020611f56833981519152604482015290519081900360640190fd5b6112c9858585611b49565b95945050505050565b60006108146112df6115ea565b83611982565b60006112f96112f26115ea565b8484611b49565b9392505050565b6001546040805163bd6d894d60e01b815290516000926001600160a01b03169163bd6d894d91600480830192602092919082900301818787803b15801561134657600080fd5b505af1158015610978573d6000803e3d6000fd5b60006108146113676115ea565b83611c2b565b600061081461137a6115ea565b83611a70565b60008054604080516352407a3d60e11b81526001600160a01b03858116600483015291518493929092169163a480f47a91602480820192602092909190829003018186803b1580156113d157600080fd5b505afa1580156113e5573d6000803e3d6000fd5b505050506040513d60208110156113fb57600080fd5b505190506001600160a01b0381166114175760009150506107fb565b600154600054604080516352407a3d60e11b81526001600160a01b03888116600483015291519382169363dd62ed3e939092169163a480f47a91602480820192602092909190829003018186803b15801561147157600080fd5b505afa158015611485573d6000803e3d6000fd5b505050506040513d602081101561149b57600080fd5b5051604080516001600160e01b031960e085901b1681526001600160a01b0392831660048201529185166024830152516044808301926020929190829003018186803b1580156114ea57600080fd5b505afa1580156114fe573d6000803e3d6000fd5b505050506040513d602081101561151457600080fd5b5051949350505050565b600080546040805163455b2b4360e11b81526001600160a01b038087166004830152336024830152915186939290921691638ab6568691604480820192602092909190829003018186803b15801561157557600080fd5b505afa158015611589573d6000803e3d6000fd5b505050506040513d602081101561159f57600080fd5b50516115e0576040805162461bcd60e51b81526020600482018190526024820152600080516020611f56833981519152604482015290519081900360640190fd5b6109ef8484611c2b565b600080546040805163ce8ac03360e01b815233600482015290516001600160a01b039092169163ce8ac0339160248082019260209290919082900301818787803b15801561134657600080fd5b6000816000198114156116c257600154604080516305eff7ef60e21b81526001600160a01b0392831660048201529051918616916317bfdfbc916024808201926020929091908290030181600087803b15801561169357600080fd5b505af11580156116a7573d6000803e3d6000fd5b505050506040513d60208110156116bd57600080fd5b505190505b6002546116e0906001600160a01b031633868463ffffffff611d0416565b6001546040805163157b6bd560e31b81526001600160a01b03928316600482015260248101849052905160009287169163abdb5ea891604480830192602092919082900301818787803b15801561173657600080fd5b505af115801561174a573d6000803e3d6000fd5b505050506040513d602081101561176057600080fd5b5051905080156109ef576040805162461bcd60e51b815260206004820152601a60248201527f4245726332303a207265706179426f72726f772d6661696c6564000000000000604482015290519081900360640190fd5b60015460408051630aed65f560e11b81526001600160a01b039283166004820152858316602482015284831660448201526064810184905290516000928392908816916315dacbea9160848082019260209290919082900301818787803b15801561182157600080fd5b505af1158015611835573d6000803e3d6000fd5b505050506040513d602081101561184b57600080fd5b50519050806112c9576040805162461bcd60e51b815260206004820152601b60248201527f42546f6b656e3a207472616e7366657246726f6d2d6661696c65640000000000604482015290519081900360640190fd5b600154604080516334f496ab60e01b81526001600160a01b0392831660048201526024810184905233604482015290516000928392908616916334f496ab9160648082019260209290919082900301818787803b15801561190157600080fd5b505af1158015611915573d6000803e3d6000fd5b505050506040513d602081101561192b57600080fd5b5051905080156112f9576040805162461bcd60e51b815260206004820152601f60248201527f42546f6b656e3a2072656465656d556e6465726c79696e672d6661696c656400604482015290519081900360640190fd5b6002546000906119a3906001600160a01b031633858563ffffffff611d0416565b600154604080516340c10f1960e01b81526001600160a01b0392831660048201526024810185905290516000928616916340c10f1991604480830192602092919082900301818787803b1580156119f957600080fd5b505af1158015611a0d573d6000803e3d6000fd5b505050506040513d6020811015611a2357600080fd5b5051905080156112f9576040805162461bcd60e51b815260206004820152601360248201527210915c98cc8c0e881b5a5b9d0b59985a5b1959606a1b604482015290519081900360640190fd5b60015460408051635c833bfd60e01b81526001600160a01b039283166004820152602481018490523360448201529051600092839290861691635c833bfd9160648082019260209290919082900301818787803b158015611ad057600080fd5b505af1158015611ae4573d6000803e3d6000fd5b505050506040513d6020811015611afa57600080fd5b5051905080156112f9576040805162461bcd60e51b815260206004820152601560248201527410951bdad95b8e881c995919595b4b59985a5b1959605a1b604482015290519081900360640190fd5b600154604080516317d5759960e31b81526001600160a01b039283166004820152848316602482015260448101849052905160009283929087169163beabacc89160648082019260209290919082900301818787803b158015611bab57600080fd5b505af1158015611bbf573d6000803e3d6000fd5b505050506040513d6020811015611bd557600080fd5b50519050806109ef576040805162461bcd60e51b815260206004820152601760248201527f42546f6b656e3a207472616e736665722d6661696c6564000000000000000000604482015290519081900360640190fd5b60015460408051636c665a5560e01b81526001600160a01b039283166004820152602481018490523360448201529051600092839290861691636c665a559160648082019260209290919082900301818787803b158015611c8b57600080fd5b505af1158015611c9f573d6000803e3d6000fd5b505050506040513d6020811015611cb557600080fd5b5051905080156112f9576040805162461bcd60e51b815260206004820152601560248201527410951bdad95b8e88189bdc9c9bddcb59985a5b1959605a1b604482015290519081900360640190fd5b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611d5e908590611d64565b50505050565b611d76826001600160a01b0316611f1c565b611dc7576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b60208310611e055780518252601f199092019160209182019101611de6565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611e67576040519150601f19603f3d011682016040523d82523d6000602084013e611e6c565b606091505b509150915081611ec3576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115611d5e57808060200190516020811015611edf57600080fd5b5051611d5e5760405162461bcd60e51b815260040180806020018281038252602a815260200180611f76602a913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906109ef57505015159291505056fe42546f6b656e3a2064656c6567617465652d6e6f742d617574686f72697a65645361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a72315820f7afcbc84104aa2002fff7a58365202348ec008c644892067cf463188ac5f44864736f6c63430005100032

Deployed Bytecode Sourcemap

43661:1764:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;43661:1764:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43133:100;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8::-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;43133:100:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42010:151;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;42010:151:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;44560:133;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;44560:133:0;;:::i;:::-;;;;;;;;;;;;;;;;38343:201;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;38343:201:0;-1:-1:-1;;;;;38343:201:0;;:::i;43461:108::-;;;:::i;40556:119::-;;;:::i;41333:158::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;41333:158:0;;;;;;;;;;;;;;;;;:::i;42169:195::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;42169:195:0;;;;;;;;;;;;;;;;;:::i;43353:100::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;42892:233;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;42892:233:0;-1:-1:-1;;;;;42892:233:0;;:::i;41499:202::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;;41499:202:0;;;;;;;;;;;;;;;;;;;;;;:::i;37811:21::-;;;:::i;:::-;;;;-1:-1:-1;;;;;37811:21:0;;;;;;;;;;;;;;39323:189;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;39323:189:0;;;;;;;;:::i;43699:24::-;;;:::i;42665:219::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;42665:219:0;-1:-1:-1;;;;;42665:219:0;;:::i;37721:25::-;;;:::i;44050:161::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;44050:161:0;;;;;;;;:::i;39170:145::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;39170:145:0;;:::i;38702:169::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;38702:169:0;;;;;;;;:::i;44701:177::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;44701:177:0;;;;;;;;:::i;43241:104::-;;;:::i;40873:176::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;40873:176:0;;;;;;;;;;;;;;;;;:::i;43925:117::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;43925:117:0;;:::i;40733:132::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;40733:132:0;;;;;;;;:::i;40429:119::-;;;:::i;39831:125::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;39831:125:0;;:::i;38569:::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;38569:125:0;;:::i;42372:285::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;42372:285:0;;;;;;;;;;:::i;39964:169::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;39964:169:0;;;;;;;;:::i;43133:100::-;43211:6;;43203:22;;;-1:-1:-1;;;43203:22:0;;;;43170:13;;-1:-1:-1;;;;;43211:6:0;;43203:20;;:22;;;;;43211:6;;43203:22;;;;;;;43211:6;43203:22;;;5:2:-1;;;;30:1;27;20:12;5:2;43203:22:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;43203:22:0;;;;;;39:16:-1;36:1;17:17;2:54;101:4;43203:22:0;80:15:-1;;;-1:-1;;76:31;65:43;;120:4;113:20;13:2;5:11;;2:2;;;29:1;26;19:12;2:2;43203:22:0;;;;;;;;;;;;;19:11:-1;14:3;11:20;8:2;;;44:1;41;34:12;8:2;62:21;;;;123:4;114:14;;138:31;;;135:2;;;182:1;179;172:12;135:2;213:10;;261:11;244:29;;285:43;;;282:58;-1:-1;233:115;230:2;;;361:1;358;351:12;230:2;372:25;;-1:-1;43203:22:0;;420:4:-1;411:14;;;;43203:22:0;;;;;411:14:-1;43203:22:0;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;43203:22:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43196:29;;43133:100;:::o;42010:151::-;42076:4;42108:11;:9;:11::i;:::-;42129:6;;42100:53;;;-1:-1:-1;;;42100:53:0;;-1:-1:-1;;;;;42129:6:0;;;42100:53;;;;;;;;;;;;;;;;;;;:28;;;;;;;:53;;;;;;;;;;;;;;;42129:6;42100:28;:53;;;5:2:-1;;;;30:1;27;20:12;5:2;42100:53:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;42100:53:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;42100:53:0;;-1:-1:-1;42010:151:0;;;;;:::o;44560:133::-;44620:7;44647:38;44660:11;:9;:11::i;:::-;44673;44647:12;:38::i;:::-;44640:45;;44560:133;;;;:::o;38343:201::-;38408:7;38446:8;;:27;;;-1:-1:-1;;;38446:27:0;;-1:-1:-1;;;;;38446:27:0;;;;;;;;;38408:7;;38446:8;;;;;:18;;:27;;;;;;;;;;;;;;;38408:7;38446:8;:27;;;5:2:-1;;;;30:1;27;20:12;5:2;38446:27:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;38446:27:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;38446:27:0;38529:6;;38491:45;;;-1:-1:-1;;;38491:45:0;;-1:-1:-1;;;;;38529:6:0;;;38491:45;;;;;;38446:27;;-1:-1:-1;38491:37:0;;;;;;:45;;;;;38446:27;;38491:45;;;;;;;;38529:6;38491:37;:45;;;5:2:-1;;;;30:1;27;20:12;5:2;38491:45:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;38491:45:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;38491:45:0;;38343:201;-1:-1:-1;;;38343:201:0:o;43461:108::-;43540:6;;43532:29;;;-1:-1:-1;;;43532:29:0;;;;43505:7;;-1:-1:-1;;;;;43540:6:0;;43532:27;;:29;;;;;;;;;;;;;;43540:6;43532:29;;;5:2:-1;;;;30:1;27;20:12;5:2;43532:29:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;43532:29:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;43532:29:0;;-1:-1:-1;43461:108:0;:::o;40556:119::-;40639:6;;40631:36;;;-1:-1:-1;;;40631:36:0;;;;40607:4;;-1:-1:-1;;;;;40639:6:0;;40631:34;;:36;;;;;;;;;;;;;;40639:6;40631:36;;;5:2:-1;;;;30:1;27;20:12;41333:158:0;41415:4;41439:44;41453:11;:9;:11::i;:::-;41466:3;41471;41476:6;41439:13;:44::i;:::-;41432:51;41333:158;-1:-1:-1;;;;41333:158:0:o;42169:195::-;42283:4;37938:8;;:38;;;-1:-1:-1;;;37938:38:0;;-1:-1:-1;;;;;37938:38:0;;;;;;;37965:10;37938:38;;;;;;42265:7;;37938:8;;;;;:17;;:38;;;;;;;;;;;;;;;:8;:38;;;5:2:-1;;;;30:1;27;20:12;5:2;37938:38:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;37938:38:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;37938:38:0;37930:83;;;;;-1:-1:-1;;;37930:83:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;37930:83:0;;;;;;;;;;;;;;;42332:6;;42307:49;;;-1:-1:-1;;;42307:49:0;;-1:-1:-1;;;;;42332:6:0;;;42307:49;;;;;;;;;;;;;;;;;;;:24;;;;;;:49;;;;;;;;;;;;;;;42332:6;42307:24;:49;;;5:2:-1;;;;30:1;27;20:12;5:2;42307:49:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;42307:49:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;42307:49:0;;42169:195;-1:-1:-1;;;;;42169:195:0:o;43353:100::-;43427:6;;43419:26;;;-1:-1:-1;;;43419:26:0;;;;43394:5;;-1:-1:-1;;;;;43427:6:0;;43419:24;;:26;;;;;;;;;;;;;;43427:6;43419:26;;;5:2:-1;;;;30:1;27;20:12;42892:233:0;42954:4;42988:8;;:24;;;-1:-1:-1;;;42988:24:0;;-1:-1:-1;;;;;42988:24:0;;;;;;;;;42954:4;;42988:8;;;;;:17;;:24;;;;;;;;;;;;;;;:8;:24;;;5:2:-1;;;;30:1;27;20:12;5:2;42988:24:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;42988:24:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;42988:24:0;;-1:-1:-1;;;;;;43026:20:0;;43023:33;;43055:1;43048:8;;;;;43023:33;43082:6;;43074:43;;;-1:-1:-1;;;43074:43:0;;-1:-1:-1;;;;;43074:43:0;;;;;;;;;43082:6;;;;;43074:35;;:43;;;;;;;;;;;;;;43082:6;;43074:43;;;5:2:-1;;;;30:1;27;20:12;41499:202:0;41629:4;37938:8;;:38;;;-1:-1:-1;;;37938:38:0;;-1:-1:-1;;;;;37938:38:0;;;;;;;37965:10;37938:38;;;;;;41611:7;;37938:8;;;;;:17;;:38;;;;;;;;;;;;;;;:8;:38;;;5:2:-1;;;;30:1;27;20:12;5:2;37938:38:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;37938:38:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;37938:38:0;37930:83;;;;;-1:-1:-1;;;37930:83:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;37930:83:0;;;;;;;;;;;;;;;41653:40;41667:7;41676:3;41681;41686:6;41653:13;:40::i;:::-;41646:47;41499:202;-1:-1:-1;;;;;;41499:202:0:o;37811:21::-;;;-1:-1:-1;;;;;37811:21:0;;:::o;39323:189::-;39437:7;37938:8;;:38;;;-1:-1:-1;;;37938:38:0;;-1:-1:-1;;;;;37938:38:0;;;;;;;37965:10;37938:38;;;;;;39419:7;;37938:8;;;;;:17;;:38;;;;;;;;;;;;;;;:8;:38;;;5:2:-1;;;;30:1;27;20:12;5:2;37938:38:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;37938:38:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;37938:38:0;37930:83;;;;;-1:-1:-1;;;37930:83:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;37930:83:0;;;;;;;;;;;;;;;39464:40;39482:7;39491:12;39464:17;:40::i;43699:24::-;;;-1:-1:-1;;;;;43699:24:0;;:::o;42665:219::-;42720:7;42757:8;;:24;;;-1:-1:-1;;;42757:24:0;;-1:-1:-1;;;;;42757:24:0;;;;;;;;;42720:7;;42757:8;;;;;:17;;:24;;;;;;;;;;;;;;;:8;:24;;;5:2:-1;;;;30:1;27;20:12;5:2;42757:24:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;42757:24:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;42757:24:0;;-1:-1:-1;;;;;;42795:20:0;;42792:33;;42824:1;42817:8;;;;;42792:33;42851:6;;42843:33;;;-1:-1:-1;;;42843:33:0;;-1:-1:-1;;;;;42843:33:0;;;;;;;;;42851:6;;;;;42843:25;;:33;;;;;;;;;;;;;;42851:6;42843:33;;;5:2:-1;;;;30:1;27;20:12;5:2;42843:33:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;37721:25:0;;;-1:-1:-1;;;;;37721:25:0;;:::o;44050:161::-;44150:7;37938:8;;:38;;;-1:-1:-1;;;37938:38:0;;-1:-1:-1;;;;;37938:38:0;;;;;;;37965:10;37938:38;;;;;;44132:7;;37938:8;;;;;:17;;:38;;;;;;;;;;;;;;;:8;:38;;;5:2:-1;;;;30:1;27;20:12;5:2;37938:38:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;37938:38:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;37938:38:0;37930:83;;;;;-1:-1:-1;;;37930:83:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;37930:83:0;;;;;;;;;;;;;;;44177:26;44183:7;44192:10;44177:5;:26::i;39170:145::-;39236:7;39263:44;39281:11;:9;:11::i;:::-;39294:12;39263:17;:44::i;38702:169::-;38806:7;37938:8;;:38;;;-1:-1:-1;;;37938:38:0;;-1:-1:-1;;;;;37938:38:0;;;;;;;37965:10;37938:38;;;;;;38788:7;;37938:8;;;;;:17;;:38;;;;;;;;;;;;;;;:8;:38;;;5:2:-1;;;;30:1;27;20:12;5:2;37938:38:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;37938:38:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;37938:38:0;37930:83;;;;;-1:-1:-1;;;37930:83:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;37930:83:0;;;;;;;;;;;;;;;38833:30;38841:7;38850:12;38833:7;:30::i;44701:177::-;44809:7;37938:8;;:38;;;-1:-1:-1;;;37938:38:0;;-1:-1:-1;;;;;37938:38:0;;;;;;;37965:10;37938:38;;;;;;44791:7;;37938:8;;;;;:17;;:38;;;;;;;;;;;;;;;:8;:38;;;5:2:-1;;;;30:1;27;20:12;5:2;37938:38:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;37938:38:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;37938:38:0;37930:83;;;;;-1:-1:-1;;;37930:83:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;37930:83:0;;;;;;;;;;;;;;;44836:34;44849:7;44858:11;44836:12;:34::i;43241:104::-;43321:6;;43313:24;;;-1:-1:-1;;;43313:24:0;;;;43280:13;;-1:-1:-1;;;;;43321:6:0;;43313:22;;:24;;;;;43321:6;;43313:24;;;;;;;43321:6;43313:24;;;5:2:-1;;;;30:1;27;20:12;40873:176:0;40986:4;37938:8;;:38;;;-1:-1:-1;;;37938:38:0;;-1:-1:-1;;;;;37938:38:0;;;;;;;37965:10;37938:38;;;;;;40968:7;;37938:8;;;;;:17;;:38;;;;;;;;;;;;;;;:8;:38;;;5:2:-1;;;;30:1;27;20:12;5:2;37938:38:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;37938:38:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;37938:38:0;37930:83;;;;;-1:-1:-1;;;37930:83:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;37930:83:0;;;;;;;;;;;;;;;41010:31;41020:7;41029:3;41034:6;41010:9;:31::i;:::-;41003:38;40873:176;-1:-1:-1;;;;;40873:176:0:o;43925:117::-;43977:7;44004:30;44010:11;:9;:11::i;:::-;44023:10;44004:5;:30::i;40733:132::-;40798:4;40822:35;40832:11;:9;:11::i;:::-;40845:3;40850:6;40822:9;:35::i;:::-;40815:42;40733:132;-1:-1:-1;;;40733:132:0:o;40429:119::-;40511:6;;40503:37;;;-1:-1:-1;;;40503:37:0;;;;40476:7;;-1:-1:-1;;;;;40511:6:0;;40503:35;;:37;;;;;;;;;;;;;;40476:7;40511:6;40503:37;;;5:2:-1;;;;30:1;27;20:12;5:2;40503:37:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;39831:125:0;39887:7;39914:34;39922:11;:9;:11::i;:::-;39935:12;39914:7;:34::i;38569:125::-;38625:7;38652:34;38660:11;:9;:11::i;:::-;38673:12;38652:7;:34::i;42372:285::-;42444:7;42488:8;;:26;;;-1:-1:-1;;;42488:26:0;;-1:-1:-1;;;;;42488:26:0;;;;;;;;;42444:7;;42488:8;;;;;:17;;:26;;;;;;;;;;;;;;;:8;:26;;;5:2:-1;;;;30:1;27;20:12;5:2;42488:26:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;42488:26:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;42488:26:0;;-1:-1:-1;;;;;;42528:27:0;;42525:40;;42564:1;42557:8;;;;;42525:40;42591:6;;;42609:8;:24;;;-1:-1:-1;;;42609:24:0;;-1:-1:-1;;;;;42609:24:0;;;;;;;;;42591:6;;;;42583:25;;42609:8;;;;:17;;:24;;;;;;;;;;;;;;;:8;:24;;;5:2:-1;;;;30:1;27;20:12;5:2;42609:24:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;42609:24:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;42609:24:0;42583:66;;;-1:-1:-1;;;;;;42583:66:0;;;;;;;-1:-1:-1;;;;;42583:66:0;;;;;;;;;;;;;;;;;;;;42609:24;;42583:66;;;;;;;;;;;5:2:-1;;;;30:1;27;20:12;5:2;42583:66:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;42583:66:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;42583:66:0;;42372:285;-1:-1:-1;;;;42372:285:0:o;39964:169::-;40068:7;37938:8;;:38;;;-1:-1:-1;;;37938:38:0;;-1:-1:-1;;;;;37938:38:0;;;;;;;37965:10;37938:38;;;;;;40050:7;;37938:8;;;;;:17;;:38;;;;;;;;;;;;;;;:8;:38;;;5:2:-1;;;;30:1;27;20:12;5:2;37938:38:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;37938:38:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;37938:38:0;37930:83;;;;;-1:-1:-1;;;37930:83:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;37930:83:0;;;;;;;;;;;;;;;40095:30;40103:7;40112:12;40095:7;:30::i;38183:104::-;38222:7;38249:8;;:30;;;-1:-1:-1;;;38249:30:0;;38268:10;38249:30;;;;;;-1:-1:-1;;;;;38249:8:0;;;;:18;;:30;;;;;;;;;;;;;;;38222:7;38249:8;:30;;;5:2:-1;;;;30:1;27;20:12;44886:536:0;44964:7;45012:11;-1:-1:-1;;45037:26:0;;45034:129;;;45144:6;;45100:51;;;-1:-1:-1;;;45100:51:0;;-1:-1:-1;;;;;45144:6:0;;;45100:51;;;;;;:43;;;;;;:51;;;;;;;;;;;;;;;45144:6;45100:43;:51;;;5:2:-1;;;;30:1;27;20:12;5:2;45100:51:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;45100:51:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;45100:51:0;;-1:-1:-1;45034:129:0;45173:10;;:67;;-1:-1:-1;;;;;45173:10:0;45201;45213:7;45222:17;45173:67;:27;:67;:::i;:::-;45303:6;;45268:61;;;-1:-1:-1;;;45268:61:0;;-1:-1:-1;;;;;45303:6:0;;;45268:61;;;;;;;;;;;;45251:14;;45268:34;;;;;:61;;;;;;;;;;;;;;45251:14;45268:34;:61;;;5:2:-1;;;;30:1;27;20:12;5:2;45268:61:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;45268:61:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;45268:61:0;;-1:-1:-1;45348:11:0;;45340:50;;;;;-1:-1:-1;;;45340:50:0;;;;;;;;;;;;;;;;;;;;;;;;;;;41709:275;41870:6;;41840:55;;;-1:-1:-1;;;41840:55:0;;-1:-1:-1;;;;;41870:6:0;;;41840:55;;;;;;;;;;;;;;;;;;;;;;;;;;41809:4;;;;41840:29;;;;;;:55;;;;;;;;;;;;;;;41809:4;41840:29;:55;;;5:2:-1;;;;30:1;27;20:12;5:2;41840:55:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;41840:55:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;41840:55:0;;-1:-1:-1;41840:55:0;41906:46;;;;;-1:-1:-1;;;41906:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;39520:286;39675:6;;39641:67;;;-1:-1:-1;;;39641:67:0;;-1:-1:-1;;;;;39675:6:0;;;39641:67;;;;;;;;;;39697:10;39641:67;;;;;;39604:7;;;;39641:33;;;;;;:67;;;;;;;;;;;;;;;39604:7;39641:33;:67;;;5:2:-1;;;;30:1;27;20:12;5:2;39641:67:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;39641:67:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;39641:67:0;;-1:-1:-1;39727:11:0;;39719:55;;;;;-1:-1:-1;;;39719:55:0;;;;;;;;;;;;;;;;;;;;;;;;;;;44219:311;44309:10;;44289:7;;44309:60;;-1:-1:-1;;;;;44309:10:0;44337;44349:7;44358:10;44309:60;:27;:60;:::i;:::-;44425:6;;44397:47;;;-1:-1:-1;;;44397:47:0;;-1:-1:-1;;;;;44425:6:0;;;44397:47;;;;;;;;;;;;44380:14;;44397:27;;;;;:47;;;;;;;;;;;;;;44380:14;44397:27;:47;;;5:2:-1;;;;30:1;27;20:12;5:2;44397:47:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;44397:47:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;44397:47:0;;-1:-1:-1;44463:11:0;;44455:43;;;;;-1:-1:-1;;;44455:43:0;;;;;;;;;;;;-1:-1:-1;;;44455:43:0;;;;;;;;;;;;;;38879:256;39014:6;;38990:57;;;-1:-1:-1;;;38990:57:0;;-1:-1:-1;;;;;39014:6:0;;;38990:57;;;;;;;;;;39036:10;38990:57;;;;;;38953:7;;;;38990:23;;;;;;:57;;;;;;;;;;;;;;;38953:7;38990:23;:57;;;5:2:-1;;;;30:1;27;20:12;5:2;38990:57:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;38990:57:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;38990:57:0;;-1:-1:-1;39066:11:0;;39058:45;;;;;-1:-1:-1;;;39058:45:0;;;;;;;;;;;;-1:-1:-1;;;39058:45:0;;;;;;;;;;;;;;41057:245;41197:6;;41171:46;;;-1:-1:-1;;;41171:46:0;;-1:-1:-1;;;;;41197:6:0;;;41171:46;;;;;;;;;;;;;;;;;;;41140:4;;;;41171:25;;;;;;:46;;;;;;;;;;;;;;;41140:4;41171:25;:46;;;5:2:-1;;;;30:1;27;20:12;5:2;41171:46:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;41171:46:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;41171:46:0;;-1:-1:-1;41171:46:0;41228:42;;;;;-1:-1:-1;;;41228:42:0;;;;;;;;;;;;;;;;;;;;;;;;;;;40141:256;40276:6;;40252:57;;;-1:-1:-1;;;40252:57:0;;-1:-1:-1;;;;;40276:6:0;;;40252:57;;;;;;;;;;40298:10;40252:57;;;;;;40215:7;;;;40252:23;;;;;;:57;;;;;;;;;;;;;;;40215:7;40252:23;:57;;;5:2:-1;;;;30:1;27;20:12;5:2;40252:57:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;40252:57:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;40252:57:0;;-1:-1:-1;40328:11:0;;40320:45;;;;;-1:-1:-1;;;40320:45:0;;;;;;;;;;;;-1:-1:-1;;;40320:45:0;;;;;;;;;;;;;;34416:204;34543:68;;;-1:-1:-1;;;;;34543:68:0;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;34543:68:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;34517:95:0;;34536:5;;34517:18;:95::i;:::-;34416:204;;;;:::o;36271:1114::-;36875:27;36883:5;-1:-1:-1;;;;;36875:25:0;;:27::i;:::-;36867:71;;;;;-1:-1:-1;;;36867:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;37012:12;37026:23;37061:5;-1:-1:-1;;;;;37053:19:0;37073:4;37053:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;37053:25:0;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;37011:67:0;;;;37097:7;37089:52;;;;;-1:-1:-1;;;37089:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37158:17;;:21;37154:224;;37300:10;37289:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;37289:30:0;37281:85;;;;-1:-1:-1;;;37281:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31261:619;31321:4;31789:20;;31632:66;31829:23;;;;;;:42;;-1:-1:-1;;31856:15:0;;;31821:51;-1:-1:-1;;31261:619:0:o

Swarm Source

bzzr://f7afcbc84104aa2002fff7a58365202348ec008c644892067cf463188ac5f448

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.