Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 28 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Borrow | 12880680 | 1278 days ago | IN | 0 ETH | 0.00557076 | ||||
Borrow | 11842443 | 1438 days ago | IN | 0 ETH | 0.07358146 | ||||
Borrow | 11627495 | 1471 days ago | IN | 0 ETH | 0.0140458 | ||||
Borrow | 11625615 | 1472 days ago | IN | 0 ETH | 0.0267317 | ||||
Mint | 11625589 | 1472 days ago | IN | 0 ETH | 0.00897822 | ||||
Borrow | 11571673 | 1480 days ago | IN | 0 ETH | 0.02113066 | ||||
Borrow | 11502215 | 1491 days ago | IN | 0 ETH | 0.02854799 | ||||
Borrow | 11502167 | 1491 days ago | IN | 0 ETH | 0.01978259 | ||||
Mint | 11457382 | 1497 days ago | IN | 0 ETH | 0.01296698 | ||||
Borrow | 11446261 | 1499 days ago | IN | 0 ETH | 0.01206109 | ||||
Mint | 11439451 | 1500 days ago | IN | 0 ETH | 0.00463767 | ||||
Borrow | 11413530 | 1504 days ago | IN | 0 ETH | 0.01391601 | ||||
Mint | 11412989 | 1504 days ago | IN | 0 ETH | 0.01077361 | ||||
Borrow | 11412641 | 1504 days ago | IN | 0 ETH | 0.01753422 | ||||
Borrow | 11411825 | 1504 days ago | IN | 0 ETH | 0.00926304 | ||||
Borrow | 11411552 | 1505 days ago | IN | 0 ETH | 0.01091992 | ||||
Borrow | 11411542 | 1505 days ago | IN | 0 ETH | 0.01138364 | ||||
Mint | 11411513 | 1505 days ago | IN | 0 ETH | 0.01647765 | ||||
_set Reserve Fac... | 11410223 | 1505 days ago | IN | 0 ETH | 0.003066 | ||||
_set Controller | 11410219 | 1505 days ago | IN | 0 ETH | 0.00173897 | ||||
_set Interest Ra... | 11410216 | 1505 days ago | IN | 0 ETH | 0.0016464 | ||||
_set Underlying | 11410196 | 1505 days ago | IN | 0 ETH | 0.00161833 | ||||
_set Controller | 11410137 | 1505 days ago | IN | 0 ETH | 0.00070765 | ||||
_set Interest Ra... | 11410107 | 1505 days ago | IN | 0 ETH | 0.00070832 | ||||
_set Underlying | 11410003 | 1505 days ago | IN | 0 ETH | 0.00085484 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
AErc20
Compiler Version
v0.5.16+commit.9c3226ce
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-12-08 */ pragma solidity ^0.5.16; /** * @title Artem ERC-20 Contract * @notice Derived from Compound's cERC20 contract * https://github.com/compound-finance/compound-protocol/tree/master/contracts */ /** * @title Careful Math * @notice Derived from OpenZeppelin's SafeMath library * https://github.com/OpenZeppelin/openzeppelin-solidity/blob/master/contracts/math/SafeMath.sol */ contract CarefulMath { 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); } } interface ControllerInterface { function isController() external view returns (bool); function enterMarkets(address[] calldata aTokens) external returns (uint[] memory); function exitMarket(address aToken) external returns (uint); function mintAllowed(address aToken, address minter, uint mintAmount) external returns (uint); function mintVerify(address aToken, address minter, uint mintAmount, uint mintTokens) external; function redeemAllowed(address aToken, address redeemer, uint redeemTokens) external returns (uint); function redeemVerify(address aToken, address redeemer, uint redeemAmount, uint redeemTokens) external; function borrowAllowed(address aToken, address borrower, uint borrowAmount) external returns (uint); function borrowVerify(address aToken, address borrower, uint borrowAmount) external; function repayBorrowAllowed( address aToken, address payer, address borrower, uint repayAmount) external returns (uint); function repayBorrowVerify( address aToken, address payer, address borrower, uint repayAmount, uint borrowerIndex) external; function liquidateBorrowAllowed( address aTokenBorrowed, address aTokenCollateral, address liquidator, address borrower, uint repayAmount) external returns (uint); function liquidateBorrowVerify( address aTokenBorrowed, address aTokenCollateral, address liquidator, address borrower, uint repayAmount, uint seizeTokens) external; function seizeAllowed( address aTokenCollateral, address aTokenBorrowed, address liquidator, address borrower, uint seizeTokens) external returns (uint); function seizeVerify( address aTokenCollateral, address aTokenBorrowed, address liquidator, address borrower, uint seizeTokens) external; function transferAllowed(address aToken, address src, address dst, uint transferTokens) external returns (uint); function transferVerify(address aToken, address src, address dst, uint transferTokens) external; /*** Liquidity/Liquidation Calculations ***/ function liquidateCalculateSeizeTokens( address aTokenBorrowed, address aTokenCollateral, uint repayAmount) external view returns (uint, uint); } contract ControllerErrorReporter { event Failure(uint error, uint info, uint detail); function fail(Error err, FailureInfo info) internal returns (uint) { emit Failure(uint(err), uint(info), 0); return uint(err); } function failOpaque(Error err, FailureInfo info, uint opaqueError) internal returns (uint) { emit Failure(uint(err), uint(info), opaqueError); return uint(err); } enum Error { NO_ERROR, UNAUTHORIZED, CONTROLLER_MISMATCH, INSUFFICIENT_SHORTFALL, INSUFFICIENT_LIQUIDITY, INVALID_CLOSE_FACTOR, INVALID_COLLATERAL_FACTOR, INVALID_LIQUIDATION_INCENTIVE, MARKET_NOT_ENTERED, MARKET_NOT_LISTED, MARKET_ALREADY_LISTED, MATH_ERROR, NONZERO_BORROW_BALANCE, PRICE_ERROR, REJECTION, SNAPSHOT_ERROR, TOO_MANY_ASSETS, TOO_MUCH_REPAY } enum FailureInfo { ACCEPT_ADMIN_PENDING_ADMIN_CHECK, ACCEPT_PENDING_IMPLEMENTATION_ADDRESS_CHECK, EXIT_MARKET_BALANCE_OWED, EXIT_MARKET_REJECTION, SET_CLOSE_FACTOR_OWNER_CHECK, SET_CLOSE_FACTOR_VALIDATION, SET_COLLATERAL_FACTOR_OWNER_CHECK, SET_COLLATERAL_FACTOR_NO_EXISTS, SET_COLLATERAL_FACTOR_VALIDATION, SET_COLLATERAL_FACTOR_WITHOUT_PRICE, SET_IMPLEMENTATION_OWNER_CHECK, SET_LIQUIDATION_INCENTIVE_OWNER_CHECK, SET_LIQUIDATION_INCENTIVE_VALIDATION, SET_MAX_ASSETS_OWNER_CHECK, SET_PENDING_ADMIN_OWNER_CHECK, SET_PENDING_IMPLEMENTATION_OWNER_CHECK, SET_PRICE_ORACLE_OWNER_CHECK, SUPPORT_MARKET_EXISTS, SUPPORT_MARKET_OWNER_CHECK, ZUNUSED } } contract TokenErrorReporter { event Failure(uint error, uint info, uint detail); function fail(Error err, FailureInfo info) internal returns (uint) { emit Failure(uint(err), uint(info), 0); return uint(err); } function failOpaque(Error err, FailureInfo info, uint opaqueError) internal returns (uint) { emit Failure(uint(err), uint(info), opaqueError); return uint(err); } enum Error { NO_ERROR, UNAUTHORIZED, BAD_INPUT, CONTROLLER_REJECTION, CONTROLLER_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 } 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_CONTROLLER_REJECTION, LIQUIDATE_ACCRUE_BORROW_INTEREST_FAILED, LIQUIDATE_ACCRUE_COLLATERAL_INTEREST_FAILED, LIQUIDATE_COLLATERAL_FRESHNESS_CHECK, LIQUIDATE_CONTROLLER_REJECTION, LIQUIDATE_CONTROLLER_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_CONTROLLER_REJECTION, LIQUIDATE_SEIZE_LIQUIDATOR_IS_BORROWER, LIQUIDATE_SEIZE_TOO_MUCH, MINT_ACCRUE_INTEREST_FAILED, MINT_CONTROLLER_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_CONTROLLER_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_CONTROLLER_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_CONTROLLER_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_CONTROLLER_REJECTION, TRANSFER_NOT_ALLOWED, TRANSFER_NOT_ENOUGH, TRANSFER_TOO_MUCH } } contract Exponential is CarefulMath { uint constant expScale = 1e18; uint constant halfExpScale = expScale/2; uint constant mantissaOne = expScale; struct Exp { uint mantissa; } 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})); } function addExp(Exp memory a, Exp memory b) pure internal returns (MathError, Exp memory) { (MathError error, uint result) = addUInt(a.mantissa, b.mantissa); return (error, Exp({mantissa: result})); } function subExp(Exp memory a, Exp memory b) pure internal returns (MathError, Exp memory) { (MathError error, uint result) = subUInt(a.mantissa, b.mantissa); return (error, Exp({mantissa: result})); } 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})); } 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)); } function mulScalarTruncateAddUInt(Exp memory a, uint scalar, uint addend) pure internal returns (MathError, uint) { (MathError err, Exp memory product) = mulScalar(a, scalar); if (err != MathError.NO_ERROR) { return (err, 0); } return addUInt(truncate(product), addend); } function divScalar(Exp memory a, uint scalar) pure internal returns (MathError, Exp memory) { (MathError err0, uint descaledMantissa) = divUInt(a.mantissa, scalar); if (err0 != MathError.NO_ERROR) { return (err0, Exp({mantissa: 0})); } return (MathError.NO_ERROR, Exp({mantissa: descaledMantissa})); } 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); } function divScalarByExpTruncate(uint scalar, Exp memory divisor) pure internal returns (MathError, uint) { (MathError err, Exp memory fraction) = divScalarByExp(scalar, divisor); if (err != MathError.NO_ERROR) { return (err, 0); } return (MathError.NO_ERROR, truncate(fraction)); } 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})); } function mulExp(uint a, uint b) pure internal returns (MathError, Exp memory) { return mulExp(Exp({mantissa: a}), Exp({mantissa: b})); } function mulExp3(Exp memory a, Exp memory b, Exp memory c) pure internal returns (MathError, Exp memory) { (MathError err, Exp memory ab) = mulExp(a, b); if (err != MathError.NO_ERROR) { return (err, ab); } return mulExp(ab, c); } function divExp(Exp memory a, Exp memory b) pure internal returns (MathError, Exp memory) { return getExp(a.mantissa, b.mantissa); } 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 lessThanExp(Exp memory left, Exp memory right) pure internal returns (bool) { return left.mantissa < right.mantissa; //TODO: Add some simple tests and this in another PR yo. } function lessThanOrEqualExp(Exp memory left, Exp memory right) pure internal returns (bool) { return left.mantissa <= right.mantissa; } function isZeroExp(Exp memory value) pure internal returns (bool) { return value.mantissa == 0; } } /** * @title ERC 20 Token Standard Interface * https://eips.ethereum.org/EIPS/eip-20 */ interface EIP20Interface { /** * @notice Get the total number of tokens in circulation * @return The supply of tokens */ function totalSupply() external view returns (uint256); /** * @notice Gets the balance of the specified address * @param owner The address from which the balance will be retrieved * @return The balance */ function balanceOf(address owner) external view returns (uint256 balance); /** * @notice Transfer `amount` tokens from `msg.sender` to `dst` * @param dst The address of the destination account * @param amount The number of tokens to transfer * @return Whether or not the transfer succeeded */ function transfer(address dst, uint256 amount) external returns (bool success); /** * @notice Transfer `amount` tokens from `src` to `dst` * @param src The address of the source account * @param dst The address of the destination account * @param amount The number of tokens to transfer * @return Whether or not the transfer succeeded */ function transferFrom(address src, address dst, uint256 amount) external returns (bool success); /** * @notice Approve `spender` to transfer up to `amount` from `src` * @dev This will overwrite the approval amount for `spender` * and is subject to issues noted [here](https://eips.ethereum.org/EIPS/eip-20#approve) * @param spender The address of the account which may transfer tokens * @param amount The number of tokens that are approved (-1 means infinite) * @return Whether or not the approval succeeded */ function approve(address spender, uint256 amount) external returns (bool success); /** * @notice Get the current allowance from `owner` for `spender` * @param owner The address of the account which owns the tokens to be spent * @param spender The address of the account which may transfer tokens * @return The number of tokens allowed to be spent (-1 means infinite) */ function allowance(address owner, address spender) external view returns (uint256 remaining); event Transfer(address indexed from, address indexed to, uint256 amount); event Approval(address indexed owner, address indexed spender, uint256 amount); } /** * @title EIP20NonStandardInterface * notice: Version of ERC20 with no return values for `transfer` and `transferFrom` * See https://medium.com/coinmonks/missing-return-value-bug-at-least-130-tokens-affected-d67bf08521ca */ interface EIP20NonStandardInterface { function totalSupply() external view returns (uint256); function balanceOf(address owner) external view returns (uint256 balance); function transfer(address dst, uint256 amount) external; function transferFrom(address src, address dst, uint256 amount) external; function approve(address spender, uint256 amount) external returns (bool success); 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); } /** * @title Helps contracts guard against reentrancy attacks. * @author Remco Bloemen <remco@2π.com>, Eenae <[email protected]> * @dev If you mark a function `nonReentrant`, you should also * mark it `external`. */ contract ReentrancyGuard { /// @dev counter to allow mutex lock with only one SSTORE operation uint256 private _guardCounter; constructor () public { // The counter starts at one to prevent changing it from zero to a non-zero // value, which is a more expensive operation. _guardCounter = 1; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { _guardCounter += 1; uint256 localCounter = _guardCounter; _; require(localCounter == _guardCounter, "re-entered"); } } interface InterestRateModel { function getBorrowRate(uint cash, uint borrows, uint reserves) external view returns (uint, uint); function isInterestRateModel() external view returns (bool); } contract AToken is EIP20Interface, Exponential, TokenErrorReporter, ReentrancyGuard { /** * @notice Indicator that this is a AToken contract (for inspection) */ bool public constant isAToken = true; /** * @notice EIP-20 token name for this token */ string public name; /** * @notice EIP-20 token symbol for this token */ string public symbol; /** * @notice EIP-20 token decimals for this token */ uint public decimals; /** * @notice Maximum borrow rate that can ever be applied (.0005% / block) */ uint constant borrowRateMaxMantissa = 5e14; /** * @notice Maximum fraction of interest that can be set aside for reserves */ uint constant reserveFactorMaxMantissa = 1e18; /** * @notice Administrator for this contract */ address payable public admin; /** * @notice Pending administrator for this contract */ address payable public pendingAdmin; /** * @notice Contract which oversees inter-aToken operations */ ControllerInterface public controller; /** * @notice Model which tells what the current interest rate should be */ InterestRateModel public interestRateModel; /** * @notice Initial exchange rate used when minting the first ATokens (used when totalSupply = 0) */ uint public initialExchangeRateMantissa; /** * @notice Fraction of interest currently set aside for reserves */ uint public reserveFactorMantissa; /** * @notice Block number that interest was last accrued at */ uint public accrualBlockNumber; /** * @notice Accumulator of total earned interest since the opening of the market */ uint public borrowIndex; /** * @notice Total amount of outstanding borrows of the underlying in this market */ uint public totalBorrows; /** * @notice Total amount of reserves of the underlying held in this market */ uint public totalReserves; /** * @notice Total number of tokens in circulation */ uint256 public totalSupply; /** * @notice Official record of token balances for each account */ mapping (address => uint256) accountTokens; /** * @notice Approved token transfer amounts on behalf of others */ mapping (address => mapping (address => uint256)) transferAllowances; /** * @notice Container for borrow balance information * @member principal Total balance (with accrued interest), after applying the most recent balance-changing action * @member interestIndex Global borrowIndex as of the most recent balance-changing action */ struct BorrowSnapshot { uint principal; uint interestIndex; } /** * @notice Mapping of account addresses to outstanding borrow balances */ mapping(address => BorrowSnapshot) accountBorrows; /*** Market Events ***/ /** * @notice Event emitted when interest is accrued */ event AccrueInterest(uint interestAccumulated, uint borrowIndex, uint totalBorrows); /** * @notice Event emitted when tokens are minted */ event Mint(address minter, uint mintAmount, uint mintTokens); /** * @notice Event emitted when tokens are redeemed */ event Redeem(address redeemer, uint redeemAmount, uint redeemTokens); /** * @notice Event emitted when underlying is borrowed */ event Borrow(address borrower, uint borrowAmount, uint accountBorrows, uint totalBorrows); /** * @notice Event emitted when a borrow is repaid */ event RepayBorrow(address payer, address borrower, uint repayAmount, uint accountBorrows, uint totalBorrows); /** * @notice Event emitted when a borrow is liquidated */ event LiquidateBorrow(address liquidator, address borrower, uint repayAmount, address aTokenCollateral, 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 controller is changed */ event NewController(ControllerInterface oldController, ControllerInterface newController); /** * @notice Event emitted when interestRateModel is changed */ event NewMarketInterestRateModel(InterestRateModel oldInterestRateModel, InterestRateModel newInterestRateModel); /** * @notice Event emitted when the reserve factor is changed */ event NewReserveFactor(uint oldReserveFactorMantissa, uint newReserveFactorMantissa); /** * @notice Event emitted when the reserves are reduced */ event ReservesReduced(address admin, uint reduceAmount, uint newTotalReserves); constructor( ) public { admin = msg.sender; // Set initial exchange rate initialExchangeRateMantissa = uint(200000000000000000000000000); // Initialize block number and borrow index (block number mocks depend on controller being set) accrualBlockNumber = getBlockNumber(); borrowIndex = mantissaOne; name = string("Artem Dai Stablecoin"); symbol = string("aDAI"); decimals = uint(8); } function transferTokens(address spender, address src, address dst, uint tokens) internal returns (uint) { /* Fail if transfer not allowed */ uint allowed = controller.transferAllowed(address(this), src, dst, tokens); if (allowed != 0) { return failOpaque(Error.CONTROLLER_REJECTION, FailureInfo.TRANSFER_CONTROLLER_REJECTION, allowed); } /* Do not allow self-transfers */ if (src == dst) { return fail(Error.BAD_INPUT, FailureInfo.TRANSFER_NOT_ALLOWED); } /* Get the allowance, infinite for the account owner */ uint startingAllowance = 0; if (spender == src) { startingAllowance = uint(-1); } else { startingAllowance = transferAllowances[src][spender]; } /* Do the calculations, checking for {under,over}flow */ MathError mathErr; uint allowanceNew; uint srcTokensNew; uint dstTokensNew; (mathErr, allowanceNew) = subUInt(startingAllowance, tokens); if (mathErr != MathError.NO_ERROR) { return fail(Error.MATH_ERROR, FailureInfo.TRANSFER_NOT_ALLOWED); } (mathErr, srcTokensNew) = subUInt(accountTokens[src], tokens); if (mathErr != MathError.NO_ERROR) { return fail(Error.MATH_ERROR, FailureInfo.TRANSFER_NOT_ENOUGH); } (mathErr, dstTokensNew) = addUInt(accountTokens[dst], tokens); if (mathErr != MathError.NO_ERROR) { return fail(Error.MATH_ERROR, FailureInfo.TRANSFER_TOO_MUCH); } ///////////////////////// // EFFECTS & INTERACTIONS // (No safe failures beyond this point) accountTokens[src] = srcTokensNew; accountTokens[dst] = dstTokensNew; /* Eat some of the allowance (if necessary) */ if (startingAllowance != uint(-1)) { transferAllowances[src][spender] = allowanceNew; } /* We emit a Transfer event */ emit Transfer(src, dst, tokens); /* We call the defense hook (which checks for under-collateralization) */ controller.transferVerify(address(this), src, dst, tokens); return uint(Error.NO_ERROR); } /** * @notice Transfer `amount` tokens from `msg.sender` to `dst` * @param dst The address of the destination account * @param amount The number of tokens to transfer * @return Whether or not the transfer succeeded */ function transfer(address dst, uint256 amount) external nonReentrant returns (bool) { return transferTokens(msg.sender, msg.sender, dst, amount) == uint(Error.NO_ERROR); } /** * @notice Transfer `amount` tokens from `src` to `dst` * @param src The address of the source account * @param dst The address of the destination account * @param amount The number of tokens to transfer * @return Whether or not the transfer succeeded */ function transferFrom(address src, address dst, uint256 amount) external nonReentrant returns (bool) { return transferTokens(msg.sender, src, dst, amount) == uint(Error.NO_ERROR); } /** * @notice Approve `spender` to transfer up to `amount` from `src` * @dev This will overwrite the approval amount for `spender` * and is subject to issues noted [here](https://eips.ethereum.org/EIPS/eip-20#approve) * @param spender The address of the account which may transfer tokens * @param amount The number of tokens that are approved (-1 means infinite) * @return Whether or not the approval succeeded */ function approve(address spender, uint256 amount) external returns (bool) { address src = msg.sender; transferAllowances[src][spender] = amount; emit Approval(src, spender, amount); return true; } /** * @notice Get the current allowance from `owner` for `spender` * @param owner The address of the account which owns the tokens to be spent * @param spender The address of the account which may transfer tokens * @return The number of tokens allowed to be spent (-1 means infinite) */ function allowance(address owner, address spender) external view returns (uint256) { return transferAllowances[owner][spender]; } /** * @notice Get the token balance of the `owner` * @param owner The address of the account to query * @return The number of tokens owned by `owner` */ function balanceOf(address owner) external view returns (uint256) { return accountTokens[owner]; } /** * @notice Get the underlying balance of the `owner` * @dev This also accrues interest in a transaction * @param owner The address of the account to query * @return The amount of underlying owned by `owner` */ function balanceOfUnderlying(address owner) external returns (uint) { Exp memory exchangeRate = Exp({mantissa: exchangeRateCurrent()}); (MathError mErr, uint balance) = mulScalarTruncate(exchangeRate, accountTokens[owner]); require(mErr == MathError.NO_ERROR); return balance; } /** * @notice Get a snapshot of the account's balances, and the cached exchange rate * @dev This is used by controller 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 aTokenBalance = 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), aTokenBalance, 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 aToken * @return The borrow interest rate per block, scaled by 1e18 */ function borrowRatePerBlock() external view returns (uint) { (uint opaqueErr, uint borrowRateMantissa) = interestRateModel.getBorrowRate(getCashPrior(), totalBorrows, totalReserves); require(opaqueErr == 0, "borrowRatePerBlock: interestRateModel.borrowRate failed"); // semi-opaque return borrowRateMantissa; } /** * @notice Returns the current per-block supply interest rate for this aToken * @return The supply interest rate per block, scaled by 1e18 */ function supplyRatePerBlock() external view returns (uint) { /* We calculate the supply rate: * underlying = totalSupply × exchangeRate * borrowsPer = totalBorrows ÷ underlying * supplyRate = borrowRate × (1-reserveFactor) × borrowsPer */ uint exchangeRateMantissa = exchangeRateStored(); (uint e0, uint borrowRateMantissa) = interestRateModel.getBorrowRate(getCashPrior(), totalBorrows, totalReserves); require(e0 == 0, "supplyRatePerBlock: calculating borrowRate failed"); // semi-opaque (MathError e1, Exp memory underlying) = mulScalar(Exp({mantissa: exchangeRateMantissa}), totalSupply); require(e1 == MathError.NO_ERROR, "supplyRatePerBlock: calculating underlying failed"); (MathError e2, Exp memory borrowsPer) = divScalarByExp(totalBorrows, underlying); require(e2 == MathError.NO_ERROR, "supplyRatePerBlock: calculating borrowsPer failed"); (MathError e3, Exp memory oneMinusReserveFactor) = subExp(Exp({mantissa: mantissaOne}), Exp({mantissa: reserveFactorMantissa})); require(e3 == MathError.NO_ERROR, "supplyRatePerBlock: calculating oneMinusReserveFactor failed"); (MathError e4, Exp memory supplyRate) = mulExp3(Exp({mantissa: borrowRateMantissa}), oneMinusReserveFactor, borrowsPer); require(e4 == MathError.NO_ERROR, "supplyRatePerBlock: calculating supplyRate failed"); return supplyRate.mantissa; } /** * @notice Returns the current total borrows plus accrued interest * @return The total borrows with interest */ function totalBorrowsCurrent() external nonReentrant returns (uint) { require(accrueInterest() == uint(Error.NO_ERROR), "accrue interest failed"); return totalBorrows; } /** * @notice Accrue interest to updated borrowIndex and then calculate account's borrow balance using the updated borrowIndex * @param account The address whose balance should be calculated after updating borrowIndex * @return The calculated balance */ function borrowBalanceCurrent(address account) external nonReentrant returns (uint) { require(accrueInterest() == uint(Error.NO_ERROR), "accrue interest failed"); return borrowBalanceStored(account); } /** * @notice Return the borrow balance of account based on stored data * @param account The address whose balance should be calculated * @return The calculated balance */ function borrowBalanceStored(address account) public view returns (uint) { (MathError err, uint result) = borrowBalanceStoredInternal(account); require(err == MathError.NO_ERROR, "borrowBalanceStored: borrowBalanceStoredInternal failed"); return result; } /** * @notice Return the borrow balance of account based on stored data * @param account The address whose balance should be calculated * @return (error code, the calculated balance or 0 if error code is non-zero) */ function borrowBalanceStoredInternal(address account) internal view returns (MathError, uint) { /* Note: we do not assert that the market is up to date */ MathError mathErr; uint principalTimesIndex; uint result; /* Get borrowBalance and borrowIndex */ BorrowSnapshot storage borrowSnapshot = accountBorrows[account]; /* If borrowBalance = 0 then borrowIndex is likely also 0. * Rather than failing the calculation with a division by 0, we immediately return 0 in this case. */ if (borrowSnapshot.principal == 0) { return (MathError.NO_ERROR, 0); } /* Calculate new borrow balance using the interest index: * recentBorrowBalance = borrower.borrowBalance * market.borrowIndex / borrower.borrowIndex */ (mathErr, principalTimesIndex) = mulUInt(borrowSnapshot.principal, borrowIndex); if (mathErr != MathError.NO_ERROR) { return (mathErr, 0); } (mathErr, result) = divUInt(principalTimesIndex, borrowSnapshot.interestIndex); if (mathErr != MathError.NO_ERROR) { return (mathErr, 0); } return (MathError.NO_ERROR, result); } /** * @notice Accrue interest then return the up-to-date exchange rate * @return Calculated exchange rate scaled by 1e18 */ function exchangeRateCurrent() public nonReentrant returns (uint) { require(accrueInterest() == uint(Error.NO_ERROR), "accrue interest failed"); return exchangeRateStored(); } /** * @notice Calculates the exchange rate from the underlying to the AToken * @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 AToken * @dev This function does not accrue interest before calculating the exchange rate * @return (error code, calculated exchange rate scaled by 1e18) */ function exchangeRateStoredInternal() internal view returns (MathError, uint) { if (totalSupply == 0) { /* * If there are no tokens minted: * exchangeRate = initialExchangeRate */ return (MathError.NO_ERROR, initialExchangeRateMantissa); } else { /* * Otherwise: * exchangeRate = (totalCash + totalBorrows - totalReserves) / totalSupply */ uint totalCash = getCashPrior(); uint cashPlusBorrowsMinusReserves; Exp memory exchangeRate; MathError mathErr; (mathErr, cashPlusBorrowsMinusReserves) = addThenSubUInt(totalCash, totalBorrows, totalReserves); if (mathErr != MathError.NO_ERROR) { return (mathErr, 0); } (mathErr, exchangeRate) = getExp(cashPlusBorrowsMinusReserves, totalSupply); if (mathErr != MathError.NO_ERROR) { return (mathErr, 0); } return (MathError.NO_ERROR, exchangeRate.mantissa); } } /** * @notice Get cash balance of this aToken in the underlying asset * @return The quantity of underlying asset owned by this contract */ function getCash() external view returns (uint) { return getCashPrior(); } struct AccrueInterestLocalVars { MathError mathErr; uint opaqueErr; uint borrowRateMantissa; uint currentBlockNumber; uint blockDelta; Exp simpleInterestFactor; uint interestAccumulated; uint totalBorrowsNew; uint totalReservesNew; uint borrowIndexNew; } /** * @notice Applies accrued interest to total borrows and reserves. * @dev This calculates interest accrued from the last checkpointed block * up to the current block and writes new checkpoint to storage. */ function accrueInterest() public returns (uint) { AccrueInterestLocalVars memory vars; /* Calculate the current borrow interest rate */ (vars.opaqueErr, vars.borrowRateMantissa) = interestRateModel.getBorrowRate(getCashPrior(), totalBorrows, totalReserves); require(vars.borrowRateMantissa <= borrowRateMaxMantissa, "borrow rate is absurdly high"); if (vars.opaqueErr != 0) { return failOpaque(Error.INTEREST_RATE_MODEL_ERROR, FailureInfo.ACCRUE_INTEREST_BORROW_RATE_CALCULATION_FAILED, vars.opaqueErr); } /* Remember the initial block number */ vars.currentBlockNumber = getBlockNumber(); /* Calculate the number of blocks elapsed since the last accrual */ (vars.mathErr, vars.blockDelta) = subUInt(vars.currentBlockNumber, accrualBlockNumber); assert(vars.mathErr == MathError.NO_ERROR); // Block delta should always succeed and if it doesn't, blow up. /* * Calculate the interest accumulated into borrows and reserves and the new index: * simpleInterestFactor = borrowRate * blockDelta * interestAccumulated = simpleInterestFactor * totalBorrows * totalBorrowsNew = interestAccumulated + totalBorrows * totalReservesNew = interestAccumulated * reserveFactor + totalReserves * borrowIndexNew = simpleInterestFactor * borrowIndex + borrowIndex */ (vars.mathErr, vars.simpleInterestFactor) = mulScalar(Exp({mantissa: vars.borrowRateMantissa}), vars.blockDelta); if (vars.mathErr != MathError.NO_ERROR) { return failOpaque(Error.MATH_ERROR, FailureInfo.ACCRUE_INTEREST_SIMPLE_INTEREST_FACTOR_CALCULATION_FAILED, uint(vars.mathErr)); } (vars.mathErr, vars.interestAccumulated) = mulScalarTruncate(vars.simpleInterestFactor, totalBorrows); if (vars.mathErr != MathError.NO_ERROR) { return failOpaque(Error.MATH_ERROR, FailureInfo.ACCRUE_INTEREST_ACCUMULATED_INTEREST_CALCULATION_FAILED, uint(vars.mathErr)); } (vars.mathErr, vars.totalBorrowsNew) = addUInt(vars.interestAccumulated, totalBorrows); if (vars.mathErr != MathError.NO_ERROR) { return failOpaque(Error.MATH_ERROR, FailureInfo.ACCRUE_INTEREST_NEW_TOTAL_BORROWS_CALCULATION_FAILED, uint(vars.mathErr)); } (vars.mathErr, vars.totalReservesNew) = mulScalarTruncateAddUInt(Exp({mantissa: reserveFactorMantissa}), vars.interestAccumulated, totalReserves); if (vars.mathErr != MathError.NO_ERROR) { return failOpaque(Error.MATH_ERROR, FailureInfo.ACCRUE_INTEREST_NEW_TOTAL_RESERVES_CALCULATION_FAILED, uint(vars.mathErr)); } (vars.mathErr, vars.borrowIndexNew) = mulScalarTruncateAddUInt(vars.simpleInterestFactor, borrowIndex, borrowIndex); if (vars.mathErr != MathError.NO_ERROR) { return failOpaque(Error.MATH_ERROR, FailureInfo.ACCRUE_INTEREST_NEW_BORROW_INDEX_CALCULATION_FAILED, uint(vars.mathErr)); } ///////////////////////// // EFFECTS & INTERACTIONS // (No safe failures beyond this point) /* We write the previously calculated values into storage */ accrualBlockNumber = vars.currentBlockNumber; borrowIndex = vars.borrowIndexNew; totalBorrows = vars.totalBorrowsNew; totalReserves = vars.totalReservesNew; /* We emit an AccrueInterest event */ emit AccrueInterest(vars.interestAccumulated, vars.borrowIndexNew, totalBorrows); return uint(Error.NO_ERROR); } /** * @notice Sender supplies assets into the market and receives aTokens in exchange * @dev Accrues interest whether or not the operation succeeds, unless reverted * @param mintAmount The amount of the underlying asset to supply * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function mintInternal(uint mintAmount) internal nonReentrant returns (uint) { uint error = accrueInterest(); if (error != uint(Error.NO_ERROR)) { // accrueInterest emits logs on errors, but we still want to log the fact that an attempted borrow failed return fail(Error(error), FailureInfo.MINT_ACCRUE_INTEREST_FAILED); } // mintFresh emits the actual Mint event if successful and logs on errors, so we don't need to return mintFresh(msg.sender, mintAmount); } struct MintLocalVars { Error err; MathError mathErr; uint exchangeRateMantissa; uint mintTokens; uint totalSupplyNew; uint accountTokensNew; } /** * @notice User supplies assets into the market and receives aTokens in exchange * @dev Assumes interest has already been accrued up to the current block * @param minter The address of the account which is supplying the assets * @param mintAmount The amount of the underlying asset to supply * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function mintFresh(address minter, uint mintAmount) internal returns (uint) { /* Fail if mint not allowed */ uint allowed = controller.mintAllowed(address(this), minter, mintAmount); if (allowed != 0) { return failOpaque(Error.CONTROLLER_REJECTION, FailureInfo.MINT_CONTROLLER_REJECTION, allowed); } /* Verify market's block number equals current block number */ if (accrualBlockNumber != getBlockNumber()) { return fail(Error.MARKET_NOT_FRESH, FailureInfo.MINT_FRESHNESS_CHECK); } MintLocalVars memory vars; /* Fail if checkTransferIn fails */ vars.err = checkTransferIn(minter, mintAmount); if (vars.err != Error.NO_ERROR) { return fail(vars.err, FailureInfo.MINT_TRANSFER_IN_NOT_POSSIBLE); } /* * We get the current exchange rate and calculate the number of aTokens to be minted: * mintTokens = mintAmount / exchangeRate */ (vars.mathErr, vars.exchangeRateMantissa) = exchangeRateStoredInternal(); if (vars.mathErr != MathError.NO_ERROR) { return failOpaque(Error.MATH_ERROR, FailureInfo.MINT_EXCHANGE_RATE_READ_FAILED, uint(vars.mathErr)); } (vars.mathErr, vars.mintTokens) = divScalarByExpTruncate(mintAmount, Exp({mantissa: vars.exchangeRateMantissa})); if (vars.mathErr != MathError.NO_ERROR) { return failOpaque(Error.MATH_ERROR, FailureInfo.MINT_EXCHANGE_CALCULATION_FAILED, uint(vars.mathErr)); } /* * We calculate the new total supply of aTokens and minter token balance, checking for overflow: * totalSupplyNew = totalSupply + mintTokens * accountTokensNew = accountTokens[minter] + mintTokens */ (vars.mathErr, vars.totalSupplyNew) = addUInt(totalSupply, vars.mintTokens); if (vars.mathErr != MathError.NO_ERROR) { return failOpaque(Error.MATH_ERROR, FailureInfo.MINT_NEW_TOTAL_SUPPLY_CALCULATION_FAILED, uint(vars.mathErr)); } (vars.mathErr, vars.accountTokensNew) = addUInt(accountTokens[minter], vars.mintTokens); if (vars.mathErr != MathError.NO_ERROR) { return failOpaque(Error.MATH_ERROR, FailureInfo.MINT_NEW_ACCOUNT_BALANCE_CALCULATION_FAILED, uint(vars.mathErr)); } ///////////////////////// // EFFECTS & INTERACTIONS // (No safe failures beyond this point) /* * We call doTransferIn for the minter and the mintAmount * Note: The aToken must handle variations between ERC-20 and ETH underlying. * On success, the aToken holds an additional mintAmount of cash. * If doTransferIn fails despite the fact we checked pre-conditions, * we revert because we can't be sure if side effects occurred. */ vars.err = doTransferIn(minter, mintAmount); if (vars.err != Error.NO_ERROR) { return fail(vars.err, FailureInfo.MINT_TRANSFER_IN_FAILED); } /* We write previously calculated values into storage */ totalSupply = vars.totalSupplyNew; accountTokens[minter] = vars.accountTokensNew; /* We emit a Mint event, and a Transfer event */ emit Mint(minter, mintAmount, vars.mintTokens); emit Transfer(address(this), minter, vars.mintTokens); /* We call the defense hook */ controller.mintVerify(address(this), minter, mintAmount, vars.mintTokens); return uint(Error.NO_ERROR); } /** * @notice Sender redeems aTokens in exchange for the underlying asset * @dev Accrues interest whether or not the operation succeeds, unless reverted * @param redeemTokens The number of aTokens 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 aTokens in exchange for a specified amount of underlying asset * @dev Accrues interest whether or not the operation succeeds, unless reverted * @param redeemAmount The amount of underlying to redeem * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function redeemUnderlyingInternal(uint redeemAmount) internal nonReentrant returns (uint) { uint error = accrueInterest(); if (error != uint(Error.NO_ERROR)) { // accrueInterest emits logs on errors, but we still want to log the fact that an attempted redeem failed return fail(Error(error), FailureInfo.REDEEM_ACCRUE_INTEREST_FAILED); } // redeemFresh emits redeem-specific logs on errors, so we don't need to return redeemFresh(msg.sender, 0, redeemAmount); } struct RedeemLocalVars { Error err; MathError mathErr; uint exchangeRateMantissa; uint redeemTokens; uint redeemAmount; uint totalSupplyNew; uint accountTokensNew; } /** * @notice User redeems aTokens 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 aTokens to redeem into underlying (only one of redeemTokensIn or redeemAmountIn may be zero) * @param redeemAmountIn The number of aTokens to redeem into underlying (only one of redeemTokensIn or redeemAmountIn may be zero) * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function redeemFresh(address payable redeemer, uint redeemTokensIn, uint redeemAmountIn) internal returns (uint) { require(redeemTokensIn == 0 || redeemAmountIn == 0, "one of redeemTokensIn or redeemAmountIn must be zero"); RedeemLocalVars memory vars; /* exchangeRate = invoke Exchange Rate Stored() */ (vars.mathErr, vars.exchangeRateMantissa) = exchangeRateStoredInternal(); if (vars.mathErr != MathError.NO_ERROR) { return failOpaque(Error.MATH_ERROR, FailureInfo.REDEEM_EXCHANGE_RATE_READ_FAILED, uint(vars.mathErr)); } /* If redeemTokensIn > 0: */ if (redeemTokensIn > 0) { /* * We calculate the exchange rate and the amount of underlying to be redeemed: * redeemTokens = redeemTokensIn * redeemAmount = redeemTokensIn x exchangeRateCurrent */ vars.redeemTokens = redeemTokensIn; (vars.mathErr, vars.redeemAmount) = mulScalarTruncate(Exp({mantissa: vars.exchangeRateMantissa}), redeemTokensIn); if (vars.mathErr != MathError.NO_ERROR) { return failOpaque(Error.MATH_ERROR, FailureInfo.REDEEM_EXCHANGE_TOKENS_CALCULATION_FAILED, uint(vars.mathErr)); } } else { /* * We get the current exchange rate and calculate the amount to be redeemed: * redeemTokens = redeemAmountIn / exchangeRate * redeemAmount = redeemAmountIn */ (vars.mathErr, vars.redeemTokens) = divScalarByExpTruncate(redeemAmountIn, Exp({mantissa: vars.exchangeRateMantissa})); if (vars.mathErr != MathError.NO_ERROR) { return failOpaque(Error.MATH_ERROR, FailureInfo.REDEEM_EXCHANGE_AMOUNT_CALCULATION_FAILED, uint(vars.mathErr)); } vars.redeemAmount = redeemAmountIn; } /* Fail if redeem not allowed */ uint allowed = controller.redeemAllowed(address(this), redeemer, vars.redeemTokens); if (allowed != 0) { return failOpaque(Error.CONTROLLER_REJECTION, FailureInfo.REDEEM_CONTROLLER_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 aToken must handle variations between ERC-20 and ETH underlying. * On success, the aToken has redeemAmount less of cash. * If doTransferOut fails despite the fact we checked pre-conditions, * we revert because we can't be sure if side effects occurred. */ vars.err = doTransferOut(redeemer, vars.redeemAmount); require(vars.err == Error.NO_ERROR, "redeem transfer out failed"); /* We write previously calculated values into storage */ totalSupply = vars.totalSupplyNew; accountTokens[redeemer] = vars.accountTokensNew; /* We emit a Transfer event, and a Redeem event */ emit Transfer(redeemer, address(this), vars.redeemTokens); emit Redeem(redeemer, vars.redeemAmount, vars.redeemTokens); /* We call the defense hook */ controller.redeemVerify(address(this), redeemer, vars.redeemAmount, vars.redeemTokens); return uint(Error.NO_ERROR); } /** * @notice Sender borrows assets from the protocol to their own address * @param borrowAmount The amount of the underlying asset to borrow * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function borrowInternal(uint borrowAmount) internal nonReentrant returns (uint) { uint error = accrueInterest(); if (error != uint(Error.NO_ERROR)) { // accrueInterest emits logs on errors, but we still want to log the fact that an attempted borrow failed return fail(Error(error), FailureInfo.BORROW_ACCRUE_INTEREST_FAILED); } // borrowFresh emits borrow-specific logs on errors, so we don't need to return borrowFresh(msg.sender, borrowAmount); } struct BorrowLocalVars { Error err; MathError mathErr; uint accountBorrows; uint accountBorrowsNew; uint totalBorrowsNew; } /** * @notice Users borrow assets from the protocol to their own address * @param borrowAmount The amount of the underlying asset to borrow * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function borrowFresh(address payable borrower, uint borrowAmount) internal returns (uint) { /* Fail if borrow not allowed */ uint allowed = controller.borrowAllowed(address(this), borrower, borrowAmount); if (allowed != 0) { return failOpaque(Error.CONTROLLER_REJECTION, FailureInfo.BORROW_CONTROLLER_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 aToken must handle variations between ERC-20 and ETH underlying. * On success, the aToken borrowAmount less of cash. * If doTransferOut fails despite the fact we checked pre-conditions, * we revert because we can't be sure if side effects occurred. */ vars.err = doTransferOut(borrower, borrowAmount); require(vars.err == Error.NO_ERROR, "borrow transfer out failed"); /* We write the previously calculated values into storage */ accountBorrows[borrower].principal = vars.accountBorrowsNew; accountBorrows[borrower].interestIndex = borrowIndex; totalBorrows = vars.totalBorrowsNew; /* We emit a Borrow event */ emit Borrow(borrower, borrowAmount, vars.accountBorrowsNew, vars.totalBorrowsNew); /* We call the defense hook */ controller.borrowVerify(address(this), borrower, borrowAmount); return uint(Error.NO_ERROR); } /** * @notice Sender repays their own borrow * @param repayAmount The amount to repay * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function repayBorrowInternal(uint repayAmount) internal nonReentrant returns (uint) { uint error = accrueInterest(); if (error != uint(Error.NO_ERROR)) { // accrueInterest emits logs on errors, but we still want to log the fact that an attempted borrow failed return fail(Error(error), FailureInfo.REPAY_BORROW_ACCRUE_INTEREST_FAILED); } // repayBorrowFresh emits repay-borrow-specific logs on errors, so we don't need to return repayBorrowFresh(msg.sender, msg.sender, repayAmount); } /** * @notice Sender repays a borrow belonging to borrower * @param borrower the account with the debt being payed off * @param repayAmount The amount to repay * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function repayBorrowBehalfInternal(address borrower, uint repayAmount) internal nonReentrant returns (uint) { uint error = accrueInterest(); if (error != uint(Error.NO_ERROR)) { // accrueInterest emits logs on errors, but we still want to log the fact that an attempted borrow failed return fail(Error(error), FailureInfo.REPAY_BEHALF_ACCRUE_INTEREST_FAILED); } // repayBorrowFresh emits repay-borrow-specific logs on errors, so we don't need to return repayBorrowFresh(msg.sender, borrower, repayAmount); } struct RepayBorrowLocalVars { Error err; MathError mathErr; uint repayAmount; uint borrowerIndex; uint accountBorrows; uint accountBorrowsNew; uint totalBorrowsNew; } /** * @notice Borrows are repaid by another user (possibly the borrower). * @param payer the account paying off the borrow * @param borrower the account with the debt being payed off * @param repayAmount the amount of undelrying tokens being returned * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function repayBorrowFresh(address payer, address borrower, uint repayAmount) internal returns (uint) { /* Fail if repayBorrow not allowed */ uint allowed = controller.repayBorrowAllowed(address(this), payer, borrower, repayAmount); if (allowed != 0) { return failOpaque(Error.CONTROLLER_REJECTION, FailureInfo.REPAY_BORROW_CONTROLLER_REJECTION, allowed); } /* Verify market's block number equals current block number */ if (accrualBlockNumber != getBlockNumber()) { return fail(Error.MARKET_NOT_FRESH, FailureInfo.REPAY_BORROW_FRESHNESS_CHECK); } RepayBorrowLocalVars memory vars; /* We remember the original borrowerIndex for verification purposes */ vars.borrowerIndex = accountBorrows[borrower].interestIndex; /* We fetch the amount the borrower owes, with accumulated interest */ (vars.mathErr, vars.accountBorrows) = borrowBalanceStoredInternal(borrower); if (vars.mathErr != MathError.NO_ERROR) { return failOpaque(Error.MATH_ERROR, FailureInfo.REPAY_BORROW_ACCUMULATED_BALANCE_CALCULATION_FAILED, uint(vars.mathErr)); } /* If repayAmount == -1, repayAmount = accountBorrows */ if (repayAmount == uint(-1)) { vars.repayAmount = vars.accountBorrows; } else { vars.repayAmount = repayAmount; } /* Fail if checkTransferIn fails */ vars.err = checkTransferIn(payer, vars.repayAmount); if (vars.err != Error.NO_ERROR) { return fail(vars.err, FailureInfo.REPAY_BORROW_TRANSFER_IN_NOT_POSSIBLE); } /* * We calculate the new borrower and total borrow balances, failing on underflow: * accountBorrowsNew = accountBorrows - repayAmount * totalBorrowsNew = totalBorrows - repayAmount */ (vars.mathErr, vars.accountBorrowsNew) = subUInt(vars.accountBorrows, vars.repayAmount); if (vars.mathErr != MathError.NO_ERROR) { return failOpaque(Error.MATH_ERROR, FailureInfo.REPAY_BORROW_NEW_ACCOUNT_BORROW_BALANCE_CALCULATION_FAILED, uint(vars.mathErr)); } (vars.mathErr, vars.totalBorrowsNew) = subUInt(totalBorrows, vars.repayAmount); if (vars.mathErr != MathError.NO_ERROR) { return failOpaque(Error.MATH_ERROR, FailureInfo.REPAY_BORROW_NEW_TOTAL_BALANCE_CALCULATION_FAILED, uint(vars.mathErr)); } ///////////////////////// // EFFECTS & INTERACTIONS // (No safe failures beyond this point) /* * We call doTransferIn for the payer and the repayAmount * Note: The aToken must handle variations between ERC-20 and ETH underlying. * On success, the aToken holds an additional repayAmount of cash. * If doTransferIn fails despite the fact we checked pre-conditions, * we revert because we can't be sure if side effects occurred. */ vars.err = doTransferIn(payer, vars.repayAmount); require(vars.err == Error.NO_ERROR, "repay borrow transfer in failed"); /* We write the previously calculated values into storage */ accountBorrows[borrower].principal = vars.accountBorrowsNew; accountBorrows[borrower].interestIndex = borrowIndex; totalBorrows = vars.totalBorrowsNew; /* We emit a RepayBorrow event */ emit RepayBorrow(payer, borrower, vars.repayAmount, vars.accountBorrowsNew, vars.totalBorrowsNew); /* We call the defense hook */ controller.repayBorrowVerify(address(this), payer, borrower, vars.repayAmount, vars.borrowerIndex); return uint(Error.NO_ERROR); } /** * @notice The sender liquidates the borrowers collateral. * The collateral seized is transferred to the liquidator. * @param borrower The borrower of this aToken to be liquidated * @param aTokenCollateral The market in which to seize collateral from the borrower * @param repayAmount The amount of the underlying borrowed asset to repay * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function liquidateBorrowInternal(address borrower, uint repayAmount, AToken aTokenCollateral) internal nonReentrant returns (uint) { uint error = accrueInterest(); if (error != uint(Error.NO_ERROR)) { // accrueInterest emits logs on errors, but we still want to log the fact that an attempted liquidation failed return fail(Error(error), FailureInfo.LIQUIDATE_ACCRUE_BORROW_INTEREST_FAILED); } error = aTokenCollateral.accrueInterest(); if (error != uint(Error.NO_ERROR)) { // accrueInterest emits logs on errors, but we still want to log the fact that an attempted liquidation failed return fail(Error(error), FailureInfo.LIQUIDATE_ACCRUE_COLLATERAL_INTEREST_FAILED); } // liquidateBorrowFresh emits borrow-specific logs on errors, so we don't need to return liquidateBorrowFresh(msg.sender, borrower, repayAmount, aTokenCollateral); } /** * @notice The liquidator liquidates the borrowers collateral. * The collateral seized is transferred to the liquidator. * @param borrower The borrower of this aToken to be liquidated * @param liquidator The address repaying the borrow and seizing collateral * @param aTokenCollateral The market in which to seize collateral from the borrower * @param repayAmount The amount of the underlying borrowed asset to repay * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function liquidateBorrowFresh(address liquidator, address borrower, uint repayAmount, AToken aTokenCollateral) internal returns (uint) { /* Fail if liquidate not allowed */ uint allowed = controller.liquidateBorrowAllowed(address(this), address(aTokenCollateral), liquidator, borrower, repayAmount); if (allowed != 0) { return failOpaque(Error.CONTROLLER_REJECTION, FailureInfo.LIQUIDATE_CONTROLLER_REJECTION, allowed); } /* Verify market's block number equals current block number */ if (accrualBlockNumber != getBlockNumber()) { return fail(Error.MARKET_NOT_FRESH, FailureInfo.LIQUIDATE_FRESHNESS_CHECK); } /* Verify aTokenCollateral market's block number equals current block number */ if (aTokenCollateral.accrualBlockNumber() != getBlockNumber()) { return fail(Error.MARKET_NOT_FRESH, FailureInfo.LIQUIDATE_COLLATERAL_FRESHNESS_CHECK); } /* Fail if borrower = liquidator */ if (borrower == liquidator) { return fail(Error.INVALID_ACCOUNT_PAIR, FailureInfo.LIQUIDATE_LIQUIDATOR_IS_BORROWER); } /* Fail if repayAmount = 0 */ if (repayAmount == 0) { return fail(Error.INVALID_CLOSE_AMOUNT_REQUESTED, FailureInfo.LIQUIDATE_CLOSE_AMOUNT_IS_ZERO); } /* Fail if repayAmount = -1 */ if (repayAmount == uint(-1)) { return fail(Error.INVALID_CLOSE_AMOUNT_REQUESTED, FailureInfo.LIQUIDATE_CLOSE_AMOUNT_IS_UINT_MAX); } /* We calculate the number of collateral tokens that will be seized */ (uint amountSeizeError, uint seizeTokens) = controller.liquidateCalculateSeizeTokens(address(this), address(aTokenCollateral), repayAmount); if (amountSeizeError != 0) { return failOpaque(Error.CONTROLLER_CALCULATION_ERROR, FailureInfo.LIQUIDATE_CONTROLLER_CALCULATE_AMOUNT_SEIZE_FAILED, amountSeizeError); } /* Fail if seizeTokens > borrower collateral token balance */ if (seizeTokens > aTokenCollateral.balanceOf(borrower)) { return fail(Error.TOKEN_INSUFFICIENT_BALANCE, FailureInfo.LIQUIDATE_SEIZE_TOO_MUCH); } /* Fail if repayBorrow fails */ uint repayBorrowError = repayBorrowFresh(liquidator, borrower, repayAmount); if (repayBorrowError != uint(Error.NO_ERROR)) { return fail(Error(repayBorrowError), FailureInfo.LIQUIDATE_REPAY_BORROW_FRESH_FAILED); } /* Revert if seize tokens fails (since we cannot be sure of side effects) */ uint seizeError = aTokenCollateral.seize(liquidator, borrower, seizeTokens); require(seizeError == uint(Error.NO_ERROR), "token seizure failed"); /* We emit a LiquidateBorrow event */ emit LiquidateBorrow(liquidator, borrower, repayAmount, address(aTokenCollateral), seizeTokens); /* We call the defense hook */ controller.liquidateBorrowVerify(address(this), address(aTokenCollateral), liquidator, borrower, repayAmount, seizeTokens); return uint(Error.NO_ERROR); } /** * @notice Transfers collateral tokens (this market) to the liquidator. * @dev Will fail unless called by another aToken during the process of liquidation. * Its absolutely critical to use msg.sender as the borrowed aToken and not a parameter. * @param liquidator The account receiving seized collateral * @param borrower The account having collateral seized * @param seizeTokens The number of aTokens to seize * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function seize(address liquidator, address borrower, uint seizeTokens) external nonReentrant returns (uint) { /* Fail if seize not allowed */ uint allowed = controller.seizeAllowed(address(this), msg.sender, liquidator, borrower, seizeTokens); if (allowed != 0) { return failOpaque(Error.CONTROLLER_REJECTION, FailureInfo.LIQUIDATE_SEIZE_CONTROLLER_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 */ controller.seizeVerify(address(this), msg.sender, liquidator, borrower, seizeTokens); return uint(Error.NO_ERROR); } /*** Admin Functions ***/ /** * @notice Begins transfer of admin rights. The newPendingAdmin must call `_acceptAdmin` to finalize the transfer. * @dev Admin function to begin change of admin. The newPendingAdmin must call `_acceptAdmin` to finalize the transfer. * @param newPendingAdmin New pending admin. * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) * * TODO: Should we add a second arg to verify, like a checksum of `newAdmin` address? */ function _setPendingAdmin(address payable newPendingAdmin) external returns (uint) { // Check caller = admin if (msg.sender != admin) { return fail(Error.UNAUTHORIZED, FailureInfo.SET_PENDING_ADMIN_OWNER_CHECK); } // Save current value, if any, for inclusion in log address oldPendingAdmin = pendingAdmin; // Store pendingAdmin with value newPendingAdmin pendingAdmin = newPendingAdmin; // Emit NewPendingAdmin(oldPendingAdmin, newPendingAdmin) emit NewPendingAdmin(oldPendingAdmin, newPendingAdmin); return uint(Error.NO_ERROR); } /** * @notice Accepts transfer of admin rights. msg.sender must be pendingAdmin * @dev Admin function for pending admin to accept role and update admin * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function _acceptAdmin() external returns (uint) { // Check caller is pendingAdmin and pendingAdmin ≠ address(0) if (msg.sender != pendingAdmin || msg.sender == address(0)) { return fail(Error.UNAUTHORIZED, FailureInfo.ACCEPT_ADMIN_PENDING_ADMIN_CHECK); } // Save current values for inclusion in log address oldAdmin = admin; address oldPendingAdmin = pendingAdmin; // Store admin with value pendingAdmin admin = pendingAdmin; // Clear the pending value pendingAdmin = address(0); emit NewAdmin(oldAdmin, admin); emit NewPendingAdmin(oldPendingAdmin, pendingAdmin); return uint(Error.NO_ERROR); } /** * @notice Sets a new controller for the market * @dev Admin function to set a new controller * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function _setController(ControllerInterface newController) public returns (uint) { // Check caller is admin if (msg.sender != admin) { return fail(Error.UNAUTHORIZED, FailureInfo.SET_CONTROLLER_OWNER_CHECK); } ControllerInterface oldController = controller; // Ensure invoke controller.isController() returns true require(newController.isController(), "marker method returned false"); // Set market's controller to newController controller = newController; // Emit NewControllerr(oldController, newController) emit NewController(oldController, newController); return uint(Error.NO_ERROR); } /** * @notice accrues interest and sets a new reserve factor for the protocol using _setReserveFactorFresh * @dev Admin function to accrue interest and set a new reserve factor * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function _setReserveFactor(uint newReserveFactorMantissa) external nonReentrant returns (uint) { uint error = accrueInterest(); if (error != uint(Error.NO_ERROR)) { // accrueInterest emits logs on errors, but on top of that we want to log the fact that an attempted reserve factor change failed. return fail(Error(error), FailureInfo.SET_RESERVE_FACTOR_ACCRUE_INTEREST_FAILED); } // _setReserveFactorFresh emits reserve-factor-specific logs on errors, so we don't need to. return _setReserveFactorFresh(newReserveFactorMantissa); } /** * @notice Sets a new reserve factor for the protocol (*requires fresh interest accrual) * @dev Admin function to set a new reserve factor * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function _setReserveFactorFresh(uint newReserveFactorMantissa) internal returns (uint) { // Check caller is admin if (msg.sender != admin) { return fail(Error.UNAUTHORIZED, FailureInfo.SET_RESERVE_FACTOR_ADMIN_CHECK); } // Verify market's block number equals current block number if (accrualBlockNumber != getBlockNumber()) { // TODO: static_assert + no error code? return fail(Error.MARKET_NOT_FRESH, FailureInfo.SET_RESERVE_FACTOR_FRESH_CHECK); } // Check newReserveFactor ≤ maxReserveFactor if (newReserveFactorMantissa > reserveFactorMaxMantissa) { return fail(Error.BAD_INPUT, FailureInfo.SET_RESERVE_FACTOR_BOUNDS_CHECK); } uint oldReserveFactorMantissa = reserveFactorMantissa; reserveFactorMantissa = newReserveFactorMantissa; emit NewReserveFactor(oldReserveFactorMantissa, newReserveFactorMantissa); return uint(Error.NO_ERROR); } /** * @notice Accrues interest and reduces reserves by transferring to admin * @param reduceAmount Amount of reduction to reserves * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function _reduceReserves(uint reduceAmount) external nonReentrant returns (uint) { uint error = accrueInterest(); if (error != uint(Error.NO_ERROR)) { // accrueInterest emits logs on errors, but on top of that we want to log the fact that an attempted reduce reserves failed. return fail(Error(error), FailureInfo.REDUCE_RESERVES_ACCRUE_INTEREST_FAILED); } // _reduceReservesFresh emits reserve-reduction-specific logs on errors, so we don't need to. return _reduceReservesFresh(reduceAmount); } /** * @notice Reduces reserves by transferring to admin * @dev Requires fresh interest accrual * @param reduceAmount Amount of reduction to reserves * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function _reduceReservesFresh(uint reduceAmount) internal returns (uint) { Error err; // totalReserves - reduceAmount uint totalReservesNew; // Check caller is admin if (msg.sender != admin) { return fail(Error.UNAUTHORIZED, FailureInfo.REDUCE_RESERVES_ADMIN_CHECK); } // We fail gracefully unless market's block number equals current block number if (accrualBlockNumber != getBlockNumber()) { // TODO: static_assert + no error code? return fail(Error.MARKET_NOT_FRESH, FailureInfo.REDUCE_RESERVES_FRESH_CHECK); } // Fail gracefully if protocol has insufficient underlying cash if (getCashPrior() < reduceAmount) { return fail(Error.TOKEN_INSUFFICIENT_CASH, FailureInfo.REDUCE_RESERVES_CASH_NOT_AVAILABLE); } // Check reduceAmount ≤ reserves[n] (totalReserves) // TODO: I'm following the spec literally here but I think we should we just use SafeMath instead and fail on an error (which would be underflow) if (reduceAmount > totalReserves) { return fail(Error.BAD_INPUT, FailureInfo.REDUCE_RESERVES_VALIDATION); } ///////////////////////// // EFFECTS & INTERACTIONS // (No safe failures beyond this point) totalReservesNew = totalReserves - reduceAmount; // We checked reduceAmount <= totalReserves above, so this should never revert. require(totalReservesNew <= totalReserves, "reduce reserves unexpected underflow"); // Store reserves[n+1] = reserves[n] - reduceAmount totalReserves = totalReservesNew; // invoke doTransferOut(reduceAmount, admin) err = doTransferOut(admin, reduceAmount); // we revert on the failure of this command require(err == Error.NO_ERROR, "reduce reserves transfer out failed"); emit ReservesReduced(admin, reduceAmount, totalReservesNew); return uint(Error.NO_ERROR); } /** * @notice accrues interest and updates the interest rate model using _setInterestRateModelFresh * @dev Admin function to accrue interest and update the interest rate model * @param newInterestRateModel the new interest rate model to use * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function _setInterestRateModel(InterestRateModel newInterestRateModel) public returns (uint) { uint error = accrueInterest(); if (error != uint(Error.NO_ERROR)) { // accrueInterest emits logs on errors, but on top of that we want to log the fact that an attempted change of interest rate model failed return fail(Error(error), FailureInfo.SET_INTEREST_RATE_MODEL_ACCRUE_INTEREST_FAILED); } // _setInterestRateModelFresh emits interest-rate-model-update-specific logs on errors, so we don't need to. return _setInterestRateModelFresh(newInterestRateModel); } function _setInterestRateModel_init(InterestRateModel newInterestRateModel) public returns (uint) { if (msg.sender != admin) { return fail(Error.MARKET_NOT_FRESH, FailureInfo.SET_INTEREST_RATE_MODEL_FRESH_CHECK); } // _setInterestRateModelFresh emits interest-rate-model-update-specific logs on errors, so we don't need to. interestRateModel = newInterestRateModel; _setInterestRateModelFresh(interestRateModel); } /** * @notice updates the interest rate model (*requires fresh interest accrual) * @dev Admin function to update the interest rate model * @param newInterestRateModel the new interest rate model to use * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function _setInterestRateModelFresh(InterestRateModel newInterestRateModel) internal returns (uint) { // Used to store old model for use in the event that is emitted on success InterestRateModel oldInterestRateModel; // Check caller is admin if (msg.sender != admin) { return fail(Error.UNAUTHORIZED, FailureInfo.SET_INTEREST_RATE_MODEL_OWNER_CHECK); } // We fail gracefully unless market's block number equals current block number if (accrualBlockNumber != getBlockNumber()) { // TODO: static_assert + no error code? return fail(Error.MARKET_NOT_FRESH, FailureInfo.SET_INTEREST_RATE_MODEL_FRESH_CHECK); } // Track the market's current interest rate model oldInterestRateModel = interestRateModel; // Ensure invoke newInterestRateModel.isInterestRateModel() returns true require(newInterestRateModel.isInterestRateModel(), "marker method returned false"); // Set the interest rate model to newInterestRateModel interestRateModel = newInterestRateModel; // Emit NewMarketInterestRateModel(oldInterestRateModel, newInterestRateModel) emit NewMarketInterestRateModel(oldInterestRateModel, newInterestRateModel); return uint(Error.NO_ERROR); } /*** Safe Token ***/ /** * @notice Gets balance of this contract in terms of the underlying * @dev This excludes the value of the current message, if any * @return The quantity of underlying owned by this contract */ function getCashPrior() internal view returns (uint); /** * @dev Checks whether or not there is sufficient allowance for this contract to move amount from `from` and * whether or not `from` has a balance of at least `amount`. Does NOT do a transfer. */ function checkTransferIn(address from, uint amount) internal view returns (Error); /** * @dev Performs a transfer in, ideally returning an explanatory error code upon failure rather than reverting. * If caller has not called `checkTransferIn`, this may revert due to insufficient balance or insufficient allowance. * If caller has called `checkTransferIn` successfully, this should not revert in normal conditions. */ function doTransferIn(address from, uint amount) internal returns (Error); /** * @dev Performs a transfer out, ideally returning an explanatory error code upon failure tather than reverting. * If caller has not called checked protocol's balance, may revert due to insufficient cash held in the contract. * If caller has checked protocol's balance, and verified it is >= amount, this should not revert in normal conditions. */ function doTransferOut(address payable to, uint amount) internal returns (Error); } contract AErc20 is AToken { /** * @notice Underlying asset for this AToken */ address public underlying; /*** User Interface ***/ /** * @notice Sender supplies assets into the market and receives aTokens in exchange * @dev Accrues interest whether or not the operation succeeds, unless reverted * @param mintAmount The amount of the underlying asset to supply * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function mint(uint mintAmount) external returns (uint) { return mintInternal(mintAmount); } /** * @notice Sender redeems aTokens in exchange for the underlying asset * @dev Accrues interest whether or not the operation succeeds, unless reverted * @param redeemTokens The number of aTokens 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 aTokens in exchange for a specified amount of underlying asset * @dev Accrues interest whether or not the operation succeeds, unless reverted * @param redeemAmount The amount of underlying to redeem * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function redeemUnderlying(uint redeemAmount) external returns (uint) { return redeemUnderlyingInternal(redeemAmount); } /** * @notice Sender borrows assets from the protocol to their own address * @param borrowAmount The amount of the underlying asset to borrow * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function borrow(uint borrowAmount) external returns (uint) { return borrowInternal(borrowAmount); } /** * @notice Sender repays their own borrow * @param repayAmount The amount to repay * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function repayBorrow(uint repayAmount) external returns (uint) { return repayBorrowInternal(repayAmount); } /** * @notice Sender repays a borrow belonging to borrower * @param borrower the account with the debt being payed off * @param repayAmount The amount to repay * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function repayBorrowBehalf(address borrower, uint repayAmount) external returns (uint) { return repayBorrowBehalfInternal(borrower, repayAmount); } /** * @notice The sender liquidates the borrowers collateral. * The collateral seized is transferred to the liquidator. * @param borrower The borrower of this aToken to be liquidated * @param aTokenCollateral The market in which to seize collateral from the borrower * @param repayAmount The amount of the underlying borrowed asset to repay * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function liquidateBorrow(address borrower, uint repayAmount, AToken aTokenCollateral) external returns (uint) { return liquidateBorrowInternal(borrower, repayAmount, aTokenCollateral); } /*** Safe Token ***/ /** * @notice Gets balance of this contract in terms of the underlying * @dev This excludes the value of the current message, if any * @return The quantity of underlying tokens owned by this contract */ function getCashPrior() internal view returns (uint) { EIP20Interface token = EIP20Interface(underlying); return token.balanceOf(address(this)); } /** * @dev Checks whether or not there is sufficient allowance for this contract to move amount from `from` and * whether or not `from` has a balance of at least `amount`. Does NOT do a transfer. */ function checkTransferIn(address from, uint amount) internal view returns (Error) { EIP20Interface token = EIP20Interface(underlying); if (token.allowance(from, address(this)) < amount) { return Error.TOKEN_INSUFFICIENT_ALLOWANCE; } if (token.balanceOf(from) < amount) { return Error.TOKEN_INSUFFICIENT_BALANCE; } return Error.NO_ERROR; } /** * @dev Similar to EIP20 transfer, except it handles a False result from `transferFrom` and returns an explanatory * error code rather than reverting. If caller has not called `checkTransferIn`, this may revert due to * insufficient balance or insufficient allowance. If caller has called `checkTransferIn` prior to this call, * and it returned Error.NO_ERROR, this should not revert in normal conditions. * * Note: This wrapper safely handles non-standard ERC-20 tokens that do not return a value. * See here: https://medium.com/coinmonks/missing-return-value-bug-at-least-130-tokens-affected-d67bf08521ca */ function doTransferIn(address from, uint amount) internal returns (Error) { EIP20NonStandardInterface token = EIP20NonStandardInterface(underlying); bool result; token.transferFrom(from, address(this), amount); // solium-disable-next-line security/no-inline-assembly assembly { switch returndatasize() case 0 { // This is a non-standard ERC-20 result := not(0) // set result to true } case 32 { // This is a complaint ERC-20 returndatacopy(0, 0, 32) result := mload(0) // Set `result = returndata` of external call } default { // This is an excessively non-compliant ERC-20, revert. revert(0, 0) } } if (!result) { return Error.TOKEN_TRANSFER_IN_FAILED; } return Error.NO_ERROR; } /** * @dev Similar to EIP20 transfer, except it handles a False result from `transfer` and returns an explanatory * error code rather than reverting. If caller has not called checked protocol's balance, this may revert due to * insufficient cash held in this contract. If caller has checked protocol's balance prior to this call, and verified * it is >= amount, this should not revert in normal conditions. * * Note: This wrapper safely handles non-standard ERC-20 tokens that do not return a value. * See here: https://medium.com/coinmonks/missing-return-value-bug-at-least-130-tokens-affected-d67bf08521ca */ function doTransferOut(address payable to, uint amount) internal returns (Error) { EIP20NonStandardInterface token = EIP20NonStandardInterface(underlying); bool result; token.transfer(to, amount); // solium-disable-next-line security/no-inline-assembly assembly { switch returndatasize() case 0 { // This is a non-standard ERC-20 result := not(0) // set result to true } case 32 { // This is a complaint ERC-20 returndatacopy(0, 0, 32) result := mload(0) // Set `result = returndata` of external call } default { // This is an excessively non-compliant ERC-20, revert. revert(0, 0) } } if (!result) { return Error.TOKEN_TRANSFER_OUT_FAILED; } return Error.NO_ERROR; } function _setUnderlying(address newunderlying) public returns (uint) { // Check caller is admin if (msg.sender != admin) { return fail(Error.UNAUTHORIZED, FailureInfo.SET_CONTROLLER_OWNER_CHECK); } // Set market's controller to newController underlying = newunderlying; EIP20Interface(underlying).totalSupply(); // Sanity check the underlying return uint(Error.NO_ERROR); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"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":"aTokenCollateral","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 ControllerInterface","name":"oldController","type":"address"},{"indexed":false,"internalType":"contract ControllerInterface","name":"newController","type":"address"}],"name":"NewController","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":"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"},{"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 ControllerInterface","name":"newController","type":"address"}],"name":"_setController","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":"contract InterestRateModel","name":"newInterestRateModel","type":"address"}],"name":"_setInterestRateModel_init","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":false,"inputs":[{"internalType":"address","name":"newunderlying","type":"address"}],"name":"_setUnderlying","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":"controller","outputs":[{"internalType":"contract ControllerInterface","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":true,"inputs":[],"name":"initialExchangeRateMantissa","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"interestRateModel","outputs":[{"internalType":"contract InterestRateModel","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isAToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"borrower","type":"address"},{"internalType":"uint256","name":"repayAmount","type":"uint256"},{"internalType":"contract AToken","name":"aTokenCollateral","type":"address"}],"name":"liquidateBorrow","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","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":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":[{"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":"borrower","type":"address"},{"internalType":"uint256","name":"repayAmount","type":"uint256"}],"name":"repayBorrowBehalf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","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"},{"constant":true,"inputs":[],"name":"underlying","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040526001600055600480546001600160a01b031916331790556aa56fa5b99019a5c80000006008556200003d6001600160e01b03620000cc16565b600a55670de0b6b3a7640000600b556040805180820190915260148082527f417274656d2044616920537461626c65636f696e00000000000000000000000060209092019182526200009291600191620000d1565b50604080518082019091526004808252636144414960e01b6020909201918252620000c091600291620000d1565b50600860035562000173565b435b90565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200011457805160ff191683800117855562000144565b8280016001018555821562000144579182015b828111156200014457825182559160200191906001019062000127565b506200015292915062000156565b5090565b620000ce91905b808211156200015257600081556001016200015d565b614ab280620001836000396000f3fe608060405234801561001057600080fd5b50600436106102a05760003560e01c806394c393fc11610167578063c5ebeaec116100ce578063f3fdb15a11610087578063f3fdb15a1461076a578063f5e3c46214610772578063f77c4791146107a8578063f851a440146107b0578063f8f9da28146107b8578063fca7820b146107c0576102a0565b8063c5ebeaec146106ae578063db006a75146106cb578063dd62ed3e146106e8578063e9c714f214610716578063ef7c74e41461071e578063f2b3abbd14610744576102a0565b8063aa5af0fd11610120578063aa5af0fd146105ee578063ae9d70b0146105f6578063b2a02ff1146105fe578063b71d1a0c14610634578063bd6d894d1461065a578063c37f68e214610662576102a0565b806394c393fc1461056757806395d89b411461056f57806395dd919314610577578063a0712d681461059d578063a6afed95146105ba578063a9059cbb146105c2576102a0565b80633af9e6691161020b5780636f307dc3116101c45780636f307dc3146104e657806370a08231146104ee57806373acee981461051457806383de424e1461051c578063852a12e3146105425780638f840ddd1461055f576102a0565b80633af9e669146104835780633b1d21a2146104a957806347bd3718146104b1578063601a0bf1146104b9578063675d972c146104d65780636c540baf146104de576102a0565b8063182df0f51161025d578063182df0f5146103c757806323b872dd146103cf5780632608f8181461040557806326782247146104315780632d75635914610455578063313ce5671461047b576102a0565b806306fdde03146102a5578063095ea7b3146103225780630e75270214610362578063173b99041461039157806317bfdfbc1461039957806318160ddd146103bf575b600080fd5b6102ad6107dd565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102e75781810151838201526020016102cf565b50505050905090810190601f1680156103145780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61034e6004803603604081101561033857600080fd5b506001600160a01b03813516906020013561086a565b604080519115158252519081900360200190f35b61037f6004803603602081101561037857600080fd5b50356108d7565b60408051918252519081900360200190f35b61037f6108ea565b61037f600480360360208110156103af57600080fd5b50356001600160a01b03166108f0565b61037f6109a3565b61037f6109a9565b61034e600480360360608110156103e557600080fd5b506001600160a01b03813581169160208101359091169060400135610a0c565b61037f6004803603604081101561041b57600080fd5b506001600160a01b038135169060200135610a72565b610439610a85565b604080516001600160a01b039092168252519081900360200190f35b61037f6004803603602081101561046b57600080fd5b50356001600160a01b0316610a94565b61037f610ae7565b61037f6004803603602081101561049957600080fd5b50356001600160a01b0316610aed565b61037f610b5b565b61037f610b6a565b61037f600480360360208110156104cf57600080fd5b5035610b70565b61037f610bf8565b61037f610bfe565b610439610c04565b61037f6004803603602081101561050457600080fd5b50356001600160a01b0316610c13565b61037f610c2e565b61037f6004803603602081101561053257600080fd5b50356001600160a01b0316610cd8565b61037f6004803603602081101561055857600080fd5b5035610e22565b61037f610e2d565b61034e610e33565b6102ad610e38565b61037f6004803603602081101561058d57600080fd5b50356001600160a01b0316610e90565b61037f600480360360208110156105b357600080fd5b5035610eed565b61037f610ef8565b61034e600480360360408110156105d857600080fd5b506001600160a01b0381351690602001356112f1565b61037f611356565b61037f61135c565b61037f6004803603606081101561061457600080fd5b506001600160a01b03813581169160208101359091169060400135611627565b61037f6004803603602081101561064a57600080fd5b50356001600160a01b03166118d8565b61037f61195f565b6106886004803603602081101561067857600080fd5b50356001600160a01b0316611a0a565b604080519485526020850193909352838301919091526060830152519081900360800190f35b61037f600480360360208110156106c457600080fd5b5035611a9f565b61037f600480360360208110156106e157600080fd5b5035611aaa565b61037f600480360360408110156106fe57600080fd5b506001600160a01b0381358116916020013516611ab5565b61037f611ae0565b61037f6004803603602081101561073457600080fd5b50356001600160a01b0316611bcf565b61037f6004803603602081101561075a57600080fd5b50356001600160a01b0316611c80565b610439611cba565b61037f6004803603606081101561078857600080fd5b506001600160a01b03813581169160208101359160409091013516611cc9565b610439611cd6565b610439611ce5565b61037f611cf4565b61037f600480360360208110156107d657600080fd5b5035611dd0565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156108625780601f1061083757610100808354040283529160200191610862565b820191906000526020600020905b81548152906001019060200180831161084557829003601f168201915b505050505081565b3360008181526010602090815260408083206001600160a01b03871680855290835281842086905581518681529151939493909284927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929081900390910190a360019150505b92915050565b60006108e282611e0a565b90505b919050565b60095481565b6000805460010180825581610903610ef8565b1461094e576040805162461bcd60e51b81526020600482015260166024820152751858d8dc9d59481a5b9d195c995cdd0819985a5b195960521b604482015290519081900360640190fd5b61095783610e90565b91505b600054811461099d576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b50919050565b600e5481565b60008060006109b6611e46565b909250905060008260038111156109c957fe5b14610a055760405162461bcd60e51b81526004018080602001828103825260358152602001806149f16035913960400191505060405180910390fd5b9150505b90565b6000805460010180825581610a2333878787611ef4565b1491505b6000548114610a6a576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b509392505050565b6000610a7e8383612202565b9392505050565b6005546001600160a01b031681565b6004546000906001600160a01b03163314610abc57610ab5600a604161228c565b90506108e5565b600780546001600160a01b0319166001600160a01b03848116919091179182905561099d91166122f2565b60035481565b6000610af761474a565b6040518060200160405280610b0a61195f565b90526001600160a01b0384166000908152600f6020526040812054919250908190610b36908490612462565b90925090506000826003811115610b4957fe5b14610b5357600080fd5b949350505050565b6000610b656124b6565b905090565b600c5481565b6000805460010180825581610b83610ef8565b90508015610ba957610ba1816010811115610b9a57fe5b603061228c565b92505061095a565b610bb284612536565b925050600054811461099d576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b60085481565b600a5481565b6012546001600160a01b031681565b6001600160a01b03166000908152600f602052604090205490565b6000805460010180825581610c41610ef8565b14610c8c576040805162461bcd60e51b81526020600482015260166024820152751858d8dc9d59481a5b9d195c995cdd0819985a5b195960521b604482015290519081900360640190fd5b600c5491506000548114610cd4576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b5090565b6004546000906001600160a01b03163314610cf957610ab56001603f61228c565b60065460408051634e1647fb60e01b815290516001600160a01b0392831692851691634e1647fb916004808301926020929190829003018186803b158015610d4057600080fd5b505afa158015610d54573d6000803e3d6000fd5b505050506040513d6020811015610d6a57600080fd5b5051610dbd576040805162461bcd60e51b815260206004820152601c60248201527f6d61726b6572206d6574686f642072657475726e65642066616c736500000000604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b03858116918217909255604080519284168352602083019190915280517ff9b6a28700579d5c8fab50f0ac2dcaa52109b85c369c4f511fcc873330ab6cbb9281900390910190a160009392505050565b60006108e2826126b4565b600d5481565b600181565b6002805460408051602060018416156101000260001901909316849004601f810184900484028201840190925281815292918301828280156108625780601f1061083757610100808354040283529160200191610862565b6000806000610e9e846126f1565b90925090506000826003811115610eb157fe5b14610a7e5760405162461bcd60e51b81526004018080602001828103825260378152602001806148c56037913960400191505060405180910390fd5b60006108e2826127a5565b6000610f0261475d565b6007546001600160a01b03166315f24053610f1b6124b6565b600c54600d546040518463ffffffff1660e01b8152600401808481526020018381526020018281526020019350505050604080518083038186803b158015610f6257600080fd5b505afa158015610f76573d6000803e3d6000fd5b505050506040513d6040811015610f8c57600080fd5b50805160209182015160408401819052918301526601c6bf526340001015610ffb576040805162461bcd60e51b815260206004820152601c60248201527f626f72726f772072617465206973206162737572646c79206869676800000000604482015290519081900360640190fd5b60208101511561101e576110166005600283602001516127e0565b915050610a09565b611026612846565b60608201819052600a5461103a919061284a565b608083018190528282600381111561104e57fe5b600381111561105957fe5b905250600090508151600381111561106d57fe5b1461107457fe5b61109460405180602001604052808360400151815250826080015161286d565b60a08301819052828260038111156110a857fe5b60038111156110b357fe5b90525060009050815160038111156110c757fe5b146110e85761101660096006836000015160038111156110e357fe5b6127e0565b6110f88160a00151600c54612462565b60c083018190528282600381111561110c57fe5b600381111561111757fe5b905250600090508151600381111561112b57fe5b146111475761101660096001836000015160038111156110e357fe5b6111578160c00151600c546128d5565b60e083018190528282600381111561116b57fe5b600381111561117657fe5b905250600090508151600381111561118a57fe5b146111a65761101660096004836000015160038111156110e357fe5b6111c760405180602001604052806009548152508260c00151600d546128fb565b6101008301819052828260038111156111dc57fe5b60038111156111e757fe5b90525060009050815160038111156111fb57fe5b146112175761101660096005836000015160038111156110e357fe5b61122a8160a00151600b54600b546128fb565b61012083018190528282600381111561123f57fe5b600381111561124a57fe5b905250600090508151600381111561125e57fe5b1461127a5761101660096003836000015160038111156110e357fe5b606080820151600a55610120820151600b81905560e0830151600c819055610100840151600d5560c08401516040805191825260208201939093528083019190915290517f875352fb3fadeb8c0be7cbbe8ff761b308fa7033470cd0287f02f3436fd76cb9929181900390910190a1600091505090565b600080546001018082558161130833338787611ef4565b1491505b600054811461134f576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b5092915050565b600b5481565b6000806113676109a9565b60075490915060009081906001600160a01b03166315f240536113886124b6565b600c54600d546040518463ffffffff1660e01b8152600401808481526020018381526020018281526020019350505050604080518083038186803b1580156113cf57600080fd5b505afa1580156113e3573d6000803e3d6000fd5b505050506040513d60408110156113f957600080fd5b508051602090910151909250905081156114445760405162461bcd60e51b81526004018080602001828103825260318152602001806149646031913960400191505060405180910390fd5b600061144e61474a565b611468604051806020016040528087815250600e5461286d565b9092509050600082600381111561147b57fe5b146114b75760405162461bcd60e51b81526004018080602001828103825260318152602001806148fc6031913960400191505060405180910390fd5b60006114c161474a565b6114cd600c5484612957565b909250905060008260038111156114e057fe5b1461151c5760405162461bcd60e51b81526004018080602001828103825260318152602001806148406031913960400191505060405180910390fd5b600061152661474a565b6115566040518060200160405280670de0b6b3a764000081525060405180602001604052806009548152506129b6565b9092509050600082600381111561156957fe5b146115a55760405162461bcd60e51b815260040180806020018281038252603c8152602001806149b5603c913960400191505060405180910390fd5b60006115af61474a565b6115c860405180602001604052808b81525084876129f0565b909250905060008260038111156115db57fe5b146116175760405162461bcd60e51b81526004018080602001828103825260318152602001806148946031913960400191505060405180910390fd5b519a505050505050505050505090565b600080546001018082556006546040805163d02f735160e01b81523060048201523360248201526001600160a01b03888116604483015287811660648301526084820187905291518593929092169163d02f73519160a48082019260209290919082900301818787803b15801561169d57600080fd5b505af11580156116b1573d6000803e3d6000fd5b505050506040513d60208110156116c757600080fd5b5051905080156116e6576116de6003601b836127e0565b925050610a27565b856001600160a01b0316856001600160a01b0316141561170c576116de6006601c61228c565b6001600160a01b0385166000908152600f602052604081205481908190611733908861284a565b9093509150600083600381111561174657fe5b146117695761175e6009601a8560038111156110e357fe5b955050505050610a27565b6001600160a01b0389166000908152600f602052604090205461178c90886128d5565b9093509050600083600381111561179f57fe5b146117b75761175e600960198560038111156110e357fe5b6001600160a01b038089166000818152600f60209081526040808320879055938d168083529184902085905583518b815293519193600080516020614995833981519152929081900390910190a360065460408051636d35bf9160e01b81523060048201523360248201526001600160a01b038c811660448301528b81166064830152608482018b905291519190921691636d35bf919160a480830192600092919082900301818387803b15801561186e57600080fd5b505af1158015611882573d6000803e3d6000fd5b506000925061188f915050565b9550505050506000548114610a6a576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6004546000906001600160a01b031633146118f957610ab56001604561228c565b600580546001600160a01b038481166001600160a01b0319831681179093556040805191909216808252602082019390935281517fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a9929181900390910190a16000610a7e565b6000805460010180825581611972610ef8565b146119bd576040805162461bcd60e51b81526020600482015260166024820152751858d8dc9d59481a5b9d195c995cdd0819985a5b195960521b604482015290519081900360640190fd5b6119c56109a9565b91506000548114610cd4576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6001600160a01b0381166000908152600f6020526040812054819081908190818080611a35896126f1565b935090506000816003811115611a4757fe5b14611a655760095b975060009650869550859450611a989350505050565b611a6d611e46565b925090506000816003811115611a7f57fe5b14611a8b576009611a4f565b5060009650919450925090505b9193509193565b60006108e282612a3a565b60006108e282612a75565b6001600160a01b03918216600090815260106020908152604080832093909416825291909152205490565b6005546000906001600160a01b031633141580611afb575033155b15611b1357611b0c6001600061228c565b9050610a09565b60048054600580546001600160a01b038082166001600160a01b031980861682179687905590921690925560408051938316808552949092166020840152815190927ff9ffabca9c8276e99321725bcb43fb076a6c66a54b7f21c4e8146d8519b417dc92908290030190a1600554604080516001600160a01b038085168252909216602083015280517fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a99281900390910190a160009250505090565b6004546000906001600160a01b03163314611bf057610ab56001603f61228c565b601280546001600160a01b0319166001600160a01b038481169190911791829055604080516318160ddd60e01b8152905192909116916318160ddd91600480820192602092909190829003018186803b158015611c4c57600080fd5b505afa158015611c60573d6000803e3d6000fd5b505050506040513d6020811015611c7657600080fd5b50600090506108e2565b600080611c8b610ef8565b90508015611cb157611ca9816010811115611ca257fe5b604061228c565b9150506108e5565b610a7e836122f2565b6007546001600160a01b031681565b6000610b53848484612aab565b6006546001600160a01b031681565b6004546001600160a01b031681565b600754600090819081906001600160a01b03166315f24053611d146124b6565b600c54600d546040518463ffffffff1660e01b8152600401808481526020018381526020018281526020019350505050604080518083038186803b158015611d5b57600080fd5b505afa158015611d6f573d6000803e3d6000fd5b505050506040513d6040811015611d8557600080fd5b50805160209091015190925090508115610a055760405162461bcd60e51b815260040180806020018281038252603781526020018061492d6037913960400191505060405180910390fd5b6000805460010180825581611de3610ef8565b90508015611e0157610ba1816010811115611dfa57fe5b604661228c565b610bb284612bb3565b6000805460010180825581611e1d610ef8565b90508015611e3b57610ba1816010811115611e3457fe5b603661228c565b610bb2333386612c56565b600080600e5460001415611e61575050600854600090611ef0565b6000611e6b6124b6565b90506000611e7761474a565b6000611e8884600c54600d546130a9565b935090506000816003811115611e9a57fe5b14611eae57945060009350611ef092505050565b611eba83600e546130e7565b925090506000816003811115611ecc57fe5b14611ee057945060009350611ef092505050565b5051600094509250611ef0915050565b9091565b600654604080516317b9b84b60e31b81523060048201526001600160a01b03868116602483015285811660448301526064820185905291516000938493169163bdcdc25891608480830192602092919082900301818787803b158015611f5957600080fd5b505af1158015611f6d573d6000803e3d6000fd5b505050506040513d6020811015611f8357600080fd5b505190508015611fa257611f9a6003604a836127e0565b915050610b53565b836001600160a01b0316856001600160a01b03161415611fc857611f9a6002604b61228c565b60006001600160a01b038781169087161415611fe7575060001961200f565b506001600160a01b038086166000908152601060209081526040808320938a16835292905220545b60008060008061201f858961284a565b9094509250600084600381111561203257fe5b14612050576120436009604b61228c565b9650505050505050610b53565b6001600160a01b038a166000908152600f6020526040902054612073908961284a565b9094509150600084600381111561208657fe5b14612097576120436009604c61228c565b6001600160a01b0389166000908152600f60205260409020546120ba90896128d5565b909450905060008460038111156120cd57fe5b146120de576120436009604d61228c565b6001600160a01b03808b166000908152600f6020526040808220859055918b168152208190556000198514612136576001600160a01b03808b166000908152601060209081526040808320938f168352929052208390555b886001600160a01b03168a6001600160a01b03166000805160206149958339815191528a6040518082815260200191505060405180910390a36006546040805163352b4a3f60e11b81523060048201526001600160a01b038d811660248301528c81166044830152606482018c905291519190921691636a56947e91608480830192600092919082900301818387803b1580156121d257600080fd5b505af11580156121e6573d6000803e3d6000fd5b50600092506121f3915050565b9b9a5050505050505050505050565b6000805460010180825581612215610ef8565b9050801561223b5761223381601081111561222c57fe5b603561228c565b92505061130c565b612246338686612c56565b925050600054811461134f576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b60007f45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa08360108111156122bb57fe5b83604d8111156122c757fe5b604080519283526020830191909152600082820152519081900360600190a1826010811115610a7e57fe5b60045460009081906001600160a01b0316331461231557611ca96001604261228c565b61231d612846565b600a541461233157611ca9600a604161228c565b600760009054906101000a90046001600160a01b03169050826001600160a01b0316632191f92a6040518163ffffffff1660e01b815260040160206040518083038186803b15801561238257600080fd5b505afa158015612396573d6000803e3d6000fd5b505050506040513d60208110156123ac57600080fd5b50516123ff576040805162461bcd60e51b815260206004820152601c60248201527f6d61726b6572206d6574686f642072657475726e65642066616c736500000000604482015290519081900360640190fd5b600780546001600160a01b0319166001600160a01b03858116918217909255604080519284168352602083019190915280517fedffc32e068c7c95dfd4bdfd5c4d939a084d6b11c4199eac8436ed234d72f9269281900390910190a16000610a7e565b600080600061246f61474a565b612479868661286d565b9092509050600082600381111561248c57fe5b1461249d57509150600090506124af565b60006124a882613197565b9350935050505b9250929050565b601254604080516370a0823160e01b815230600482015290516000926001600160a01b03169182916370a0823191602480820192602092909190829003018186803b15801561250457600080fd5b505afa158015612518573d6000803e3d6000fd5b505050506040513d602081101561252e57600080fd5b505191505090565b600454600090819081906001600160a01b031633146125645761255b6001603161228c565b925050506108e5565b61256c612846565b600a54146125805761255b600a603361228c565b836125896124b6565b101561259b5761255b600e603261228c565b600d548411156125b15761255b6002603461228c565b50600d54838103908111156125f75760405162461bcd60e51b8152600401808060200182810382526024815260200180614a5a6024913960400191505060405180910390fd5b600d819055600454612612906001600160a01b0316856131a6565b9150600082601081111561262257fe5b1461265e5760405162461bcd60e51b81526004018080602001828103825260238152602001806148716023913960400191505060405180910390fd5b600454604080516001600160a01b03909216825260208201869052818101839052517f3bad0c59cf2f06e7314077049f48a93578cd16f5ef92329f1dab1420a99c177e9181900360600190a16000949350505050565b60008054600101808255816126c7610ef8565b905080156126e557610ba18160108111156126de57fe5b602761228c565b610bb233600086613262565b6001600160a01b0381166000908152601160205260408120805482918291829182916127285750600094508493506127a092505050565b6127388160000154600b5461376b565b9094509250600084600381111561274b57fe5b146127605750919350600092506127a0915050565b61276e8382600101546137aa565b9094509150600084600381111561278157fe5b146127965750919350600092506127a0915050565b5060009450925050505b915091565b60008054600101808255816127b8610ef8565b905080156127d657610ba18160108111156127cf57fe5b601e61228c565b610bb233856137d5565b60007f45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa084601081111561280f57fe5b84604d81111561281b57fe5b604080519283526020830191909152818101859052519081900360600190a1836010811115610b5357fe5b4390565b6000808383116128615750600090508183036124af565b506003905060006124af565b600061287761474a565b60008061288886600001518661376b565b9092509050600082600381111561289b57fe5b146128ba575060408051602081019091526000815290925090506124af565b60408051602081019091529081526000969095509350505050565b6000808383018481106128ed576000925090506124af565b5060029150600090506124af565b600080600061290861474a565b612912878761286d565b9092509050600082600381111561292557fe5b14612936575091506000905061294f565b61294861294282613197565b866128d5565b9350935050505b935093915050565b600061296161474a565b600080612976670de0b6b3a76400008761376b565b9092509050600082600381111561298957fe5b146129a8575060408051602081019091526000815290925090506124af565b6124a88186600001516130e7565b60006129c061474a565b6000806129d58660000151866000015161284a565b60408051602081019091529081529097909650945050505050565b60006129fa61474a565b6000612a0461474a565b612a0e8787613c1d565b90925090506000826003811115612a2157fe5b14612a3057909250905061294f565b6129488186613c1d565b6000805460010180825581612a4d610ef8565b90508015612a6b57610ba1816010811115612a6457fe5b600861228c565b610bb23385613d06565b6000805460010180825581612a88610ef8565b90508015612a9f57610ba18160108111156126de57fe5b610bb233856000613262565b6000805460010180825581612abe610ef8565b90508015612adc576116de816010811115612ad557fe5b600f61228c565b836001600160a01b031663a6afed956040518163ffffffff1660e01b8152600401602060405180830381600087803b158015612b1757600080fd5b505af1158015612b2b573d6000803e3d6000fd5b505050506040513d6020811015612b4157600080fd5b505190508015612b61576116de816010811115612b5a57fe5b601061228c565b612b6d3387878761406c565b9250506000548114610a6a576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6004546000906001600160a01b03163314612bd457610ab56001604761228c565b612bdc612846565b600a5414612bf057610ab5600a604861228c565b670de0b6b3a7640000821115612c0c57610ab56002604961228c565b6009805490839055604080518281526020810185905281517faaa68312e2ea9d50e16af5068410ab56e1a1fd06037b1a35664812c30f821460929181900390910190a16000610a7e565b60065460408051631200453160e11b81523060048201526001600160a01b0386811660248301528581166044830152606482018590529151600093849316916324008a6291608480830192602092919082900301818787803b158015612cbb57600080fd5b505af1158015612ccf573d6000803e3d6000fd5b505050506040513d6020811015612ce557600080fd5b505190508015612d0457612cfc60036038836127e0565b915050610a7e565b612d0c612846565b600a5414612d2057612cfc600a603961228c565b612d286147b7565b6001600160a01b0385166000908152601160205260409020600101546060820152612d52856126f1565b6080830181905260208301826003811115612d6957fe5b6003811115612d7457fe5b9052506000905081602001516003811115612d8b57fe5b14612db057612da760096037836020015160038111156110e357fe5b92505050610a7e565b600019841415612dc95760808101516040820152612dd1565b604081018490525b612ddf868260400151614548565b81906010811115612dec57fe5b90816010811115612df957fe5b905250600081516010811115612e0b57fe5b14612e1d578051612da790603c61228c565b612e2f8160800151826040015161284a565b60a0830181905260208301826003811115612e4657fe5b6003811115612e5157fe5b9052506000905081602001516003811115612e6857fe5b14612e8457612da76009603a836020015160038111156110e357fe5b612e94600c54826040015161284a565b60c0830181905260208301826003811115612eab57fe5b6003811115612eb657fe5b9052506000905081602001516003811115612ecd57fe5b14612ee957612da76009603b836020015160038111156110e357fe5b612ef786826040015161467c565b81906010811115612f0457fe5b90816010811115612f1157fe5b905250600081516010811115612f2357fe5b14612f75576040805162461bcd60e51b815260206004820152601f60248201527f726570617920626f72726f77207472616e7366657220696e206661696c656400604482015290519081900360640190fd5b60a080820180516001600160a01b03808916600081815260116020908152604091829020948555600b5460019095019490945560c0870151600c8190558188015195518251948e16855294840192909252828101949094526060820192909252608081019190915290517f1a2a22cb034d26d1854bdc6666a5b91fe25efbbb5dcad3b0355478d6f5c362a1929181900390910190a160065460408083015160608401518251631ededc9160e01b81523060048201526001600160a01b038b811660248301528a81166044830152606482019390935260848101919091529151921691631ededc919160a48082019260009290919082900301818387803b15801561307e57600080fd5b505af1158015613092573d6000803e3d6000fd5b506000925061309f915050565b9695505050505050565b6000806000806130b987876128d5565b909250905060008260038111156130cc57fe5b146130dd575091506000905061294f565b612948818661284a565b60006130f161474a565b60008061310686670de0b6b3a764000061376b565b9092509050600082600381111561311957fe5b14613138575060408051602081019091526000815290925090506124af565b60008061314583886137aa565b9092509050600082600381111561315857fe5b1461317a575060408051602081019091526000815290945092506124af915050565b604080516020810190915290815260009890975095505050505050565b51670de0b6b3a7640000900490565b6012546040805163a9059cbb60e01b81526001600160a01b03858116600483015260248201859052915160009392909216918391839163a9059cbb91604480820192869290919082900301818387803b15801561320257600080fd5b505af1158015613216573d6000803e3d6000fd5b505050503d60008114613230576020811461323a57600080fd5b6000199150613246565b60206000803e60005191505b5080613257576010925050506108d1565b506000949350505050565b600082158061326f575081155b6132aa5760405162461bcd60e51b8152600401808060200182810382526034815260200180614a266034913960400191505060405180910390fd5b6132b26147b7565b6132ba611e46565b60408301819052602083018260038111156132d157fe5b60038111156132dc57fe5b90525060009050816020015160038111156132f357fe5b1461330f57612cfc6009602b836020015160038111156110e357fe5b83156133905760608101849052604080516020810182529082015181526133369085612462565b608083018190526020830182600381111561334d57fe5b600381111561335857fe5b905250600090508160200151600381111561336f57fe5b1461338b57612cfc60096029836020015160038111156110e357fe5b613409565b6133ac8360405180602001604052808460400151815250614733565b60608301819052602083018260038111156133c357fe5b60038111156133ce57fe5b90525060009050816020015160038111156133e557fe5b1461340157612cfc6009602a836020015160038111156110e357fe5b608081018390525b60065460608201516040805163eabe7d9160e01b81523060048201526001600160a01b03898116602483015260448201939093529051600093929092169163eabe7d919160648082019260209290919082900301818787803b15801561346e57600080fd5b505af1158015613482573d6000803e3d6000fd5b505050506040513d602081101561349857600080fd5b5051905080156134af57612da760036028836127e0565b6134b7612846565b600a54146134cb57612da7600a602c61228c565b6134db600e54836060015161284a565b60a08401819052602084018260038111156134f257fe5b60038111156134fd57fe5b905250600090508260200151600381111561351457fe5b1461353057612da76009602e846020015160038111156110e357fe5b6001600160a01b0386166000908152600f60205260409020546060830151613558919061284a565b60c084018190526020840182600381111561356f57fe5b600381111561357a57fe5b905250600090508260200151600381111561359157fe5b146135ad57612da76009602d846020015160038111156110e357fe5b81608001516135ba6124b6565b10156135cc57612da7600e602f61228c565b6135da8683608001516131a6565b829060108111156135e757fe5b908160108111156135f457fe5b90525060008251601081111561360657fe5b14613658576040805162461bcd60e51b815260206004820152601a60248201527f72656465656d207472616e73666572206f7574206661696c6564000000000000604482015290519081900360640190fd5b60a0820151600e5560c08201516001600160a01b0387166000818152600f6020908152604091829020939093556060850151815190815290513093600080516020614995833981519152928290030190a36080820151606080840151604080516001600160a01b038b168152602081019490945283810191909152517fe5b754fb1abb7f01b499791d0b820ae3b6af3424ac1c59768edb53f4ec31a9299281900390910190a160065460808301516060840151604080516351dff98960e01b81523060048201526001600160a01b038b81166024830152604482019490945260648101929092525191909216916351dff98991608480830192600092919082900301818387803b15801561307e57600080fd5b6000808361377e575060009050806124af565b8383028385828161378b57fe5b041461379f575060029150600090506124af565b6000925090506124af565b600080826137be57506001905060006124af565b60008385816137c957fe5b04915091509250929050565b60065460408051634ef4c3e160e01b81523060048201526001600160a01b03858116602483015260448201859052915160009384931691634ef4c3e191606480830192602092919082900301818787803b15801561383257600080fd5b505af1158015613846573d6000803e3d6000fd5b505050506040513d602081101561385c57600080fd5b50519050801561387b576138736003601f836127e0565b9150506108d1565b613883612846565b600a541461389757613873600a602261228c565b61389f6147f5565b6138a98585614548565b819060108111156138b657fe5b908160108111156138c357fe5b9052506000815160108111156138d557fe5b146138f05780516138e790602661228c565b925050506108d1565b6138f8611e46565b604083018190526020830182600381111561390f57fe5b600381111561391a57fe5b905250600090508160200151600381111561393157fe5b1461394d576138e760096021836020015160038111156110e357fe5b6139698460405180602001604052808460400151815250614733565b606083018190526020830182600381111561398057fe5b600381111561398b57fe5b90525060009050816020015160038111156139a257fe5b146139be576138e760096020836020015160038111156110e357fe5b6139ce600e5482606001516128d5565b60808301819052602083018260038111156139e557fe5b60038111156139f057fe5b9052506000905081602001516003811115613a0757fe5b14613a23576138e760096024836020015160038111156110e357fe5b6001600160a01b0385166000908152600f60205260409020546060820151613a4b91906128d5565b60a0830181905260208301826003811115613a6257fe5b6003811115613a6d57fe5b9052506000905081602001516003811115613a8457fe5b14613aa0576138e760096023836020015160038111156110e357fe5b613aaa858561467c565b81906010811115613ab757fe5b90816010811115613ac457fe5b905250600081516010811115613ad657fe5b14613ae85780516138e790602561228c565b6080810151600e5560a08101516001600160a01b0386166000818152600f602090815260409182902093909355606080850151825193845293830188905282820193909352517f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f929181900390910190a1606081015160408051918252516001600160a01b0387169130916000805160206149958339815191529181900360200190a36006546060820151604080516341c728b960e01b81523060048201526001600160a01b038981166024830152604482018990526064820193909352905191909216916341c728b991608480830192600092919082900301818387803b158015613bf357600080fd5b505af1158015613c07573d6000803e3d6000fd5b5060009250613c14915050565b95945050505050565b6000613c2761474a565b600080613c3c8660000151866000015161376b565b90925090506000826003811115613c4f57fe5b14613c6e575060408051602081019091526000815290925090506124af565b600080613c836706f05b59d3b20000846128d5565b90925090506000826003811115613c9657fe5b14613cb8575060408051602081019091526000815290945092506124af915050565b600080613ccd83670de0b6b3a76400006137aa565b90925090506000826003811115613ce057fe5b14613ce757fe5b604080516020810190915290815260009a909950975050505050505050565b6006546040805163368f515360e21b81523060048201526001600160a01b0385811660248301526044820185905291516000938493169163da3d454c91606480830192602092919082900301818787803b158015613d6357600080fd5b505af1158015613d77573d6000803e3d6000fd5b505050506040513d6020811015613d8d57600080fd5b505190508015613da4576138736003600e836127e0565b613dac612846565b600a5414613dbf57613873600a8061228c565b82613dc86124b6565b1015613dda57613873600e600961228c565b613de261480f565b613deb856126f1565b6040830181905260208301826003811115613e0257fe5b6003811115613e0d57fe5b9052506000905081602001516003811115613e2457fe5b14613e40576138e760096007836020015160038111156110e357fe5b613e4e8160400151856128d5565b6060830181905260208301826003811115613e6557fe5b6003811115613e7057fe5b9052506000905081602001516003811115613e8757fe5b14613ea3576138e76009600c836020015160038111156110e357fe5b613eaf600c54856128d5565b6080830181905260208301826003811115613ec657fe5b6003811115613ed157fe5b9052506000905081602001516003811115613ee857fe5b14613f04576138e76009600b836020015160038111156110e357fe5b613f0e85856131a6565b81906010811115613f1b57fe5b90816010811115613f2857fe5b905250600081516010811115613f3a57fe5b14613f8c576040805162461bcd60e51b815260206004820152601a60248201527f626f72726f77207472616e73666572206f7574206661696c6564000000000000604482015290519081900360640190fd5b606080820180516001600160a01b038816600081815260116020908152604091829020938455600b54600190940193909355608080870151600c819055945182519384529383018a9052828201939093529381019290925291517f13ed6866d4e1ee6da46f845c46d7e54120883d75c5ea9a2dacc1c4ca8984ab80929181900390910190a160065460408051635c77860560e01b81523060048201526001600160a01b0388811660248301526044820188905291519190921691635c77860591606480830192600092919082900301818387803b158015613bf357600080fd5b60065460408051632fe3f38f60e11b81523060048201526001600160a01b0384811660248301528781166044830152868116606483015260848201869052915160009384931691635fc7e71e9160a480830192602092919082900301818787803b1580156140d957600080fd5b505af11580156140ed573d6000803e3d6000fd5b505050506040513d602081101561410357600080fd5b50519050801561411a57611f9a60036012836127e0565b614122612846565b600a541461413657611f9a600a601661228c565b61413e612846565b836001600160a01b0316636c540baf6040518163ffffffff1660e01b815260040160206040518083038186803b15801561417757600080fd5b505afa15801561418b573d6000803e3d6000fd5b505050506040513d60208110156141a157600080fd5b5051146141b457611f9a600a601161228c565b856001600160a01b0316856001600160a01b031614156141da57611f9a6006601761228c565b836141eb57611f9a6007601561228c565b60001984141561420157611f9a6007601461228c565b6006546040805163c488847b60e01b81523060048201526001600160a01b038681166024830152604482018890528251600094859492169263c488847b926064808301939192829003018186803b15801561425b57600080fd5b505afa15801561426f573d6000803e3d6000fd5b505050506040513d604081101561428557600080fd5b508051602090910151909250905081156142b0576142a660046013846127e0565b9350505050610b53565b846001600160a01b03166370a08231886040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561430657600080fd5b505afa15801561431a573d6000803e3d6000fd5b505050506040513d602081101561433057600080fd5b5051811115614345576142a6600d601d61228c565b6000614352898989612c56565b9050801561437b5761437081601081111561436957fe5b601861228c565b945050505050610b53565b6040805163b2a02ff160e01b81526001600160a01b038b811660048301528a8116602483015260448201859052915160009289169163b2a02ff191606480830192602092919082900301818787803b1580156143d657600080fd5b505af11580156143ea573d6000803e3d6000fd5b505050506040513d602081101561440057600080fd5b50519050801561444e576040805162461bcd60e51b81526020600482015260146024820152731d1bdad95b881cd95a5e9d5c994819985a5b195960621b604482015290519081900360640190fd5b604080516001600160a01b03808d168252808c1660208301528183018b9052891660608201526080810185905290517f298637f684da70674f26509b10f07ec2fbc77a335ab1e7d6215a4b2484d8bb529181900360a00190a1600654604080516347ef3b3b60e01b81523060048201526001600160a01b038a811660248301528d811660448301528c81166064830152608482018c905260a48201879052915191909216916347ef3b3b9160c480830192600092919082900301818387803b15801561451957600080fd5b505af115801561452d573d6000803e3d6000fd5b506000925061453a915050565b9a9950505050505050505050565b60125460408051636eb1769f60e11b81526001600160a01b038581166004830152306024830152915160009392909216918491839163dd62ed3e91604480820192602092909190829003018186803b1580156145a357600080fd5b505afa1580156145b7573d6000803e3d6000fd5b505050506040513d60208110156145cd57600080fd5b505110156145df57600c9150506108d1565b82816001600160a01b03166370a08231866040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561463657600080fd5b505afa15801561464a573d6000803e3d6000fd5b505050506040513d602081101561466057600080fd5b5051101561467257600d9150506108d1565b5060009392505050565b601254604080516323b872dd60e01b81526001600160a01b0385811660048301523060248301526044820185905291516000939290921691839183916323b872dd91606480820192869290919082900301818387803b1580156146de57600080fd5b505af11580156146f2573d6000803e3d6000fd5b505050503d6000811461470c576020811461471657600080fd5b6000199150614722565b60206000803e60005191505b508061325757600f925050506108d1565b600080600061474061474a565b6124798686612957565b6040518060200160405280600081525090565b60408051610140810190915280600081526020016000815260200160008152602001600081526020016000815260200161479561474a565b8152602001600081526020016000815260200160008152602001600081525090565b6040805160e0810190915280600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6040805160c0810190915280600081526020016000614795565b6040805160a08101909152806000815260200160008152602001600081526020016000815260200160008152509056fe737570706c7952617465506572426c6f636b3a2063616c63756c6174696e6720626f72726f7773506572206661696c6564726564756365207265736572766573207472616e73666572206f7574206661696c6564737570706c7952617465506572426c6f636b3a2063616c63756c6174696e6720737570706c7952617465206661696c6564626f72726f7742616c616e636553746f7265643a20626f72726f7742616c616e636553746f726564496e7465726e616c206661696c6564737570706c7952617465506572426c6f636b3a2063616c63756c6174696e6720756e6465726c79696e67206661696c6564626f72726f7752617465506572426c6f636b3a20696e746572657374526174654d6f64656c2e626f72726f7752617465206661696c6564737570706c7952617465506572426c6f636b3a2063616c63756c6174696e6720626f72726f7752617465206661696c6564ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef737570706c7952617465506572426c6f636b3a2063616c63756c6174696e67206f6e654d696e757352657365727665466163746f72206661696c656465786368616e67655261746553746f7265643a2065786368616e67655261746553746f726564496e7465726e616c206661696c65646f6e65206f662072656465656d546f6b656e73496e206f722072656465656d416d6f756e74496e206d757374206265207a65726f72656475636520726573657276657320756e657870656374656420756e646572666c6f77a265627a7a72315820b7c5973819e94866fba5ff8507af20942debe03492c25d8fb05f12224fb62af964736f6c63430005100032
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102a05760003560e01c806394c393fc11610167578063c5ebeaec116100ce578063f3fdb15a11610087578063f3fdb15a1461076a578063f5e3c46214610772578063f77c4791146107a8578063f851a440146107b0578063f8f9da28146107b8578063fca7820b146107c0576102a0565b8063c5ebeaec146106ae578063db006a75146106cb578063dd62ed3e146106e8578063e9c714f214610716578063ef7c74e41461071e578063f2b3abbd14610744576102a0565b8063aa5af0fd11610120578063aa5af0fd146105ee578063ae9d70b0146105f6578063b2a02ff1146105fe578063b71d1a0c14610634578063bd6d894d1461065a578063c37f68e214610662576102a0565b806394c393fc1461056757806395d89b411461056f57806395dd919314610577578063a0712d681461059d578063a6afed95146105ba578063a9059cbb146105c2576102a0565b80633af9e6691161020b5780636f307dc3116101c45780636f307dc3146104e657806370a08231146104ee57806373acee981461051457806383de424e1461051c578063852a12e3146105425780638f840ddd1461055f576102a0565b80633af9e669146104835780633b1d21a2146104a957806347bd3718146104b1578063601a0bf1146104b9578063675d972c146104d65780636c540baf146104de576102a0565b8063182df0f51161025d578063182df0f5146103c757806323b872dd146103cf5780632608f8181461040557806326782247146104315780632d75635914610455578063313ce5671461047b576102a0565b806306fdde03146102a5578063095ea7b3146103225780630e75270214610362578063173b99041461039157806317bfdfbc1461039957806318160ddd146103bf575b600080fd5b6102ad6107dd565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102e75781810151838201526020016102cf565b50505050905090810190601f1680156103145780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61034e6004803603604081101561033857600080fd5b506001600160a01b03813516906020013561086a565b604080519115158252519081900360200190f35b61037f6004803603602081101561037857600080fd5b50356108d7565b60408051918252519081900360200190f35b61037f6108ea565b61037f600480360360208110156103af57600080fd5b50356001600160a01b03166108f0565b61037f6109a3565b61037f6109a9565b61034e600480360360608110156103e557600080fd5b506001600160a01b03813581169160208101359091169060400135610a0c565b61037f6004803603604081101561041b57600080fd5b506001600160a01b038135169060200135610a72565b610439610a85565b604080516001600160a01b039092168252519081900360200190f35b61037f6004803603602081101561046b57600080fd5b50356001600160a01b0316610a94565b61037f610ae7565b61037f6004803603602081101561049957600080fd5b50356001600160a01b0316610aed565b61037f610b5b565b61037f610b6a565b61037f600480360360208110156104cf57600080fd5b5035610b70565b61037f610bf8565b61037f610bfe565b610439610c04565b61037f6004803603602081101561050457600080fd5b50356001600160a01b0316610c13565b61037f610c2e565b61037f6004803603602081101561053257600080fd5b50356001600160a01b0316610cd8565b61037f6004803603602081101561055857600080fd5b5035610e22565b61037f610e2d565b61034e610e33565b6102ad610e38565b61037f6004803603602081101561058d57600080fd5b50356001600160a01b0316610e90565b61037f600480360360208110156105b357600080fd5b5035610eed565b61037f610ef8565b61034e600480360360408110156105d857600080fd5b506001600160a01b0381351690602001356112f1565b61037f611356565b61037f61135c565b61037f6004803603606081101561061457600080fd5b506001600160a01b03813581169160208101359091169060400135611627565b61037f6004803603602081101561064a57600080fd5b50356001600160a01b03166118d8565b61037f61195f565b6106886004803603602081101561067857600080fd5b50356001600160a01b0316611a0a565b604080519485526020850193909352838301919091526060830152519081900360800190f35b61037f600480360360208110156106c457600080fd5b5035611a9f565b61037f600480360360208110156106e157600080fd5b5035611aaa565b61037f600480360360408110156106fe57600080fd5b506001600160a01b0381358116916020013516611ab5565b61037f611ae0565b61037f6004803603602081101561073457600080fd5b50356001600160a01b0316611bcf565b61037f6004803603602081101561075a57600080fd5b50356001600160a01b0316611c80565b610439611cba565b61037f6004803603606081101561078857600080fd5b506001600160a01b03813581169160208101359160409091013516611cc9565b610439611cd6565b610439611ce5565b61037f611cf4565b61037f600480360360208110156107d657600080fd5b5035611dd0565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156108625780601f1061083757610100808354040283529160200191610862565b820191906000526020600020905b81548152906001019060200180831161084557829003601f168201915b505050505081565b3360008181526010602090815260408083206001600160a01b03871680855290835281842086905581518681529151939493909284927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929081900390910190a360019150505b92915050565b60006108e282611e0a565b90505b919050565b60095481565b6000805460010180825581610903610ef8565b1461094e576040805162461bcd60e51b81526020600482015260166024820152751858d8dc9d59481a5b9d195c995cdd0819985a5b195960521b604482015290519081900360640190fd5b61095783610e90565b91505b600054811461099d576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b50919050565b600e5481565b60008060006109b6611e46565b909250905060008260038111156109c957fe5b14610a055760405162461bcd60e51b81526004018080602001828103825260358152602001806149f16035913960400191505060405180910390fd5b9150505b90565b6000805460010180825581610a2333878787611ef4565b1491505b6000548114610a6a576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b509392505050565b6000610a7e8383612202565b9392505050565b6005546001600160a01b031681565b6004546000906001600160a01b03163314610abc57610ab5600a604161228c565b90506108e5565b600780546001600160a01b0319166001600160a01b03848116919091179182905561099d91166122f2565b60035481565b6000610af761474a565b6040518060200160405280610b0a61195f565b90526001600160a01b0384166000908152600f6020526040812054919250908190610b36908490612462565b90925090506000826003811115610b4957fe5b14610b5357600080fd5b949350505050565b6000610b656124b6565b905090565b600c5481565b6000805460010180825581610b83610ef8565b90508015610ba957610ba1816010811115610b9a57fe5b603061228c565b92505061095a565b610bb284612536565b925050600054811461099d576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b60085481565b600a5481565b6012546001600160a01b031681565b6001600160a01b03166000908152600f602052604090205490565b6000805460010180825581610c41610ef8565b14610c8c576040805162461bcd60e51b81526020600482015260166024820152751858d8dc9d59481a5b9d195c995cdd0819985a5b195960521b604482015290519081900360640190fd5b600c5491506000548114610cd4576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b5090565b6004546000906001600160a01b03163314610cf957610ab56001603f61228c565b60065460408051634e1647fb60e01b815290516001600160a01b0392831692851691634e1647fb916004808301926020929190829003018186803b158015610d4057600080fd5b505afa158015610d54573d6000803e3d6000fd5b505050506040513d6020811015610d6a57600080fd5b5051610dbd576040805162461bcd60e51b815260206004820152601c60248201527f6d61726b6572206d6574686f642072657475726e65642066616c736500000000604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b03858116918217909255604080519284168352602083019190915280517ff9b6a28700579d5c8fab50f0ac2dcaa52109b85c369c4f511fcc873330ab6cbb9281900390910190a160009392505050565b60006108e2826126b4565b600d5481565b600181565b6002805460408051602060018416156101000260001901909316849004601f810184900484028201840190925281815292918301828280156108625780601f1061083757610100808354040283529160200191610862565b6000806000610e9e846126f1565b90925090506000826003811115610eb157fe5b14610a7e5760405162461bcd60e51b81526004018080602001828103825260378152602001806148c56037913960400191505060405180910390fd5b60006108e2826127a5565b6000610f0261475d565b6007546001600160a01b03166315f24053610f1b6124b6565b600c54600d546040518463ffffffff1660e01b8152600401808481526020018381526020018281526020019350505050604080518083038186803b158015610f6257600080fd5b505afa158015610f76573d6000803e3d6000fd5b505050506040513d6040811015610f8c57600080fd5b50805160209182015160408401819052918301526601c6bf526340001015610ffb576040805162461bcd60e51b815260206004820152601c60248201527f626f72726f772072617465206973206162737572646c79206869676800000000604482015290519081900360640190fd5b60208101511561101e576110166005600283602001516127e0565b915050610a09565b611026612846565b60608201819052600a5461103a919061284a565b608083018190528282600381111561104e57fe5b600381111561105957fe5b905250600090508151600381111561106d57fe5b1461107457fe5b61109460405180602001604052808360400151815250826080015161286d565b60a08301819052828260038111156110a857fe5b60038111156110b357fe5b90525060009050815160038111156110c757fe5b146110e85761101660096006836000015160038111156110e357fe5b6127e0565b6110f88160a00151600c54612462565b60c083018190528282600381111561110c57fe5b600381111561111757fe5b905250600090508151600381111561112b57fe5b146111475761101660096001836000015160038111156110e357fe5b6111578160c00151600c546128d5565b60e083018190528282600381111561116b57fe5b600381111561117657fe5b905250600090508151600381111561118a57fe5b146111a65761101660096004836000015160038111156110e357fe5b6111c760405180602001604052806009548152508260c00151600d546128fb565b6101008301819052828260038111156111dc57fe5b60038111156111e757fe5b90525060009050815160038111156111fb57fe5b146112175761101660096005836000015160038111156110e357fe5b61122a8160a00151600b54600b546128fb565b61012083018190528282600381111561123f57fe5b600381111561124a57fe5b905250600090508151600381111561125e57fe5b1461127a5761101660096003836000015160038111156110e357fe5b606080820151600a55610120820151600b81905560e0830151600c819055610100840151600d5560c08401516040805191825260208201939093528083019190915290517f875352fb3fadeb8c0be7cbbe8ff761b308fa7033470cd0287f02f3436fd76cb9929181900390910190a1600091505090565b600080546001018082558161130833338787611ef4565b1491505b600054811461134f576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b5092915050565b600b5481565b6000806113676109a9565b60075490915060009081906001600160a01b03166315f240536113886124b6565b600c54600d546040518463ffffffff1660e01b8152600401808481526020018381526020018281526020019350505050604080518083038186803b1580156113cf57600080fd5b505afa1580156113e3573d6000803e3d6000fd5b505050506040513d60408110156113f957600080fd5b508051602090910151909250905081156114445760405162461bcd60e51b81526004018080602001828103825260318152602001806149646031913960400191505060405180910390fd5b600061144e61474a565b611468604051806020016040528087815250600e5461286d565b9092509050600082600381111561147b57fe5b146114b75760405162461bcd60e51b81526004018080602001828103825260318152602001806148fc6031913960400191505060405180910390fd5b60006114c161474a565b6114cd600c5484612957565b909250905060008260038111156114e057fe5b1461151c5760405162461bcd60e51b81526004018080602001828103825260318152602001806148406031913960400191505060405180910390fd5b600061152661474a565b6115566040518060200160405280670de0b6b3a764000081525060405180602001604052806009548152506129b6565b9092509050600082600381111561156957fe5b146115a55760405162461bcd60e51b815260040180806020018281038252603c8152602001806149b5603c913960400191505060405180910390fd5b60006115af61474a565b6115c860405180602001604052808b81525084876129f0565b909250905060008260038111156115db57fe5b146116175760405162461bcd60e51b81526004018080602001828103825260318152602001806148946031913960400191505060405180910390fd5b519a505050505050505050505090565b600080546001018082556006546040805163d02f735160e01b81523060048201523360248201526001600160a01b03888116604483015287811660648301526084820187905291518593929092169163d02f73519160a48082019260209290919082900301818787803b15801561169d57600080fd5b505af11580156116b1573d6000803e3d6000fd5b505050506040513d60208110156116c757600080fd5b5051905080156116e6576116de6003601b836127e0565b925050610a27565b856001600160a01b0316856001600160a01b0316141561170c576116de6006601c61228c565b6001600160a01b0385166000908152600f602052604081205481908190611733908861284a565b9093509150600083600381111561174657fe5b146117695761175e6009601a8560038111156110e357fe5b955050505050610a27565b6001600160a01b0389166000908152600f602052604090205461178c90886128d5565b9093509050600083600381111561179f57fe5b146117b75761175e600960198560038111156110e357fe5b6001600160a01b038089166000818152600f60209081526040808320879055938d168083529184902085905583518b815293519193600080516020614995833981519152929081900390910190a360065460408051636d35bf9160e01b81523060048201523360248201526001600160a01b038c811660448301528b81166064830152608482018b905291519190921691636d35bf919160a480830192600092919082900301818387803b15801561186e57600080fd5b505af1158015611882573d6000803e3d6000fd5b506000925061188f915050565b9550505050506000548114610a6a576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6004546000906001600160a01b031633146118f957610ab56001604561228c565b600580546001600160a01b038481166001600160a01b0319831681179093556040805191909216808252602082019390935281517fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a9929181900390910190a16000610a7e565b6000805460010180825581611972610ef8565b146119bd576040805162461bcd60e51b81526020600482015260166024820152751858d8dc9d59481a5b9d195c995cdd0819985a5b195960521b604482015290519081900360640190fd5b6119c56109a9565b91506000548114610cd4576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6001600160a01b0381166000908152600f6020526040812054819081908190818080611a35896126f1565b935090506000816003811115611a4757fe5b14611a655760095b975060009650869550859450611a989350505050565b611a6d611e46565b925090506000816003811115611a7f57fe5b14611a8b576009611a4f565b5060009650919450925090505b9193509193565b60006108e282612a3a565b60006108e282612a75565b6001600160a01b03918216600090815260106020908152604080832093909416825291909152205490565b6005546000906001600160a01b031633141580611afb575033155b15611b1357611b0c6001600061228c565b9050610a09565b60048054600580546001600160a01b038082166001600160a01b031980861682179687905590921690925560408051938316808552949092166020840152815190927ff9ffabca9c8276e99321725bcb43fb076a6c66a54b7f21c4e8146d8519b417dc92908290030190a1600554604080516001600160a01b038085168252909216602083015280517fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a99281900390910190a160009250505090565b6004546000906001600160a01b03163314611bf057610ab56001603f61228c565b601280546001600160a01b0319166001600160a01b038481169190911791829055604080516318160ddd60e01b8152905192909116916318160ddd91600480820192602092909190829003018186803b158015611c4c57600080fd5b505afa158015611c60573d6000803e3d6000fd5b505050506040513d6020811015611c7657600080fd5b50600090506108e2565b600080611c8b610ef8565b90508015611cb157611ca9816010811115611ca257fe5b604061228c565b9150506108e5565b610a7e836122f2565b6007546001600160a01b031681565b6000610b53848484612aab565b6006546001600160a01b031681565b6004546001600160a01b031681565b600754600090819081906001600160a01b03166315f24053611d146124b6565b600c54600d546040518463ffffffff1660e01b8152600401808481526020018381526020018281526020019350505050604080518083038186803b158015611d5b57600080fd5b505afa158015611d6f573d6000803e3d6000fd5b505050506040513d6040811015611d8557600080fd5b50805160209091015190925090508115610a055760405162461bcd60e51b815260040180806020018281038252603781526020018061492d6037913960400191505060405180910390fd5b6000805460010180825581611de3610ef8565b90508015611e0157610ba1816010811115611dfa57fe5b604661228c565b610bb284612bb3565b6000805460010180825581611e1d610ef8565b90508015611e3b57610ba1816010811115611e3457fe5b603661228c565b610bb2333386612c56565b600080600e5460001415611e61575050600854600090611ef0565b6000611e6b6124b6565b90506000611e7761474a565b6000611e8884600c54600d546130a9565b935090506000816003811115611e9a57fe5b14611eae57945060009350611ef092505050565b611eba83600e546130e7565b925090506000816003811115611ecc57fe5b14611ee057945060009350611ef092505050565b5051600094509250611ef0915050565b9091565b600654604080516317b9b84b60e31b81523060048201526001600160a01b03868116602483015285811660448301526064820185905291516000938493169163bdcdc25891608480830192602092919082900301818787803b158015611f5957600080fd5b505af1158015611f6d573d6000803e3d6000fd5b505050506040513d6020811015611f8357600080fd5b505190508015611fa257611f9a6003604a836127e0565b915050610b53565b836001600160a01b0316856001600160a01b03161415611fc857611f9a6002604b61228c565b60006001600160a01b038781169087161415611fe7575060001961200f565b506001600160a01b038086166000908152601060209081526040808320938a16835292905220545b60008060008061201f858961284a565b9094509250600084600381111561203257fe5b14612050576120436009604b61228c565b9650505050505050610b53565b6001600160a01b038a166000908152600f6020526040902054612073908961284a565b9094509150600084600381111561208657fe5b14612097576120436009604c61228c565b6001600160a01b0389166000908152600f60205260409020546120ba90896128d5565b909450905060008460038111156120cd57fe5b146120de576120436009604d61228c565b6001600160a01b03808b166000908152600f6020526040808220859055918b168152208190556000198514612136576001600160a01b03808b166000908152601060209081526040808320938f168352929052208390555b886001600160a01b03168a6001600160a01b03166000805160206149958339815191528a6040518082815260200191505060405180910390a36006546040805163352b4a3f60e11b81523060048201526001600160a01b038d811660248301528c81166044830152606482018c905291519190921691636a56947e91608480830192600092919082900301818387803b1580156121d257600080fd5b505af11580156121e6573d6000803e3d6000fd5b50600092506121f3915050565b9b9a5050505050505050505050565b6000805460010180825581612215610ef8565b9050801561223b5761223381601081111561222c57fe5b603561228c565b92505061130c565b612246338686612c56565b925050600054811461134f576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b60007f45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa08360108111156122bb57fe5b83604d8111156122c757fe5b604080519283526020830191909152600082820152519081900360600190a1826010811115610a7e57fe5b60045460009081906001600160a01b0316331461231557611ca96001604261228c565b61231d612846565b600a541461233157611ca9600a604161228c565b600760009054906101000a90046001600160a01b03169050826001600160a01b0316632191f92a6040518163ffffffff1660e01b815260040160206040518083038186803b15801561238257600080fd5b505afa158015612396573d6000803e3d6000fd5b505050506040513d60208110156123ac57600080fd5b50516123ff576040805162461bcd60e51b815260206004820152601c60248201527f6d61726b6572206d6574686f642072657475726e65642066616c736500000000604482015290519081900360640190fd5b600780546001600160a01b0319166001600160a01b03858116918217909255604080519284168352602083019190915280517fedffc32e068c7c95dfd4bdfd5c4d939a084d6b11c4199eac8436ed234d72f9269281900390910190a16000610a7e565b600080600061246f61474a565b612479868661286d565b9092509050600082600381111561248c57fe5b1461249d57509150600090506124af565b60006124a882613197565b9350935050505b9250929050565b601254604080516370a0823160e01b815230600482015290516000926001600160a01b03169182916370a0823191602480820192602092909190829003018186803b15801561250457600080fd5b505afa158015612518573d6000803e3d6000fd5b505050506040513d602081101561252e57600080fd5b505191505090565b600454600090819081906001600160a01b031633146125645761255b6001603161228c565b925050506108e5565b61256c612846565b600a54146125805761255b600a603361228c565b836125896124b6565b101561259b5761255b600e603261228c565b600d548411156125b15761255b6002603461228c565b50600d54838103908111156125f75760405162461bcd60e51b8152600401808060200182810382526024815260200180614a5a6024913960400191505060405180910390fd5b600d819055600454612612906001600160a01b0316856131a6565b9150600082601081111561262257fe5b1461265e5760405162461bcd60e51b81526004018080602001828103825260238152602001806148716023913960400191505060405180910390fd5b600454604080516001600160a01b03909216825260208201869052818101839052517f3bad0c59cf2f06e7314077049f48a93578cd16f5ef92329f1dab1420a99c177e9181900360600190a16000949350505050565b60008054600101808255816126c7610ef8565b905080156126e557610ba18160108111156126de57fe5b602761228c565b610bb233600086613262565b6001600160a01b0381166000908152601160205260408120805482918291829182916127285750600094508493506127a092505050565b6127388160000154600b5461376b565b9094509250600084600381111561274b57fe5b146127605750919350600092506127a0915050565b61276e8382600101546137aa565b9094509150600084600381111561278157fe5b146127965750919350600092506127a0915050565b5060009450925050505b915091565b60008054600101808255816127b8610ef8565b905080156127d657610ba18160108111156127cf57fe5b601e61228c565b610bb233856137d5565b60007f45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa084601081111561280f57fe5b84604d81111561281b57fe5b604080519283526020830191909152818101859052519081900360600190a1836010811115610b5357fe5b4390565b6000808383116128615750600090508183036124af565b506003905060006124af565b600061287761474a565b60008061288886600001518661376b565b9092509050600082600381111561289b57fe5b146128ba575060408051602081019091526000815290925090506124af565b60408051602081019091529081526000969095509350505050565b6000808383018481106128ed576000925090506124af565b5060029150600090506124af565b600080600061290861474a565b612912878761286d565b9092509050600082600381111561292557fe5b14612936575091506000905061294f565b61294861294282613197565b866128d5565b9350935050505b935093915050565b600061296161474a565b600080612976670de0b6b3a76400008761376b565b9092509050600082600381111561298957fe5b146129a8575060408051602081019091526000815290925090506124af565b6124a88186600001516130e7565b60006129c061474a565b6000806129d58660000151866000015161284a565b60408051602081019091529081529097909650945050505050565b60006129fa61474a565b6000612a0461474a565b612a0e8787613c1d565b90925090506000826003811115612a2157fe5b14612a3057909250905061294f565b6129488186613c1d565b6000805460010180825581612a4d610ef8565b90508015612a6b57610ba1816010811115612a6457fe5b600861228c565b610bb23385613d06565b6000805460010180825581612a88610ef8565b90508015612a9f57610ba18160108111156126de57fe5b610bb233856000613262565b6000805460010180825581612abe610ef8565b90508015612adc576116de816010811115612ad557fe5b600f61228c565b836001600160a01b031663a6afed956040518163ffffffff1660e01b8152600401602060405180830381600087803b158015612b1757600080fd5b505af1158015612b2b573d6000803e3d6000fd5b505050506040513d6020811015612b4157600080fd5b505190508015612b61576116de816010811115612b5a57fe5b601061228c565b612b6d3387878761406c565b9250506000548114610a6a576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6004546000906001600160a01b03163314612bd457610ab56001604761228c565b612bdc612846565b600a5414612bf057610ab5600a604861228c565b670de0b6b3a7640000821115612c0c57610ab56002604961228c565b6009805490839055604080518281526020810185905281517faaa68312e2ea9d50e16af5068410ab56e1a1fd06037b1a35664812c30f821460929181900390910190a16000610a7e565b60065460408051631200453160e11b81523060048201526001600160a01b0386811660248301528581166044830152606482018590529151600093849316916324008a6291608480830192602092919082900301818787803b158015612cbb57600080fd5b505af1158015612ccf573d6000803e3d6000fd5b505050506040513d6020811015612ce557600080fd5b505190508015612d0457612cfc60036038836127e0565b915050610a7e565b612d0c612846565b600a5414612d2057612cfc600a603961228c565b612d286147b7565b6001600160a01b0385166000908152601160205260409020600101546060820152612d52856126f1565b6080830181905260208301826003811115612d6957fe5b6003811115612d7457fe5b9052506000905081602001516003811115612d8b57fe5b14612db057612da760096037836020015160038111156110e357fe5b92505050610a7e565b600019841415612dc95760808101516040820152612dd1565b604081018490525b612ddf868260400151614548565b81906010811115612dec57fe5b90816010811115612df957fe5b905250600081516010811115612e0b57fe5b14612e1d578051612da790603c61228c565b612e2f8160800151826040015161284a565b60a0830181905260208301826003811115612e4657fe5b6003811115612e5157fe5b9052506000905081602001516003811115612e6857fe5b14612e8457612da76009603a836020015160038111156110e357fe5b612e94600c54826040015161284a565b60c0830181905260208301826003811115612eab57fe5b6003811115612eb657fe5b9052506000905081602001516003811115612ecd57fe5b14612ee957612da76009603b836020015160038111156110e357fe5b612ef786826040015161467c565b81906010811115612f0457fe5b90816010811115612f1157fe5b905250600081516010811115612f2357fe5b14612f75576040805162461bcd60e51b815260206004820152601f60248201527f726570617920626f72726f77207472616e7366657220696e206661696c656400604482015290519081900360640190fd5b60a080820180516001600160a01b03808916600081815260116020908152604091829020948555600b5460019095019490945560c0870151600c8190558188015195518251948e16855294840192909252828101949094526060820192909252608081019190915290517f1a2a22cb034d26d1854bdc6666a5b91fe25efbbb5dcad3b0355478d6f5c362a1929181900390910190a160065460408083015160608401518251631ededc9160e01b81523060048201526001600160a01b038b811660248301528a81166044830152606482019390935260848101919091529151921691631ededc919160a48082019260009290919082900301818387803b15801561307e57600080fd5b505af1158015613092573d6000803e3d6000fd5b506000925061309f915050565b9695505050505050565b6000806000806130b987876128d5565b909250905060008260038111156130cc57fe5b146130dd575091506000905061294f565b612948818661284a565b60006130f161474a565b60008061310686670de0b6b3a764000061376b565b9092509050600082600381111561311957fe5b14613138575060408051602081019091526000815290925090506124af565b60008061314583886137aa565b9092509050600082600381111561315857fe5b1461317a575060408051602081019091526000815290945092506124af915050565b604080516020810190915290815260009890975095505050505050565b51670de0b6b3a7640000900490565b6012546040805163a9059cbb60e01b81526001600160a01b03858116600483015260248201859052915160009392909216918391839163a9059cbb91604480820192869290919082900301818387803b15801561320257600080fd5b505af1158015613216573d6000803e3d6000fd5b505050503d60008114613230576020811461323a57600080fd5b6000199150613246565b60206000803e60005191505b5080613257576010925050506108d1565b506000949350505050565b600082158061326f575081155b6132aa5760405162461bcd60e51b8152600401808060200182810382526034815260200180614a266034913960400191505060405180910390fd5b6132b26147b7565b6132ba611e46565b60408301819052602083018260038111156132d157fe5b60038111156132dc57fe5b90525060009050816020015160038111156132f357fe5b1461330f57612cfc6009602b836020015160038111156110e357fe5b83156133905760608101849052604080516020810182529082015181526133369085612462565b608083018190526020830182600381111561334d57fe5b600381111561335857fe5b905250600090508160200151600381111561336f57fe5b1461338b57612cfc60096029836020015160038111156110e357fe5b613409565b6133ac8360405180602001604052808460400151815250614733565b60608301819052602083018260038111156133c357fe5b60038111156133ce57fe5b90525060009050816020015160038111156133e557fe5b1461340157612cfc6009602a836020015160038111156110e357fe5b608081018390525b60065460608201516040805163eabe7d9160e01b81523060048201526001600160a01b03898116602483015260448201939093529051600093929092169163eabe7d919160648082019260209290919082900301818787803b15801561346e57600080fd5b505af1158015613482573d6000803e3d6000fd5b505050506040513d602081101561349857600080fd5b5051905080156134af57612da760036028836127e0565b6134b7612846565b600a54146134cb57612da7600a602c61228c565b6134db600e54836060015161284a565b60a08401819052602084018260038111156134f257fe5b60038111156134fd57fe5b905250600090508260200151600381111561351457fe5b1461353057612da76009602e846020015160038111156110e357fe5b6001600160a01b0386166000908152600f60205260409020546060830151613558919061284a565b60c084018190526020840182600381111561356f57fe5b600381111561357a57fe5b905250600090508260200151600381111561359157fe5b146135ad57612da76009602d846020015160038111156110e357fe5b81608001516135ba6124b6565b10156135cc57612da7600e602f61228c565b6135da8683608001516131a6565b829060108111156135e757fe5b908160108111156135f457fe5b90525060008251601081111561360657fe5b14613658576040805162461bcd60e51b815260206004820152601a60248201527f72656465656d207472616e73666572206f7574206661696c6564000000000000604482015290519081900360640190fd5b60a0820151600e5560c08201516001600160a01b0387166000818152600f6020908152604091829020939093556060850151815190815290513093600080516020614995833981519152928290030190a36080820151606080840151604080516001600160a01b038b168152602081019490945283810191909152517fe5b754fb1abb7f01b499791d0b820ae3b6af3424ac1c59768edb53f4ec31a9299281900390910190a160065460808301516060840151604080516351dff98960e01b81523060048201526001600160a01b038b81166024830152604482019490945260648101929092525191909216916351dff98991608480830192600092919082900301818387803b15801561307e57600080fd5b6000808361377e575060009050806124af565b8383028385828161378b57fe5b041461379f575060029150600090506124af565b6000925090506124af565b600080826137be57506001905060006124af565b60008385816137c957fe5b04915091509250929050565b60065460408051634ef4c3e160e01b81523060048201526001600160a01b03858116602483015260448201859052915160009384931691634ef4c3e191606480830192602092919082900301818787803b15801561383257600080fd5b505af1158015613846573d6000803e3d6000fd5b505050506040513d602081101561385c57600080fd5b50519050801561387b576138736003601f836127e0565b9150506108d1565b613883612846565b600a541461389757613873600a602261228c565b61389f6147f5565b6138a98585614548565b819060108111156138b657fe5b908160108111156138c357fe5b9052506000815160108111156138d557fe5b146138f05780516138e790602661228c565b925050506108d1565b6138f8611e46565b604083018190526020830182600381111561390f57fe5b600381111561391a57fe5b905250600090508160200151600381111561393157fe5b1461394d576138e760096021836020015160038111156110e357fe5b6139698460405180602001604052808460400151815250614733565b606083018190526020830182600381111561398057fe5b600381111561398b57fe5b90525060009050816020015160038111156139a257fe5b146139be576138e760096020836020015160038111156110e357fe5b6139ce600e5482606001516128d5565b60808301819052602083018260038111156139e557fe5b60038111156139f057fe5b9052506000905081602001516003811115613a0757fe5b14613a23576138e760096024836020015160038111156110e357fe5b6001600160a01b0385166000908152600f60205260409020546060820151613a4b91906128d5565b60a0830181905260208301826003811115613a6257fe5b6003811115613a6d57fe5b9052506000905081602001516003811115613a8457fe5b14613aa0576138e760096023836020015160038111156110e357fe5b613aaa858561467c565b81906010811115613ab757fe5b90816010811115613ac457fe5b905250600081516010811115613ad657fe5b14613ae85780516138e790602561228c565b6080810151600e5560a08101516001600160a01b0386166000818152600f602090815260409182902093909355606080850151825193845293830188905282820193909352517f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f929181900390910190a1606081015160408051918252516001600160a01b0387169130916000805160206149958339815191529181900360200190a36006546060820151604080516341c728b960e01b81523060048201526001600160a01b038981166024830152604482018990526064820193909352905191909216916341c728b991608480830192600092919082900301818387803b158015613bf357600080fd5b505af1158015613c07573d6000803e3d6000fd5b5060009250613c14915050565b95945050505050565b6000613c2761474a565b600080613c3c8660000151866000015161376b565b90925090506000826003811115613c4f57fe5b14613c6e575060408051602081019091526000815290925090506124af565b600080613c836706f05b59d3b20000846128d5565b90925090506000826003811115613c9657fe5b14613cb8575060408051602081019091526000815290945092506124af915050565b600080613ccd83670de0b6b3a76400006137aa565b90925090506000826003811115613ce057fe5b14613ce757fe5b604080516020810190915290815260009a909950975050505050505050565b6006546040805163368f515360e21b81523060048201526001600160a01b0385811660248301526044820185905291516000938493169163da3d454c91606480830192602092919082900301818787803b158015613d6357600080fd5b505af1158015613d77573d6000803e3d6000fd5b505050506040513d6020811015613d8d57600080fd5b505190508015613da4576138736003600e836127e0565b613dac612846565b600a5414613dbf57613873600a8061228c565b82613dc86124b6565b1015613dda57613873600e600961228c565b613de261480f565b613deb856126f1565b6040830181905260208301826003811115613e0257fe5b6003811115613e0d57fe5b9052506000905081602001516003811115613e2457fe5b14613e40576138e760096007836020015160038111156110e357fe5b613e4e8160400151856128d5565b6060830181905260208301826003811115613e6557fe5b6003811115613e7057fe5b9052506000905081602001516003811115613e8757fe5b14613ea3576138e76009600c836020015160038111156110e357fe5b613eaf600c54856128d5565b6080830181905260208301826003811115613ec657fe5b6003811115613ed157fe5b9052506000905081602001516003811115613ee857fe5b14613f04576138e76009600b836020015160038111156110e357fe5b613f0e85856131a6565b81906010811115613f1b57fe5b90816010811115613f2857fe5b905250600081516010811115613f3a57fe5b14613f8c576040805162461bcd60e51b815260206004820152601a60248201527f626f72726f77207472616e73666572206f7574206661696c6564000000000000604482015290519081900360640190fd5b606080820180516001600160a01b038816600081815260116020908152604091829020938455600b54600190940193909355608080870151600c819055945182519384529383018a9052828201939093529381019290925291517f13ed6866d4e1ee6da46f845c46d7e54120883d75c5ea9a2dacc1c4ca8984ab80929181900390910190a160065460408051635c77860560e01b81523060048201526001600160a01b0388811660248301526044820188905291519190921691635c77860591606480830192600092919082900301818387803b158015613bf357600080fd5b60065460408051632fe3f38f60e11b81523060048201526001600160a01b0384811660248301528781166044830152868116606483015260848201869052915160009384931691635fc7e71e9160a480830192602092919082900301818787803b1580156140d957600080fd5b505af11580156140ed573d6000803e3d6000fd5b505050506040513d602081101561410357600080fd5b50519050801561411a57611f9a60036012836127e0565b614122612846565b600a541461413657611f9a600a601661228c565b61413e612846565b836001600160a01b0316636c540baf6040518163ffffffff1660e01b815260040160206040518083038186803b15801561417757600080fd5b505afa15801561418b573d6000803e3d6000fd5b505050506040513d60208110156141a157600080fd5b5051146141b457611f9a600a601161228c565b856001600160a01b0316856001600160a01b031614156141da57611f9a6006601761228c565b836141eb57611f9a6007601561228c565b60001984141561420157611f9a6007601461228c565b6006546040805163c488847b60e01b81523060048201526001600160a01b038681166024830152604482018890528251600094859492169263c488847b926064808301939192829003018186803b15801561425b57600080fd5b505afa15801561426f573d6000803e3d6000fd5b505050506040513d604081101561428557600080fd5b508051602090910151909250905081156142b0576142a660046013846127e0565b9350505050610b53565b846001600160a01b03166370a08231886040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561430657600080fd5b505afa15801561431a573d6000803e3d6000fd5b505050506040513d602081101561433057600080fd5b5051811115614345576142a6600d601d61228c565b6000614352898989612c56565b9050801561437b5761437081601081111561436957fe5b601861228c565b945050505050610b53565b6040805163b2a02ff160e01b81526001600160a01b038b811660048301528a8116602483015260448201859052915160009289169163b2a02ff191606480830192602092919082900301818787803b1580156143d657600080fd5b505af11580156143ea573d6000803e3d6000fd5b505050506040513d602081101561440057600080fd5b50519050801561444e576040805162461bcd60e51b81526020600482015260146024820152731d1bdad95b881cd95a5e9d5c994819985a5b195960621b604482015290519081900360640190fd5b604080516001600160a01b03808d168252808c1660208301528183018b9052891660608201526080810185905290517f298637f684da70674f26509b10f07ec2fbc77a335ab1e7d6215a4b2484d8bb529181900360a00190a1600654604080516347ef3b3b60e01b81523060048201526001600160a01b038a811660248301528d811660448301528c81166064830152608482018c905260a48201879052915191909216916347ef3b3b9160c480830192600092919082900301818387803b15801561451957600080fd5b505af115801561452d573d6000803e3d6000fd5b506000925061453a915050565b9a9950505050505050505050565b60125460408051636eb1769f60e11b81526001600160a01b038581166004830152306024830152915160009392909216918491839163dd62ed3e91604480820192602092909190829003018186803b1580156145a357600080fd5b505afa1580156145b7573d6000803e3d6000fd5b505050506040513d60208110156145cd57600080fd5b505110156145df57600c9150506108d1565b82816001600160a01b03166370a08231866040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561463657600080fd5b505afa15801561464a573d6000803e3d6000fd5b505050506040513d602081101561466057600080fd5b5051101561467257600d9150506108d1565b5060009392505050565b601254604080516323b872dd60e01b81526001600160a01b0385811660048301523060248301526044820185905291516000939290921691839183916323b872dd91606480820192869290919082900301818387803b1580156146de57600080fd5b505af11580156146f2573d6000803e3d6000fd5b505050503d6000811461470c576020811461471657600080fd5b6000199150614722565b60206000803e60005191505b508061325757600f925050506108d1565b600080600061474061474a565b6124798686612957565b6040518060200160405280600081525090565b60408051610140810190915280600081526020016000815260200160008152602001600081526020016000815260200161479561474a565b8152602001600081526020016000815260200160008152602001600081525090565b6040805160e0810190915280600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6040805160c0810190915280600081526020016000614795565b6040805160a08101909152806000815260200160008152602001600081526020016000815260200160008152509056fe737570706c7952617465506572426c6f636b3a2063616c63756c6174696e6720626f72726f7773506572206661696c6564726564756365207265736572766573207472616e73666572206f7574206661696c6564737570706c7952617465506572426c6f636b3a2063616c63756c6174696e6720737570706c7952617465206661696c6564626f72726f7742616c616e636553746f7265643a20626f72726f7742616c616e636553746f726564496e7465726e616c206661696c6564737570706c7952617465506572426c6f636b3a2063616c63756c6174696e6720756e6465726c79696e67206661696c6564626f72726f7752617465506572426c6f636b3a20696e746572657374526174654d6f64656c2e626f72726f7752617465206661696c6564737570706c7952617465506572426c6f636b3a2063616c63756c6174696e6720626f72726f7752617465206661696c6564ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef737570706c7952617465506572426c6f636b3a2063616c63756c6174696e67206f6e654d696e757352657365727665466163746f72206661696c656465786368616e67655261746553746f7265643a2065786368616e67655261746553746f726564496e7465726e616c206661696c65646f6e65206f662072656465656d546f6b656e73496e206f722072656465656d416d6f756e74496e206d757374206265207a65726f72656475636520726573657276657320756e657870656374656420756e646572666c6f77a265627a7a72315820b7c5973819e94866fba5ff8507af20942debe03492c25d8fb05f12224fb62af964736f6c63430005100032
Deployed Bytecode Sourcemap
90430:8522:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;90430:8522:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22441:18;;;:::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;22441:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31547:237;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;31547:237:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;92595:121;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;92595:121:0;;:::i;:::-;;;;;;;;;;;;;;;;23714:33;;;:::i;37255:224::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;37255:224:0;-1:-1:-1;;;;;37255:224:0;;:::i;24350:26::-;;;:::i;40100:261::-;;;:::i;30882:195::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;30882:195:0;;;;;;;;;;;;;;;;;:::i;93004:161::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;93004:161:0;;;;;;;;:::i;23142:35::-;;;:::i;:::-;;;;-1:-1:-1;;;;;23142:35:0;;;;;;;;;;;;;;86700:477;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;86700:477:0;-1:-1:-1;;;;;86700:477:0;;:::i;22637:20::-;;;:::i;32815:319::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;32815:319:0;-1:-1:-1;;;;;32815:319:0;;:::i;41937:88::-;;;:::i;24114:24::-;;;:::i;82781:571::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;82781:571:0;;:::i;23578:39::-;;;:::i;23837:30::-;;;:::i;90532:25::-;;;:::i;32447:112::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;32447:112:0;-1:-1:-1;;;;;32447:112:0;;:::i;36772:192::-;;;:::i;79599:725::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;79599:725:0;-1:-1:-1;;;;;79599:725:0;;:::i;91873:133::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;91873:133:0;;:::i;24244:25::-;;;:::i;22329:36::-;;;:::i;22537:20::-;;;:::i;37688:287::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;37688:287:0;-1:-1:-1;;;;;37688:287:0;;:::i;90948:105::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;90948:105:0;;:::i;42652:3646::-;;;:::i;30390:185::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;30390:185:0;;;;;;;;:::i;23979:23::-;;;:::i;35128:1498::-;;;:::i;75042:2117::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;75042:2117:0;;;;;;;;;;;;;;;;;:::i;77709:647::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;77709:647:0;-1:-1:-1;;;;;77709:647:0;;:::i;39652:198::-;;;:::i;33479:703::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;33479:703:0;-1:-1:-1;;;;;33479:703:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;92274:113;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;92274:113:0;;:::i;91404:::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;91404:113:0;;:::i;32114:143::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;32114:143:0;;;;;;;;;;:::i;78634:742::-;;;:::i;98482:466::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;98482:466:0;-1:-1:-1;;;;;98482:466:0;;:::i;86059:633::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;86059:633:0;-1:-1:-1;;;;;86059:633:0;;:::i;23407:42::-;;;:::i;93647:200::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;93647:200:0;;;;;;;;;;;;;;;;;:::i;23268:37::-;;;:::i;23031:28::-;;;:::i;34610:342::-;;;:::i;80627:607::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;80627:607:0;;:::i;22441:18::-;;;;;;;;;;;;;;;-1:-1:-1;;22441:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;31547:237::-;31646:10;31615:4;31667:23;;;:18;:23;;;;;;;;-1:-1:-1;;;;;31667:32:0;;;;;;;;;;;:41;;;31724:30;;;;;;;31615:4;;31646:10;31667:32;;31646:10;;31724:30;;;;;;;;;;;31772:4;31765:11;;;31547:237;;;;;:::o;92595:121::-;92652:4;92676:32;92696:11;92676:19;:32::i;:::-;92669:39;;92595:121;;;;:::o;23714:33::-;;;;:::o;37255:224::-;37333:4;21777:18;;21794:1;21777:18;;;;37333:4;37358:16;:14;:16::i;:::-;:40;37350:75;;;;;-1:-1:-1;;;37350:75:0;;;;;;;;;;;;-1:-1:-1;;;37350:75:0;;;;;;;;;;;;;;;37443:28;37463:7;37443:19;:28::i;:::-;37436:35;;21853:1;21889:13;;21873:12;:29;21865:52;;;;;-1:-1:-1;;;21865:52:0;;;;;;;;;;;;-1:-1:-1;;;21865:52:0;;;;;;;;;;;;;;;37255:224;;;;:::o;24350:26::-;;;;:::o;40100:261::-;40151:4;40169:13;40184:11;40199:28;:26;:28::i;:::-;40168:59;;-1:-1:-1;40168:59:0;-1:-1:-1;40253:18:0;40246:3;:25;;;;;;;;;40238:91;;;;-1:-1:-1;;;40238:91:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40347:6;-1:-1:-1;;40100:261:0;;:::o;30882:195::-;30977:4;21777:18;;21794:1;21777:18;;;;30977:4;31001:44;31016:10;31028:3;31033;31038:6;31001:14;:44::i;:::-;:68;30994:75;;21853:1;21889:13;;21873:12;:29;21865:52;;;;;-1:-1:-1;;;21865:52:0;;;;;;;;;;;;-1:-1:-1;;;21865:52:0;;;;;;;;;;;;;;;30882:195;;;;;;:::o;93004:161::-;93085:4;93109:48;93135:8;93145:11;93109:25;:48::i;:::-;93102:55;93004:161;-1:-1:-1;;;93004:161:0:o;23142:35::-;;;-1:-1:-1;;;;;23142:35:0;;:::o;86700:477::-;86827:5;;86792:4;;-1:-1:-1;;;;;86827:5:0;86813:10;:19;86809:136;;86856:77;86861:22;86885:47;86856:4;:77::i;:::-;86849:84;;;;86809:136;87073:17;:40;;-1:-1:-1;;;;;;87073:40:0;-1:-1:-1;;;;;87073:40:0;;;;;;;;;;;87124:45;;87151:17;87124:26;:45::i;22637:20::-;;;;:::o;32815:319::-;32877:4;32894:23;;:::i;:::-;32920:38;;;;;;;;32935:21;:19;:21::i;:::-;32920:38;;-1:-1:-1;;;;;33034:20:0;;32970:14;33034:20;;;:13;:20;;;;;;32894:64;;-1:-1:-1;32970:14:0;;;33002:53;;32894:64;;33002:17;:53::i;:::-;32969:86;;-1:-1:-1;32969:86:0;-1:-1:-1;33082:18:0;33074:4;:26;;;;;;;;;33066:35;;;;;;33119:7;32815:319;-1:-1:-1;;;;32815:319:0:o;41937:88::-;41979:4;42003:14;:12;:14::i;:::-;41996:21;;41937:88;:::o;24114:24::-;;;;:::o;82781:571::-;82856:4;21777:18;;21794:1;21777:18;;;;82856:4;82886:16;:14;:16::i;:::-;82873:29;-1:-1:-1;82917:29:0;;82913:277;;83108:70;83119:5;83113:12;;;;;;;;83127:50;83108:4;:70::i;:::-;83101:77;;;;;82913:277;83310:34;83331:12;83310:20;:34::i;:::-;83303:41;;;21889:13;;21873:12;:29;21865:52;;;;;-1:-1:-1;;;21865:52:0;;;;;;;;;;;;-1:-1:-1;;;21865:52:0;;;;;;;;;;;;;;23578:39;;;;:::o;23837:30::-;;;;:::o;90532:25::-;;;-1:-1:-1;;;;;90532:25:0;;:::o;32447:112::-;-1:-1:-1;;;;;32531:20:0;32504:7;32531:20;;;:13;:20;;;;;;;32447:112::o;36772:192::-;36834:4;21777:18;;21794:1;21777:18;;;;36834:4;36859:16;:14;:16::i;:::-;:40;36851:75;;;;;-1:-1:-1;;;36851:75:0;;;;;;;;;;;;-1:-1:-1;;;36851:75:0;;;;;;;;;;;;;;;36944:12;;36937:19;;21889:13;;21873:12;:29;21865:52;;;;;-1:-1:-1;;;21865:52:0;;;;;;;;;;;;-1:-1:-1;;;21865:52:0;;;;;;;;;;;;;;;36772:192;;:::o;79599:725::-;79743:5;;79674:4;;-1:-1:-1;;;;;79743:5:0;79729:10;:19;79725:123;;79772:64;79777:18;79797:38;79772:4;:64::i;79725:123::-;79896:10;;80000:28;;;-1:-1:-1;;;80000:28:0;;;;-1:-1:-1;;;;;79896:10:0;;;;80000:26;;;;;:28;;;;;;;;;;;;;;:26;:28;;;5:2:-1;;;;30:1;27;20:12;5:2;80000:28:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;80000:28:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;80000:28:0;79992:69;;;;;-1:-1:-1;;;79992:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;80127:10;:26;;-1:-1:-1;;;;;;80127:26:0;-1:-1:-1;;;;;80127:26:0;;;;;;;;;80233:43;;;;;;;;;;;;;;;;;;;;;;;;;;;80301:14;80289:27;79599:725;-1:-1:-1;;;79599:725:0:o;91873:133::-;91936:4;91960:38;91985:12;91960:24;:38::i;24244:25::-;;;;:::o;22329:36::-;22361:4;22329:36;:::o;22537:20::-;;;;;;;;;;;;;;-1:-1:-1;;22537:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37688:287;37755:4;37773:13;37788:11;37803:36;37831:7;37803:27;:36::i;:::-;37772:67;;-1:-1:-1;37772:67:0;-1:-1:-1;37865:18:0;37858:3;:25;;;;;;;;;37850:93;;;;-1:-1:-1;;;37850:93:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;90948:105;90997:4;91021:24;91034:10;91021:12;:24::i;42652:3646::-;42694:4;42711:35;;:::i;:::-;42861:17;;-1:-1:-1;;;;;42861:17:0;:31;42893:14;:12;:14::i;:::-;42909:12;;42923:13;;42861:76;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;42861:76:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;42861:76:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;42861:76:0;;;;;;;;42834:23;;42817:120;;;42818:14;;;42817:120;22800:4;-1:-1:-1;42958:48:0;42950:89;;;;;-1:-1:-1;;;42950:89:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;43054:14;;;;:19;43050:178;;43097:119;43108:31;43141:58;43201:4;:14;;;43097:10;:119::i;:::-;43090:126;;;;;43050:178;43315:16;:14;:16::i;:::-;43289:23;;;:42;;;43488:18;;43455:52;;43289:42;43455:7;:52::i;:::-;43436:15;;;43421:86;;;43422:4;43421:86;;;;;;;;;;;;;;;;;;;-1:-1:-1;43541:18:0;;-1:-1:-1;43525:12:0;;:34;;;;;;;;;43518:42;;;;44159:68;44169:40;;;;;;;;44184:4;:23;;;44169:40;;;44211:4;:15;;;44159:9;:68::i;:::-;44130:25;;;44115:112;;;44116:4;44115:112;;;;;;;;;;;;;;;;;;;-1:-1:-1;44258:18:0;;-1:-1:-1;44242:12:0;;:34;;;;;;;;;44238:193;;44300:119;44311:16;44329:69;44405:4;:12;;;44400:18;;;;;;;;44300:10;:119::i;44238:193::-;44486:58;44504:4;:25;;;44531:12;;44486:17;:58::i;:::-;44458:24;;;44443:101;;;44444:4;44443:101;;;;;;;;;;;;;;;;;;;-1:-1:-1;44575:18:0;;-1:-1:-1;44559:12:0;;:34;;;;;;;;;44555:191;;44617:117;44628:16;44646:67;44720:4;:12;;;44715:18;;;;;;;44555:191;44797:47;44805:4;:24;;;44831:12;;44797:7;:47::i;:::-;44773:20;;;44758:86;;;44759:4;44758:86;;;;;;;;;;;;;;;;;;;-1:-1:-1;44875:18:0;;-1:-1:-1;44859:12:0;;:34;;;;;;;;;44855:188;;44917:114;44928:16;44946:64;45017:4;:12;;;45012:18;;;;;;;44855:188;45095:105;45120:38;;;;;;;;45135:21;;45120:38;;;45160:4;:24;;;45186:13;;45095:24;:105::i;:::-;45070:21;;;45055:145;;;45056:4;45055:145;;;;;;;;;;;;;;;;;;;-1:-1:-1;45231:18:0;;-1:-1:-1;45215:12:0;;:34;;;;;;;;;45211:189;;45273:115;45284:16;45302:65;45374:4;:12;;;45369:18;;;;;;;45211:189;45450:77;45475:4;:25;;;45502:11;;45515;;45450:24;:77::i;:::-;45427:19;;;45412:115;;;45413:4;45412:115;;;;;;;;;;;;;;;;;;;-1:-1:-1;45558:18:0;;-1:-1:-1;45542:12:0;;:34;;;;;;;;;45538:187;;45600:113;45611:16;45629:63;45699:4;:12;;;45694:18;;;;;;;45538:187;45949:23;;;;;45928:18;:44;45997:19;;;;45983:11;:33;;;46042:20;;;;46027:12;:35;;;46089:21;;;;46073:13;:37;46190:24;;;;46175:75;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46275:14;46263:27;;;42652:3646;:::o;30390:185::-;30468:4;21777:18;;21794:1;21777:18;;;;30468:4;30492:51;30507:10;30519;30531:3;30536:6;30492:14;:51::i;:::-;:75;30485:82;;21853:1;21889:13;;21873:12;:29;21865:52;;;;;-1:-1:-1;;;21865:52:0;;;;;;;;;;;;-1:-1:-1;;;21865:52:0;;;;;;;;;;;;;;;30390:185;;;;;:::o;23979:23::-;;;;:::o;35128:1498::-;35181:4;35432:25;35460:20;:18;:20::i;:::-;35530:17;;35432:48;;-1:-1:-1;35494:7:0;;;;-1:-1:-1;;;;;35530:17:0;:31;35562:14;:12;:14::i;:::-;35578:12;;35592:13;;35530:76;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;35530:76:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;35530:76:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;35530:76:0;;;;;;;;;-1:-1:-1;35530:76:0;-1:-1:-1;35625:7:0;;35617:69;;;;-1:-1:-1;;;35617:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35715:12;35729:21;;:::i;:::-;35754:61;35764:37;;;;;;;;35779:20;35764:37;;;35803:11;;35754:9;:61::i;:::-;35714:101;;-1:-1:-1;35714:101:0;-1:-1:-1;35840:18:0;35834:2;:24;;;;;;;;;35826:86;;;;-1:-1:-1;;;35826:86:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35926:12;35940:21;;:::i;:::-;35965:40;35980:12;;35994:10;35965:14;:40::i;:::-;35925:80;;-1:-1:-1;35925:80:0;-1:-1:-1;36030:18:0;36024:2;:24;;;;;;;;;36016:86;;;;-1:-1:-1;;;36016:86:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36116:12;36130:32;;:::i;:::-;36166:76;36173:28;;;;;;;;11426:4;36173:28;;;36203:38;;;;;;;;36218:21;;36203:38;;;36166:6;:76::i;:::-;36115:127;;-1:-1:-1;36115:127:0;-1:-1:-1;36267:18:0;36261:2;:24;;;;;;;;;36253:97;;;;-1:-1:-1;;;36253:97:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36364:12;36378:21;;:::i;:::-;36403:79;36411:35;;;;;;;;36426:18;36411:35;;;36448:21;36471:10;36403:7;:79::i;:::-;36363:119;;-1:-1:-1;36363:119:0;-1:-1:-1;36507:18:0;36501:2;:24;;;;;;;;;36493:86;;;;-1:-1:-1;;;36493:86:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36599:19;;-1:-1:-1;;;;;;;;;;;35128:1498:0;:::o;75042:2117::-;75144:4;21777:18;;21794:1;21777:18;;;;75217:10;;:85;;;-1:-1:-1;;;75217:85:0;;75249:4;75217:85;;;;75256:10;75217:85;;;;-1:-1:-1;;;;;75217:85:0;;;;;;;;;;;;;;;;;;;;;;75144:4;;75217:10;;;;;:23;;:85;;;;;;;;;;;;;;;75144:4;75217:10;:85;;;5:2:-1;;;;30:1;27;20:12;5:2;75217:85:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;75217:85:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;75217:85:0;;-1:-1:-1;75317:12:0;;75313:149;;75353:97;75364:26;75392:48;75442:7;75353:10;:97::i;:::-;75346:104;;;;;75313:149;75535:10;-1:-1:-1;;;;;75523:22:0;:8;-1:-1:-1;;;;;75523:22:0;;75519:146;;;75569:84;75574:26;75602:50;75569:4;:84::i;75519:146::-;-1:-1:-1;;;;;76089:23:0;;75677:17;76089:23;;;:13;:23;;;;;;75677:17;;;;76081:45;;76114:11;76081:7;:45::i;:::-;76050:76;;-1:-1:-1;76050:76:0;-1:-1:-1;76152:18:0;76141:7;:29;;;;;;;;;76137:166;;76194:97;76205:16;76223:52;76282:7;76277:13;;;;;;;76194:97;76187:104;;;;;;;;76137:166;-1:-1:-1;;;;;76356:25:0;;;;;;:13;:25;;;;;;76348:47;;76383:11;76348:7;:47::i;:::-;76315:80;;-1:-1:-1;76315:80:0;-1:-1:-1;76421:18:0;76410:7;:29;;;;;;;;;76406:166;;76463:97;76474:16;76492:52;76551:7;76546:13;;;;;;;76406:166;-1:-1:-1;;;;;76775:23:0;;;;;;;:13;:23;;;;;;;;:43;;;76829:25;;;;;;;;;;:47;;;76931:43;;;;;;;76829:25;;-1:-1:-1;;;;;;;;;;;76931:43:0;;;;;;;;;;77027:10;;:84;;;-1:-1:-1;;;77027:84:0;;77058:4;77027:84;;;;77065:10;77027:84;;;;-1:-1:-1;;;;;77027:84:0;;;;;;;;;;;;;;;;;;;;;;:10;;;;;:22;;:84;;;;;:10;;:84;;;;;;;:10;;:84;;;5:2:-1;;;;30:1;27;20:12;5:2;77027:84:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;77136:14:0;;-1:-1:-1;77131:20:0;;-1:-1:-1;;77131:20:0;;77124:27;;;;;;21889:13;;21873:12;:29;21865:52;;;;;-1:-1:-1;;;21865:52:0;;;;;;;;;;;;-1:-1:-1;;;21865:52:0;;;;;;;;;;;;;;77709:647;77854:5;;77786:4;;-1:-1:-1;;;;;77854:5:0;77840:10;:19;77836:126;;77883:67;77888:18;77908:41;77883:4;:67::i;77836:126::-;78061:12;;;-1:-1:-1;;;;;78144:30:0;;;-1:-1:-1;;;;;;78144:30:0;;;;;;;78259:49;;;78061:12;;;;78259:49;;;;;;;;;;;;;;;;;;;;;;;78333:14;78328:20;;39652:198;39712:4;21777:18;;21794:1;21777:18;;;;39712:4;39737:16;:14;:16::i;:::-;:40;39729:75;;;;;-1:-1:-1;;;39729:75:0;;;;;;;;;;;;-1:-1:-1;;;39729:75:0;;;;;;;;;;;;;;;39822:20;:18;:20::i;:::-;39815:27;;21889:13;;21873:12;:29;21865:52;;;;;-1:-1:-1;;;21865:52:0;;;;;;;;;;;;-1:-1:-1;;;21865:52:0;;;;;;;;;;;;;;33479:703;-1:-1:-1;;;;;33603:22:0;;33547:4;33603:22;;;:13;:22;;;;;;33547:4;;;;;;;;;33754:36;33617:7;33754:27;:36::i;:::-;33730:60;-1:-1:-1;33730:60:0;-1:-1:-1;33813:18:0;33805:4;:26;;;;;;;;;33801:99;;33861:16;33856:22;33848:40;-1:-1:-1;33880:1:0;;-1:-1:-1;33880:1:0;;-1:-1:-1;33880:1:0;;-1:-1:-1;33848:40:0;;-1:-1:-1;;;;33848:40:0;33801:99;33943:28;:26;:28::i;:::-;33912:59;-1:-1:-1;33912:59:0;-1:-1:-1;33994:18:0;33986:4;:26;;;;;;;;;33982:99;;34042:16;34037:22;;33982:99;-1:-1:-1;34106:14:0;;-1:-1:-1;34123:13:0;;-1:-1:-1;34138:13:0;-1:-1:-1;34138:13:0;-1:-1:-1;33479:703:0;;;;;;:::o;92274:113::-;92327:4;92351:28;92366:12;92351:14;:28::i;91404:113::-;91457:4;91481:28;91496:12;91481:14;:28::i;32114:143::-;-1:-1:-1;;;;;32215:25:0;;;32188:7;32215:25;;;:18;:25;;;;;;;;:34;;;;;;;;;;;;;32114:143::o;78634:742::-;78784:12;;78676:4;;-1:-1:-1;;;;;78784:12:0;78770:10;:26;;;:54;;-1:-1:-1;78800:10:0;:24;78770:54;78766:164;;;78848:70;78853:18;78873:44;78848:4;:70::i;:::-;78841:77;;;;78766:164;79014:5;;;79056:12;;;-1:-1:-1;;;;;79056:12:0;;;-1:-1:-1;;;;;;79129:20:0;;;;;;;;;79198:25;;;;;;79241;;;79014:5;;;79241:25;;;79260:5;;;;79241:25;;;;;;79056:12;;79241:25;;;;;;;;;79315:12;;79282:46;;;-1:-1:-1;;;;;79282:46:0;;;;;79315:12;;;79282:46;;;;;;;;;;;;;;;;79353:14;79341:27;;;;78634:742;:::o;98482:466::-;98614:5;;98545:4;;-1:-1:-1;;;;;98614:5:0;98600:10;:19;98596:123;;98643:64;98648:18;98668:38;98643:4;:64::i;98596:123::-;98784:10;:26;;-1:-1:-1;;;;;;98784:26:0;-1:-1:-1;;;;;98784:26:0;;;;;;;;;;;98821:40;;;-1:-1:-1;;;98821:40:0;;;;98836:10;;;;;98821:38;;:40;;;;;;;;;;;;;;;98836:10;98821:40;;;5:2:-1;;;;30:1;27;20:12;5:2;98821:40:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;98821:40:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;98925:14:0;;-1:-1:-1;98920:20:0;;86059:633;86146:4;86163:10;86176:16;:14;:16::i;:::-;86163:29;-1:-1:-1;86207:29:0;;86203:298;;86411:78;86422:5;86416:12;;;;;;;;86430:58;86411:4;:78::i;:::-;86404:85;;;;;86203:298;86636:48;86663:20;86636:26;:48::i;23407:42::-;;;-1:-1:-1;;;;;23407:42:0;;:::o;93647:200::-;93751:4;93775:64;93799:8;93809:11;93822:16;93775:23;:64::i;23268:37::-;;;-1:-1:-1;;;;;23268:37:0;;:::o;23031:28::-;;;-1:-1:-1;;;;;23031:28:0;;:::o;34610:342::-;34724:17;;34663:4;;;;;;-1:-1:-1;;;;;34724:17:0;:31;34756:14;:12;:14::i;:::-;34772:12;;34786:13;;34724:76;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;34724:76:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;34724:76:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;34724:76:0;;;;;;;;;-1:-1:-1;34724:76:0;-1:-1:-1;34819:14:0;;34811:82;;;;-1:-1:-1;;;34811:82:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;80627:607;80716:4;21777:18;;21794:1;21777:18;;;;80716:4;80746:16;:14;:16::i;:::-;80733:29;-1:-1:-1;80777:29:0;;80773:286;;80974:73;80985:5;80979:12;;;;;;;;80993:53;80974:4;:73::i;80773:286::-;81178:48;81201:24;81178:22;:48::i;63442:561::-;63520:4;21777:18;;21794:1;21777:18;;;;63520:4;63550:16;:14;:16::i;:::-;63537:29;-1:-1:-1;63581:29:0;;63577:255;;63753:67;63764:5;63758:12;;;;;;;;63772:47;63753:4;:67::i;63577:255::-;63942:53;63959:10;63971;63983:11;63942:16;:53::i;40625:1142::-;40686:9;40697:4;40718:11;;40733:1;40718:16;40714:1046;;;-1:-1:-1;;40911:27:0;;40891:18;;40883:56;;40714:1046;41121:14;41138;:12;:14::i;:::-;41121:31;;41167:33;41215:23;;:::i;:::-;41253:17;41329:54;41344:9;41355:12;;41369:13;;41329:14;:54::i;:::-;41287:96;-1:-1:-1;41287:96:0;-1:-1:-1;41413:18:0;41402:7;:29;;;;;;;;;41398:89;;41460:7;-1:-1:-1;41469:1:0;;-1:-1:-1;41452:19:0;;-1:-1:-1;;;41452:19:0;41398:89;41529:49;41536:28;41566:11;;41529:6;:49::i;:::-;41503:75;-1:-1:-1;41503:75:0;-1:-1:-1;41608:18:0;41597:7;:29;;;;;;;;;41593:89;;41655:7;-1:-1:-1;41664:1:0;;-1:-1:-1;41647:19:0;;-1:-1:-1;;;41647:19:0;41593:89;-1:-1:-1;41726:21:0;41706:18;;-1:-1:-1;41726:21:0;-1:-1:-1;41698:50:0;;-1:-1:-1;;41698:50:0;40714:1046;40625:1142;;:::o;27834:2295::-;28008:10;;:59;;;-1:-1:-1;;;28008:59:0;;28043:4;28008:59;;;;-1:-1:-1;;;;;28008:59:0;;;;;;;;;;;;;;;;;;;;;;27932:4;;;;28008:10;;:26;;:59;;;;;;;;;;;;;;27932:4;28008:10;:59;;;5:2:-1;;;;30:1;27;20:12;5:2;28008:59:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;28008:59:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;28008:59:0;;-1:-1:-1;28082:12:0;;28078:142;;28118:90;28129:26;28157:41;28200:7;28118:10;:90::i;:::-;28111:97;;;;;28078:142;28286:3;-1:-1:-1;;;;;28279:10:0;:3;-1:-1:-1;;;;;28279:10:0;;28275:105;;;28313:55;28318:15;28335:32;28313:4;:55::i;28275:105::-;28457:22;-1:-1:-1;;;;;28498:14:0;;;;;;;28494:160;;;-1:-1:-1;;;28494:160:0;;;-1:-1:-1;;;;;;28610:23:0;;;;;;;:18;:23;;;;;;;;:32;;;;;;;;;;28494:160;28732:17;28760;28788;28816;28872:34;28880:17;28899:6;28872:7;:34::i;:::-;28846:60;;-1:-1:-1;28846:60:0;-1:-1:-1;28932:18:0;28921:7;:29;;;;;;;;;28917:125;;28974:56;28979:16;28997:32;28974:4;:56::i;:::-;28967:63;;;;;;;;;;28917:125;-1:-1:-1;;;;;29088:18:0;;;;;;:13;:18;;;;;;29080:35;;29108:6;29080:7;:35::i;:::-;29054:61;;-1:-1:-1;29054:61:0;-1:-1:-1;29141:18:0;29130:7;:29;;;;;;;;;29126:124;;29183:55;29188:16;29206:31;29183:4;:55::i;29126:124::-;-1:-1:-1;;;;;29296:18:0;;;;;;:13;:18;;;;;;29288:35;;29316:6;29288:7;:35::i;:::-;29262:61;;-1:-1:-1;29262:61:0;-1:-1:-1;29349:18:0;29338:7;:29;;;;;;;;;29334:122;;29391:53;29396:16;29414:29;29391:4;:53::i;29334:122::-;-1:-1:-1;;;;;29589:18:0;;;;;;;:13;:18;;;;;;:33;;;29633:18;;;;;;:33;;;-1:-1:-1;;29739:29:0;;29735:109;;-1:-1:-1;;;;;29785:23:0;;;;;;;:18;:23;;;;;;;;:32;;;;;;;;;:47;;;29735:109;29915:3;-1:-1:-1;;;;;29901:26:0;29910:3;-1:-1:-1;;;;;29901:26:0;-1:-1:-1;;;;;;;;;;;29920:6:0;29901:26;;;;;;;;;;;;;;;;;;30023:10;;:58;;;-1:-1:-1;;;30023:58:0;;30057:4;30023:58;;;;-1:-1:-1;;;;;30023:58:0;;;;;;;;;;;;;;;;;;;;;;:10;;;;;:25;;:58;;;;;:10;;:58;;;;;;;:10;;:58;;;5:2:-1;;;;30:1;27;20:12;5:2;30023:58:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;30106:14:0;;-1:-1:-1;30101:20:0;;-1:-1:-1;;30101:20:0;;30094:27;27834:2295;-1:-1:-1;;;;;;;;;;;27834:2295:0:o;64291:583::-;64393:4;21777:18;;21794:1;21777:18;;;;64393:4;64423:16;:14;:16::i;:::-;64410:29;-1:-1:-1;64454:29:0;;64450:255;;64626:67;64637:5;64631:12;;;;;;;;64645:47;64626:4;:67::i;:::-;64619:74;;;;;64450:255;64815:51;64832:10;64844:8;64854:11;64815:16;:51::i;:::-;64808:58;;;21889:13;;21873:12;:29;21865:52;;;;;-1:-1:-1;;;21865:52:0;;;;;;;;;;;;-1:-1:-1;;;21865:52:0;;;;;;;;;;;;;;6832:153;6893:4;6915:33;6928:3;6923:9;;;;;;;;6939:4;6934:10;;;;;;;;6915:33;;;;;;;;;;;;;6946:1;6915:33;;;;;;;;;;;;;6973:3;6968:9;;;;;;;87511:1352;87811:5;;87605:4;;;;-1:-1:-1;;;;;87811:5:0;87797:10;:19;87793:132;;87840:73;87845:18;87865:47;87840:4;:73::i;87793:132::-;88051:16;:14;:16::i;:::-;88029:18;;:38;88025:208;;88144:77;88149:22;88173:47;88144:4;:77::i;88025:208::-;88327:17;;;;;;;;;-1:-1:-1;;;;;88327:17:0;88304:40;;88447:20;-1:-1:-1;;;;;88447:40:0;;:42;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;88447:42:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;88447:42:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;88447:42:0;88439:83;;;;;-1:-1:-1;;;88439:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;88599:17;:40;;-1:-1:-1;;;;;;88599:40:0;-1:-1:-1;;;;;88599:40:0;;;;;;;;;88745:70;;;;;;;;;;;;;;;;;;;;;;;;;;;88840:14;88835:20;;12929:313;13006:9;13017:4;13035:13;13050:18;;:::i;:::-;13072:20;13082:1;13085:6;13072:9;:20::i;:::-;13034:58;;-1:-1:-1;13034:58:0;-1:-1:-1;13114:18:0;13107:3;:25;;;;;;;;;13103:73;;-1:-1:-1;13157:3:0;-1:-1:-1;13162:1:0;;-1:-1:-1;13149:15:0;;13103:73;13196:18;13216:17;13225:7;13216:8;:17::i;:::-;13188:46;;;;;;12929:313;;;;;;:::o;94115:169::-;94217:10;;94246:30;;;-1:-1:-1;;;94246:30:0;;94270:4;94246:30;;;;;;94162:4;;-1:-1:-1;;;;;94217:10:0;;;;94246:15;;:30;;;;;;;;;;;;;;;94217:10;94246:30;;;5:2:-1;;;;30:1;27;20:12;5:2;94246:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;94246:30:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;94246:30:0;;-1:-1:-1;;94115:169:0;:::o;83629:2061::-;83860:5;;83696:4;;;;;;-1:-1:-1;;;;;83860:5:0;83846:10;:19;83842:124;;83889:65;83894:18;83914:39;83889:4;:65::i;:::-;83882:72;;;;;;83842:124;84092:16;:14;:16::i;:::-;84070:18;;:38;84066:200;;84185:69;84190:22;84214:39;84185:4;:69::i;84066:200::-;84372:12;84355:14;:12;:14::i;:::-;:29;84351:152;;;84408:83;84413:29;84444:46;84408:4;:83::i;84351:152::-;84752:13;;84737:12;:28;84733:129;;;84789:61;84794:15;84811:38;84789:4;:61::i;84733:129::-;-1:-1:-1;85014:13:0;;:28;;;;85150:33;;;85142:82;;;;-1:-1:-1;;;85142:82:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;85298:13;:32;;;85417:5;;85403:34;;-1:-1:-1;;;;;85417:5:0;85424:12;85403:13;:34::i;:::-;85397:40;-1:-1:-1;85516:14:0;85509:3;:21;;;;;;;;;85501:69;;;;-1:-1:-1;;;85501:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;85604:5;;85588:54;;;-1:-1:-1;;;;;85604:5:0;;;85588:54;;;;;;;;;;;;;;;;;;;;;;;;85667:14;85655:27;83629:2061;-1:-1:-1;;;;83629:2061:0:o;52703:537::-;52787:4;21777:18;;21794:1;21777:18;;;;52787:4;52817:16;:14;:16::i;:::-;52804:29;-1:-1:-1;52848:29:0;;52844:249;;53020:61;53031:5;53025:12;;;;;;;;53039:41;53020:4;:61::i;52844:249::-;53192:40;53204:10;53216:1;53219:12;53192:11;:40::i;38229:1268::-;-1:-1:-1;;;;;38578:23:0;;38306:9;38578:23;;;:14;:23;;;;;38807:24;;38306:9;;;;;;;;38803:92;;-1:-1:-1;38861:18:0;;-1:-1:-1;38861:18:0;;-1:-1:-1;38853:30:0;;-1:-1:-1;;;38853:30:0;38803:92;39122:46;39130:14;:24;;;39156:11;;39122:7;:46::i;:::-;39089:79;;-1:-1:-1;39089:79:0;-1:-1:-1;39194:18:0;39183:7;:29;;;;;;;;;39179:81;;-1:-1:-1;39237:7:0;;-1:-1:-1;39246:1:0;;-1:-1:-1;39229:19:0;;-1:-1:-1;;39229:19:0;39179:81;39292:58;39300:19;39321:14;:28;;;39292:7;:58::i;:::-;39272:78;;-1:-1:-1;39272:78:0;-1:-1:-1;39376:18:0;39365:7;:29;;;;;;;;;39361:81;;-1:-1:-1;39419:7:0;;-1:-1:-1;39428:1:0;;-1:-1:-1;39411:19:0;;-1:-1:-1;;39411:19:0;39361:81;-1:-1:-1;39462:18:0;;-1:-1:-1;39482:6:0;-1:-1:-1;;;38229:1268:0;;;;:::o;46656:536::-;46726:4;21777:18;;21794:1;21777:18;;;;46726:4;46756:16;:14;:16::i;:::-;46743:29;-1:-1:-1;46787:29:0;;46783:247;;46959:59;46970:5;46964:12;;;;;;;;46978:39;46959:4;:59::i;46783:247::-;47151:33;47161:10;47173;47151:9;:33::i;6993:187::-;7078:4;7100:43;7113:3;7108:9;;;;;;;;7124:4;7119:10;;;;;;;;7100:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;7168:3;7163:9;;;;;;;34341:93;34414:12;34341:93;:::o;1442:236::-;1498:9;1509:4;1535:1;1530;:6;1526:145;;-1:-1:-1;1561:18:0;;-1:-1:-1;1581:5:0;;;1553:34;;1526:145;-1:-1:-1;1628:27:0;;-1:-1:-1;1657:1:0;1620:39;;12568:353;12637:9;12648:10;;:::i;:::-;12672:14;12688:19;12711:27;12719:1;:10;;;12731:6;12711:7;:27::i;:::-;12671:67;;-1:-1:-1;12671:67:0;-1:-1:-1;12761:18:0;12753:4;:26;;;;;;;;;12749:92;;-1:-1:-1;12810:18:0;;;;;;;;;-1:-1:-1;12810:18:0;;12804:4;;-1:-1:-1;12810:18:0;-1:-1:-1;12796:33:0;;12749:92;12881:31;;;;;;;;;;;;-1:-1:-1;;12881:31:0;;-1:-1:-1;12568:353:0;-1:-1:-1;;;;12568:353:0:o;1763:258::-;1819:9;;1856:5;;;1878:6;;;1874:140;;1909:18;;-1:-1:-1;1929:1:0;-1:-1:-1;1901:30:0;;1874:140;-1:-1:-1;1972:26:0;;-1:-1:-1;2000:1:0;;-1:-1:-1;1964:38:0;;13250:328;13347:9;13358:4;13376:13;13391:18;;:::i;:::-;13413:20;13423:1;13426:6;13413:9;:20::i;:::-;13375:58;;-1:-1:-1;13375:58:0;-1:-1:-1;13455:18:0;13448:3;:25;;;;;;;;;13444:73;;-1:-1:-1;13498:3:0;-1:-1:-1;13503:1:0;;-1:-1:-1;13490:15:0;;13444:73;13536:34;13544:17;13553:7;13544:8;:17::i;:::-;13563:6;13536:7;:34::i;:::-;13529:41;;;;;;13250:328;;;;;;;:::o;13951:620::-;14031:9;14042:10;;:::i;:::-;14349:14;14365;14383:25;11426:4;14401:6;14383:7;:25::i;:::-;14348:60;;-1:-1:-1;14348:60:0;-1:-1:-1;14431:18:0;14423:4;:26;;;;;;;;;14419:92;;-1:-1:-1;14480:18:0;;;;;;;;;-1:-1:-1;14480:18:0;;14474:4;;-1:-1:-1;14480:18:0;-1:-1:-1;14466:33:0;;14419:92;14528:35;14535:9;14546:7;:16;;;14528:6;:35::i;12335:225::-;12402:9;12413:10;;:::i;:::-;12437:15;12454:11;12469:31;12477:1;:10;;;12489:1;:10;;;12469:7;:31::i;:::-;12528:23;;;;;;;;;;;;12436:64;;12528:23;;-1:-1:-1;12335:225:0;-1:-1:-1;;;;;12335:225:0:o;16226:284::-;16308:9;16319:10;;:::i;:::-;16343:13;16358;;:::i;:::-;16375:12;16382:1;16385;16375:6;:12::i;:::-;16342:45;;-1:-1:-1;16342:45:0;-1:-1:-1;16409:18:0;16402:3;:25;;;;;;;;;16398:74;;16452:3;;-1:-1:-1;16457:2:0;-1:-1:-1;16444:16:0;;16398:74;16489:13;16496:2;16500:1;16489:6;:13::i;59099:524::-;59173:4;21777:18;;21794:1;21777:18;;;;59173:4;59203:16;:14;:16::i;:::-;59190:29;-1:-1:-1;59234:29:0;;59230:249;;59406:61;59417:5;59411:12;;;;;;;;59425:41;59406:4;:61::i;59230:249::-;59578:37;59590:10;59602:12;59578:11;:37::i;51820:527::-;51894:4;21777:18;;21794:1;21777:18;;;;51894:4;51924:16;:14;:16::i;:::-;51911:29;-1:-1:-1;51955:29:0;;51951:249;;52127:61;52138:5;52132:12;;;;;;;51951:249;52299:40;52311:10;52323:12;52337:1;52299:11;:40::i;69769:969::-;69894:4;21777:18;;21794:1;21777:18;;;;69894:4;69924:16;:14;:16::i;:::-;69911:29;-1:-1:-1;69955:29:0;;69951:264;;70132:71;70143:5;70137:12;;;;;;;;70151:51;70132:4;:71::i;69951:264::-;70235:16;-1:-1:-1;;;;;70235:31:0;;:33;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;70235:33:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;70235:33:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;70235:33:0;;-1:-1:-1;70283:29:0;;70279:268;;70460:75;70471:5;70465:12;;;;;;;;70479:55;70460:4;:75::i;70279:268::-;70657:73;70678:10;70690:8;70700:11;70713:16;70657:20;:73::i;:::-;70650:80;;;21889:13;;21873:12;:29;21865:52;;;;;-1:-1:-1;;;21865:52:0;;;;;;;;;;;;-1:-1:-1;;;21865:52:0;;;;;;;;;;;;;;81502:1026;81652:5;;81583:4;;-1:-1:-1;;;;;81652:5:0;81638:10;:19;81634:127;;81681:68;81686:18;81706:42;81681:4;:68::i;81634:127::-;81868:16;:14;:16::i;:::-;81846:18;;:38;81842:203;;81961:72;81966:22;81990:42;81961:4;:72::i;81842:203::-;22952:4;82117:24;:51;82113:157;;;82192:66;82197:15;82214:43;82192:4;:66::i;82113:157::-;82314:21;;;82346:48;;;;82412:68;;;;;;;;;;;;;;;;;;;;;;;;;82505:14;82500:20;;65501:3786;65675:10;;:74;;;-1:-1:-1;;;65675:74:0;;65713:4;65675:74;;;;-1:-1:-1;;;;;65675:74:0;;;;;;;;;;;;;;;;;;;;;;65596:4;;;;65675:10;;:29;;:74;;;;;;;;;;;;;;65596:4;65675:10;:74;;;5:2:-1;;;;30:1;27;20:12;5:2;65675:74:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;65675:74:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;65675:74:0;;-1:-1:-1;65764:12:0;;65760:146;;65800:94;65811:26;65839:45;65886:7;65800:10;:94::i;:::-;65793:101;;;;;65760:146;66016:16;:14;:16::i;:::-;65994:18;;:38;65990:148;;66056:70;66061:22;66085:40;66056:4;:70::i;65990:148::-;66150:32;;:::i;:::-;-1:-1:-1;;;;;66296:24:0;;;;;;:14;:24;;;;;:38;;;66275:18;;;:59;66465:37;66311:8;66465:27;:37::i;:::-;66442:19;;;66427:75;;;66428:12;;;66427:75;;;;;;;;;;;;;;;;;;;-1:-1:-1;66533:18:0;;-1:-1:-1;66517:4:0;:12;;;:34;;;;;;;;;66513:187;;66575:113;66586:16;66604:63;66674:4;:12;;;66669:18;;;;;;;66575:113;66568:120;;;;;;66513:187;-1:-1:-1;;66782:11:0;:23;66778:157;;;66841:19;;;;66822:16;;;:38;66778:157;;;66893:16;;;:30;;;66778:157;67003:40;67019:5;67026:4;:16;;;67003:15;:40::i;:::-;66992:4;;:51;;;;;;;;;;;;;;;;;;;;-1:-1:-1;67070:14:0;67058:8;;:26;;;;;;;;;67054:131;;67113:8;;67108:65;;67123:49;67108:4;:65::i;67054:131::-;67474:46;67482:4;:19;;;67503:4;:16;;;67474:7;:46::i;:::-;67448:22;;;67433:87;;;67434:12;;;67433:87;;;;;;;;;;;;;;;;;;;-1:-1:-1;67551:18:0;;-1:-1:-1;67535:4:0;:12;;;:34;;;;;;;;;67531:194;;67593:120;67604:16;67622:70;67699:4;:12;;;67694:18;;;;;;;67531:194;67776:39;67784:12;;67798:4;:16;;;67776:7;:39::i;:::-;67752:20;;;67737:78;;;67738:12;;;67737:78;;;;;;;;;;;;;;;;;;;-1:-1:-1;67846:18:0;;-1:-1:-1;67830:4:0;:12;;;:34;;;;;;;;;67826:185;;67888:111;67899:16;67917:61;67985:4;:12;;;67980:18;;;;;;;67826:185;68566:37;68579:5;68586:4;:16;;;68566:12;:37::i;:::-;68555:4;;:48;;;;;;;;;;;;;;;;;;;;-1:-1:-1;68634:14:0;68622:8;;:26;;;;;;;;;68614:70;;;;;-1:-1:-1;;;68614:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;68804:22;;;;;;-1:-1:-1;;;;;68767:24:0;;;;;;;:14;:24;;;;;;;;;:59;;;68878:11;;68837:38;;;;:52;;;;68915:20;;;;68900:12;:35;;;69025:16;;;;69043:22;;68996:92;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;69141:10;;69202:16;;;;;69220:18;;;;69141:98;;-1:-1:-1;;;69141:98:0;;69178:4;69141:98;;;;-1:-1:-1;;;;;69141:98:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:10;;;:28;;:98;;;;;:10;;:98;;;;;;;;:10;;:98;;;5:2:-1;;;;30:1;27;20:12;5:2;69141:98:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;69264:14:0;;-1:-1:-1;69259:20:0;;-1:-1:-1;;69259:20:0;;69252:27;65501:3786;-1:-1:-1;;;;;;65501:3786:0:o;2090:271::-;2161:9;2172:4;2190:14;2206:8;2218:13;2226:1;2229;2218:7;:13::i;:::-;2189:42;;-1:-1:-1;2189:42:0;-1:-1:-1;2256:18:0;2248:4;:26;;;;;;;;;2244:75;;-1:-1:-1;2299:4:0;-1:-1:-1;2305:1:0;;-1:-1:-1;2291:16:0;;2244:75;2338:15;2346:3;2351:1;2338:7;:15::i;11579:515::-;11640:9;11651:10;;:::i;:::-;11675:14;11691:20;11715:22;11723:3;11426:4;11715:7;:22::i;:::-;11674:63;;-1:-1:-1;11674:63:0;-1:-1:-1;11760:18:0;11752:4;:26;;;;;;;;;11748:92;;-1:-1:-1;11809:18:0;;;;;;;;;-1:-1:-1;11809:18:0;;11803:4;;-1:-1:-1;11809:18:0;-1:-1:-1;11795:33:0;;11748:92;11853:14;11869:13;11886:31;11894:15;11911:5;11886:7;:31::i;:::-;11852:65;;-1:-1:-1;11852:65:0;-1:-1:-1;11940:18:0;11932:4;:26;;;;;;;;;11928:92;;-1:-1:-1;11989:18:0;;;;;;;;;-1:-1:-1;11989:18:0;;11983:4;;-1:-1:-1;11989:18:0;-1:-1:-1;11975:33:0;;-1:-1:-1;;11975:33:0;11928:92;12060:25;;;;;;;;;;;;-1:-1:-1;;12060:25:0;;-1:-1:-1;11579:515:0;-1:-1:-1;;;;;;11579:515:0:o;16672:213::-;16854:12;11426:4;16854:23;;;16672:213::o;97420:1050::-;97572:10;;97618:26;;;-1:-1:-1;;;97618:26:0;;-1:-1:-1;;;;;97618:26:0;;;;;;;;;;;;;;;97494:5;;97572:10;;;;;97494:5;;97572:10;;97618:14;;:26;;;;;97494:5;;97618:26;;;;;;;;97494:5;97572:10;97618:26;;;5:2:-1;;;;30:1;27;20:12;5:2;97618:26:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;97618:26:0;;;;97753:16;97792:1;97787:150;;;;97960:2;97955:217;;;;98307:1;98304;98297:12;97787:150;-1:-1:-1;;97881:6:0;-1:-1:-1;97787:150:0;;97955:217;98057:2;98054:1;98051;98036:24;98098:1;98092:8;98082:18;;97746:582;;98356:6;98351:78;;98386:31;98379:38;;;;;;98351:78;-1:-1:-1;98448:14:0;;97420:1050;-1:-1:-1;;;;97420:1050:0:o;54103:4728::-;54210:4;54235:19;;;:42;;-1:-1:-1;54258:19:0;;54235:42;54227:107;;;;-1:-1:-1;;;54227:107:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54347:27;;:::i;:::-;54491:28;:26;:28::i;:::-;54462:25;;;54447:72;;;54448:12;;;54447:72;;;;;;;;;;;;;;;;;;;-1:-1:-1;54550:18:0;;-1:-1:-1;54534:4:0;:12;;;:34;;;;;;;;;54530:168;;54592:94;54603:16;54621:44;54672:4;:12;;;54667:18;;;;;;;54530:168;54752:18;;54748:1290;;55028:17;;;:34;;;55133:42;;;;;;;;55148:25;;;;55133:42;;55115:77;;55048:14;55115:17;:77::i;:::-;55094:17;;;55079:113;;;55080:12;;;55079:113;;;;;;;;;;;;;;;;;;;-1:-1:-1;55227:18:0;;-1:-1:-1;55211:4:0;:12;;;:34;;;;;;;;;55207:185;;55273:103;55284:16;55302:53;55362:4;:12;;;55357:18;;;;;;;55207:185;54748:1290;;;55694:82;55717:14;55733:42;;;;;;;;55748:4;:25;;;55733:42;;;55694:22;:82::i;:::-;55673:17;;;55658:118;;;55659:12;;;55658:118;;;;;;;;;;;;;;;;;;;-1:-1:-1;55811:18:0;;-1:-1:-1;55795:4:0;:12;;;:34;;;;;;;;;55791:185;;55857:103;55868:16;55886:53;55946:4;:12;;;55941:18;;;;;;;55791:185;55992:17;;;:34;;;54748:1290;56107:10;;56157:17;;;;56107:68;;;-1:-1:-1;;;56107:68:0;;56140:4;56107:68;;;;-1:-1:-1;;;;;56107:68:0;;;;;;;;;;;;;;;;56092:12;;56107:10;;;;;:24;;:68;;;;;;;;;;;;;;;56092:12;56107:10;:68;;;5:2:-1;;;;30:1;27;20:12;5:2;56107:68:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;56107:68:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;56107:68:0;;-1:-1:-1;56190:12:0;;56186:140;;56226:88;56237:26;56265:39;56306:7;56226:10;:88::i;56186:140::-;56436:16;:14;:16::i;:::-;56414:18;;:38;56410:142;;56476:64;56481:22;56505:34;56476:4;:64::i;56410:142::-;56847:39;56855:11;;56868:4;:17;;;56847:7;:39::i;:::-;56824:19;;;56809:77;;;56810:12;;;56809:77;;;;;;;;;;;;;;;;;;;-1:-1:-1;56917:18:0;;-1:-1:-1;56901:4:0;:12;;;:34;;;;;;;;;56897:178;;56959:104;56970:16;56988:54;57049:4;:12;;;57044:18;;;;;;;56897:178;-1:-1:-1;;;;;57135:23:0;;;;;;:13;:23;;;;;;57160:17;;;;57127:51;;57135:23;57127:7;:51::i;:::-;57102:21;;;57087:91;;;57088:12;;;57087:91;;;;;;;;;;;;;;;;;;;-1:-1:-1;57209:18:0;;-1:-1:-1;57193:4:0;:12;;;:34;;;;;;;;;57189:181;;57251:107;57262:16;57280:57;57344:4;:12;;;57339:18;;;;;;;57189:181;57468:4;:17;;;57451:14;:12;:14::i;:::-;:34;57447:155;;;57509:81;57514:29;57545:44;57509:4;:81::i;57447:155::-;58156:42;58170:8;58180:4;:17;;;58156:13;:42::i;:::-;58145:4;;:53;;;;;;;;;;;;;;;;;;;;-1:-1:-1;58229:14:0;58217:8;;:26;;;;;;;;;58209:65;;;;;-1:-1:-1;;;58209:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;58367:19;;;;58353:11;:33;58423:21;;;;-1:-1:-1;;;;;58397:23:0;;;;;;:13;:23;;;;;;;;;:47;;;;58556:17;;;;58522:52;;;;;;;58549:4;;-1:-1:-1;;;;;;;;;;;58522:52:0;;;;;;;58607:17;;;;58626;;;;;58590:54;;;-1:-1:-1;;;;;58590:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58697:10;;58746:17;;;;58765;;;;58697:86;;;-1:-1:-1;;;58697:86:0;;58729:4;58697:86;;;;-1:-1:-1;;;;;58697:86:0;;;;;;;;;;;;;;;;;;;;;;:10;;;;;:23;;:86;;;;;:10;;:86;;;;;;;:10;;:86;;;5:2:-1;;;;30:1;27;20:12;654:343:0;710:9;;742:6;738:69;;-1:-1:-1;773:18:0;;-1:-1:-1;773:18:0;765:30;;738:69;828:5;;;832:1;828;:5;:1;850:5;;;;;:10;846:144;;-1:-1:-1;885:26:0;;-1:-1:-1;913:1:0;;-1:-1:-1;877:38:0;;846:144;956:18;;-1:-1:-1;976:1:0;-1:-1:-1;948:30:0;;1092:215;1148:9;;1180:6;1176:77;;-1:-1:-1;1211:26:0;;-1:-1:-1;1239:1:0;1203:38;;1176:77;1273:18;1297:1;1293;:5;;;;;;1265:34;;;;1092:215;;;;;:::o;47834:3635::-;47976:10;;:57;;;-1:-1:-1;;;47976:57:0;;48007:4;47976:57;;;;-1:-1:-1;;;;;47976:57:0;;;;;;;;;;;;;;;47904:4;;;;47976:10;;:22;;:57;;;;;;;;;;;;;;47904:4;47976:10;:57;;;5:2:-1;;;;30:1;27;20:12;5:2;47976:57:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;47976:57:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;47976:57:0;;-1:-1:-1;48048:12:0;;48044:138;;48084:86;48095:26;48123:37;48162:7;48084:10;:86::i;:::-;48077:93;;;;;48044:138;48292:16;:14;:16::i;:::-;48270:18;;:38;48266:140;;48332:62;48337:22;48361:32;48332:4;:62::i;48266:140::-;48418:25;;:::i;:::-;48512:35;48528:6;48536:10;48512:15;:35::i;:::-;48501:4;;:46;;;;;;;;;;;;;;;;;;;;-1:-1:-1;48574:14:0;48562:8;;:26;;;;;;;;;48558:123;;48617:8;;48612:57;;48627:41;48612:4;:57::i;:::-;48605:64;;;;;;48558:123;48909:28;:26;:28::i;:::-;48880:25;;;48865:72;;;48866:12;;;48865:72;;;;;;;;;;;;;;;;;;;-1:-1:-1;48968:18:0;;-1:-1:-1;48952:4:0;:12;;;:34;;;;;;;;;48948:166;;49010:92;49021:16;49039:42;49088:4;:12;;;49083:18;;;;;;;48948:166;49160:78;49183:10;49195:42;;;;;;;;49210:4;:25;;;49195:42;;;49160:22;:78::i;:::-;49141:15;;;49126:112;;;49127:12;;;49126:112;;;;;;;;;;;;;;;;;;;-1:-1:-1;49269:18:0;;-1:-1:-1;49253:4:0;:12;;;:34;;;;;;;;;49249:168;;49311:94;49322:16;49340:44;49391:4;:12;;;49386:18;;;;;;;49249:168;49720:37;49728:11;;49741:4;:15;;;49720:7;:37::i;:::-;49697:19;;;49682:75;;;49683:12;;;49682:75;;;;;;;;;;;;;;;;;;;-1:-1:-1;49788:18:0;;-1:-1:-1;49772:4:0;:12;;;:34;;;;;;;;;49768:176;;49830:102;49841:16;49859:52;49918:4;:12;;;49913:18;;;;;;;49768:176;-1:-1:-1;;;;;50004:21:0;;;;;;:13;:21;;;;;;50027:15;;;;49996:47;;50004:21;49996:7;:47::i;:::-;49971:21;;;49956:87;;;49957:12;;;49956:87;;;;;;;;;;;;;;;;;;;-1:-1:-1;50074:18:0;;-1:-1:-1;50058:4:0;:12;;;:34;;;;;;;;;50054:179;;50116:105;50127:16;50145:55;50207:4;:12;;;50202:18;;;;;;;50054:179;50787:32;50800:6;50808:10;50787:12;:32::i;:::-;50776:4;;:43;;;;;;;;;;;;;;;;;;;;-1:-1:-1;50846:14:0;50834:8;;:26;;;;;;;;;50830:117;;50889:8;;50884:51;;50899:35;50884:4;:51::i;50830:117::-;51039:19;;;;51025:11;:33;51093:21;;;;-1:-1:-1;;;;;51069:21:0;;;;;;:13;:21;;;;;;;;;:45;;;;51215:15;;;;;51190:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51279:15;;;;51247:48;;;;;;;-1:-1:-1;;;;;51247:48:0;;;51264:4;;-1:-1:-1;;;;;;;;;;;51247:48:0;;;;;;;;51348:10;;51405:15;;;;51348:73;;;-1:-1:-1;;;51348:73:0;;51378:4;51348:73;;;;-1:-1:-1;;;;;51348:73:0;;;;;;;;;;;;;;;;;;;;;;:10;;;;;:21;;:73;;;;;:10;;:73;;;;;;;:10;;:73;;;5:2:-1;;;;30:1;27;20:12;5:2;51348:73:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;51446:14:0;;-1:-1:-1;51441:20:0;;-1:-1:-1;;51441:20:0;;51434:27;47834:3635;-1:-1:-1;;;;;47834:3635:0:o;14924:1136::-;14991:9;15002:10;;:::i;:::-;15028:14;15044:24;15072:31;15080:1;:10;;;15092:1;:10;;;15072:7;:31::i;:::-;15027:76;;-1:-1:-1;15027:76:0;-1:-1:-1;15126:18:0;15118:4;:26;;;;;;;;;15114:92;;-1:-1:-1;15175:18:0;;;;;;;;;-1:-1:-1;15175:18:0;;15169:4;;-1:-1:-1;15175:18:0;-1:-1:-1;15161:33:0;;15114:92;15523:14;;15580:42;11466:10;15602:19;15580:7;:42::i;:::-;15522:100;;-1:-1:-1;15522:100:0;-1:-1:-1;15645:18:0;15637:4;:26;;;;;;;;;15633:92;;-1:-1:-1;15694:18:0;;;;;;;;;-1:-1:-1;15694:18:0;;15688:4;;-1:-1:-1;15694:18:0;-1:-1:-1;15680:33:0;;-1:-1:-1;;15680:33:0;15633:92;15738:14;15754:12;15770:51;15778:32;11426:4;15770:7;:51::i;:::-;15737:84;;-1:-1:-1;15737:84:0;-1:-1:-1;15967:18:0;15959:4;:26;;;;;;;;;15952:34;;;;16027:24;;;;;;;;;;;;-1:-1:-1;;16027:24:0;;-1:-1:-1;14924:1136:0;-1:-1:-1;;;;;;;;14924:1136:0:o;60070:3164::-;60228:10;;:63;;;-1:-1:-1;;;60228:63:0;;60261:4;60228:63;;;;-1:-1:-1;;;;;60228:63:0;;;;;;;;;;;;;;;60154:4;;;;60228:10;;:24;;:63;;;;;;;;;;;;;;60154:4;60228:10;:63;;;5:2:-1;;;;30:1;27;20:12;5:2;60228:63:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;60228:63:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;60228:63:0;;-1:-1:-1;60306:12:0;;60302:140;;60342:88;60353:26;60381:39;60422:7;60342:10;:88::i;60302:140::-;60552:16;:14;:16::i;:::-;60530:18;;:38;60526:142;;60592:64;60597:22;60621:34;60592:4;:64::i;60526:142::-;60777:12;60760:14;:12;:14::i;:::-;:29;60756:143;;;60813:74;60818:29;60849:37;60813:4;:74::i;60756:143::-;60911:27;;:::i;:::-;61226:37;61254:8;61226:27;:37::i;:::-;61203:19;;;61188:75;;;61189:12;;;61188:75;;;;;;;;;;;;;;;;;;;-1:-1:-1;61294:18:0;;-1:-1:-1;61278:4:0;:12;;;:34;;;;;;;;;61274:181;;61336:107;61347:16;61365:57;61429:4;:12;;;61424:18;;;;;;;61274:181;61508:42;61516:4;:19;;;61537:12;61508:7;:42::i;:::-;61482:22;;;61467:83;;;61468:12;;;61467:83;;;;;;;;;;;;;;;;;;;-1:-1:-1;61581:18:0;;-1:-1:-1;61565:4:0;:12;;;:34;;;;;;;;;61561:188;;61623:114;61634:16;61652:64;61723:4;:12;;;61718:18;;;;;;;61561:188;61800:35;61808:12;;61822;61800:7;:35::i;:::-;61776:20;;;61761:74;;;61762:12;;;61761:74;;;;;;;;;;;;;;;;;;;-1:-1:-1;61866:18:0;;-1:-1:-1;61850:4:0;:12;;;:34;;;;;;;;;61846:179;;61908:105;61919:16;61937:55;61999:4;:12;;;61994:18;;;;;;;61846:179;62575:37;62589:8;62599:12;62575:13;:37::i;:::-;62564:4;;:48;;;;;;;;;;;;;;;;;;;;-1:-1:-1;62643:14:0;62631:8;;:26;;;;;;;;;62623:65;;;;;-1:-1:-1;;;62623:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;62808:22;;;;;;-1:-1:-1;;;;;62771:24:0;;;;;;:14;:24;;;;;;;;;:59;;;62882:11;;62841:38;;;;:52;;;;62919:20;;;;;62904:12;:35;;;63026:22;;62995:76;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63124:10;;:62;;;-1:-1:-1;;;63124:62:0;;63156:4;63124:62;;;;-1:-1:-1;;;;;63124:62:0;;;;;;;;;;;;;;;:10;;;;;:23;;:62;;;;;:10;;:62;;;;;;;:10;;:62;;;5:2:-1;;;;30:1;27;20:12;71305:3176:0;71511:10;;:110;;;-1:-1:-1;;;71511:110:0;;71553:4;71511:110;;;;-1:-1:-1;;;;;71511:110:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71434:4;;;;71511:10;;:33;;:110;;;;;;;;;;;;;;71434:4;71511:10;:110;;;5:2:-1;;;;30:1;27;20:12;5:2;71511:110:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;71511:110:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;71511:110:0;;-1:-1:-1;71636:12:0;;71632:143;;71672:91;71683:26;71711:42;71755:7;71672:10;:91::i;71632:143::-;71885:16;:14;:16::i;:::-;71863:18;;:38;71859:145;;71925:67;71930:22;71954:37;71925:4;:67::i;71859:145::-;72150:16;:14;:16::i;:::-;72109;-1:-1:-1;;;;;72109:35:0;;:37;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;72109:37:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;72109:37:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;72109:37:0;:57;72105:175;;72190:78;72195:22;72219:48;72190:4;:78::i;72105:175::-;72353:10;-1:-1:-1;;;;;72341:22:0;:8;-1:-1:-1;;;;;72341:22:0;;72337:140;;;72387:78;72392:26;72420:44;72387:4;:78::i;72337:140::-;72532:16;72528:142;;72572:86;72577:36;72615:42;72572:4;:86::i;72528:142::-;-1:-1:-1;;72726:11:0;:23;72722:153;;;72773:90;72778:36;72816:46;72773:4;:90::i;72722:153::-;73011:10;;:95;;;-1:-1:-1;;;73011:95:0;;73060:4;73011:95;;;;-1:-1:-1;;;;;73011:95:0;;;;;;;;;;;;;;;72968:21;;;;73011:10;;;:40;;:95;;;;;;;;;;;;:10;:95;;;5:2:-1;;;;30:1;27;20:12;5:2;73011:95:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;73011:95:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;73011:95:0;;;;;;;;;-1:-1:-1;73011:95:0;-1:-1:-1;73121:21:0;;73117:189;;73166:128;73177:34;73213:62;73277:16;73166:10;:128::i;:::-;73159:135;;;;;;;73117:189;73407:16;-1:-1:-1;;;;;73407:26:0;;73434:8;73407:36;;;;;;;;;;;;;-1:-1:-1;;;;;73407:36:0;-1:-1:-1;;;;;73407:36:0;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;73407:36:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;73407:36:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;73407:36:0;73393:50;;73389:166;;;73467:76;73472:32;73506:36;73467:4;:76::i;73389:166::-;73608:21;73632:51;73649:10;73661:8;73671:11;73632:16;:51::i;:::-;73608:75;-1:-1:-1;73698:40:0;;73694:158;;73762:78;73773:16;73767:23;;;;;;;;73792:47;73762:4;:78::i;:::-;73755:85;;;;;;;;73694:158;73968:57;;;-1:-1:-1;;;73968:57:0;;-1:-1:-1;;;;;73968:57:0;;;;;;;;;;;;;;;;;;;;;;73950:15;;73968:22;;;;;:57;;;;;;;;;;;;;;73950:15;73968:22;:57;;;5:2:-1;;;;30:1;27;20:12;5:2;73968:57:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;73968:57:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;73968:57:0;;-1:-1:-1;74044:34:0;;74036:67;;;;;-1:-1:-1;;;74036:67:0;;;;;;;;;;;;-1:-1:-1;;;74036:67:0;;;;;;;;;;;;;;;74168:90;;;-1:-1:-1;;;;;74168:90:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;74311:10;;:122;;;-1:-1:-1;;;74311:122:0;;74352:4;74311:122;;;;-1:-1:-1;;;;;74311:122:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:10;;;;;:32;;:122;;;;;:10;;:122;;;;;;;:10;;:122;;;5:2:-1;;;;30:1;27;20:12;5:2;74311:122:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;74458:14:0;;-1:-1:-1;74453:20:0;;-1:-1:-1;;74453:20:0;;74446:27;71305:3176;-1:-1:-1;;;;;;;;;;71305:3176:0:o;94519:429::-;94650:10;;94678:36;;;-1:-1:-1;;;94678:36:0;;-1:-1:-1;;;;;94678:36:0;;;;;;;94708:4;94678:36;;;;;;94594:5;;94650:10;;;;;94717:6;;94650:10;;94678:15;;:36;;;;;;;;;;;;;;;94650:10;94678:36;;;5:2:-1;;;;30:1;27;20:12;5:2;94678:36:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;94678:36:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;94678:36:0;:45;94674:119;;;94747:34;94740:41;;;;;94674:119;94833:6;94809:5;-1:-1:-1;;;;;94809:15:0;;94825:4;94809:21;;;;;;;;;;;;;-1:-1:-1;;;;;94809:21:0;-1:-1:-1;;;;;94809:21:0;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;94809:21:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;94809:21:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;94809:21:0;:30;94805:102;;;94863:32;94856:39;;;;;94805:102;-1:-1:-1;94926:14:0;;94519:429;-1:-1:-1;;;94519:429:0:o;95654:1063::-;95799:10;;95845:47;;;-1:-1:-1;;;95845:47:0;;-1:-1:-1;;;;;95845:47:0;;;;;;;95878:4;95845:47;;;;;;;;;;;;95721:5;;95799:10;;;;;95721:5;;95799:10;;95845:18;;:47;;;;;95721:5;;95845:47;;;;;;;;95721:5;95799:10;95845:47;;;5:2:-1;;;;30:1;27;20:12;5:2;95845:47:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;95845:47:0;;;;96001:16;96040:1;96035:150;;;;96208:2;96203:217;;;;96555:1;96552;96545:12;96035:150;-1:-1:-1;;96129:6:0;-1:-1:-1;96035:150:0;;96203:217;96305:2;96302:1;96299;96284:24;96346:1;96340:8;96330:18;;95994:582;;96604:6;96599:77;;96634:30;96627:37;;;;;;14579:337;14667:9;14678:4;14696:13;14711:19;;:::i;:::-;14734:31;14749:6;14757:7;14734:14;:31::i;90430:8522::-;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;-1:-1:-1;90430:8522:0;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;-1:-1:-1;90430:8522:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;-1:-1:-1;90430:8522:0;;;;;;;;;;;;;;;;;;-1:-1:-1;90430:8522:0;;;;;;;;;;;;;;;;;;;;;;;;:::o
Swarm Source
bzzr://b7c5973819e94866fba5ff8507af20942debe03492c25d8fb05f12224fb62af9
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ 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.