Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
SErc20Delegate
Compiler Version
v0.5.17+commit.d19bba13
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-08-26 */ // File: contracts/ComptrollerInterface.sol pragma solidity ^0.5.16; contract ComptrollerInterface { /// @notice Indicator that this is a Comptroller contract (for inspection) bool public constant isComptroller = true; /*** Assets You Are In ***/ function enterMarkets(address[] calldata sTokens) external returns (uint[] memory); function exitMarket(address sToken) external returns (uint); /*** Policy Hooks ***/ function mintAllowed(address sToken, address minter, uint mintAmount) external returns (uint); function mintVerify(address sToken, address minter, uint mintAmount, uint mintTokens) external; function redeemAllowed(address sToken, address redeemer, uint redeemTokens) external returns (uint); function redeemVerify(address sToken, address redeemer, uint redeemAmount, uint redeemTokens) external; function borrowAllowed(address sToken, address borrower, uint borrowAmount) external returns (uint); function borrowVerify(address sToken, address borrower, uint borrowAmount) external; function repayBorrowAllowed( address sToken, address payer, address borrower, uint repayAmount) external returns (uint); function repayBorrowVerify( address sToken, address payer, address borrower, uint repayAmount, uint borrowerIndex) external; function liquidateBorrowAllowed( address sTokenBorrowed, address sTokenCollateral, address liquidator, address borrower, uint repayAmount) external returns (uint); function liquidateBorrowVerify( address sTokenBorrowed, address sTokenCollateral, address liquidator, address borrower, uint repayAmount, uint seizeTokens) external; function seizeAllowed( address sTokenCollateral, address sTokenBorrowed, address liquidator, address borrower, uint seizeTokens) external returns (uint); function seizeVerify( address sTokenCollateral, address sTokenBorrowed, address liquidator, address borrower, uint seizeTokens) external; function transferAllowed(address sToken, address src, address dst, uint transferTokens) external returns (uint); function transferVerify(address sToken, address src, address dst, uint transferTokens) external; /*** Liquidity/Liquidation Calculations ***/ function liquidateCalculateSeizeTokens( address sTokenBorrowed, address sTokenCollateral, uint repayAmount) external view returns (uint, uint); } interface IComptroller { /*** Reserve Info ***/ function reserveGuardian() external view returns (address payable); function reserveAddress() external view returns (address payable); } // File: contracts/InterestRateModel.sol pragma solidity ^0.5.16; /** * @title Strike's InterestRateModel Interface * @author Strike */ contract InterestRateModel { /// @notice Indicator that this is an InterestRateModel contract (for inspection) bool public constant isInterestRateModel = true; /** * @notice Calculates the current borrow interest rate per block * @param cash The total amount of cash the market has * @param borrows The total amount of borrows the market has outstanding * @param reserves The total amount of reserves the market has * @return The borrow rate per block (as a percentage, and scaled by 1e18) */ function getBorrowRate(uint cash, uint borrows, uint reserves) external view returns (uint); /** * @notice Calculates the current supply interest rate per block * @param cash The total amount of cash the market has * @param borrows The total amount of borrows the market has outstanding * @param reserves The total amount of reserves the market has * @param reserveFactorMantissa The current reserve factor the market has * @return The supply rate per block (as a percentage, and scaled by 1e18) */ function getSupplyRate(uint cash, uint borrows, uint reserves, uint reserveFactorMantissa) external view returns (uint); } // File: contracts/STokenInterfaces.sol pragma solidity ^0.5.16; contract STokenStorage { /** * @dev Guard variable for re-entrancy checks */ bool internal _notEntered; /** * @notice EIP-20 token name for this token */ string public name; /** * @notice EIP-20 token symbol for this token */ string public symbol; /** * @notice EIP-20 token decimals for this token */ uint8 public decimals; /** * @notice Maximum borrow rate that can ever be applied (.0005% / block) */ uint internal constant borrowRateMaxMantissa = 0.0005e16; /** * @notice Maximum fraction of interest that can be set aside for reserves */ uint internal constant reserveFactorMaxMantissa = 1e18; /** * @notice Administrator for this contract */ address payable public admin; /** * @notice Pending administrator for this contract */ address payable public pendingAdmin; /** * @notice Contract which oversees inter-sToken operations */ ComptrollerInterface public comptroller; /** * @notice Model which tells what the current interest rate should be */ InterestRateModel public interestRateModel; /** * @notice Initial exchange rate used when minting the first STokens (used when totalSupply = 0) */ uint internal initialExchangeRateMantissa; /** * @notice Fraction of interest currently set aside for reserves */ uint public reserveFactorMantissa; /** * @notice Block number that interest was last accrued at */ uint public accrualBlockNumber; /** * @notice Accumulator of the total earned interest rate since the opening of the market */ uint public borrowIndex; /** * @notice Total amount of outstanding borrows of the underlying in this market */ uint public totalBorrows; /** * @notice Total amount of reserves of the underlying held in this market */ uint public totalReserves; /** * @notice Total number of tokens in circulation */ uint public totalSupply; /** * @notice Official record of token balances for each account */ mapping (address => uint) internal accountTokens; /** * @notice Approved token transfer amounts on behalf of others */ mapping (address => mapping (address => uint)) internal transferAllowances; /** * @notice Container for borrow balance information * @member principal Total balance (with accrued interest), after applying the most recent balance-changing action * @member interestIndex Global borrowIndex as of the most recent balance-changing action */ struct BorrowSnapshot { uint principal; uint interestIndex; } /** * @notice Mapping of account addresses to outstanding borrow balances */ mapping(address => BorrowSnapshot) internal accountBorrows; /** * @notice Share of seized collateral that is added to reserves */ uint public constant protocolSeizeShareMantissa = 5e16; //5% } contract STokenInterface is STokenStorage { /** * @notice Indicator that this is a SToken contract (for inspection) */ bool public constant isSToken = true; /*** Market Events ***/ /** * @notice Event emitted when interest is accrued */ event AccrueInterest(uint cashPrior, uint interestAccumulated, uint borrowIndex, uint totalBorrows); /** * @notice Event emitted when tokens are minted */ event Mint(address minter, uint mintAmount, uint mintTokens); /** * @notice Event emitted when tokens are redeemed */ event Redeem(address redeemer, uint redeemAmount, uint redeemTokens); /** * @notice Event emitted when underlying is borrowed */ event Borrow(address borrower, uint borrowAmount, uint accountBorrows, uint totalBorrows); /** * @notice Event emitted when a borrow is repaid */ event RepayBorrow(address payer, address borrower, uint repayAmount, uint accountBorrows, uint totalBorrows); /** * @notice Event emitted when a borrow is liquidated */ event LiquidateBorrow(address liquidator, address borrower, uint repayAmount, address sTokenCollateral, uint seizeTokens); /*** Admin Events ***/ /** * @notice Event emitted when pendingAdmin is changed */ event NewPendingAdmin(address oldPendingAdmin, address newPendingAdmin); /** * @notice Event emitted when pendingAdmin is accepted, which means admin is updated */ event NewAdmin(address oldAdmin, address newAdmin); /** * @notice Event emitted when comptroller is changed */ event NewComptroller(ComptrollerInterface oldComptroller, ComptrollerInterface newComptroller); /** * @notice Event emitted when interestRateModel is changed */ event NewMarketInterestRateModel(InterestRateModel oldInterestRateModel, InterestRateModel newInterestRateModel); /** * @notice Event emitted when the reserve factor is changed */ event NewReserveFactor(uint oldReserveFactorMantissa, uint newReserveFactorMantissa); /** * @notice Event emitted when the reserves are added */ event ReservesAdded(address benefactor, uint addAmount, uint newTotalReserves); /** * @notice Event emitted when the reserves are reduced */ event ReservesReduced(address admin, uint reduceAmount, uint newTotalReserves); /** * @notice Event emitted when the reserves are transfered */ event TransferReserves(address guardian, address reserveAddress, uint reduceAmount, uint newTotalReserves); /** * @notice EIP20 Transfer event */ event Transfer(address indexed from, address indexed to, uint amount); /** * @notice EIP20 Approval event */ event Approval(address indexed owner, address indexed spender, uint amount); /** * @notice Failure event */ event Failure(uint error, uint info, uint detail); /*** User Interface ***/ function transfer(address dst, uint amount) external returns (bool); function transferFrom(address src, address dst, uint amount) external returns (bool); function approve(address spender, uint amount) external returns (bool); function allowance(address owner, address spender) external view returns (uint); function balanceOf(address owner) external view returns (uint); function balanceOfUnderlying(address owner) external returns (uint); function getAccountSnapshot(address account) external view returns (uint, uint, uint, uint); function borrowRatePerBlock() external view returns (uint); function supplyRatePerBlock() external view returns (uint); function totalBorrowsCurrent() external returns (uint); function borrowBalanceCurrent(address account) external returns (uint); function borrowBalanceStored(address account) public view returns (uint); function exchangeRateCurrent() public returns (uint); function exchangeRateStored() public view returns (uint); function getCash() external view returns (uint); function accrueInterest() public returns (uint); function seize(address liquidator, address borrower, uint seizeTokens) external returns (uint); /*** Admin Functions ***/ function _setPendingAdmin(address payable newPendingAdmin) external returns (uint); function _acceptAdmin() external returns (uint); function _setComptroller(ComptrollerInterface newComptroller) public returns (uint); function _setReserveFactor(uint newReserveFactorMantissa) external returns (uint); function _reduceReserves(uint reduceAmount) external returns (uint); function _setInterestRateModel(InterestRateModel newInterestRateModel) public returns (uint); } contract SErc20Storage { /** * @notice Underlying asset for this SToken */ address public underlying; } contract SErc20Interface is SErc20Storage { /*** User Interface ***/ function mint(uint mintAmount) external returns (uint); function redeem(uint redeemTokens) external returns (uint); function redeemUnderlying(uint redeemAmount) external returns (uint); function borrow(uint borrowAmount) external returns (uint); function repayBorrow(uint repayAmount) external returns (uint); function repayBorrowBehalf(address borrower, uint repayAmount) external returns (uint); function liquidateBorrow(address borrower, uint repayAmount, STokenInterface sTokenCollateral) external returns (uint); /*** Admin Functions ***/ function _addReserves(uint addAmount) external returns (uint); } contract SDelegationStorage { /** * @notice Implementation address for this contract */ address public implementation; } contract SDelegatorInterface is SDelegationStorage { /** * @notice Emitted when implementation is changed */ event NewImplementation(address oldImplementation, address newImplementation); /** * @notice Called by the admin to update the implementation of the delegator * @param implementation_ The address of the new implementation for delegation * @param allowResign Flag to indicate whether to call _resignImplementation on the old implementation * @param becomeImplementationData The encoded bytes data to be passed to _becomeImplementation */ function _setImplementation(address implementation_, bool allowResign, bytes memory becomeImplementationData) public; } contract SDelegateInterface is SDelegationStorage { /** * @notice Called by the delegator on a delegate to initialize it for duty * @dev Should revert if any issues arise which make it unfit for delegation * @param data The encoded bytes data for any initialization */ function _becomeImplementation(bytes memory data) public; /** * @notice Called by the delegator on a delegate to forfeit its responsibility */ function _resignImplementation() public; } // File: contracts/ErrorReporter.sol pragma solidity ^0.5.16; contract ComptrollerErrorReporter { enum Error { NO_ERROR, UNAUTHORIZED, COMPTROLLER_MISMATCH, INSUFFICIENT_SHORTFALL, INSUFFICIENT_LIQUIDITY, INVALID_CLOSE_FACTOR, INVALID_COLLATERAL_FACTOR, INVALID_LIQUIDATION_INCENTIVE, MARKET_NOT_ENTERED, // no longer possible MARKET_NOT_LISTED, MARKET_ALREADY_LISTED, MATH_ERROR, NONZERO_BORROW_BALANCE, PRICE_ERROR, REJECTION, SNAPSHOT_ERROR, TOO_MANY_ASSETS, TOO_MUCH_REPAY } enum FailureInfo { ACCEPT_ADMIN_PENDING_ADMIN_CHECK, ACCEPT_PENDING_IMPLEMENTATION_ADDRESS_CHECK, EXIT_MARKET_BALANCE_OWED, EXIT_MARKET_REJECTION, SET_CLOSE_FACTOR_OWNER_CHECK, SET_CLOSE_FACTOR_VALIDATION, SET_COLLATERAL_FACTOR_OWNER_CHECK, SET_COLLATERAL_FACTOR_NO_EXISTS, SET_COLLATERAL_FACTOR_VALIDATION, SET_COLLATERAL_FACTOR_WITHOUT_PRICE, SET_IMPLEMENTATION_OWNER_CHECK, SET_LIQUIDATION_INCENTIVE_OWNER_CHECK, SET_LIQUIDATION_INCENTIVE_VALIDATION, SET_MAX_ASSETS_OWNER_CHECK, SET_PENDING_ADMIN_OWNER_CHECK, SET_PENDING_IMPLEMENTATION_OWNER_CHECK, SET_PRICE_ORACLE_OWNER_CHECK, SUPPORT_MARKET_EXISTS, SUPPORT_MARKET_OWNER_CHECK, SET_PAUSE_GUARDIAN_OWNER_CHECK, SET_RESERVE_GUARDIAN_OWNER_CHECK } /** * @dev `error` corresponds to enum Error; `info` corresponds to enum FailureInfo, and `detail` is an arbitrary * contract-specific code that enables us to report opaque error codes from upgradeable contracts. **/ event Failure(uint error, uint info, uint detail); /** * @dev use this when reporting a known error from the money market or a non-upgradeable collaborator */ function fail(Error err, FailureInfo info) internal returns (uint) { emit Failure(uint(err), uint(info), 0); return uint(err); } /** * @dev use this when reporting an opaque error from an upgradeable collaborator contract */ function failOpaque(Error err, FailureInfo info, uint opaqueError) internal returns (uint) { emit Failure(uint(err), uint(info), opaqueError); return uint(err); } } contract TokenErrorReporter { enum Error { NO_ERROR, UNAUTHORIZED, BAD_INPUT, COMPTROLLER_REJECTION, COMPTROLLER_CALCULATION_ERROR, INTEREST_RATE_MODEL_ERROR, INVALID_ACCOUNT_PAIR, INVALID_CLOSE_AMOUNT_REQUESTED, INVALID_COLLATERAL_FACTOR, MATH_ERROR, MARKET_NOT_FRESH, MARKET_NOT_LISTED, TOKEN_INSUFFICIENT_ALLOWANCE, TOKEN_INSUFFICIENT_BALANCE, TOKEN_INSUFFICIENT_CASH, TOKEN_TRANSFER_IN_FAILED, TOKEN_TRANSFER_OUT_FAILED } /* * Note: FailureInfo (but not Error) is kept in alphabetical order * This is because FailureInfo grows significantly faster, and * the order of Error has some meaning, while the order of FailureInfo * is entirely arbitrary. */ enum FailureInfo { ACCEPT_ADMIN_PENDING_ADMIN_CHECK, ACCRUE_INTEREST_ACCUMULATED_INTEREST_CALCULATION_FAILED, ACCRUE_INTEREST_BORROW_RATE_CALCULATION_FAILED, ACCRUE_INTEREST_NEW_BORROW_INDEX_CALCULATION_FAILED, ACCRUE_INTEREST_NEW_TOTAL_BORROWS_CALCULATION_FAILED, ACCRUE_INTEREST_NEW_TOTAL_RESERVES_CALCULATION_FAILED, ACCRUE_INTEREST_SIMPLE_INTEREST_FACTOR_CALCULATION_FAILED, BORROW_ACCUMULATED_BALANCE_CALCULATION_FAILED, BORROW_ACCRUE_INTEREST_FAILED, BORROW_CASH_NOT_AVAILABLE, BORROW_FRESHNESS_CHECK, BORROW_NEW_TOTAL_BALANCE_CALCULATION_FAILED, BORROW_NEW_ACCOUNT_BORROW_BALANCE_CALCULATION_FAILED, BORROW_MARKET_NOT_LISTED, BORROW_COMPTROLLER_REJECTION, LIQUIDATE_ACCRUE_BORROW_INTEREST_FAILED, LIQUIDATE_ACCRUE_COLLATERAL_INTEREST_FAILED, LIQUIDATE_COLLATERAL_FRESHNESS_CHECK, LIQUIDATE_COMPTROLLER_REJECTION, LIQUIDATE_COMPTROLLER_CALCULATE_AMOUNT_SEIZE_FAILED, LIQUIDATE_CLOSE_AMOUNT_IS_UINT_MAX, LIQUIDATE_CLOSE_AMOUNT_IS_ZERO, LIQUIDATE_FRESHNESS_CHECK, LIQUIDATE_LIQUIDATOR_IS_BORROWER, LIQUIDATE_REPAY_BORROW_FRESH_FAILED, LIQUIDATE_SEIZE_BALANCE_INCREMENT_FAILED, LIQUIDATE_SEIZE_BALANCE_DECREMENT_FAILED, LIQUIDATE_SEIZE_COMPTROLLER_REJECTION, LIQUIDATE_SEIZE_LIQUIDATOR_IS_BORROWER, LIQUIDATE_SEIZE_TOO_MUCH, MINT_ACCRUE_INTEREST_FAILED, MINT_COMPTROLLER_REJECTION, MINT_EXCHANGE_CALCULATION_FAILED, MINT_EXCHANGE_RATE_READ_FAILED, MINT_FRESHNESS_CHECK, MINT_NEW_ACCOUNT_BALANCE_CALCULATION_FAILED, MINT_NEW_TOTAL_SUPPLY_CALCULATION_FAILED, MINT_TRANSFER_IN_FAILED, MINT_TRANSFER_IN_NOT_POSSIBLE, REDEEM_ACCRUE_INTEREST_FAILED, REDEEM_COMPTROLLER_REJECTION, REDEEM_EXCHANGE_TOKENS_CALCULATION_FAILED, REDEEM_EXCHANGE_AMOUNT_CALCULATION_FAILED, REDEEM_EXCHANGE_RATE_READ_FAILED, REDEEM_FRESHNESS_CHECK, REDEEM_NEW_ACCOUNT_BALANCE_CALCULATION_FAILED, REDEEM_NEW_TOTAL_SUPPLY_CALCULATION_FAILED, REDEEM_TRANSFER_OUT_NOT_POSSIBLE, REDUCE_RESERVES_ACCRUE_INTEREST_FAILED, REDUCE_RESERVES_ADMIN_CHECK, REDUCE_RESERVES_CASH_NOT_AVAILABLE, REDUCE_RESERVES_FRESH_CHECK, REDUCE_RESERVES_VALIDATION, REPAY_BEHALF_ACCRUE_INTEREST_FAILED, REPAY_BORROW_ACCRUE_INTEREST_FAILED, REPAY_BORROW_ACCUMULATED_BALANCE_CALCULATION_FAILED, REPAY_BORROW_COMPTROLLER_REJECTION, REPAY_BORROW_FRESHNESS_CHECK, REPAY_BORROW_NEW_ACCOUNT_BORROW_BALANCE_CALCULATION_FAILED, REPAY_BORROW_NEW_TOTAL_BALANCE_CALCULATION_FAILED, REPAY_BORROW_TRANSFER_IN_NOT_POSSIBLE, SET_COLLATERAL_FACTOR_OWNER_CHECK, SET_COLLATERAL_FACTOR_VALIDATION, SET_COMPTROLLER_OWNER_CHECK, SET_INTEREST_RATE_MODEL_ACCRUE_INTEREST_FAILED, SET_INTEREST_RATE_MODEL_FRESH_CHECK, SET_INTEREST_RATE_MODEL_OWNER_CHECK, SET_MAX_ASSETS_OWNER_CHECK, SET_ORACLE_MARKET_NOT_LISTED, SET_PENDING_ADMIN_OWNER_CHECK, SET_RESERVE_FACTOR_ACCRUE_INTEREST_FAILED, SET_RESERVE_FACTOR_ADMIN_CHECK, SET_RESERVE_FACTOR_FRESH_CHECK, SET_RESERVE_FACTOR_BOUNDS_CHECK, TRANSFER_COMPTROLLER_REJECTION, TRANSFER_NOT_ALLOWED, TRANSFER_NOT_ENOUGH, TRANSFER_TOO_MUCH, ADD_RESERVES_ACCRUE_INTEREST_FAILED, ADD_RESERVES_FRESH_CHECK, ADD_RESERVES_TRANSFER_IN_NOT_POSSIBLE, TRANSFER_RESERVES_ACCRUE_INTEREST_FAILED, TRANSFER_RESERVES_ADMIN_CHECK, TRANSFER_RESERVES_CASH_NOT_AVAILABLE, TRANSFER_RESERVES_FRESH_CHECK, TRANSFER_RESERVES_VALIDATION } /** * @dev `error` corresponds to enum Error; `info` corresponds to enum FailureInfo, and `detail` is an arbitrary * contract-specific code that enables us to report opaque error codes from upgradeable contracts. **/ event Failure(uint error, uint info, uint detail); /** * @dev use this when reporting a known error from the money market or a non-upgradeable collaborator */ function fail(Error err, FailureInfo info) internal returns (uint) { emit Failure(uint(err), uint(info), 0); return uint(err); } /** * @dev use this when reporting an opaque error from an upgradeable collaborator contract */ function failOpaque(Error err, FailureInfo info, uint opaqueError) internal returns (uint) { emit Failure(uint(err), uint(info), opaqueError); return uint(err); } } // File: contracts/CarefulMath.sol pragma solidity ^0.5.16; /** * @title Careful Math * @author Strike * @notice Derived from OpenZeppelin's SafeMath library * https://github.com/OpenZeppelin/openzeppelin-solidity/blob/master/contracts/math/SafeMath.sol */ contract CarefulMath { /** * @dev Possible error codes that we can return */ enum MathError { NO_ERROR, DIVISION_BY_ZERO, INTEGER_OVERFLOW, INTEGER_UNDERFLOW } /** * @dev Multiplies two numbers, returns an error on overflow. */ function mulUInt(uint a, uint b) internal pure returns (MathError, uint) { if (a == 0) { return (MathError.NO_ERROR, 0); } uint c = a * b; if (c / a != b) { return (MathError.INTEGER_OVERFLOW, 0); } else { return (MathError.NO_ERROR, c); } } /** * @dev Integer division of two numbers, truncating the quotient. */ function divUInt(uint a, uint b) internal pure returns (MathError, uint) { if (b == 0) { return (MathError.DIVISION_BY_ZERO, 0); } return (MathError.NO_ERROR, a / b); } /** * @dev Subtracts two numbers, returns an error on overflow (i.e. if subtrahend is greater than minuend). */ function subUInt(uint a, uint b) internal pure returns (MathError, uint) { if (b <= a) { return (MathError.NO_ERROR, a - b); } else { return (MathError.INTEGER_UNDERFLOW, 0); } } /** * @dev Adds two numbers, returns an error on overflow. */ function addUInt(uint a, uint b) internal pure returns (MathError, uint) { uint c = a + b; if (c >= a) { return (MathError.NO_ERROR, c); } else { return (MathError.INTEGER_OVERFLOW, 0); } } /** * @dev add a and b and then subtract c */ function addThenSubUInt(uint a, uint b, uint c) internal pure returns (MathError, uint) { (MathError err0, uint sum) = addUInt(a, b); if (err0 != MathError.NO_ERROR) { return (err0, 0); } return subUInt(sum, c); } } // File: contracts/Exponential.sol pragma solidity ^0.5.16; /** * @title Exponential module for storing fixed-precision decimals * @author Strike * @notice Exp is a struct which stores decimals with a fixed precision of 18 decimal places. * Thus, if we wanted to store the 5.1, mantissa would store 5.1e18. That is: * `Exp({mantissa: 5100000000000000000})`. */ contract Exponential is CarefulMath { uint constant expScale = 1e18; uint constant doubleScale = 1e36; uint constant halfExpScale = expScale/2; uint constant mantissaOne = expScale; struct Exp { uint mantissa; } struct Double { uint mantissa; } /** * @dev Creates an exponential from numerator and denominator values. * Note: Returns an error if (`num` * 10e18) > MAX_INT, * or if `denom` is zero. */ function getExp(uint num, uint denom) internal pure returns (MathError, Exp memory) { (MathError err0, uint scaledNumerator) = mulUInt(num, expScale); if (err0 != MathError.NO_ERROR) { return (err0, Exp({mantissa: 0})); } (MathError err1, uint rational) = divUInt(scaledNumerator, denom); if (err1 != MathError.NO_ERROR) { return (err1, Exp({mantissa: 0})); } return (MathError.NO_ERROR, Exp({mantissa: rational})); } /** * @dev Adds two exponentials, returning a new exponential. */ function addExp(Exp memory a, Exp memory b) internal pure returns (MathError, Exp memory) { (MathError error, uint result) = addUInt(a.mantissa, b.mantissa); return (error, Exp({mantissa: result})); } /** * @dev Subtracts two exponentials, returning a new exponential. */ function subExp(Exp memory a, Exp memory b) internal pure returns (MathError, Exp memory) { (MathError error, uint result) = subUInt(a.mantissa, b.mantissa); return (error, Exp({mantissa: result})); } /** * @dev Multiply an Exp by a scalar, returning a new Exp. */ function mulScalar(Exp memory a, uint scalar) internal pure returns (MathError, Exp memory) { (MathError err0, uint scaledMantissa) = mulUInt(a.mantissa, scalar); if (err0 != MathError.NO_ERROR) { return (err0, Exp({mantissa: 0})); } return (MathError.NO_ERROR, Exp({mantissa: scaledMantissa})); } /** * @dev Multiply an Exp by a scalar, then truncate to return an unsigned integer. */ function mulScalarTruncate(Exp memory a, uint scalar) internal pure returns (MathError, uint) { (MathError err, Exp memory product) = mulScalar(a, scalar); if (err != MathError.NO_ERROR) { return (err, 0); } return (MathError.NO_ERROR, truncate(product)); } /** * @dev Multiply an Exp by a scalar, truncate, then add an to an unsigned integer, returning an unsigned integer. */ function mulScalarTruncateAddUInt(Exp memory a, uint scalar, uint addend) internal pure returns (MathError, uint) { (MathError err, Exp memory product) = mulScalar(a, scalar); if (err != MathError.NO_ERROR) { return (err, 0); } return addUInt(truncate(product), addend); } /** * @dev Divide an Exp by a scalar, returning a new Exp. */ function divScalar(Exp memory a, uint scalar) internal pure returns (MathError, Exp memory) { (MathError err0, uint descaledMantissa) = divUInt(a.mantissa, scalar); if (err0 != MathError.NO_ERROR) { return (err0, Exp({mantissa: 0})); } return (MathError.NO_ERROR, Exp({mantissa: descaledMantissa})); } /** * @dev Divide a scalar by an Exp, returning a new Exp. */ function divScalarByExp(uint scalar, Exp memory divisor) internal pure returns (MathError, Exp memory) { /* We are doing this as: getExp(mulUInt(expScale, scalar), divisor.mantissa) How it works: Exp = a / b; Scalar = s; `s / (a / b)` = `b * s / a` and since for an Exp `a = mantissa, b = expScale` */ (MathError err0, uint numerator) = mulUInt(expScale, scalar); if (err0 != MathError.NO_ERROR) { return (err0, Exp({mantissa: 0})); } return getExp(numerator, divisor.mantissa); } /** * @dev Divide a scalar by an Exp, then truncate to return an unsigned integer. */ function divScalarByExpTruncate(uint scalar, Exp memory divisor) internal pure returns (MathError, uint) { (MathError err, Exp memory fraction) = divScalarByExp(scalar, divisor); if (err != MathError.NO_ERROR) { return (err, 0); } return (MathError.NO_ERROR, truncate(fraction)); } /** * @dev Multiplies two exponentials, returning a new exponential. */ function mulExp(Exp memory a, Exp memory b) internal pure returns (MathError, Exp memory) { (MathError err0, uint doubleScaledProduct) = mulUInt(a.mantissa, b.mantissa); if (err0 != MathError.NO_ERROR) { return (err0, Exp({mantissa: 0})); } // We add half the scale before dividing so that we get rounding instead of truncation. // See "Listing 6" and text above it at https://accu.org/index.php/journals/1717 // Without this change, a result like 6.6...e-19 will be truncated to 0 instead of being rounded to 1e-18. (MathError err1, uint doubleScaledProductWithHalfScale) = addUInt(halfExpScale, doubleScaledProduct); if (err1 != MathError.NO_ERROR) { return (err1, Exp({mantissa: 0})); } (MathError err2, uint product) = divUInt(doubleScaledProductWithHalfScale, expScale); // The only error `div` can return is MathError.DIVISION_BY_ZERO but we control `expScale` and it is not zero. assert(err2 == MathError.NO_ERROR); return (MathError.NO_ERROR, Exp({mantissa: product})); } /** * @dev Multiplies two exponentials given their mantissas, returning a new exponential. */ function mulExp(uint a, uint b) internal pure returns (MathError, Exp memory) { return mulExp(Exp({mantissa: a}), Exp({mantissa: b})); } /** * @dev Multiplies three exponentials, returning a new exponential. */ function mulExp3(Exp memory a, Exp memory b, Exp memory c) internal pure returns (MathError, Exp memory) { (MathError err, Exp memory ab) = mulExp(a, b); if (err != MathError.NO_ERROR) { return (err, ab); } return mulExp(ab, c); } /** * @dev Divides two exponentials, returning a new exponential. * (a/scale) / (b/scale) = (a/scale) * (scale/b) = a/b, * which we can scale as an Exp by calling getExp(a.mantissa, b.mantissa) */ function divExp(Exp memory a, Exp memory b) internal pure returns (MathError, Exp memory) { return getExp(a.mantissa, b.mantissa); } /** * @dev Truncates the given exp to a whole number value. * For example, truncate(Exp{mantissa: 15 * expScale}) = 15 */ function truncate(Exp memory exp) internal pure returns (uint) { // Note: We are not using careful math here as we're performing a division that cannot fail return exp.mantissa / expScale; } /** * @dev Checks if first Exp is less than second Exp. */ function lessThanExp(Exp memory left, Exp memory right) internal pure returns (bool) { return left.mantissa < right.mantissa; } /** * @dev Checks if left Exp <= right Exp. */ function lessThanOrEqualExp(Exp memory left, Exp memory right) internal pure returns (bool) { return left.mantissa <= right.mantissa; } /** * @dev Checks if left Exp > right Exp. */ function greaterThanExp(Exp memory left, Exp memory right) internal pure returns (bool) { return left.mantissa > right.mantissa; } /** * @dev returns true if Exp is exactly zero */ function isZeroExp(Exp memory value) internal pure returns (bool) { return value.mantissa == 0; } function safe224(uint n, string memory errorMessage) internal pure returns (uint224) { require(n < 2**224, errorMessage); return uint224(n); } function safe32(uint n, string memory errorMessage) internal pure returns (uint32) { require(n < 2**32, errorMessage); return uint32(n); } function add_(Exp memory a, Exp memory b) internal pure returns (Exp memory) { return Exp({mantissa: add_(a.mantissa, b.mantissa)}); } function add_(Double memory a, Double memory b) internal pure returns (Double memory) { return Double({mantissa: add_(a.mantissa, b.mantissa)}); } function add_(uint a, uint b) internal pure returns (uint) { return add_(a, b, "addition overflow"); } function add_(uint a, uint b, string memory errorMessage) internal pure returns (uint) { uint c = a + b; require(c >= a, errorMessage); return c; } function sub_(Exp memory a, Exp memory b) internal pure returns (Exp memory) { return Exp({mantissa: sub_(a.mantissa, b.mantissa)}); } function sub_(Double memory a, Double memory b) internal pure returns (Double memory) { return Double({mantissa: sub_(a.mantissa, b.mantissa)}); } function sub_(uint a, uint b) internal pure returns (uint) { return sub_(a, b, "subtraction underflow"); } function sub_(uint a, uint b, string memory errorMessage) internal pure returns (uint) { require(b <= a, errorMessage); return a - b; } function mul_(Exp memory a, Exp memory b) internal pure returns (Exp memory) { return Exp({mantissa: mul_(a.mantissa, b.mantissa) / expScale}); } function mul_(Exp memory a, uint b) internal pure returns (Exp memory) { return Exp({mantissa: mul_(a.mantissa, b)}); } function mul_(uint a, Exp memory b) internal pure returns (uint) { return mul_(a, b.mantissa) / expScale; } function mul_(Double memory a, Double memory b) internal pure returns (Double memory) { return Double({mantissa: mul_(a.mantissa, b.mantissa) / doubleScale}); } function mul_(Double memory a, uint b) internal pure returns (Double memory) { return Double({mantissa: mul_(a.mantissa, b)}); } function mul_(uint a, Double memory b) internal pure returns (uint) { return mul_(a, b.mantissa) / doubleScale; } function mul_(uint a, uint b) internal pure returns (uint) { return mul_(a, b, "multiplication overflow"); } function mul_(uint a, uint b, string memory errorMessage) internal pure returns (uint) { if (a == 0 || b == 0) { return 0; } uint c = a * b; require(c / a == b, errorMessage); return c; } function div_(Exp memory a, Exp memory b) internal pure returns (Exp memory) { return Exp({mantissa: div_(mul_(a.mantissa, expScale), b.mantissa)}); } function div_(Exp memory a, uint b) internal pure returns (Exp memory) { return Exp({mantissa: div_(a.mantissa, b)}); } function div_(uint a, Exp memory b) internal pure returns (uint) { return div_(mul_(a, expScale), b.mantissa); } function div_(Double memory a, Double memory b) internal pure returns (Double memory) { return Double({mantissa: div_(mul_(a.mantissa, doubleScale), b.mantissa)}); } function div_(Double memory a, uint b) internal pure returns (Double memory) { return Double({mantissa: div_(a.mantissa, b)}); } function div_(uint a, Double memory b) internal pure returns (uint) { return div_(mul_(a, doubleScale), b.mantissa); } function div_(uint a, uint b) internal pure returns (uint) { return div_(a, b, "divide by zero"); } function div_(uint a, uint b, string memory errorMessage) internal pure returns (uint) { require(b > 0, errorMessage); return a / b; } function fraction(uint a, uint b) internal pure returns (Double memory) { return Double({mantissa: div_(mul_(a, doubleScale), b)}); } } // File: contracts/EIP20Interface.sol pragma solidity ^0.5.16; /** * @title ERC 20 Token Standard Interface * https://eips.ethereum.org/EIPS/eip-20 */ interface EIP20Interface { function name() external view returns (string memory); function symbol() external view returns (string memory); function decimals() external view returns (uint8); /** * @notice Get the total number of tokens in circulation * @return The supply of tokens */ function totalSupply() external view returns (uint256); /** * @notice Gets the balance of the specified address * @param owner The address from which the balance will be retrieved * @return The balance */ function balanceOf(address owner) external view returns (uint256 balance); /** * @notice Transfer `amount` tokens from `msg.sender` to `dst` * @param dst The address of the destination account * @param amount The number of tokens to transfer * @return Whether or not the transfer succeeded */ function transfer(address dst, uint256 amount) external returns (bool success); /** * @notice Transfer `amount` tokens from `src` to `dst` * @param src The address of the source account * @param dst The address of the destination account * @param amount The number of tokens to transfer * @return Whether or not the transfer succeeded */ function transferFrom(address src, address dst, uint256 amount) external returns (bool success); /** * @notice Approve `spender` to transfer up to `amount` from `src` * @dev This will overwrite the approval amount for `spender` * and is subject to issues noted [here](https://eips.ethereum.org/EIPS/eip-20#approve) * @param spender The address of the account which may transfer tokens * @param amount The number of tokens that are approved (-1 means infinite) * @return Whether or not the approval succeeded */ function approve(address spender, uint256 amount) external returns (bool success); /** * @notice Get the current allowance from `owner` for `spender` * @param owner The address of the account which owns the tokens to be spent * @param spender The address of the account which may transfer tokens * @return The number of tokens allowed to be spent (-1 means infinite) */ function allowance(address owner, address spender) external view returns (uint256 remaining); event Transfer(address indexed from, address indexed to, uint256 amount); event Approval(address indexed owner, address indexed spender, uint256 amount); } // File: contracts/EIP20NonStandardInterface.sol pragma solidity ^0.5.16; /** * @title EIP20NonStandardInterface * @dev Version of ERC20 with no return values for `transfer` and `transferFrom` * See https://medium.com/coinmonks/missing-return-value-bug-at-least-130-tokens-affected-d67bf08521ca */ interface EIP20NonStandardInterface { /** * @notice Get the total number of tokens in circulation * @return The supply of tokens */ function totalSupply() external view returns (uint256); /** * @notice Gets the balance of the specified address * @param owner The address from which the balance will be retrieved * @return The balance */ function balanceOf(address owner) external view returns (uint256 balance); /// /// !!!!!!!!!!!!!! /// !!! NOTICE !!! `transfer` does not return a value, in violation of the ERC-20 specification /// !!!!!!!!!!!!!! /// /** * @notice Transfer `amount` tokens from `msg.sender` to `dst` * @param dst The address of the destination account * @param amount The number of tokens to transfer */ function transfer(address dst, uint256 amount) external; /// /// !!!!!!!!!!!!!! /// !!! NOTICE !!! `transferFrom` does not return a value, in violation of the ERC-20 specification /// !!!!!!!!!!!!!! /// /** * @notice Transfer `amount` tokens from `src` to `dst` * @param src The address of the source account * @param dst The address of the destination account * @param amount The number of tokens to transfer */ function transferFrom(address src, address dst, uint256 amount) external; /** * @notice Approve `spender` to transfer up to `amount` from `src` * @dev This will overwrite the approval amount for `spender` * and is subject to issues noted [here](https://eips.ethereum.org/EIPS/eip-20#approve) * @param spender The address of the account which may transfer tokens * @param amount The number of tokens that are approved * @return Whether or not the approval succeeded */ function approve(address spender, uint256 amount) external returns (bool success); /** * @notice Get the current allowance from `owner` for `spender` * @param owner The address of the account which owns the tokens to be spent * @param spender The address of the account which may transfer tokens * @return The number of tokens allowed to be spent */ function allowance(address owner, address spender) external view returns (uint256 remaining); event Transfer(address indexed from, address indexed to, uint256 amount); event Approval(address indexed owner, address indexed spender, uint256 amount); } // File: contracts/SToken.sol pragma solidity ^0.5.16; /** * @title Strike's SToken Contract * @notice Abstract base for STokens * @author Strike */ contract SToken is STokenInterface, Exponential, TokenErrorReporter { /** * @notice Initialize the money market * @param comptroller_ The address of the Comptroller * @param interestRateModel_ The address of the interest rate model * @param initialExchangeRateMantissa_ The initial exchange rate, scaled by 1e18 * @param name_ EIP-20 name of this token * @param symbol_ EIP-20 symbol of this token * @param decimals_ EIP-20 decimal precision of this token */ function initialize(ComptrollerInterface comptroller_, InterestRateModel interestRateModel_, uint initialExchangeRateMantissa_, string memory name_, string memory symbol_, uint8 decimals_) public { require(msg.sender == admin, "only admin may initialize the market"); require(accrualBlockNumber == 0 && borrowIndex == 0, "market may only be initialized once"); // Set initial exchange rate initialExchangeRateMantissa = initialExchangeRateMantissa_; require(initialExchangeRateMantissa > 0, "initial exchange rate must be greater than zero."); // Set the comptroller uint err = _setComptroller(comptroller_); require(err == uint(Error.NO_ERROR), "setting comptroller failed"); // Initialize block number and borrow index (block number mocks depend on comptroller being set) accrualBlockNumber = getBlockNumber(); borrowIndex = mantissaOne; // Set the interest rate model (depends on block number / borrow index) err = _setInterestRateModelFresh(interestRateModel_); require(err == uint(Error.NO_ERROR), "setting interest rate model failed"); name = name_; symbol = symbol_; decimals = decimals_; // The counter starts true to prevent changing it from zero to non-zero (i.e. smaller cost/refund) _notEntered = true; } /** * @notice Transfer `tokens` tokens from `src` to `dst` by `spender` * @dev Called by both `transfer` and `transferFrom` internally * @param spender The address of the account performing the transfer * @param src The address of the source account * @param dst The address of the destination account * @param tokens The number of tokens to transfer * @return Whether or not the transfer succeeded */ function transferTokens(address spender, address src, address dst, uint tokens) internal returns (uint) { /* Fail if transfer not allowed */ uint allowed = comptroller.transferAllowed(address(this), src, dst, tokens); if (allowed != 0) { return failOpaque(Error.COMPTROLLER_REJECTION, FailureInfo.TRANSFER_COMPTROLLER_REJECTION, allowed); } /* Do not allow self-transfers */ if (src == dst) { return fail(Error.BAD_INPUT, FailureInfo.TRANSFER_NOT_ALLOWED); } /* Get the allowance, infinite for the account owner */ uint startingAllowance = 0; if (spender == src) { startingAllowance = uint(-1); } else { startingAllowance = transferAllowances[src][spender]; } /* Do the calculations, checking for {under,over}flow */ MathError mathErr; uint allowanceNew; uint srsTokensNew; uint dstTokensNew; (mathErr, allowanceNew) = subUInt(startingAllowance, tokens); if (mathErr != MathError.NO_ERROR) { return fail(Error.MATH_ERROR, FailureInfo.TRANSFER_NOT_ALLOWED); } (mathErr, srsTokensNew) = 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] = srsTokensNew; accountTokens[dst] = dstTokensNew; /* Eat some of the allowance (if necessary) */ if (startingAllowance != uint(-1)) { transferAllowances[src][spender] = allowanceNew; } /* We emit a Transfer event */ emit Transfer(src, dst, tokens); comptroller.transferVerify(address(this), src, dst, tokens); return uint(Error.NO_ERROR); } /** * @notice Transfer `amount` tokens from `msg.sender` to `dst` * @param dst The address of the destination account * @param amount The number of tokens to transfer * @return Whether or not the transfer succeeded */ function transfer(address dst, uint256 amount) external nonReentrant returns (bool) { return transferTokens(msg.sender, msg.sender, dst, amount) == uint(Error.NO_ERROR); } /** * @notice Transfer `amount` tokens from `src` to `dst` * @param src The address of the source account * @param dst The address of the destination account * @param amount The number of tokens to transfer * @return Whether or not the transfer succeeded */ function transferFrom(address src, address dst, uint256 amount) external nonReentrant returns (bool) { return transferTokens(msg.sender, src, dst, amount) == uint(Error.NO_ERROR); } /** * @notice Approve `spender` to transfer up to `amount` from `src` * @dev This will overwrite the approval amount for `spender` * and is subject to issues noted [here](https://eips.ethereum.org/EIPS/eip-20#approve) * @param spender The address of the account which may transfer tokens * @param amount The number of tokens that are approved (-1 means infinite) * @return Whether or not the approval succeeded */ function approve(address spender, uint256 amount) external returns (bool) { address src = msg.sender; transferAllowances[src][spender] = amount; emit Approval(src, spender, amount); return true; } /** * @notice Get the current allowance from `owner` for `spender` * @param owner The address of the account which owns the tokens to be spent * @param spender The address of the account which may transfer tokens * @return The number of tokens allowed to be spent (-1 means infinite) */ function allowance(address owner, address spender) external view returns (uint256) { return transferAllowances[owner][spender]; } /** * @notice Get the token balance of the `owner` * @param owner The address of the account to query * @return The number of tokens owned by `owner` */ function balanceOf(address owner) external view returns (uint256) { return accountTokens[owner]; } /** * @notice Get the underlying balance of the `owner` * @dev This also accrues interest in a transaction * @param owner The address of the account to query * @return The amount of underlying owned by `owner` */ function balanceOfUnderlying(address owner) external returns (uint) { Exp memory exchangeRate = Exp({mantissa: exchangeRateCurrent()}); (MathError mErr, uint balance) = mulScalarTruncate(exchangeRate, accountTokens[owner]); require(mErr == MathError.NO_ERROR, "balance could not be calculated"); return balance; } /** * @notice Get a snapshot of the account's balances, and the cached exchange rate * @dev This is used by comptroller to more efficiently perform liquidity checks. * @param account Address of the account to snapshot * @return (possible error, token balance, borrow balance, exchange rate mantissa) */ function getAccountSnapshot(address account) external view returns (uint, uint, uint, uint) { uint sTokenBalance = 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), sTokenBalance, 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 sToken * @return The borrow interest rate per block, scaled by 1e18 */ function borrowRatePerBlock() external view returns (uint) { return interestRateModel.getBorrowRate(getCashPrior(), totalBorrows, totalReserves); } /** * @notice Returns the current per-block supply interest rate for this sToken * @return The supply interest rate per block, scaled by 1e18 */ function supplyRatePerBlock() external view returns (uint) { return interestRateModel.getSupplyRate(getCashPrior(), totalBorrows, totalReserves, reserveFactorMantissa); } /** * @notice Returns the current total borrows plus accrued interest * @return The total borrows with interest */ function totalBorrowsCurrent() external nonReentrant returns (uint) { require(accrueInterest() == uint(Error.NO_ERROR), "accrue interest failed"); return totalBorrows; } /** * @notice Accrue interest to updated borrowIndex and then calculate account's borrow balance using the updated borrowIndex * @param account The address whose balance should be calculated after updating borrowIndex * @return The calculated balance */ function borrowBalanceCurrent(address account) external nonReentrant returns (uint) { require(accrueInterest() == uint(Error.NO_ERROR), "accrue interest failed"); return borrowBalanceStored(account); } /** * @notice Return the borrow balance of account based on stored data * @param account The address whose balance should be calculated * @return The calculated balance */ function borrowBalanceStored(address account) public view returns (uint) { (MathError err, uint result) = borrowBalanceStoredInternal(account); require(err == MathError.NO_ERROR, "borrowBalanceStored: borrowBalanceStoredInternal failed"); return result; } /** * @notice Return the borrow balance of account based on stored data * @param account The address whose balance should be calculated * @return (error code, the calculated balance or 0 if error code is non-zero) */ function borrowBalanceStoredInternal(address account) internal view returns (MathError, uint) { /* Note: we do not assert that the market is up to date */ MathError mathErr; uint principalTimesIndex; uint result; /* Get borrowBalance and borrowIndex */ BorrowSnapshot storage borrowSnapshot = accountBorrows[account]; /* If borrowBalance = 0 then borrowIndex is likely also 0. * Rather than failing the calculation with a division by 0, we immediately return 0 in this case. */ if (borrowSnapshot.principal == 0) { return (MathError.NO_ERROR, 0); } /* Calculate new borrow balance using the interest index: * recentBorrowBalance = borrower.borrowBalance * market.borrowIndex / borrower.borrowIndex */ (mathErr, principalTimesIndex) = mulUInt(borrowSnapshot.principal, borrowIndex); if (mathErr != MathError.NO_ERROR) { return (mathErr, 0); } (mathErr, result) = divUInt(principalTimesIndex, borrowSnapshot.interestIndex); if (mathErr != MathError.NO_ERROR) { return (mathErr, 0); } return (MathError.NO_ERROR, result); } /** * @notice Accrue interest then return the up-to-date exchange rate * @return Calculated exchange rate scaled by 1e18 */ function exchangeRateCurrent() public nonReentrant returns (uint) { require(accrueInterest() == uint(Error.NO_ERROR), "accrue interest failed"); return exchangeRateStored(); } /** * @notice Calculates the exchange rate from the underlying to the SToken * @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 SToken * @dev This function does not accrue interest before calculating the exchange rate * @return (error code, calculated exchange rate scaled by 1e18) */ function exchangeRateStoredInternal() internal view returns (MathError, uint) { uint _totalSupply = totalSupply; if (_totalSupply == 0) { /* * If there are no tokens minted: * exchangeRate = initialExchangeRate */ return (MathError.NO_ERROR, initialExchangeRateMantissa); } else { /* * Otherwise: * exchangeRate = (totalCash + totalBorrows - totalReserves) / totalSupply */ uint totalCash = getCashPrior(); uint cashPlusBorrowsMinusReserves; Exp memory exchangeRate; MathError mathErr; (mathErr, cashPlusBorrowsMinusReserves) = addThenSubUInt(totalCash, totalBorrows, totalReserves); if (mathErr != MathError.NO_ERROR) { return (mathErr, 0); } (mathErr, exchangeRate) = getExp(cashPlusBorrowsMinusReserves, _totalSupply); if (mathErr != MathError.NO_ERROR) { return (mathErr, 0); } return (MathError.NO_ERROR, exchangeRate.mantissa); } } /** * @notice Get cash balance of this sToken in the underlying asset * @return The quantity of underlying asset owned by this contract */ function getCash() external view returns (uint) { return getCashPrior(); } /** * @notice Applies accrued interest to total borrows and reserves * @dev This calculates interest accrued from the last checkpointed block * up to the current block and writes new checkpoint to storage. */ function accrueInterest() public returns (uint) { /* Remember the initial block number */ uint currentBlockNumber = getBlockNumber(); uint accrualBlockNumberPrior = accrualBlockNumber; /* Short-circuit accumulating 0 interest */ if (accrualBlockNumberPrior == currentBlockNumber) { return uint(Error.NO_ERROR); } /* Read the previous values out of storage */ uint cashPrior = getCashPrior(); uint borrowsPrior = totalBorrows; uint reservesPrior = totalReserves; uint borrowIndexPrior = borrowIndex; /* Calculate the current borrow interest rate */ uint borrowRateMantissa = interestRateModel.getBorrowRate(cashPrior, borrowsPrior, reservesPrior); require(borrowRateMantissa <= borrowRateMaxMantissa, "borrow rate is absurdly high"); /* Calculate the number of blocks elapsed since the last accrual */ (MathError mathErr, uint blockDelta) = subUInt(currentBlockNumber, accrualBlockNumberPrior); require(mathErr == MathError.NO_ERROR, "could not calculate block delta"); /* * Calculate the interest accumulated into borrows and reserves and the new index: * simpleInterestFactor = borrowRate * blockDelta * interestAccumulated = simpleInterestFactor * totalBorrows * totalBorrowsNew = interestAccumulated + totalBorrows * totalReservesNew = interestAccumulated * reserveFactor + totalReserves * borrowIndexNew = simpleInterestFactor * borrowIndex + borrowIndex */ Exp memory simpleInterestFactor; uint interestAccumulated; uint totalBorrowsNew; uint totalReservesNew; uint borrowIndexNew; (mathErr, simpleInterestFactor) = mulScalar(Exp({mantissa: borrowRateMantissa}), blockDelta); if (mathErr != MathError.NO_ERROR) { return failOpaque(Error.MATH_ERROR, FailureInfo.ACCRUE_INTEREST_SIMPLE_INTEREST_FACTOR_CALCULATION_FAILED, uint(mathErr)); } (mathErr, interestAccumulated) = mulScalarTruncate(simpleInterestFactor, borrowsPrior); if (mathErr != MathError.NO_ERROR) { return failOpaque(Error.MATH_ERROR, FailureInfo.ACCRUE_INTEREST_ACCUMULATED_INTEREST_CALCULATION_FAILED, uint(mathErr)); } (mathErr, totalBorrowsNew) = addUInt(interestAccumulated, borrowsPrior); if (mathErr != MathError.NO_ERROR) { return failOpaque(Error.MATH_ERROR, FailureInfo.ACCRUE_INTEREST_NEW_TOTAL_BORROWS_CALCULATION_FAILED, uint(mathErr)); } (mathErr, totalReservesNew) = mulScalarTruncateAddUInt(Exp({mantissa: reserveFactorMantissa}), interestAccumulated, reservesPrior); if (mathErr != MathError.NO_ERROR) { return failOpaque(Error.MATH_ERROR, FailureInfo.ACCRUE_INTEREST_NEW_TOTAL_RESERVES_CALCULATION_FAILED, uint(mathErr)); } (mathErr, borrowIndexNew) = mulScalarTruncateAddUInt(simpleInterestFactor, borrowIndexPrior, borrowIndexPrior); if (mathErr != MathError.NO_ERROR) { return failOpaque(Error.MATH_ERROR, FailureInfo.ACCRUE_INTEREST_NEW_BORROW_INDEX_CALCULATION_FAILED, uint(mathErr)); } ///////////////////////// // EFFECTS & INTERACTIONS // (No safe failures beyond this point) /* We write the previously calculated values into storage */ accrualBlockNumber = currentBlockNumber; borrowIndex = borrowIndexNew; totalBorrows = totalBorrowsNew; totalReserves = totalReservesNew; /* We emit an AccrueInterest event */ emit AccrueInterest(cashPrior, interestAccumulated, borrowIndexNew, totalBorrowsNew); return uint(Error.NO_ERROR); } /** * @notice Sender supplies assets into the market and receives sTokens in exchange * @dev Accrues interest whether or not the operation succeeds, unless reverted * @param mintAmount The amount of the underlying asset to supply * @return (uint, uint) An error code (0=success, otherwise a failure, see ErrorReporter.sol), and the actual mint amount. */ function mintInternal(uint mintAmount) internal nonReentrant returns (uint, uint) { uint error = accrueInterest(); if (error != uint(Error.NO_ERROR)) { // accrueInterest emits logs on errors, but we still want to log the fact that an attempted borrow failed return (fail(Error(error), FailureInfo.MINT_ACCRUE_INTEREST_FAILED), 0); } // mintFresh emits the actual Mint event if successful and logs on errors, so we don't need to return mintFresh(msg.sender, mintAmount); } struct MintLocalVars { Error err; MathError mathErr; uint exchangeRateMantissa; uint mintTokens; uint totalSupplyNew; uint accountTokensNew; uint actualMintAmount; } /** * @notice User supplies assets into the market and receives sTokens in exchange * @dev Assumes interest has already been accrued up to the current block * @param minter The address of the account which is supplying the assets * @param mintAmount The amount of the underlying asset to supply * @return (uint, uint) An error code (0=success, otherwise a failure, see ErrorReporter.sol), and the actual mint amount. */ function mintFresh(address minter, uint mintAmount) internal returns (uint, uint) { /* Fail if mint not allowed */ uint allowed = comptroller.mintAllowed(address(this), minter, mintAmount); if (allowed != 0) { return (failOpaque(Error.COMPTROLLER_REJECTION, FailureInfo.MINT_COMPTROLLER_REJECTION, allowed), 0); } /* Verify market's block number equals current block number */ if (accrualBlockNumber != getBlockNumber()) { return (fail(Error.MARKET_NOT_FRESH, FailureInfo.MINT_FRESHNESS_CHECK), 0); } MintLocalVars memory vars; (vars.mathErr, vars.exchangeRateMantissa) = exchangeRateStoredInternal(); if (vars.mathErr != MathError.NO_ERROR) { return (failOpaque(Error.MATH_ERROR, FailureInfo.MINT_EXCHANGE_RATE_READ_FAILED, uint(vars.mathErr)), 0); } ///////////////////////// // EFFECTS & INTERACTIONS // (No safe failures beyond this point) /* * We call `doTransferIn` for the minter and the mintAmount. * Note: The sToken must handle variations between ERC-20 and ETH underlying. * `doTransferIn` reverts if anything goes wrong, since we can't be sure if * side-effects occurred. The function returns the amount actually transferred, * in case of a fee. On success, the sToken holds an additional `actualMintAmount` * of cash. */ vars.actualMintAmount = doTransferIn(minter, mintAmount); /* * We get the current exchange rate and calculate the number of sTokens to be minted: * mintTokens = actualMintAmount / exchangeRate */ (vars.mathErr, vars.mintTokens) = divScalarByExpTruncate(vars.actualMintAmount, Exp({mantissa: vars.exchangeRateMantissa})); require(vars.mathErr == MathError.NO_ERROR, "MINT_EXCHANGE_CALCULATION_FAILED"); /* * We calculate the new total supply of sTokens and minter token balance, checking for overflow: * totalSupplyNew = totalSupply + mintTokens * accountTokensNew = accountTokens[minter] + mintTokens */ (vars.mathErr, vars.totalSupplyNew) = addUInt(totalSupply, vars.mintTokens); require(vars.mathErr == MathError.NO_ERROR, "MINT_NEW_TOTAL_SUPPLY_CALCULATION_FAILED"); (vars.mathErr, vars.accountTokensNew) = addUInt(accountTokens[minter], vars.mintTokens); require(vars.mathErr == MathError.NO_ERROR, "MINT_NEW_ACCOUNT_BALANCE_CALCULATION_FAILED"); /* We write previously calculated values into storage */ totalSupply = vars.totalSupplyNew; accountTokens[minter] = vars.accountTokensNew; /* We emit a Mint event, and a Transfer event */ emit Mint(minter, vars.actualMintAmount, vars.mintTokens); emit Transfer(address(this), minter, vars.mintTokens); /* We call the defense hook */ comptroller.mintVerify(address(this), minter, vars.actualMintAmount, vars.mintTokens); return (uint(Error.NO_ERROR), vars.actualMintAmount); } /** * @notice Sender redeems sTokens in exchange for the underlying asset * @dev Accrues interest whether or not the operation succeeds, unless reverted * @param redeemTokens The number of sTokens 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 sTokens in exchange for a specified amount of underlying asset * @dev Accrues interest whether or not the operation succeeds, unless reverted * @param redeemAmount The amount of underlying to receive from redeeming sTokens * @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 sTokens 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 sTokens to redeem into underlying (only one of redeemTokensIn or redeemAmountIn may be non-zero) * @param redeemAmountIn The number of underlying tokens to receive from redeeming sTokens (only one of redeemTokensIn or redeemAmountIn may be non-zero) * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function redeemFresh(address payable redeemer, uint redeemTokensIn, uint redeemAmountIn) internal returns (uint) { require(redeemTokensIn == 0 || redeemAmountIn == 0, "one of redeemTokensIn or redeemAmountIn must be zero"); RedeemLocalVars memory vars; /* exchangeRate = invoke Exchange Rate Stored() */ (vars.mathErr, vars.exchangeRateMantissa) = exchangeRateStoredInternal(); if (vars.mathErr != MathError.NO_ERROR) { return failOpaque(Error.MATH_ERROR, FailureInfo.REDEEM_EXCHANGE_RATE_READ_FAILED, uint(vars.mathErr)); } /* If redeemTokensIn > 0: */ if (redeemTokensIn > 0) { /* * We calculate the exchange rate and the amount of underlying to be redeemed: * redeemTokens = redeemTokensIn * redeemAmount = redeemTokensIn x exchangeRateCurrent */ vars.redeemTokens = redeemTokensIn; (vars.mathErr, vars.redeemAmount) = mulScalarTruncate(Exp({mantissa: vars.exchangeRateMantissa}), redeemTokensIn); if (vars.mathErr != MathError.NO_ERROR) { return failOpaque(Error.MATH_ERROR, FailureInfo.REDEEM_EXCHANGE_TOKENS_CALCULATION_FAILED, uint(vars.mathErr)); } } else { /* * We get the current exchange rate and calculate the amount to be redeemed: * redeemTokens = redeemAmountIn / exchangeRate * redeemAmount = redeemAmountIn */ (vars.mathErr, vars.redeemTokens) = divScalarByExpTruncate(redeemAmountIn, Exp({mantissa: vars.exchangeRateMantissa})); if (vars.mathErr != MathError.NO_ERROR) { return failOpaque(Error.MATH_ERROR, FailureInfo.REDEEM_EXCHANGE_AMOUNT_CALCULATION_FAILED, uint(vars.mathErr)); } vars.redeemAmount = redeemAmountIn; } /* Fail if redeem not allowed */ uint allowed = comptroller.redeemAllowed(address(this), redeemer, vars.redeemTokens); if (allowed != 0) { return failOpaque(Error.COMPTROLLER_REJECTION, FailureInfo.REDEEM_COMPTROLLER_REJECTION, allowed); } /* Verify market's block number equals current block number */ if (accrualBlockNumber != getBlockNumber()) { return fail(Error.MARKET_NOT_FRESH, FailureInfo.REDEEM_FRESHNESS_CHECK); } /* * We calculate the new total supply and redeemer balance, checking for underflow: * totalSupplyNew = totalSupply - redeemTokens * accountTokensNew = accountTokens[redeemer] - redeemTokens */ (vars.mathErr, vars.totalSupplyNew) = subUInt(totalSupply, vars.redeemTokens); if (vars.mathErr != MathError.NO_ERROR) { return failOpaque(Error.MATH_ERROR, FailureInfo.REDEEM_NEW_TOTAL_SUPPLY_CALCULATION_FAILED, uint(vars.mathErr)); } (vars.mathErr, vars.accountTokensNew) = subUInt(accountTokens[redeemer], vars.redeemTokens); if (vars.mathErr != MathError.NO_ERROR) { return failOpaque(Error.MATH_ERROR, FailureInfo.REDEEM_NEW_ACCOUNT_BALANCE_CALCULATION_FAILED, uint(vars.mathErr)); } /* Fail gracefully if protocol has insufficient cash */ if (getCashPrior() < vars.redeemAmount) { return fail(Error.TOKEN_INSUFFICIENT_CASH, FailureInfo.REDEEM_TRANSFER_OUT_NOT_POSSIBLE); } ///////////////////////// // EFFECTS & INTERACTIONS // (No safe failures beyond this point) /* * We invoke doTransferOut for the redeemer and the redeemAmount. * Note: The sToken must handle variations between ERC-20 and ETH underlying. * On success, the sToken has redeemAmount less of cash. * doTransferOut reverts if anything goes wrong, since we can't be sure if side effects occurred. */ doTransferOut(redeemer, vars.redeemAmount); /* We write previously calculated values into storage */ totalSupply = vars.totalSupplyNew; accountTokens[redeemer] = vars.accountTokensNew; /* We emit a Transfer event, and a Redeem event */ emit Transfer(redeemer, address(this), vars.redeemTokens); emit Redeem(redeemer, vars.redeemAmount, vars.redeemTokens); /* We call the defense hook */ comptroller.redeemVerify(address(this), redeemer, vars.redeemAmount, vars.redeemTokens); return uint(Error.NO_ERROR); } /** * @notice Sender borrows assets from the protocol to their own address * @param borrowAmount The amount of the underlying asset to borrow * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function borrowInternal(uint borrowAmount) internal nonReentrant returns (uint) { uint error = accrueInterest(); if (error != uint(Error.NO_ERROR)) { // accrueInterest emits logs on errors, but we still want to log the fact that an attempted borrow failed return fail(Error(error), FailureInfo.BORROW_ACCRUE_INTEREST_FAILED); } // borrowFresh emits borrow-specific logs on errors, so we don't need to return borrowFresh(msg.sender, borrowAmount); } struct BorrowLocalVars { MathError mathErr; uint accountBorrows; uint accountBorrowsNew; uint totalBorrowsNew; } /** * @notice Users borrow assets from the protocol to their own address * @param borrowAmount The amount of the underlying asset to borrow * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function borrowFresh(address payable borrower, uint borrowAmount) internal returns (uint) { /* Fail if borrow not allowed */ uint allowed = comptroller.borrowAllowed(address(this), borrower, borrowAmount); if (allowed != 0) { return failOpaque(Error.COMPTROLLER_REJECTION, FailureInfo.BORROW_COMPTROLLER_REJECTION, allowed); } /* Verify market's block number equals current block number */ if (accrualBlockNumber != getBlockNumber()) { return fail(Error.MARKET_NOT_FRESH, FailureInfo.BORROW_FRESHNESS_CHECK); } /* Fail gracefully if protocol has insufficient underlying cash */ if (getCashPrior() < borrowAmount) { return fail(Error.TOKEN_INSUFFICIENT_CASH, FailureInfo.BORROW_CASH_NOT_AVAILABLE); } BorrowLocalVars memory vars; /* * We calculate the new borrower and total borrow balances, failing on overflow: * accountBorrowsNew = accountBorrows + borrowAmount * totalBorrowsNew = totalBorrows + borrowAmount */ (vars.mathErr, vars.accountBorrows) = borrowBalanceStoredInternal(borrower); if (vars.mathErr != MathError.NO_ERROR) { return failOpaque(Error.MATH_ERROR, FailureInfo.BORROW_ACCUMULATED_BALANCE_CALCULATION_FAILED, uint(vars.mathErr)); } (vars.mathErr, vars.accountBorrowsNew) = addUInt(vars.accountBorrows, borrowAmount); if (vars.mathErr != MathError.NO_ERROR) { return failOpaque(Error.MATH_ERROR, FailureInfo.BORROW_NEW_ACCOUNT_BORROW_BALANCE_CALCULATION_FAILED, uint(vars.mathErr)); } (vars.mathErr, vars.totalBorrowsNew) = addUInt(totalBorrows, borrowAmount); if (vars.mathErr != MathError.NO_ERROR) { return failOpaque(Error.MATH_ERROR, FailureInfo.BORROW_NEW_TOTAL_BALANCE_CALCULATION_FAILED, uint(vars.mathErr)); } ///////////////////////// // EFFECTS & INTERACTIONS // (No safe failures beyond this point) /* * We invoke doTransferOut for the borrower and the borrowAmount. * Note: The sToken must handle variations between ERC-20 and ETH underlying. * On success, the sToken borrowAmount less of cash. * doTransferOut reverts if anything goes wrong, since we can't be sure if side effects occurred. */ doTransferOut(borrower, borrowAmount); /* We write the previously calculated values into storage */ accountBorrows[borrower].principal = vars.accountBorrowsNew; accountBorrows[borrower].interestIndex = borrowIndex; totalBorrows = vars.totalBorrowsNew; /* We emit a Borrow event */ emit Borrow(borrower, borrowAmount, vars.accountBorrowsNew, vars.totalBorrowsNew); /* We call the defense hook */ comptroller.borrowVerify(address(this), borrower, borrowAmount); return uint(Error.NO_ERROR); } /** * @notice Sender repays their own borrow * @param repayAmount The amount to repay * @return (uint, uint) An error code (0=success, otherwise a failure, see ErrorReporter.sol), and the actual repayment amount. */ function repayBorrowInternal(uint repayAmount) internal nonReentrant returns (uint, uint) { uint error = accrueInterest(); if (error != uint(Error.NO_ERROR)) { // accrueInterest emits logs on errors, but we still want to log the fact that an attempted borrow failed return (fail(Error(error), FailureInfo.REPAY_BORROW_ACCRUE_INTEREST_FAILED), 0); } // repayBorrowFresh emits repay-borrow-specific logs on errors, so we don't need to return repayBorrowFresh(msg.sender, msg.sender, repayAmount); } /** * @notice Sender repays a borrow belonging to borrower * @param borrower the account with the debt being payed off * @param repayAmount The amount to repay * @return (uint, uint) An error code (0=success, otherwise a failure, see ErrorReporter.sol), and the actual repayment amount. */ function repayBorrowBehalfInternal(address borrower, uint repayAmount) internal nonReentrant returns (uint, uint) { uint error = accrueInterest(); if (error != uint(Error.NO_ERROR)) { // accrueInterest emits logs on errors, but we still want to log the fact that an attempted borrow failed return (fail(Error(error), FailureInfo.REPAY_BEHALF_ACCRUE_INTEREST_FAILED), 0); } // repayBorrowFresh emits repay-borrow-specific logs on errors, so we don't need to return repayBorrowFresh(msg.sender, borrower, repayAmount); } struct RepayBorrowLocalVars { Error err; MathError mathErr; uint repayAmount; uint borrowerIndex; uint accountBorrows; uint accountBorrowsNew; uint totalBorrowsNew; uint actualRepayAmount; } /** * @notice Borrows are repaid by another user (possibly the borrower). * @param payer the account paying off the borrow * @param borrower the account with the debt being payed off * @param repayAmount the amount of undelrying tokens being returned * @return (uint, uint) An error code (0=success, otherwise a failure, see ErrorReporter.sol), and the actual repayment amount. */ function repayBorrowFresh(address payer, address borrower, uint repayAmount) internal returns (uint, uint) { /* Fail if repayBorrow not allowed */ uint allowed = comptroller.repayBorrowAllowed(address(this), payer, borrower, repayAmount); if (allowed != 0) { return (failOpaque(Error.COMPTROLLER_REJECTION, FailureInfo.REPAY_BORROW_COMPTROLLER_REJECTION, allowed), 0); } /* Verify market's block number equals current block number */ if (accrualBlockNumber != getBlockNumber()) { return (fail(Error.MARKET_NOT_FRESH, FailureInfo.REPAY_BORROW_FRESHNESS_CHECK), 0); } RepayBorrowLocalVars memory vars; /* We remember the original borrowerIndex for verification purposes */ vars.borrowerIndex = accountBorrows[borrower].interestIndex; /* We fetch the amount the borrower owes, with accumulated interest */ (vars.mathErr, vars.accountBorrows) = borrowBalanceStoredInternal(borrower); if (vars.mathErr != MathError.NO_ERROR) { return (failOpaque(Error.MATH_ERROR, FailureInfo.REPAY_BORROW_ACCUMULATED_BALANCE_CALCULATION_FAILED, uint(vars.mathErr)), 0); } /* If repayAmount == -1, repayAmount = accountBorrows */ if (repayAmount == uint(-1)) { vars.repayAmount = vars.accountBorrows; } else { vars.repayAmount = repayAmount; } ///////////////////////// // EFFECTS & INTERACTIONS // (No safe failures beyond this point) /* * We call doTransferIn for the payer and the repayAmount * Note: The sToken must handle variations between ERC-20 and ETH underlying. * On success, the sToken holds an additional repayAmount of cash. * doTransferIn reverts if anything goes wrong, since we can't be sure if side effects occurred. * it returns the amount actually transferred, in case of a fee. */ vars.actualRepayAmount = doTransferIn(payer, vars.repayAmount); /* * We calculate the new borrower and total borrow balances, failing on underflow: * accountBorrowsNew = accountBorrows - actualRepayAmount * totalBorrowsNew = totalBorrows - actualRepayAmount */ (vars.mathErr, vars.accountBorrowsNew) = subUInt(vars.accountBorrows, vars.actualRepayAmount); require(vars.mathErr == MathError.NO_ERROR, "REPAY_BORROW_NEW_ACCOUNT_BORROW_BALANCE_CALCULATION_FAILED"); (vars.mathErr, vars.totalBorrowsNew) = subUInt(totalBorrows, vars.actualRepayAmount); require(vars.mathErr == MathError.NO_ERROR, "REPAY_BORROW_NEW_TOTAL_BALANCE_CALCULATION_FAILED"); /* We write the previously calculated values into storage */ accountBorrows[borrower].principal = vars.accountBorrowsNew; accountBorrows[borrower].interestIndex = borrowIndex; totalBorrows = vars.totalBorrowsNew; /* We emit a RepayBorrow event */ emit RepayBorrow(payer, borrower, vars.actualRepayAmount, vars.accountBorrowsNew, vars.totalBorrowsNew); /* We call the defense hook */ comptroller.repayBorrowVerify(address(this), payer, borrower, vars.actualRepayAmount, vars.borrowerIndex); return (uint(Error.NO_ERROR), vars.actualRepayAmount); } /** * @notice The sender liquidates the borrowers collateral. * The collateral seized is transferred to the liquidator. * @param borrower The borrower of this sToken to be liquidated * @param sTokenCollateral The market in which to seize collateral from the borrower * @param repayAmount The amount of the underlying borrowed asset to repay * @return (uint, uint) An error code (0=success, otherwise a failure, see ErrorReporter.sol), and the actual repayment amount. */ function liquidateBorrowInternal(address borrower, uint repayAmount, STokenInterface sTokenCollateral) internal nonReentrant returns (uint, uint) { uint error = accrueInterest(); if (error != uint(Error.NO_ERROR)) { // accrueInterest emits logs on errors, but we still want to log the fact that an attempted liquidation failed return (fail(Error(error), FailureInfo.LIQUIDATE_ACCRUE_BORROW_INTEREST_FAILED), 0); } error = sTokenCollateral.accrueInterest(); if (error != uint(Error.NO_ERROR)) { // accrueInterest emits logs on errors, but we still want to log the fact that an attempted liquidation failed return (fail(Error(error), FailureInfo.LIQUIDATE_ACCRUE_COLLATERAL_INTEREST_FAILED), 0); } // liquidateBorrowFresh emits borrow-specific logs on errors, so we don't need to return liquidateBorrowFresh(msg.sender, borrower, repayAmount, sTokenCollateral); } /** * @notice The liquidator liquidates the borrowers collateral. * The collateral seized is transferred to the liquidator. * @param borrower The borrower of this sToken to be liquidated * @param liquidator The address repaying the borrow and seizing collateral * @param sTokenCollateral The market in which to seize collateral from the borrower * @param repayAmount The amount of the underlying borrowed asset to repay * @return (uint, uint) An error code (0=success, otherwise a failure, see ErrorReporter.sol), and the actual repayment amount. */ function liquidateBorrowFresh(address liquidator, address borrower, uint repayAmount, STokenInterface sTokenCollateral) internal returns (uint, uint) { /* Fail if liquidate not allowed */ uint allowed = comptroller.liquidateBorrowAllowed(address(this), address(sTokenCollateral), liquidator, borrower, repayAmount); if (allowed != 0) { return (failOpaque(Error.COMPTROLLER_REJECTION, FailureInfo.LIQUIDATE_COMPTROLLER_REJECTION, allowed), 0); } /* Verify market's block number equals current block number */ if (accrualBlockNumber != getBlockNumber()) { return (fail(Error.MARKET_NOT_FRESH, FailureInfo.LIQUIDATE_FRESHNESS_CHECK), 0); } /* Verify sTokenCollateral market's block number equals current block number */ if (sTokenCollateral.accrualBlockNumber() != getBlockNumber()) { return (fail(Error.MARKET_NOT_FRESH, FailureInfo.LIQUIDATE_COLLATERAL_FRESHNESS_CHECK), 0); } /* Fail if borrower = liquidator */ if (borrower == liquidator) { return (fail(Error.INVALID_ACCOUNT_PAIR, FailureInfo.LIQUIDATE_LIQUIDATOR_IS_BORROWER), 0); } /* Fail if repayAmount = 0 */ if (repayAmount == 0) { return (fail(Error.INVALID_CLOSE_AMOUNT_REQUESTED, FailureInfo.LIQUIDATE_CLOSE_AMOUNT_IS_ZERO), 0); } /* Fail if repayAmount = -1 */ if (repayAmount == uint(-1)) { return (fail(Error.INVALID_CLOSE_AMOUNT_REQUESTED, FailureInfo.LIQUIDATE_CLOSE_AMOUNT_IS_UINT_MAX), 0); } /* Fail if repayBorrow fails */ (uint repayBorrowError, uint actualRepayAmount) = repayBorrowFresh(liquidator, borrower, repayAmount); if (repayBorrowError != uint(Error.NO_ERROR)) { return (fail(Error(repayBorrowError), FailureInfo.LIQUIDATE_REPAY_BORROW_FRESH_FAILED), 0); } ///////////////////////// // EFFECTS & INTERACTIONS // (No safe failures beyond this point) /* We calculate the number of collateral tokens that will be seized */ (uint amountSeizeError, uint seizeTokens) = comptroller.liquidateCalculateSeizeTokens(address(this), address(sTokenCollateral), actualRepayAmount); require(amountSeizeError == uint(Error.NO_ERROR), "LIQUIDATE_COMPTROLLER_CALCULATE_AMOUNT_SEIZE_FAILED"); /* Revert if borrower collateral token balance < seizeTokens */ require(sTokenCollateral.balanceOf(borrower) >= seizeTokens, "LIQUIDATE_SEIZE_TOO_MUCH"); // If this is also the collateral, run seizeInternal to avoid re-entrancy, otherwise make an external call uint seizeError; if (address(sTokenCollateral) == address(this)) { seizeError = seizeInternal(address(this), liquidator, borrower, seizeTokens); } else { seizeError = sTokenCollateral.seize(liquidator, borrower, seizeTokens); } /* Revert if seize tokens fails (since we cannot be sure of side effects) */ require(seizeError == uint(Error.NO_ERROR), "token seizure failed"); /* We emit a LiquidateBorrow event */ emit LiquidateBorrow(liquidator, borrower, actualRepayAmount, address(sTokenCollateral), seizeTokens); /* We call the defense hook */ comptroller.liquidateBorrowVerify(address(this), address(sTokenCollateral), liquidator, borrower, actualRepayAmount, seizeTokens); return (uint(Error.NO_ERROR), actualRepayAmount); } /** * @notice Transfers collateral tokens (this market) to the liquidator. * @dev Will fail unless called by another sToken during the process of liquidation. * Its absolutely critical to use msg.sender as the borrowed sToken and not a parameter. * @param liquidator The account receiving seized collateral * @param borrower The account having collateral seized * @param seizeTokens The number of sTokens to seize * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function seize(address liquidator, address borrower, uint seizeTokens) external nonReentrant returns (uint) { return seizeInternal(msg.sender, liquidator, borrower, seizeTokens); } struct SeizeInternalLocalVars { MathError mathErr; uint borrowerTokensNew; uint liquidatorTokensNew; uint liquidatorSeizeTokens; uint protocolSeizeTokens; uint protocolSeizeAmount; uint exchangeRateMantissa; uint totalReservesNew; uint totalSupplyNew; } /** * @notice Transfers collateral tokens (this market) to the liquidator. * @dev Called only during an in-kind liquidation, or by liquidateBorrow during the liquidation of another SToken. * Its absolutely critical to use msg.sender as the seizer sToken and not a parameter. * @param seizerToken The contract seizing the collateral (i.e. borrowed sToken) * @param liquidator The account receiving seized collateral * @param borrower The account having collateral seized * @param seizeTokens The number of sTokens to seize * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function seizeInternal(address seizerToken, address liquidator, address borrower, uint seizeTokens) internal returns (uint) { /* Fail if seize not allowed */ uint allowed = comptroller.seizeAllowed(address(this), seizerToken, liquidator, borrower, seizeTokens); if (allowed != 0) { return failOpaque(Error.COMPTROLLER_REJECTION, FailureInfo.LIQUIDATE_SEIZE_COMPTROLLER_REJECTION, allowed); } /* Fail if borrower = liquidator */ if (borrower == liquidator) { return fail(Error.INVALID_ACCOUNT_PAIR, FailureInfo.LIQUIDATE_SEIZE_LIQUIDATOR_IS_BORROWER); } // MathError mathErr; // uint borrowerTokensNew; // uint liquidatorTokensNew; SeizeInternalLocalVars memory vars; /* * We calculate the new borrower and liquidator token balances, failing on underflow/overflow: * borrowerTokensNew = accountTokens[borrower] - seizeTokens * liquidatorTokensNew = accountTokens[liquidator] + seizeTokens */ (vars.mathErr, vars.borrowerTokensNew) = subUInt(accountTokens[borrower], seizeTokens); if (vars.mathErr != MathError.NO_ERROR) { return failOpaque(Error.MATH_ERROR, FailureInfo.LIQUIDATE_SEIZE_BALANCE_DECREMENT_FAILED, uint(vars.mathErr)); } vars.protocolSeizeTokens = mul_(seizeTokens, Exp({mantissa: protocolSeizeShareMantissa})); vars.liquidatorSeizeTokens = sub_(seizeTokens, vars.protocolSeizeTokens); (vars.mathErr, vars.exchangeRateMantissa) = exchangeRateStoredInternal(); require(vars.mathErr == MathError.NO_ERROR, "exchange rate math error"); (vars.mathErr, vars.protocolSeizeAmount) = mulScalarTruncate(Exp({mantissa: vars.exchangeRateMantissa}), vars.protocolSeizeTokens); if (vars.mathErr != MathError.NO_ERROR) { return failOpaque(Error.MATH_ERROR, FailureInfo.LIQUIDATE_SEIZE_BALANCE_DECREMENT_FAILED, uint(vars.mathErr)); } vars.totalReservesNew = add_(totalReserves, vars.protocolSeizeAmount); vars.totalSupplyNew = sub_(totalSupply, vars.protocolSeizeTokens); (vars.mathErr, vars.liquidatorTokensNew) = addUInt(accountTokens[liquidator], vars.liquidatorSeizeTokens); if (vars.mathErr != MathError.NO_ERROR) { return failOpaque(Error.MATH_ERROR, FailureInfo.LIQUIDATE_SEIZE_BALANCE_INCREMENT_FAILED, uint(vars.mathErr)); } ///////////////////////// // EFFECTS & INTERACTIONS // (No safe failures beyond this point) /* We write the previously calculated values into storage */ totalReserves = vars.totalReservesNew; totalSupply = vars.totalSupplyNew; accountTokens[borrower] = vars.borrowerTokensNew; accountTokens[liquidator] = vars.liquidatorTokensNew; /* Emit a Transfer event */ emit Transfer(borrower, liquidator, vars.liquidatorSeizeTokens); emit Transfer(borrower, address(this), vars.protocolSeizeTokens); emit ReservesAdded(address(this), vars.protocolSeizeAmount, vars.totalReservesNew); /* We call the defense hook */ comptroller.seizeVerify(address(this), seizerToken, liquidator, borrower, seizeTokens); return uint(Error.NO_ERROR); } /*** Admin Functions ***/ /** * @notice Begins transfer of admin rights. The newPendingAdmin must call `_acceptAdmin` to finalize the transfer. * @dev Admin function to begin change of admin. The newPendingAdmin must call `_acceptAdmin` to finalize the transfer. * @param newPendingAdmin New pending admin. * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function _setPendingAdmin(address payable newPendingAdmin) external returns (uint) { // Check caller = admin if (msg.sender != admin) { return fail(Error.UNAUTHORIZED, FailureInfo.SET_PENDING_ADMIN_OWNER_CHECK); } // Save current value, if any, for inclusion in log address oldPendingAdmin = pendingAdmin; // Store pendingAdmin with value newPendingAdmin pendingAdmin = newPendingAdmin; // Emit NewPendingAdmin(oldPendingAdmin, newPendingAdmin) emit NewPendingAdmin(oldPendingAdmin, newPendingAdmin); return uint(Error.NO_ERROR); } /** * @notice Accepts transfer of admin rights. msg.sender must be pendingAdmin * @dev Admin function for pending admin to accept role and update admin * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function _acceptAdmin() external returns (uint) { // Check caller is pendingAdmin and pendingAdmin ≠ address(0) if (msg.sender != pendingAdmin || msg.sender == address(0)) { return fail(Error.UNAUTHORIZED, FailureInfo.ACCEPT_ADMIN_PENDING_ADMIN_CHECK); } // Save current values for inclusion in log address oldAdmin = admin; address oldPendingAdmin = pendingAdmin; // Store admin with value pendingAdmin admin = pendingAdmin; // Clear the pending value pendingAdmin = address(0); emit NewAdmin(oldAdmin, admin); emit NewPendingAdmin(oldPendingAdmin, pendingAdmin); return uint(Error.NO_ERROR); } /** * @notice Sets a new comptroller for the market * @dev Admin function to set a new comptroller * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function _setComptroller(ComptrollerInterface newComptroller) public returns (uint) { // Check caller is admin if (msg.sender != admin) { return fail(Error.UNAUTHORIZED, FailureInfo.SET_COMPTROLLER_OWNER_CHECK); } ComptrollerInterface oldComptroller = comptroller; // Ensure invoke comptroller.isComptroller() returns true require(newComptroller.isComptroller(), "marker method returned false"); // Set market's comptroller to newComptroller comptroller = newComptroller; // Emit NewComptroller(oldComptroller, newComptroller) emit NewComptroller(oldComptroller, newComptroller); return uint(Error.NO_ERROR); } /** * @notice accrues interest and sets a new reserve factor for the protocol using _setReserveFactorFresh * @dev Admin function to accrue interest and set a new reserve factor * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function _setReserveFactor(uint newReserveFactorMantissa) external nonReentrant returns (uint) { uint error = accrueInterest(); if (error != uint(Error.NO_ERROR)) { // accrueInterest emits logs on errors, but on top of that we want to log the fact that an attempted reserve factor change failed. return fail(Error(error), FailureInfo.SET_RESERVE_FACTOR_ACCRUE_INTEREST_FAILED); } // _setReserveFactorFresh emits reserve-factor-specific logs on errors, so we don't need to. return _setReserveFactorFresh(newReserveFactorMantissa); } /** * @notice Sets a new reserve factor for the protocol (*requires fresh interest accrual) * @dev Admin function to set a new reserve factor * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function _setReserveFactorFresh(uint newReserveFactorMantissa) internal returns (uint) { // Check caller is admin if (msg.sender != admin) { return fail(Error.UNAUTHORIZED, FailureInfo.SET_RESERVE_FACTOR_ADMIN_CHECK); } // Verify market's block number equals current block number if (accrualBlockNumber != getBlockNumber()) { return fail(Error.MARKET_NOT_FRESH, FailureInfo.SET_RESERVE_FACTOR_FRESH_CHECK); } // Check newReserveFactor ≤ maxReserveFactor if (newReserveFactorMantissa > reserveFactorMaxMantissa) { return fail(Error.BAD_INPUT, FailureInfo.SET_RESERVE_FACTOR_BOUNDS_CHECK); } uint oldReserveFactorMantissa = reserveFactorMantissa; reserveFactorMantissa = newReserveFactorMantissa; emit NewReserveFactor(oldReserveFactorMantissa, newReserveFactorMantissa); return uint(Error.NO_ERROR); } /** * @notice Accrues interest and reduces reserves by transferring from msg.sender * @param addAmount Amount of addition to reserves * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function _addReservesInternal(uint addAmount) internal nonReentrant returns (uint) { uint error = accrueInterest(); if (error != uint(Error.NO_ERROR)) { // accrueInterest emits logs on errors, but on top of that we want to log the fact that an attempted reduce reserves failed. return fail(Error(error), FailureInfo.ADD_RESERVES_ACCRUE_INTEREST_FAILED); } // _addReservesFresh emits reserve-addition-specific logs on errors, so we don't need to. (error, ) = _addReservesFresh(addAmount); return error; } /** * @notice Add reserves by transferring from caller * @dev Requires fresh interest accrual * @param addAmount Amount of addition to reserves * @return (uint, uint) An error code (0=success, otherwise a failure (see ErrorReporter.sol for details)) and the actual amount added, net token fees */ function _addReservesFresh(uint addAmount) internal returns (uint, uint) { // totalReserves + actualAddAmount uint totalReservesNew; uint actualAddAmount; // We fail gracefully unless market's block number equals current block number if (accrualBlockNumber != getBlockNumber()) { return (fail(Error.MARKET_NOT_FRESH, FailureInfo.ADD_RESERVES_FRESH_CHECK), actualAddAmount); } ///////////////////////// // EFFECTS & INTERACTIONS // (No safe failures beyond this point) /* * We call doTransferIn for the caller and the addAmount * Note: The sToken must handle variations between ERC-20 and ETH underlying. * On success, the sToken holds an additional addAmount of cash. * doTransferIn reverts if anything goes wrong, since we can't be sure if side effects occurred. * it returns the amount actually transferred, in case of a fee. */ actualAddAmount = doTransferIn(msg.sender, addAmount); totalReservesNew = totalReserves + actualAddAmount; /* Revert on overflow */ require(totalReservesNew >= totalReserves, "add reserves unexpected overflow"); // Store reserves[n+1] = reserves[n] + actualAddAmount totalReserves = totalReservesNew; /* Emit NewReserves(admin, actualAddAmount, reserves[n+1]) */ emit ReservesAdded(msg.sender, actualAddAmount, totalReservesNew); /* Return (NO_ERROR, actualAddAmount) */ return (uint(Error.NO_ERROR), actualAddAmount); } /** * @notice Accrues interest and reduces reserves by transferring to admin * @param reduceAmount Amount of reduction to reserves * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function _reduceReserves(uint reduceAmount) external nonReentrant returns (uint) { uint error = accrueInterest(); if (error != uint(Error.NO_ERROR)) { // accrueInterest emits logs on errors, but on top of that we want to log the fact that an attempted reduce reserves failed. return fail(Error(error), FailureInfo.REDUCE_RESERVES_ACCRUE_INTEREST_FAILED); } // _reduceReservesFresh emits reserve-reduction-specific logs on errors, so we don't need to. return _reduceReservesFresh(reduceAmount); } /** * @notice Reduces reserves by transferring to admin * @dev Requires fresh interest accrual * @param reduceAmount Amount of reduction to reserves * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function _reduceReservesFresh(uint reduceAmount) internal returns (uint) { // totalReserves - reduceAmount uint totalReservesNew; // Check caller is admin if (msg.sender != admin) { return fail(Error.UNAUTHORIZED, FailureInfo.REDUCE_RESERVES_ADMIN_CHECK); } // We fail gracefully unless market's block number equals current block number if (accrualBlockNumber != getBlockNumber()) { return fail(Error.MARKET_NOT_FRESH, FailureInfo.REDUCE_RESERVES_FRESH_CHECK); } // Fail gracefully if protocol has insufficient underlying cash if (getCashPrior() < reduceAmount) { return fail(Error.TOKEN_INSUFFICIENT_CASH, FailureInfo.REDUCE_RESERVES_CASH_NOT_AVAILABLE); } // Check reduceAmount ≤ reserves[n] (totalReserves) if (reduceAmount > totalReserves) { return fail(Error.BAD_INPUT, FailureInfo.REDUCE_RESERVES_VALIDATION); } ///////////////////////// // EFFECTS & INTERACTIONS // (No safe failures beyond this point) totalReservesNew = totalReserves - reduceAmount; // We checked reduceAmount <= totalReserves above, so this should never revert. require(totalReservesNew <= totalReserves, "reduce reserves unexpected underflow"); // Store reserves[n+1] = reserves[n] - reduceAmount totalReserves = totalReservesNew; // doTransferOut reverts if anything goes wrong, since we can't be sure if side effects occurred. doTransferOut(admin, reduceAmount); emit ReservesReduced(admin, reduceAmount, totalReservesNew); return uint(Error.NO_ERROR); } /** * @notice Accrues interest and reduces reserves by transferring to reserve * @param reduceAmount Amount of reduction to reserves * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function _transferReserves(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.TRANSFER_RESERVES_ACCRUE_INTEREST_FAILED); } // _transferReservesFresh emits reserve-reduction-specific logs on errors, so we don't need to. return _transferReservesFresh(reduceAmount); } /** * @notice Reduces reserves by transferring to reserve * @param reduceAmount Amount of reduction to reserves * @dev Requires fresh interest accrual * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function _transferReservesFresh(uint reduceAmount) internal returns (uint) { // totalReserves - reduceAmount uint totalReservesNew; // Check caller is reserveGuardian if (msg.sender != IComptroller(address(comptroller)).reserveGuardian()) { return fail(Error.UNAUTHORIZED, FailureInfo.TRANSFER_RESERVES_ADMIN_CHECK); } // We fail gracefully unless market's block number equals current block number if (accrualBlockNumber != getBlockNumber()) { return fail(Error.MARKET_NOT_FRESH, FailureInfo.TRANSFER_RESERVES_FRESH_CHECK); } // Fail gracefully if protocol has insufficient underlying cash if (getCashPrior() < reduceAmount) { return fail(Error.TOKEN_INSUFFICIENT_CASH, FailureInfo.TRANSFER_RESERVES_CASH_NOT_AVAILABLE); } // Check reduceAmount ≤ reserves[n] (totalReserves) if (reduceAmount > totalReserves) { return fail(Error.BAD_INPUT, FailureInfo.TRANSFER_RESERVES_VALIDATION); } ///////////////////////// // EFFECTS & INTERACTIONS // (No safe failures beyond this point) totalReservesNew = totalReserves - reduceAmount; // We checked reduceAmount <= totalReserves above, so this should never revert. require(totalReservesNew <= totalReserves, "reduce reserves unexpected underflow"); // Store reserves[n+1] = reserves[n] - reduceAmount totalReserves = totalReservesNew; // doTransferOut reverts if anything goes wrong, since we can't be sure if side effects occurred. doTransferOut(IComptroller(address(comptroller)).reserveAddress(), reduceAmount); emit TransferReserves(IComptroller(address(comptroller)).reserveGuardian(), IComptroller(address(comptroller)).reserveAddress(), reduceAmount, totalReservesNew); return uint(Error.NO_ERROR); } /** * @notice accrues interest and updates the interest rate model using _setInterestRateModelFresh * @dev Admin function to accrue interest and update the interest rate model * @param newInterestRateModel the new interest rate model to use * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function _setInterestRateModel(InterestRateModel newInterestRateModel) public returns (uint) { uint error = accrueInterest(); if (error != uint(Error.NO_ERROR)) { // accrueInterest emits logs on errors, but on top of that we want to log the fact that an attempted change of interest rate model failed return fail(Error(error), FailureInfo.SET_INTEREST_RATE_MODEL_ACCRUE_INTEREST_FAILED); } // _setInterestRateModelFresh emits interest-rate-model-update-specific logs on errors, so we don't need to. return _setInterestRateModelFresh(newInterestRateModel); } /** * @notice updates the interest rate model (*requires fresh interest accrual) * @dev Admin function to update the interest rate model * @param newInterestRateModel the new interest rate model to use * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function _setInterestRateModelFresh(InterestRateModel newInterestRateModel) internal returns (uint) { // Used to store old model for use in the event that is emitted on success InterestRateModel oldInterestRateModel; // Check caller is admin if (msg.sender != admin) { return fail(Error.UNAUTHORIZED, FailureInfo.SET_INTEREST_RATE_MODEL_OWNER_CHECK); } // We fail gracefully unless market's block number equals current block number if (accrualBlockNumber != getBlockNumber()) { return fail(Error.MARKET_NOT_FRESH, FailureInfo.SET_INTEREST_RATE_MODEL_FRESH_CHECK); } // Track the market's current interest rate model oldInterestRateModel = interestRateModel; // Ensure invoke newInterestRateModel.isInterestRateModel() returns true require(newInterestRateModel.isInterestRateModel(), "marker method returned false"); // Set the interest rate model to newInterestRateModel interestRateModel = newInterestRateModel; // Emit NewMarketInterestRateModel(oldInterestRateModel, newInterestRateModel) emit NewMarketInterestRateModel(oldInterestRateModel, newInterestRateModel); return uint(Error.NO_ERROR); } /*** Safe Token ***/ /** * @notice Gets balance of this contract in terms of the underlying * @dev This excludes the value of the current message, if any * @return The quantity of underlying owned by this contract */ function getCashPrior() internal view returns (uint); /** * @dev Performs a transfer in, reverting upon failure. Returns the amount actually transferred to the protocol, in case of a fee. * This may revert due to insufficient balance or insufficient allowance. */ function doTransferIn(address from, uint amount) internal returns (uint); /** * @dev Performs a transfer out, ideally returning an explanatory error code upon failure tather than reverting. * If caller has not called checked protocol's balance, may revert due to insufficient cash held in the contract. * If caller has checked protocol's balance, and verified it is >= amount, this should not revert in normal conditions. */ function doTransferOut(address payable to, uint amount) internal; /*** Reentrancy Guard ***/ /** * @dev Prevents a contract from calling itself, directly or indirectly. */ modifier nonReentrant() { require(_notEntered, "re-entered"); _notEntered = false; _; _notEntered = true; // get a gas-refund post-Istanbul } } // File: contracts/SErc20.sol pragma solidity ^0.5.16; /** * @title Strike's SErc20 Contract * @notice STokens which wrap an EIP-20 underlying * @author Strike */ contract SErc20 is SToken, SErc20Interface { /** * @notice Initialize the new money market * @param underlying_ The address of the underlying asset * @param comptroller_ The address of the Comptroller * @param interestRateModel_ The address of the interest rate model * @param initialExchangeRateMantissa_ The initial exchange rate, scaled by 1e18 * @param name_ ERC-20 name of this token * @param symbol_ ERC-20 symbol of this token * @param decimals_ ERC-20 decimal precision of this token */ function initialize(address underlying_, ComptrollerInterface comptroller_, InterestRateModel interestRateModel_, uint initialExchangeRateMantissa_, string memory name_, string memory symbol_, uint8 decimals_) public { // SToken initialize does the bulk of the work super.initialize(comptroller_, interestRateModel_, initialExchangeRateMantissa_, name_, symbol_, decimals_); // Set underlying and sanity check it underlying = underlying_; EIP20Interface(underlying).totalSupply(); } /*** User Interface ***/ /** * @notice Sender supplies assets into the market and receives sTokens in exchange * @dev Accrues interest whether or not the operation succeeds, unless reverted * @param mintAmount The amount of the underlying asset to supply * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function mint(uint mintAmount) external returns (uint) { (uint err,) = mintInternal(mintAmount); return err; } /** * @notice Sender redeems sTokens in exchange for the underlying asset * @dev Accrues interest whether or not the operation succeeds, unless reverted * @param redeemTokens The number of sTokens 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 sTokens in exchange for a specified amount of underlying asset * @dev Accrues interest whether or not the operation succeeds, unless reverted * @param redeemAmount The amount of underlying to redeem * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function redeemUnderlying(uint redeemAmount) external returns (uint) { return redeemUnderlyingInternal(redeemAmount); } /** * @notice Sender borrows assets from the protocol to their own address * @param borrowAmount The amount of the underlying asset to borrow * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function borrow(uint borrowAmount) external returns (uint) { return borrowInternal(borrowAmount); } /** * @notice Sender repays their own borrow * @param repayAmount The amount to repay * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function repayBorrow(uint repayAmount) external returns (uint) { (uint err,) = repayBorrowInternal(repayAmount); return err; } /** * @notice Sender repays a borrow belonging to borrower * @param borrower the account with the debt being payed off * @param repayAmount The amount to repay * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function repayBorrowBehalf(address borrower, uint repayAmount) external returns (uint) { (uint err,) = repayBorrowBehalfInternal(borrower, repayAmount); return err; } /** * @notice The sender liquidates the borrowers collateral. * The collateral seized is transferred to the liquidator. * @param borrower The borrower of this sToken to be liquidated * @param repayAmount The amount of the underlying borrowed asset to repay * @param sTokenCollateral The market in which to seize collateral from the borrower * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function liquidateBorrow(address borrower, uint repayAmount, STokenInterface sTokenCollateral) external returns (uint) { (uint err,) = liquidateBorrowInternal(borrower, repayAmount, sTokenCollateral); return err; } /** * @notice The sender adds to reserves. * @param addAmount The amount fo underlying token to add as reserves * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function _addReserves(uint addAmount) external returns (uint) { return _addReservesInternal(addAmount); } /*** Safe Token ***/ /** * @notice Gets balance of this contract in terms of the underlying * @dev This excludes the value of the current message, if any * @return The quantity of underlying tokens owned by this contract */ function getCashPrior() internal view returns (uint) { EIP20Interface token = EIP20Interface(underlying); return token.balanceOf(address(this)); } /** * @dev Similar to EIP20 transfer, except it handles a False result from `transferFrom` and reverts in that case. * This will revert due to insufficient balance or insufficient allowance. * This function returns the actual amount received, * which may be less than `amount` if there is a fee attached to the transfer. * * Note: This wrapper safely handles non-standard 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 (uint) { EIP20NonStandardInterface token = EIP20NonStandardInterface(underlying); uint balanceBefore = EIP20Interface(underlying).balanceOf(address(this)); token.transferFrom(from, address(this), amount); bool success; assembly { switch returndatasize() case 0 { // This is a non-standard ERC-20 success := not(0) // set success to true } case 32 { // This is a compliant ERC-20 returndatacopy(0, 0, 32) success := mload(0) // Set `success = returndata` of external call } default { // This is an excessively non-compliant ERC-20, revert. revert(0, 0) } } require(success, "TOKEN_TRANSFER_IN_FAILED"); // Calculate the amount that was *actually* transferred uint balanceAfter = EIP20Interface(underlying).balanceOf(address(this)); require(balanceAfter >= balanceBefore, "TOKEN_TRANSFER_IN_OVERFLOW"); return balanceAfter - balanceBefore; // underflow already checked above, just subtract } /** * @dev Similar to EIP20 transfer, except it handles a False success from `transfer` and returns an explanatory * error code rather than reverting. If caller has not called checked protocol's balance, this may revert due to * insufficient cash held in this contract. If caller has checked protocol's balance prior to this call, and verified * it is >= amount, this should not revert in normal conditions. * * Note: This wrapper safely handles non-standard 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 { EIP20NonStandardInterface token = EIP20NonStandardInterface(underlying); token.transfer(to, amount); bool success; assembly { switch returndatasize() case 0 { // This is a non-standard ERC-20 success := not(0) // set success to true } case 32 { // This is a complaint ERC-20 returndatacopy(0, 0, 32) success := mload(0) // Set `success = returndata` of external call } default { // This is an excessively non-compliant ERC-20, revert. revert(0, 0) } } require(success, "TOKEN_TRANSFER_OUT_FAILED"); } } // File: contracts/SErc20Delegate.sol pragma solidity ^0.5.16; /** * @title Strike's SErc20Delegate Contract * @notice STokens which wrap an EIP-20 underlying and are delegated to * @author Strike */ contract SErc20Delegate is SErc20, SDelegateInterface { /** * @notice Construct an empty delegate */ constructor() public {} /** * @notice Called by the delegator on a delegate to initialize it for duty * @param data The encoded bytes data for any initialization */ function _becomeImplementation(bytes memory data) public { // Shh -- currently unused data; // Shh -- we don't ever want this hook to be marked pure if (false) { implementation = address(0); } require(msg.sender == admin, "only the admin may call _becomeImplementation"); } /** * @notice Called by the delegator on a delegate to forfeit its responsibility */ function _resignImplementation() public { // Shh -- we don't ever want this hook to be marked pure if (false) { implementation = address(0); } require(msg.sender == admin, "only the admin may call _resignImplementation"); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"cashPrior","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"interestAccumulated","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"borrowIndex","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalBorrows","type":"uint256"}],"name":"AccrueInterest","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"borrower","type":"address"},{"indexed":false,"internalType":"uint256","name":"borrowAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"accountBorrows","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalBorrows","type":"uint256"}],"name":"Borrow","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"error","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"info","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"detail","type":"uint256"}],"name":"Failure","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"liquidator","type":"address"},{"indexed":false,"internalType":"address","name":"borrower","type":"address"},{"indexed":false,"internalType":"uint256","name":"repayAmount","type":"uint256"},{"indexed":false,"internalType":"address","name":"sTokenCollateral","type":"address"},{"indexed":false,"internalType":"uint256","name":"seizeTokens","type":"uint256"}],"name":"LiquidateBorrow","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"uint256","name":"mintAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"mintTokens","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"NewAdmin","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"contract ComptrollerInterface","name":"oldComptroller","type":"address"},{"indexed":false,"internalType":"contract ComptrollerInterface","name":"newComptroller","type":"address"}],"name":"NewComptroller","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"contract InterestRateModel","name":"oldInterestRateModel","type":"address"},{"indexed":false,"internalType":"contract InterestRateModel","name":"newInterestRateModel","type":"address"}],"name":"NewMarketInterestRateModel","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldPendingAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newPendingAdmin","type":"address"}],"name":"NewPendingAdmin","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldReserveFactorMantissa","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newReserveFactorMantissa","type":"uint256"}],"name":"NewReserveFactor","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"redeemer","type":"address"},{"indexed":false,"internalType":"uint256","name":"redeemAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"redeemTokens","type":"uint256"}],"name":"Redeem","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"payer","type":"address"},{"indexed":false,"internalType":"address","name":"borrower","type":"address"},{"indexed":false,"internalType":"uint256","name":"repayAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"accountBorrows","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalBorrows","type":"uint256"}],"name":"RepayBorrow","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"benefactor","type":"address"},{"indexed":false,"internalType":"uint256","name":"addAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newTotalReserves","type":"uint256"}],"name":"ReservesAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"admin","type":"address"},{"indexed":false,"internalType":"uint256","name":"reduceAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newTotalReserves","type":"uint256"}],"name":"ReservesReduced","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"guardian","type":"address"},{"indexed":false,"internalType":"address","name":"reserveAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"reduceAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newTotalReserves","type":"uint256"}],"name":"TransferReserves","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":"addAmount","type":"uint256"}],"name":"_addReserves","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes","name":"data","type":"bytes"}],"name":"_becomeImplementation","outputs":[],"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":[],"name":"_resignImplementation","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"contract ComptrollerInterface","name":"newComptroller","type":"address"}],"name":"_setComptroller","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"contract InterestRateModel","name":"newInterestRateModel","type":"address"}],"name":"_setInterestRateModel","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address payable","name":"newPendingAdmin","type":"address"}],"name":"_setPendingAdmin","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"newReserveFactorMantissa","type":"uint256"}],"name":"_setReserveFactor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"reduceAmount","type":"uint256"}],"name":"_transferReserves","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"accrualBlockNumber","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"accrueInterest","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"admin","outputs":[{"internalType":"address payable","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOfUnderlying","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"borrowAmount","type":"uint256"}],"name":"borrow","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"borrowBalanceCurrent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"borrowBalanceStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"borrowIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"borrowRatePerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"comptroller","outputs":[{"internalType":"contract ComptrollerInterface","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"exchangeRateCurrent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"exchangeRateStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getAccountSnapshot","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getCash","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"underlying_","type":"address"},{"internalType":"contract ComptrollerInterface","name":"comptroller_","type":"address"},{"internalType":"contract InterestRateModel","name":"interestRateModel_","type":"address"},{"internalType":"uint256","name":"initialExchangeRateMantissa_","type":"uint256"},{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"uint8","name":"decimals_","type":"uint8"}],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"contract ComptrollerInterface","name":"comptroller_","type":"address"},{"internalType":"contract InterestRateModel","name":"interestRateModel_","type":"address"},{"internalType":"uint256","name":"initialExchangeRateMantissa_","type":"uint256"},{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"uint8","name":"decimals_","type":"uint8"}],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"interestRateModel","outputs":[{"internalType":"contract InterestRateModel","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isSToken","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 STokenInterface","name":"sTokenCollateral","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":true,"inputs":[],"name":"protocolSeizeShareMantissa","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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
608060405234801561001057600080fd5b506159e180620000216000396000f3fe608060405234801561001057600080fd5b50600436106103275760003560e01c806370a08231116101b8578063b2a02ff111610104578063e9c714f2116100a2578063f5e3c4621161007c578063f5e3c46214610b5f578063f851a44014610b95578063f8f9da2814610b9d578063fca7820b14610ba557610327565b8063e9c714f214610b29578063f2b3abbd14610b31578063f3fdb15a14610b5757610327565b8063c37f68e2116100de578063c37f68e214610a75578063c5ebeaec14610ac1578063db006a7514610ade578063dd62ed3e14610afb57610327565b8063b2a02ff114610a11578063b71d1a0c14610a47578063bd6d894d14610a6d57610327565b806395dd919311610171578063a6afed951161014b578063a6afed95146109cd578063a9059cbb146109d5578063aa5af0fd14610a01578063ae9d70b014610a0957610327565b806395dd91931461083c57806399d8c1b414610862578063a0712d68146109b057610327565b806370a08231146107c457806373acee98146107ea5780637741d09c146107f2578063852a12e31461080f5780638f840ddd1461082c57806395d89b411461083457610327565b8063313ce5671161027757806356e6772811610230578063601a0bf11161020a578063601a0bf11461078f5780636752e702146107ac5780636c540baf146107b45780636f307dc3146107bc57610327565b806356e67728146106db5780635c60da1b1461077f5780635fe3b5671461078757610327565b8063313ce567146106445780633af9e669146106625780633b1d21a2146106885780633e941010146106905780634576b5db146106ad57806347bd3718146106d357610327565b806317bfdfbc116102e45780631a31d465116102be5780631a31d4651461046857806323b872dd146105be5780632608f818146105f4578063267822471461062057610327565b806317bfdfbc1461043257806318160ddd14610458578063182df0f51461046057610327565b806306fdde031461032c578063095ea7b3146103a957806309839b52146103e95780630e752702146103f1578063153ab50514610420578063173b99041461042a575b600080fd5b610334610bc2565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561036e578181015183820152602001610356565b50505050905090810190601f16801561039b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6103d5600480360360408110156103bf57600080fd5b506001600160a01b038135169060200135610c4f565b604080519115158252519081900360200190f35b6103d5610cbc565b61040e6004803603602081101561040757600080fd5b5035610cc1565b60408051918252519081900360200190f35b610428610cd7565b005b61040e610d27565b61040e6004803603602081101561044857600080fd5b50356001600160a01b0316610d2d565b61040e610ded565b61040e610df3565b610428600480360360e081101561047e57600080fd5b6001600160a01b03823581169260208101358216926040820135909216916060820135919081019060a081016080820135600160201b8111156104c057600080fd5b8201836020820111156104d257600080fd5b803590602001918460018302840111600160201b831117156104f357600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561054557600080fd5b82018360208201111561055757600080fd5b803590602001918460018302840111600160201b8311171561057857600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505050903560ff169150610e569050565b6103d5600480360360608110156105d457600080fd5b506001600160a01b03813581169160208101359091169060400135610ef5565b61040e6004803603604081101561060a57600080fd5b506001600160a01b038135169060200135610f67565b610628610f7d565b604080516001600160a01b039092168252519081900360200190f35b61064c610f8c565b6040805160ff9092168252519081900360200190f35b61040e6004803603602081101561067857600080fd5b50356001600160a01b0316610f95565b61040e61104b565b61040e600480360360208110156106a657600080fd5b503561105a565b61040e600480360360208110156106c357600080fd5b50356001600160a01b0316611065565b61040e6111ba565b610428600480360360208110156106f157600080fd5b810190602081018135600160201b81111561070b57600080fd5b82018360208201111561071d57600080fd5b803590602001918460018302840111600160201b8311171561073e57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506111c0945050505050565b610628611211565b610628611220565b61040e600480360360208110156107a557600080fd5b503561122f565b61040e6112ca565b61040e6112d5565b6106286112db565b61040e600480360360208110156107da57600080fd5b50356001600160a01b03166112ea565b61040e611305565b61040e6004803603602081101561080857600080fd5b50356113bb565b61040e6004803603602081101561082557600080fd5b5035611439565b61040e611444565b61033461144a565b61040e6004803603602081101561085257600080fd5b50356001600160a01b03166114a2565b610428600480360360c081101561087857600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b8111156108b257600080fd5b8201836020820111156108c457600080fd5b803590602001918460018302840111600160201b831117156108e557600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561093757600080fd5b82018360208201111561094957600080fd5b803590602001918460018302840111600160201b8311171561096a57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505050903560ff1691506114ff9050565b61040e600480360360208110156109c657600080fd5b50356116e6565b61040e6116f2565b6103d5600480360360408110156109eb57600080fd5b506001600160a01b038135169060200135611a4a565b61040e611abb565b61040e611ac1565b61040e60048036036060811015610a2757600080fd5b506001600160a01b03813581169160208101359091169060400135611b60565b61040e60048036036020811015610a5d57600080fd5b50356001600160a01b0316611bd1565b61040e611c5d565b610a9b60048036036020811015610a8b57600080fd5b50356001600160a01b0316611d19565b604080519485526020850193909352838301919091526060830152519081900360800190f35b61040e60048036036020811015610ad757600080fd5b5035611dae565b61040e60048036036020811015610af457600080fd5b5035611db9565b61040e60048036036040811015610b1157600080fd5b506001600160a01b0381358116916020013516611dc4565b61040e611def565b61040e60048036036020811015610b4757600080fd5b50356001600160a01b0316611ef2565b610628611f2c565b61040e60048036036060811015610b7557600080fd5b506001600160a01b03813581169160208101359160409091013516611f3b565b610628611f53565b61040e611f67565b61040e60048036036020811015610bbb57600080fd5b5035611fcb565b60018054604080516020600284861615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610c475780601f10610c1c57610100808354040283529160200191610c47565b820191906000526020600020905b815481529060010190602001808311610c2a57829003601f168201915b505050505081565b336000818152600f602090815260408083206001600160a01b03871680855290835281842086905581518681529151939493909284927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929081900390910190a360019150505b92915050565b600181565b600080610ccd83612049565b509150505b919050565b60035461010090046001600160a01b03163314610d255760405162461bcd60e51b815260040180806020018281038252602d81526020018061577e602d913960400191505060405180910390fd5b565b60085481565b6000805460ff16610d72576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155610d846116f2565b14610dcf576040805162461bcd60e51b81526020600482015260166024820152751858d8dc9d59481a5b9d195c995cdd0819985a5b195960521b604482015290519081900360640190fd5b610dd8826114a2565b90505b6000805460ff19166001179055919050565b600d5481565b6000806000610e006120f2565b90925090506000826003811115610e1357fe5b14610e4f5760405162461bcd60e51b81526004018080602001828103825260358152602001806158cb6035913960400191505060405180910390fd5b9150505b90565b610e648686868686866114ff565b601180546001600160a01b0319166001600160a01b038981169190911791829055604080516318160ddd60e01b8152905192909116916318160ddd91600480820192602092909190829003018186803b158015610ec057600080fd5b505afa158015610ed4573d6000803e3d6000fd5b505050506040513d6020811015610eea57600080fd5b505050505050505050565b6000805460ff16610f3a576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155610f50338686866121a1565b1490506000805460ff191660011790559392505050565b600080610f7484846124af565b50949350505050565b6004546001600160a01b031681565b60035460ff1681565b6000610f9f61553f565b6040518060200160405280610fb2611c5d565b90526001600160a01b0384166000908152600e6020526040812054919250908190610fde90849061255a565b90925090506000826003811115610ff157fe5b14611043576040805162461bcd60e51b815260206004820152601f60248201527f62616c616e636520636f756c64206e6f742062652063616c63756c6174656400604482015290519081900360640190fd5b949350505050565b60006110556125ae565b905090565b6000610cb68261262e565b60035460009061010090046001600160a01b031633146110925761108b6001603f6126c2565b9050610cd2565b60055460408051623f1ee960e11b815290516001600160a01b0392831692851691627e3dd2916004808301926020929190829003018186803b1580156110d757600080fd5b505afa1580156110eb573d6000803e3d6000fd5b505050506040513d602081101561110157600080fd5b5051611154576040805162461bcd60e51b815260206004820152601c60248201527f6d61726b6572206d6574686f642072657475726e65642066616c736500000000604482015290519081900360640190fd5b600580546001600160a01b0319166001600160a01b03858116918217909255604080519284168352602083019190915280517f7ac369dbd14fa5ea3f473ed67cc9d598964a77501540ba6751eb0b3decf5870d9281900390910190a160005b9392505050565b600b5481565b60035461010090046001600160a01b0316331461120e5760405162461bcd60e51b815260040180806020018281038252602d815260200180615980602d913960400191505060405180910390fd5b50565b6012546001600160a01b031681565b6005546001600160a01b031681565b6000805460ff16611274576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556112866116f2565b905080156112ac576112a481601081111561129d57fe5b60306126c2565b915050610ddb565b6112b583612728565b9150506000805460ff19166001179055919050565b66b1a2bc2ec5000081565b60095481565b6011546001600160a01b031681565b6001600160a01b03166000908152600e602052604090205490565b6000805460ff1661134a576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff1916815561135c6116f2565b146113a7576040805162461bcd60e51b81526020600482015260166024820152751858d8dc9d59481a5b9d195c995cdd0819985a5b195960521b604482015290519081900360640190fd5b50600b546000805460ff1916600117905590565b6000805460ff16611400576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556114126116f2565b90508015611430576112a481601081111561142957fe5b60516126c2565b6112b58361285b565b6000610cb682612b3c565b600c5481565b6002805460408051602060018416156101000260001901909316849004601f81018490048402820184019092528181529291830182828015610c475780601f10610c1c57610100808354040283529160200191610c47565b60008060006114b084612bbd565b909250905060008260038111156114c357fe5b146111b35760405162461bcd60e51b81526004018080602001828103825260378152602001806157d66037913960400191505060405180910390fd5b60035461010090046001600160a01b0316331461154d5760405162461bcd60e51b81526004018080602001828103825260248152602001806156e56024913960400191505060405180910390fd5b60095415801561155d5750600a54155b6115985760405162461bcd60e51b81526004018080602001828103825260238152602001806157096023913960400191505060405180910390fd5b6007849055836115d95760405162461bcd60e51b815260040180806020018281038252603081526020018061572c6030913960400191505060405180910390fd5b60006115e487611065565b90508015611639576040805162461bcd60e51b815260206004820152601a60248201527f73657474696e6720636f6d7074726f6c6c6572206661696c6564000000000000604482015290519081900360640190fd5b611641612c71565b600955670de0b6b3a7640000600a5561165986612c75565b905080156116985760405162461bcd60e51b815260040180806020018281038252602281526020018061575c6022913960400191505060405180910390fd5b83516116ab906001906020870190615552565b5082516116bf906002906020860190615552565b50506003805460ff90921660ff199283161790556000805490911660011790555050505050565b600080610ccd83612dea565b6000806116fd612c71565b6009549091508082141561171657600092505050610e53565b60006117206125ae565b600b54600c54600a54600654604080516315f2405360e01b815260048101879052602481018690526044810185905290519596509394929391926000926001600160a01b03909216916315f24053916064808301926020929190829003018186803b15801561178e57600080fd5b505afa1580156117a2573d6000803e3d6000fd5b505050506040513d60208110156117b857600080fd5b5051905065048c27395000811115611817576040805162461bcd60e51b815260206004820152601c60248201527f626f72726f772072617465206973206162737572646c79206869676800000000604482015290519081900360640190fd5b6000806118248989612e6b565b9092509050600082600381111561183757fe5b14611889576040805162461bcd60e51b815260206004820152601f60248201527f636f756c64206e6f742063616c63756c61746520626c6f636b2064656c746100604482015290519081900360640190fd5b61189161553f565b6000806000806118af60405180602001604052808a81525087612e8e565b909750945060008760038111156118c257fe5b146118f4576118df600960068960038111156118da57fe5b612ef6565b9e505050505050505050505050505050610e53565b6118fe858c61255a565b9097509350600087600381111561191157fe5b14611929576118df600960018960038111156118da57fe5b611933848c612f5c565b9097509250600087600381111561194657fe5b1461195e576118df600960048960038111156118da57fe5b6119796040518060200160405280600854815250858c612f82565b9097509150600087600381111561198c57fe5b146119a4576118df600960058960038111156118da57fe5b6119af858a8b612f82565b909750905060008760038111156119c257fe5b146119da576118df600960038960038111156118da57fe5b60098e9055600a819055600b839055600c829055604080518d8152602081018690528082018390526060810185905290517f4dec04e750ca11537cabcd8a9eab06494de08da3735bc8871cd41250e190bc049181900360800190a160009e50505050505050505050505050505090565b6000805460ff16611a8f576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155611aa5333386866121a1565b1490506000805460ff1916600117905592915050565b600a5481565b6006546000906001600160a01b031663b8168816611add6125ae565b600b54600c546008546040518563ffffffff1660e01b81526004018085815260200184815260200183815260200182815260200194505050505060206040518083038186803b158015611b2f57600080fd5b505afa158015611b43573d6000803e3d6000fd5b505050506040513d6020811015611b5957600080fd5b5051905090565b6000805460ff16611ba5576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19169055611bbb33858585612fde565b90506000805460ff191660011790559392505050565b60035460009061010090046001600160a01b03163314611bf75761108b600160456126c2565b600480546001600160a01b038481166001600160a01b0319831681179093556040805191909216808252602082019390935281517fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a9929181900390910190a160006111b3565b6000805460ff16611ca2576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155611cb46116f2565b14611cff576040805162461bcd60e51b81526020600482015260166024820152751858d8dc9d59481a5b9d195c995cdd0819985a5b195960521b604482015290519081900360640190fd5b611d07610df3565b90506000805460ff1916600117905590565b6001600160a01b0381166000908152600e6020526040812054819081908190818080611d4489612bbd565b935090506000816003811115611d5657fe5b14611d745760095b975060009650869550859450611da79350505050565b611d7c6120f2565b925090506000816003811115611d8e57fe5b14611d9a576009611d5e565b5060009650919450925090505b9193509193565b6000610cb68261348e565b6000610cb68261350d565b6001600160a01b039182166000908152600f6020908152604080832093909416825291909152205490565b6004546000906001600160a01b031633141580611e0a575033155b15611e2257611e1b600160006126c2565b9050610e53565b60038054600480546001600160a01b03818116610100818102610100600160a81b0319871617968790556001600160a01b031990931690935560408051948390048216808652929095041660208401528351909391927ff9ffabca9c8276e99321725bcb43fb076a6c66a54b7f21c4e8146d8519b417dc92908290030190a1600454604080516001600160a01b038085168252909216602083015280517fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a99281900390910190a160009250505090565b600080611efd6116f2565b90508015611f2357611f1b816010811115611f1457fe5b60406126c2565b915050610cd2565b6111b383612c75565b6006546001600160a01b031681565b600080611f49858585613587565b5095945050505050565b60035461010090046001600160a01b031681565b6006546000906001600160a01b03166315f24053611f836125ae565b600b54600c546040518463ffffffff1660e01b815260040180848152602001838152602001828152602001935050505060206040518083038186803b158015611b2f57600080fd5b6000805460ff16612010576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556120226116f2565b90508015612040576112a481601081111561203957fe5b60466126c2565b6112b5836136b9565b60008054819060ff16612090576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556120a26116f2565b905080156120cd576120c08160108111156120b957fe5b60366126c2565b9250600091506120de9050565b6120d8333386613761565b92509250505b6000805460ff191660011790559092909150565b600d5460009081908061210d5750506007546000915061219d565b60006121176125ae565b9050600061212361553f565b600061213484600b54600c54613b46565b93509050600081600381111561214657fe5b1461215b5795506000945061219d9350505050565b6121658386613b84565b92509050600081600381111561217757fe5b1461218c5795506000945061219d9350505050565b505160009550935061219d92505050565b9091565b600554604080516317b9b84b60e31b81523060048201526001600160a01b03868116602483015285811660448301526064820185905291516000938493169163bdcdc25891608480830192602092919082900301818787803b15801561220657600080fd5b505af115801561221a573d6000803e3d6000fd5b505050506040513d602081101561223057600080fd5b50519050801561224f576122476003604a83612ef6565b915050611043565b836001600160a01b0316856001600160a01b03161415612275576122476002604b6126c2565b60006001600160a01b03878116908716141561229457506000196122bc565b506001600160a01b038086166000908152600f60209081526040808320938a16835292905220545b6000806000806122cc8589612e6b565b909450925060008460038111156122df57fe5b146122fd576122f06009604b6126c2565b9650505050505050611043565b6001600160a01b038a166000908152600e60205260409020546123209089612e6b565b9094509150600084600381111561233357fe5b14612344576122f06009604c6126c2565b6001600160a01b0389166000908152600e60205260409020546123679089612f5c565b9094509050600084600381111561237a57fe5b1461238b576122f06009604d6126c2565b6001600160a01b03808b166000908152600e6020526040808220859055918b1681522081905560001985146123e3576001600160a01b03808b166000908152600f60209081526040808320938f168352929052208390555b886001600160a01b03168a6001600160a01b03166000805160206158478339815191528a6040518082815260200191505060405180910390a36005546040805163352b4a3f60e11b81523060048201526001600160a01b038d811660248301528c81166044830152606482018c905291519190921691636a56947e91608480830192600092919082900301818387803b15801561247f57600080fd5b505af1158015612493573d6000803e3d6000fd5b50600092506124a0915050565b9b9a5050505050505050505050565b60008054819060ff166124f6576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556125086116f2565b905080156125335761252681601081111561251f57fe5b60356126c2565b9250600091506125449050565b61253e338686613761565b92509250505b6000805460ff1916600117905590939092509050565b600080600061256761553f565b6125718686612e8e565b9092509050600082600381111561258457fe5b1461259557509150600090506125a7565b60006125a082613c34565b9350935050505b9250929050565b601154604080516370a0823160e01b815230600482015290516000926001600160a01b03169182916370a0823191602480820192602092909190829003018186803b1580156125fc57600080fd5b505afa158015612610573d6000803e3d6000fd5b505050506040513d602081101561262657600080fd5b505191505090565b6000805460ff16612673576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556126856116f2565b905080156126a3576112a481601081111561269c57fe5b604e6126c2565b6126ac83613c43565b509150506000805460ff19166001179055919050565b60007f45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa08360108111156126f157fe5b8360558111156126fd57fe5b604080519283526020830191909152600082820152519081900360600190a18260108111156111b357fe5b600354600090819061010090046001600160a01b0316331461275057611f1b600160316126c2565b612758612c71565b6009541461276c57611f1b600a60336126c2565b826127756125ae565b101561278757611f1b600e60326126c2565b600c5483111561279d57611f1b600260346126c2565b50600c54828103908111156127e35760405162461bcd60e51b815260040180806020018281038252602481526020018061595c6024913960400191505060405180910390fd5b600c8190556003546128039061010090046001600160a01b031684613d2b565b600354604080516101009092046001600160a01b0316825260208201859052818101839052517f3bad0c59cf2f06e7314077049f48a93578cd16f5ef92329f1dab1420a99c177e916060908290030190a160006111b3565b600080600560009054906101000a90046001600160a01b03166001600160a01b0316630d983cc66040518163ffffffff1660e01b815260040160206040518083038186803b1580156128ac57600080fd5b505afa1580156128c0573d6000803e3d6000fd5b505050506040513d60208110156128d657600080fd5b50516001600160a01b031633146128f357611f1b600160526126c2565b6128fb612c71565b6009541461290f57611f1b600a60546126c2565b826129186125ae565b101561292a57611f1b600e60536126c2565b600c5483111561294057611f1b600260556126c2565b50600c54828103908111156129865760405162461bcd60e51b815260040180806020018281038252602481526020018061595c6024913960400191505060405180910390fd5b600c8190556005546040805163f79ed94b60e01b81529051612a03926001600160a01b03169163f79ed94b916004808301926020929190829003018186803b1580156129d157600080fd5b505afa1580156129e5573d6000803e3d6000fd5b505050506040513d60208110156129fb57600080fd5b505184613d2b565b600554604080516306cc1e6360e11b815290517fdf5031b8923cbae66913909bcc9c30d689c67ddd9f4ce6c0ecf81e42d16c6f0a926001600160a01b031691630d983cc6916004808301926020929190829003018186803b158015612a6757600080fd5b505afa158015612a7b573d6000803e3d6000fd5b505050506040513d6020811015612a9157600080fd5b50516005546040805163f79ed94b60e01b815290516001600160a01b039092169163f79ed94b91600480820192602092909190829003018186803b158015612ad857600080fd5b505afa158015612aec573d6000803e3d6000fd5b505050506040513d6020811015612b0257600080fd5b5051604080516001600160a01b03938416815292909116602083015281810186905260608201849052519081900360800190a160006111b3565b6000805460ff16612b81576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155612b936116f2565b90508015612bb1576112a4816010811115612baa57fe5b60276126c2565b6112b533600085613e22565b6001600160a01b038116600090815260106020526040812080548291829182918291612bf4575060009450849350612c6c92505050565b612c048160000154600a546142e9565b90945092506000846003811115612c1757fe5b14612c2c575091935060009250612c6c915050565b612c3a838260010154614328565b90945091506000846003811115612c4d57fe5b14612c62575091935060009250612c6c915050565b5060009450925050505b915091565b4390565b600354600090819061010090046001600160a01b03163314612c9d57611f1b600160426126c2565b612ca5612c71565b60095414612cb957611f1b600a60416126c2565b600660009054906101000a90046001600160a01b03169050826001600160a01b0316632191f92a6040518163ffffffff1660e01b815260040160206040518083038186803b158015612d0a57600080fd5b505afa158015612d1e573d6000803e3d6000fd5b505050506040513d6020811015612d3457600080fd5b5051612d87576040805162461bcd60e51b815260206004820152601c60248201527f6d61726b6572206d6574686f642072657475726e65642066616c736500000000604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b03858116918217909255604080519284168352602083019190915280517fedffc32e068c7c95dfd4bdfd5c4d939a084d6b11c4199eac8436ed234d72f9269281900390910190a160006111b3565b60008054819060ff16612e31576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155612e436116f2565b90508015612e61576120c0816010811115612e5a57fe5b601e6126c2565b6120d83385614353565b600080838311612e825750600090508183036125a7565b506003905060006125a7565b6000612e9861553f565b600080612ea98660000151866142e9565b90925090506000826003811115612ebc57fe5b14612edb575060408051602081019091526000815290925090506125a7565b60408051602081019091529081526000969095509350505050565b60007f45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa0846010811115612f2557fe5b846055811115612f3157fe5b604080519283526020830191909152818101859052519081900360600190a183601081111561104357fe5b600080838301848110612f74576000925090506125a7565b5060029150600090506125a7565b6000806000612f8f61553f565b612f998787612e8e565b90925090506000826003811115612fac57fe5b14612fbd5750915060009050612fd6565b612fcf612fc982613c34565b86612f5c565b9350935050505b935093915050565b6005546040805163d02f735160e01b81523060048201526001600160a01b038781166024830152868116604483015285811660648301526084820185905291516000938493169163d02f73519160a480830192602092919082900301818787803b15801561304b57600080fd5b505af115801561305f573d6000803e3d6000fd5b505050506040513d602081101561307557600080fd5b50519050801561308c576122476003601b83612ef6565b846001600160a01b0316846001600160a01b031614156130b2576122476006601c6126c2565b6130ba6155d0565b6001600160a01b0385166000908152600e60205260409020546130dd9085612e6b565b60208301819052828260038111156130f157fe5b60038111156130fc57fe5b905250600090508151600381111561311057fe5b146131355761312c6009601a836000015160038111156118da57fe5b92505050611043565b61315484604051806020016040528066b1a2bc2ec500008152506147b2565b608082018190526131669085906147da565b60608201526131736120f2565b60c083018190528282600381111561318757fe5b600381111561319257fe5b90525060009050815160038111156131a657fe5b146131f8576040805162461bcd60e51b815260206004820152601860248201527f65786368616e67652072617465206d617468206572726f720000000000000000604482015290519081900360640190fd5b61321860405180602001604052808360c00151815250826080015161255a565b60a083018190528282600381111561322c57fe5b600381111561323757fe5b905250600090508151600381111561324b57fe5b146132675761312c6009601a836000015160038111156118da57fe5b613277600c548260a00151614814565b60e0820152600d54608082015161328e91906147da565b6101008201526001600160a01b0386166000908152600e602052604090205460608201516132bc9190612f5c565b60408301819052828260038111156132d057fe5b60038111156132db57fe5b90525060009050815160038111156132ef57fe5b1461330b5761312c60096019836000015160038111156118da57fe5b60e0810151600c55610100810151600d556020808201516001600160a01b038088166000818152600e855260408082209490945583860151928b16808252908490209290925560608501518351908152925191939092600080516020615847833981519152929081900390910190a36080810151604080519182525130916001600160a01b038816916000805160206158478339815191529181900360200190a360a081015160e082015160408051308152602081019390935282810191909152517fa91e67c5ea634cd43a12c5a482724b03de01e85ca68702a53d0c2f45cb7c1dc59181900360600190a160055460408051636d35bf9160e01b81523060048201526001600160a01b038a81166024830152898116604483015288811660648301526084820188905291519190921691636d35bf919160a480830192600092919082900301818387803b15801561346257600080fd5b505af1158015613476573d6000803e3d6000fd5b5060009250613483915050565b979650505050505050565b6000805460ff166134d3576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556134e56116f2565b90508015613503576112a48160108111156134fc57fe5b60086126c2565b6112b5338461484a565b6000805460ff16613552576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556135646116f2565b9050801561357b576112a4816010811115612baa57fe5b6112b533846000613e22565b60008054819060ff166135ce576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556135e06116f2565b9050801561360b576135fe8160108111156135f757fe5b600f6126c2565b9250600091506136a29050565b836001600160a01b031663a6afed956040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561364657600080fd5b505af115801561365a573d6000803e3d6000fd5b505050506040513d602081101561367057600080fd5b505190508015613690576135fe81601081111561368957fe5b60106126c2565b61369c33878787614b58565b92509250505b6000805460ff191660011790559094909350915050565b60035460009061010090046001600160a01b031633146136df5761108b600160476126c2565b6136e7612c71565b600954146136fb5761108b600a60486126c2565b670de0b6b3a76400008211156137175761108b600260496126c2565b6008805490839055604080518281526020810185905281517faaa68312e2ea9d50e16af5068410ab56e1a1fd06037b1a35664812c30f821460929181900390910190a160006111b3565b60055460408051631200453160e11b81523060048201526001600160a01b0386811660248301528581166044830152606482018590529151600093849384939116916324008a629160848082019260209290919082900301818787803b1580156137ca57600080fd5b505af11580156137de573d6000803e3d6000fd5b505050506040513d60208110156137f457600080fd5b5051905080156138185761380b6003603883612ef6565b925060009150612fd69050565b613820612c71565b600954146138345761380b600a60396126c2565b61383c61561d565b6001600160a01b038616600090815260106020526040902060010154606082015261386686612bbd565b608083018190526020830182600381111561387d57fe5b600381111561388857fe5b905250600090508160200151600381111561389f57fe5b146138c9576138bb60096037836020015160038111156118da57fe5b935060009250612fd6915050565b6000198514156138e257608081015160408201526138ea565b604081018590525b6138f88782604001516150db565b60e08201819052608082015161390d91612e6b565b60a083018190526020830182600381111561392457fe5b600381111561392f57fe5b905250600090508160200151600381111561394657fe5b146139825760405162461bcd60e51b815260040180806020018281038252603a81526020018061580d603a913960400191505060405180910390fd5b613992600b548260e00151612e6b565b60c08301819052602083018260038111156139a957fe5b60038111156139b457fe5b90525060009050816020015160038111156139cb57fe5b14613a075760405162461bcd60e51b81526004018080602001828103825260318152602001806158676031913960400191505060405180910390fd5b60a080820180516001600160a01b03808a16600081815260106020908152604091829020948555600a5460019095019490945560c0870151600b81905560e088015195518251948f16855294840192909252828101949094526060820192909252608081019190915290517f1a2a22cb034d26d1854bdc6666a5b91fe25efbbb5dcad3b0355478d6f5c362a1929181900390910190a160055460e0820151606083015160408051631ededc9160e01b81523060048201526001600160a01b038c811660248301528b8116604483015260648201949094526084810192909252519190921691631ededc919160a480830192600092919082900301818387803b158015613b1257600080fd5b505af1158015613b26573d6000803e3d6000fd5b5060009250613b33915050565b8160e00151935093505050935093915050565b600080600080613b568787612f5c565b90925090506000826003811115613b6957fe5b14613b7a5750915060009050612fd6565b612fcf8186612e6b565b6000613b8e61553f565b600080613ba386670de0b6b3a76400006142e9565b90925090506000826003811115613bb657fe5b14613bd5575060408051602081019091526000815290925090506125a7565b600080613be28388614328565b90925090506000826003811115613bf557fe5b14613c17575060408051602081019091526000815290945092506125a7915050565b604080516020810190915290815260009890975095505050505050565b51670de0b6b3a7640000900490565b600080600080613c51612c71565b60095414613c7057613c65600a604f6126c2565b93509150612c6c9050565b613c7a33866150db565b905080600c54019150600c54821015613cda576040805162461bcd60e51b815260206004820181905260248201527f61646420726573657276657320756e6578706563746564206f766572666c6f77604482015290519081900360640190fd5b600c829055604080513381526020810183905280820184905290517fa91e67c5ea634cd43a12c5a482724b03de01e85ca68702a53d0c2f45cb7c1dc59181900360600190a160009350915050915091565b6011546040805163a9059cbb60e01b81526001600160a01b0385811660048301526024820185905291519190921691829163a9059cbb9160448082019260009290919082900301818387803b158015613d8357600080fd5b505af1158015613d97573d6000803e3d6000fd5b5050505060003d60008114613db35760208114613dbd57600080fd5b6000199150613dc9565b60206000803e60005191505b5080613e1c576040805162461bcd60e51b815260206004820152601960248201527f544f4b454e5f5452414e534645525f4f55545f4641494c454400000000000000604482015290519081900360640190fd5b50505050565b6000821580613e2f575081155b613e6a5760405162461bcd60e51b81526004018080602001828103825260348152602001806159286034913960400191505060405180910390fd5b613e72615663565b613e7a6120f2565b6040830181905260208301826003811115613e9157fe5b6003811115613e9c57fe5b9052506000905081602001516003811115613eb357fe5b14613ed757613ecf6009602b836020015160038111156118da57fe5b9150506111b3565b8315613f58576060810184905260408051602081018252908201518152613efe908561255a565b6080830181905260208301826003811115613f1557fe5b6003811115613f2057fe5b9052506000905081602001516003811115613f3757fe5b14613f5357613ecf60096029836020015160038111156118da57fe5b613fd1565b613f748360405180602001604052808460400151815250615325565b6060830181905260208301826003811115613f8b57fe5b6003811115613f9657fe5b9052506000905081602001516003811115613fad57fe5b14613fc957613ecf6009602a836020015160038111156118da57fe5b608081018390525b60055460608201516040805163eabe7d9160e01b81523060048201526001600160a01b03898116602483015260448201939093529051600093929092169163eabe7d919160648082019260209290919082900301818787803b15801561403657600080fd5b505af115801561404a573d6000803e3d6000fd5b505050506040513d602081101561406057600080fd5b505190508015614080576140776003602883612ef6565b925050506111b3565b614088612c71565b6009541461409c57614077600a602c6126c2565b6140ac600d548360600151612e6b565b60a08401819052602084018260038111156140c357fe5b60038111156140ce57fe5b90525060009050826020015160038111156140e557fe5b14614101576140776009602e846020015160038111156118da57fe5b6001600160a01b0386166000908152600e602052604090205460608301516141299190612e6b565b60c084018190526020840182600381111561414057fe5b600381111561414b57fe5b905250600090508260200151600381111561416257fe5b1461417e576140776009602d846020015160038111156118da57fe5b816080015161418b6125ae565b101561419d57614077600e602f6126c2565b6141ab868360800151613d2b565b60a0820151600d5560c08201516001600160a01b0387166000818152600e6020908152604091829020939093556060850151815190815290513093600080516020615847833981519152928290030190a36080820151606080840151604080516001600160a01b038b168152602081019490945283810191909152517fe5b754fb1abb7f01b499791d0b820ae3b6af3424ac1c59768edb53f4ec31a9299281900390910190a160055460808301516060840151604080516351dff98960e01b81523060048201526001600160a01b038b81166024830152604482019490945260648101929092525191909216916351dff98991608480830192600092919082900301818387803b1580156142be57600080fd5b505af11580156142d2573d6000803e3d6000fd5b50600092506142df915050565b9695505050505050565b600080836142fc575060009050806125a7565b8383028385828161430957fe5b041461431d575060029150600090506125a7565b6000925090506125a7565b6000808261433c57506001905060006125a7565b600083858161434757fe5b04915091509250929050565b60055460408051634ef4c3e160e01b81523060048201526001600160a01b03858116602483015260448201859052915160009384938493911691634ef4c3e19160648082019260209290919082900301818787803b1580156143b457600080fd5b505af11580156143c8573d6000803e3d6000fd5b505050506040513d60208110156143de57600080fd5b505190508015614402576143f56003601f83612ef6565b9250600091506125a79050565b61440a612c71565b6009541461441e576143f5600a60226126c2565b614426615663565b61442e6120f2565b604083018190526020830182600381111561444557fe5b600381111561445057fe5b905250600090508160200151600381111561446757fe5b146144915761448360096021836020015160038111156118da57fe5b9350600092506125a7915050565b61449b86866150db565b60c08201819052604080516020810182529083015181526144bc9190615325565b60608301819052602083018260038111156144d357fe5b60038111156144de57fe5b90525060009050816020015160038111156144f557fe5b14614547576040805162461bcd60e51b815260206004820181905260248201527f4d494e545f45584348414e47455f43414c43554c4154494f4e5f4641494c4544604482015290519081900360640190fd5b614557600d548260600151612f5c565b608083018190526020830182600381111561456e57fe5b600381111561457957fe5b905250600090508160200151600381111561459057fe5b146145cc5760405162461bcd60e51b81526004018080602001828103825260288152602001806159006028913960400191505060405180910390fd5b6001600160a01b0386166000908152600e602052604090205460608201516145f49190612f5c565b60a083018190526020830182600381111561460b57fe5b600381111561461657fe5b905250600090508160200151600381111561462d57fe5b146146695760405162461bcd60e51b815260040180806020018281038252602b8152602001806157ab602b913960400191505060405180910390fd5b6080810151600d5560a08101516001600160a01b0387166000818152600e60209081526040918290209390935560c084015160608086015183519485529484019190915282820193909352517f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f929181900390910190a1606081015160408051918252516001600160a01b0388169130916000805160206158478339815191529181900360200190a360055460c08201516060830151604080516341c728b960e01b81523060048201526001600160a01b038b81166024830152604482019490945260648101929092525191909216916341c728b991608480830192600092919082900301818387803b15801561477f57600080fd5b505af1158015614793573d6000803e3d6000fd5b50600092506147a0915050565b8160c001519350935050509250929050565b6000670de0b6b3a76400006147cb84846000015161533c565b816147d257fe5b049392505050565b60006111b38383604051806040016040528060158152602001747375627472616374696f6e20756e646572666c6f7760581b81525061537e565b60006111b38383604051806040016040528060118152602001706164646974696f6e206f766572666c6f7760781b815250615415565b6005546040805163368f515360e21b81523060048201526001600160a01b0385811660248301526044820185905291516000938493169163da3d454c91606480830192602092919082900301818787803b1580156148a757600080fd5b505af11580156148bb573d6000803e3d6000fd5b505050506040513d60208110156148d157600080fd5b5051905080156148f0576148e86003600e83612ef6565b915050610cb6565b6148f8612c71565b6009541461490b576148e8600a806126c2565b826149146125ae565b1015614926576148e8600e60096126c2565b61492e6156a1565b61493785612bbd565b602083018190528282600381111561494b57fe5b600381111561495657fe5b905250600090508151600381111561496a57fe5b1461498f5761498660096007836000015160038111156118da57fe5b92505050610cb6565b61499d816020015185612f5c565b60408301819052828260038111156149b157fe5b60038111156149bc57fe5b90525060009050815160038111156149d057fe5b146149ec576149866009600c836000015160038111156118da57fe5b6149f8600b5485612f5c565b6060830181905282826003811115614a0c57fe5b6003811115614a1757fe5b9052506000905081516003811115614a2b57fe5b14614a47576149866009600b836000015160038111156118da57fe5b614a518585613d2b565b604080820180516001600160a01b03881660008181526010602090815290859020928355600a54600190930192909255606080860151600b81905593518551928352928201899052818501929092529081019190915290517f13ed6866d4e1ee6da46f845c46d7e54120883d75c5ea9a2dacc1c4ca8984ab809181900360800190a160055460408051635c77860560e01b81523060048201526001600160a01b0388811660248301526044820188905291519190921691635c77860591606480830192600092919082900301818387803b158015614b2e57600080fd5b505af1158015614b42573d6000803e3d6000fd5b5060009250614b4f915050565b95945050505050565b60055460408051632fe3f38f60e11b81523060048201526001600160a01b0384811660248301528781166044830152868116606483015260848201869052915160009384938493911691635fc7e71e9160a48082019260209290919082900301818787803b158015614bc957600080fd5b505af1158015614bdd573d6000803e3d6000fd5b505050506040513d6020811015614bf357600080fd5b505190508015614c1757614c0a6003601283612ef6565b9250600091506150d29050565b614c1f612c71565b60095414614c3357614c0a600a60166126c2565b614c3b612c71565b846001600160a01b0316636c540baf6040518163ffffffff1660e01b815260040160206040518083038186803b158015614c7457600080fd5b505afa158015614c88573d6000803e3d6000fd5b505050506040513d6020811015614c9e57600080fd5b505114614cb157614c0a600a60116126c2565b866001600160a01b0316866001600160a01b03161415614cd757614c0a600660176126c2565b84614ce857614c0a600760156126c2565b600019851415614cfe57614c0a600760146126c2565b600080614d0c898989613761565b90925090508115614d3c57614d2d826010811115614d2657fe5b60186126c2565b9450600093506150d292505050565b6005546040805163c488847b60e01b81523060048201526001600160a01b038981166024830152604482018590528251600094859492169263c488847b926064808301939192829003018186803b158015614d9657600080fd5b505afa158015614daa573d6000803e3d6000fd5b505050506040513d6040811015614dc057600080fd5b50805160209091015190925090508115614e0b5760405162461bcd60e51b81526004018080602001828103825260338152602001806158986033913960400191505060405180910390fd5b80886001600160a01b03166370a082318c6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015614e6257600080fd5b505afa158015614e76573d6000803e3d6000fd5b505050506040513d6020811015614e8c57600080fd5b50511015614ee1576040805162461bcd60e51b815260206004820152601860248201527f4c49515549444154455f5345495a455f544f4f5f4d5543480000000000000000604482015290519081900360640190fd5b60006001600160a01b038916301415614f0757614f00308d8d85612fde565b9050614f91565b6040805163b2a02ff160e01b81526001600160a01b038e811660048301528d81166024830152604482018590529151918b169163b2a02ff1916064808201926020929091908290030181600087803b158015614f6257600080fd5b505af1158015614f76573d6000803e3d6000fd5b505050506040513d6020811015614f8c57600080fd5b505190505b8015614fdb576040805162461bcd60e51b81526020600482015260146024820152731d1bdad95b881cd95a5e9d5c994819985a5b195960621b604482015290519081900360640190fd5b604080516001600160a01b03808f168252808e1660208301528183018790528b1660608201526080810184905290517f298637f684da70674f26509b10f07ec2fbc77a335ab1e7d6215a4b2484d8bb529181900360a00190a1600554604080516347ef3b3b60e01b81523060048201526001600160a01b038c811660248301528f811660448301528e811660648301526084820188905260a48201869052915191909216916347ef3b3b9160c480830192600092919082900301818387803b1580156150a657600080fd5b505af11580156150ba573d6000803e3d6000fd5b50600092506150c7915050565b975092955050505050505b94509492505050565b601154604080516370a0823160e01b815230600482015290516000926001600160a01b031691839183916370a08231916024808301926020929190829003018186803b15801561512a57600080fd5b505afa15801561513e573d6000803e3d6000fd5b505050506040513d602081101561515457600080fd5b5051604080516323b872dd60e01b81526001600160a01b038881166004830152306024830152604482018890529151929350908416916323b872dd9160648082019260009290919082900301818387803b1580156151b157600080fd5b505af11580156151c5573d6000803e3d6000fd5b5050505060003d600081146151e157602081146151eb57600080fd5b60001991506151f7565b60206000803e60005191505b508061524a576040805162461bcd60e51b815260206004820152601860248201527f544f4b454e5f5452414e534645525f494e5f4641494c45440000000000000000604482015290519081900360640190fd5b601154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561529557600080fd5b505afa1580156152a9573d6000803e3d6000fd5b505050506040513d60208110156152bf57600080fd5b5051905082811015615318576040805162461bcd60e51b815260206004820152601a60248201527f544f4b454e5f5452414e534645525f494e5f4f564552464c4f57000000000000604482015290519081900360640190fd5b9190910395945050505050565b600080600061533261553f565b612571868661546a565b60006111b383836040518060400160405280601781526020017f6d756c7469706c69636174696f6e206f766572666c6f770000000000000000008152506154c9565b6000818484111561540d5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156153d25781810151838201526020016153ba565b50505050905090810190601f1680156153ff5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008383018285821015610f745760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156153d25781810151838201526020016153ba565b600061547461553f565b600080615489670de0b6b3a7640000876142e9565b9092509050600082600381111561549c57fe5b146154bb575060408051602081019091526000815290925090506125a7565b6125a0818660000151613b84565b60008315806154d6575082155b156154e3575060006111b3565b838302838582816154f057fe5b04148390610f745760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156153d25781810151838201526020016153ba565b6040518060200160405280600081525090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061559357805160ff19168380011785556155c0565b828001600101855582156155c0579182015b828111156155c05782518255916020019190600101906155a5565b506155cc9291506156ca565b5090565b604080516101208101909152806000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6040805161010081019091528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6040805160e0810190915280600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b604080516080810190915280600081526020016000815260200160008152602001600081525090565b610e5391905b808211156155cc57600081556001016156d056fe6f6e6c792061646d696e206d617920696e697469616c697a6520746865206d61726b65746d61726b6574206d6179206f6e6c7920626520696e697469616c697a6564206f6e6365696e697469616c2065786368616e67652072617465206d7573742062652067726561746572207468616e207a65726f2e73657474696e6720696e7465726573742072617465206d6f64656c206661696c65646f6e6c79207468652061646d696e206d61792063616c6c205f72657369676e496d706c656d656e746174696f6e4d494e545f4e45575f4143434f554e545f42414c414e43455f43414c43554c4154494f4e5f4641494c4544626f72726f7742616c616e636553746f7265643a20626f72726f7742616c616e636553746f726564496e7465726e616c206661696c656452455041595f424f52524f575f4e45575f4143434f554e545f424f52524f575f42414c414e43455f43414c43554c4154494f4e5f4641494c4544ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef52455041595f424f52524f575f4e45575f544f54414c5f42414c414e43455f43414c43554c4154494f4e5f4641494c45444c49515549444154455f434f4d5054524f4c4c45525f43414c43554c4154455f414d4f554e545f5345495a455f4641494c454465786368616e67655261746553746f7265643a2065786368616e67655261746553746f726564496e7465726e616c206661696c65644d494e545f4e45575f544f54414c5f535550504c595f43414c43554c4154494f4e5f4641494c45446f6e65206f662072656465656d546f6b656e73496e206f722072656465656d416d6f756e74496e206d757374206265207a65726f72656475636520726573657276657320756e657870656374656420756e646572666c6f776f6e6c79207468652061646d696e206d61792063616c6c205f6265636f6d65496d706c656d656e746174696f6ea265627a7a72315820a1b68c6f82d85617c1db95410f3146329d9fe61d70a04255f363a5431282cb4764736f6c63430005110032
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106103275760003560e01c806370a08231116101b8578063b2a02ff111610104578063e9c714f2116100a2578063f5e3c4621161007c578063f5e3c46214610b5f578063f851a44014610b95578063f8f9da2814610b9d578063fca7820b14610ba557610327565b8063e9c714f214610b29578063f2b3abbd14610b31578063f3fdb15a14610b5757610327565b8063c37f68e2116100de578063c37f68e214610a75578063c5ebeaec14610ac1578063db006a7514610ade578063dd62ed3e14610afb57610327565b8063b2a02ff114610a11578063b71d1a0c14610a47578063bd6d894d14610a6d57610327565b806395dd919311610171578063a6afed951161014b578063a6afed95146109cd578063a9059cbb146109d5578063aa5af0fd14610a01578063ae9d70b014610a0957610327565b806395dd91931461083c57806399d8c1b414610862578063a0712d68146109b057610327565b806370a08231146107c457806373acee98146107ea5780637741d09c146107f2578063852a12e31461080f5780638f840ddd1461082c57806395d89b411461083457610327565b8063313ce5671161027757806356e6772811610230578063601a0bf11161020a578063601a0bf11461078f5780636752e702146107ac5780636c540baf146107b45780636f307dc3146107bc57610327565b806356e67728146106db5780635c60da1b1461077f5780635fe3b5671461078757610327565b8063313ce567146106445780633af9e669146106625780633b1d21a2146106885780633e941010146106905780634576b5db146106ad57806347bd3718146106d357610327565b806317bfdfbc116102e45780631a31d465116102be5780631a31d4651461046857806323b872dd146105be5780632608f818146105f4578063267822471461062057610327565b806317bfdfbc1461043257806318160ddd14610458578063182df0f51461046057610327565b806306fdde031461032c578063095ea7b3146103a957806309839b52146103e95780630e752702146103f1578063153ab50514610420578063173b99041461042a575b600080fd5b610334610bc2565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561036e578181015183820152602001610356565b50505050905090810190601f16801561039b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6103d5600480360360408110156103bf57600080fd5b506001600160a01b038135169060200135610c4f565b604080519115158252519081900360200190f35b6103d5610cbc565b61040e6004803603602081101561040757600080fd5b5035610cc1565b60408051918252519081900360200190f35b610428610cd7565b005b61040e610d27565b61040e6004803603602081101561044857600080fd5b50356001600160a01b0316610d2d565b61040e610ded565b61040e610df3565b610428600480360360e081101561047e57600080fd5b6001600160a01b03823581169260208101358216926040820135909216916060820135919081019060a081016080820135600160201b8111156104c057600080fd5b8201836020820111156104d257600080fd5b803590602001918460018302840111600160201b831117156104f357600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561054557600080fd5b82018360208201111561055757600080fd5b803590602001918460018302840111600160201b8311171561057857600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505050903560ff169150610e569050565b6103d5600480360360608110156105d457600080fd5b506001600160a01b03813581169160208101359091169060400135610ef5565b61040e6004803603604081101561060a57600080fd5b506001600160a01b038135169060200135610f67565b610628610f7d565b604080516001600160a01b039092168252519081900360200190f35b61064c610f8c565b6040805160ff9092168252519081900360200190f35b61040e6004803603602081101561067857600080fd5b50356001600160a01b0316610f95565b61040e61104b565b61040e600480360360208110156106a657600080fd5b503561105a565b61040e600480360360208110156106c357600080fd5b50356001600160a01b0316611065565b61040e6111ba565b610428600480360360208110156106f157600080fd5b810190602081018135600160201b81111561070b57600080fd5b82018360208201111561071d57600080fd5b803590602001918460018302840111600160201b8311171561073e57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506111c0945050505050565b610628611211565b610628611220565b61040e600480360360208110156107a557600080fd5b503561122f565b61040e6112ca565b61040e6112d5565b6106286112db565b61040e600480360360208110156107da57600080fd5b50356001600160a01b03166112ea565b61040e611305565b61040e6004803603602081101561080857600080fd5b50356113bb565b61040e6004803603602081101561082557600080fd5b5035611439565b61040e611444565b61033461144a565b61040e6004803603602081101561085257600080fd5b50356001600160a01b03166114a2565b610428600480360360c081101561087857600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b8111156108b257600080fd5b8201836020820111156108c457600080fd5b803590602001918460018302840111600160201b831117156108e557600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561093757600080fd5b82018360208201111561094957600080fd5b803590602001918460018302840111600160201b8311171561096a57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505050903560ff1691506114ff9050565b61040e600480360360208110156109c657600080fd5b50356116e6565b61040e6116f2565b6103d5600480360360408110156109eb57600080fd5b506001600160a01b038135169060200135611a4a565b61040e611abb565b61040e611ac1565b61040e60048036036060811015610a2757600080fd5b506001600160a01b03813581169160208101359091169060400135611b60565b61040e60048036036020811015610a5d57600080fd5b50356001600160a01b0316611bd1565b61040e611c5d565b610a9b60048036036020811015610a8b57600080fd5b50356001600160a01b0316611d19565b604080519485526020850193909352838301919091526060830152519081900360800190f35b61040e60048036036020811015610ad757600080fd5b5035611dae565b61040e60048036036020811015610af457600080fd5b5035611db9565b61040e60048036036040811015610b1157600080fd5b506001600160a01b0381358116916020013516611dc4565b61040e611def565b61040e60048036036020811015610b4757600080fd5b50356001600160a01b0316611ef2565b610628611f2c565b61040e60048036036060811015610b7557600080fd5b506001600160a01b03813581169160208101359160409091013516611f3b565b610628611f53565b61040e611f67565b61040e60048036036020811015610bbb57600080fd5b5035611fcb565b60018054604080516020600284861615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610c475780601f10610c1c57610100808354040283529160200191610c47565b820191906000526020600020905b815481529060010190602001808311610c2a57829003601f168201915b505050505081565b336000818152600f602090815260408083206001600160a01b03871680855290835281842086905581518681529151939493909284927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929081900390910190a360019150505b92915050565b600181565b600080610ccd83612049565b509150505b919050565b60035461010090046001600160a01b03163314610d255760405162461bcd60e51b815260040180806020018281038252602d81526020018061577e602d913960400191505060405180910390fd5b565b60085481565b6000805460ff16610d72576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155610d846116f2565b14610dcf576040805162461bcd60e51b81526020600482015260166024820152751858d8dc9d59481a5b9d195c995cdd0819985a5b195960521b604482015290519081900360640190fd5b610dd8826114a2565b90505b6000805460ff19166001179055919050565b600d5481565b6000806000610e006120f2565b90925090506000826003811115610e1357fe5b14610e4f5760405162461bcd60e51b81526004018080602001828103825260358152602001806158cb6035913960400191505060405180910390fd5b9150505b90565b610e648686868686866114ff565b601180546001600160a01b0319166001600160a01b038981169190911791829055604080516318160ddd60e01b8152905192909116916318160ddd91600480820192602092909190829003018186803b158015610ec057600080fd5b505afa158015610ed4573d6000803e3d6000fd5b505050506040513d6020811015610eea57600080fd5b505050505050505050565b6000805460ff16610f3a576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155610f50338686866121a1565b1490506000805460ff191660011790559392505050565b600080610f7484846124af565b50949350505050565b6004546001600160a01b031681565b60035460ff1681565b6000610f9f61553f565b6040518060200160405280610fb2611c5d565b90526001600160a01b0384166000908152600e6020526040812054919250908190610fde90849061255a565b90925090506000826003811115610ff157fe5b14611043576040805162461bcd60e51b815260206004820152601f60248201527f62616c616e636520636f756c64206e6f742062652063616c63756c6174656400604482015290519081900360640190fd5b949350505050565b60006110556125ae565b905090565b6000610cb68261262e565b60035460009061010090046001600160a01b031633146110925761108b6001603f6126c2565b9050610cd2565b60055460408051623f1ee960e11b815290516001600160a01b0392831692851691627e3dd2916004808301926020929190829003018186803b1580156110d757600080fd5b505afa1580156110eb573d6000803e3d6000fd5b505050506040513d602081101561110157600080fd5b5051611154576040805162461bcd60e51b815260206004820152601c60248201527f6d61726b6572206d6574686f642072657475726e65642066616c736500000000604482015290519081900360640190fd5b600580546001600160a01b0319166001600160a01b03858116918217909255604080519284168352602083019190915280517f7ac369dbd14fa5ea3f473ed67cc9d598964a77501540ba6751eb0b3decf5870d9281900390910190a160005b9392505050565b600b5481565b60035461010090046001600160a01b0316331461120e5760405162461bcd60e51b815260040180806020018281038252602d815260200180615980602d913960400191505060405180910390fd5b50565b6012546001600160a01b031681565b6005546001600160a01b031681565b6000805460ff16611274576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556112866116f2565b905080156112ac576112a481601081111561129d57fe5b60306126c2565b915050610ddb565b6112b583612728565b9150506000805460ff19166001179055919050565b66b1a2bc2ec5000081565b60095481565b6011546001600160a01b031681565b6001600160a01b03166000908152600e602052604090205490565b6000805460ff1661134a576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff1916815561135c6116f2565b146113a7576040805162461bcd60e51b81526020600482015260166024820152751858d8dc9d59481a5b9d195c995cdd0819985a5b195960521b604482015290519081900360640190fd5b50600b546000805460ff1916600117905590565b6000805460ff16611400576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556114126116f2565b90508015611430576112a481601081111561142957fe5b60516126c2565b6112b58361285b565b6000610cb682612b3c565b600c5481565b6002805460408051602060018416156101000260001901909316849004601f81018490048402820184019092528181529291830182828015610c475780601f10610c1c57610100808354040283529160200191610c47565b60008060006114b084612bbd565b909250905060008260038111156114c357fe5b146111b35760405162461bcd60e51b81526004018080602001828103825260378152602001806157d66037913960400191505060405180910390fd5b60035461010090046001600160a01b0316331461154d5760405162461bcd60e51b81526004018080602001828103825260248152602001806156e56024913960400191505060405180910390fd5b60095415801561155d5750600a54155b6115985760405162461bcd60e51b81526004018080602001828103825260238152602001806157096023913960400191505060405180910390fd5b6007849055836115d95760405162461bcd60e51b815260040180806020018281038252603081526020018061572c6030913960400191505060405180910390fd5b60006115e487611065565b90508015611639576040805162461bcd60e51b815260206004820152601a60248201527f73657474696e6720636f6d7074726f6c6c6572206661696c6564000000000000604482015290519081900360640190fd5b611641612c71565b600955670de0b6b3a7640000600a5561165986612c75565b905080156116985760405162461bcd60e51b815260040180806020018281038252602281526020018061575c6022913960400191505060405180910390fd5b83516116ab906001906020870190615552565b5082516116bf906002906020860190615552565b50506003805460ff90921660ff199283161790556000805490911660011790555050505050565b600080610ccd83612dea565b6000806116fd612c71565b6009549091508082141561171657600092505050610e53565b60006117206125ae565b600b54600c54600a54600654604080516315f2405360e01b815260048101879052602481018690526044810185905290519596509394929391926000926001600160a01b03909216916315f24053916064808301926020929190829003018186803b15801561178e57600080fd5b505afa1580156117a2573d6000803e3d6000fd5b505050506040513d60208110156117b857600080fd5b5051905065048c27395000811115611817576040805162461bcd60e51b815260206004820152601c60248201527f626f72726f772072617465206973206162737572646c79206869676800000000604482015290519081900360640190fd5b6000806118248989612e6b565b9092509050600082600381111561183757fe5b14611889576040805162461bcd60e51b815260206004820152601f60248201527f636f756c64206e6f742063616c63756c61746520626c6f636b2064656c746100604482015290519081900360640190fd5b61189161553f565b6000806000806118af60405180602001604052808a81525087612e8e565b909750945060008760038111156118c257fe5b146118f4576118df600960068960038111156118da57fe5b612ef6565b9e505050505050505050505050505050610e53565b6118fe858c61255a565b9097509350600087600381111561191157fe5b14611929576118df600960018960038111156118da57fe5b611933848c612f5c565b9097509250600087600381111561194657fe5b1461195e576118df600960048960038111156118da57fe5b6119796040518060200160405280600854815250858c612f82565b9097509150600087600381111561198c57fe5b146119a4576118df600960058960038111156118da57fe5b6119af858a8b612f82565b909750905060008760038111156119c257fe5b146119da576118df600960038960038111156118da57fe5b60098e9055600a819055600b839055600c829055604080518d8152602081018690528082018390526060810185905290517f4dec04e750ca11537cabcd8a9eab06494de08da3735bc8871cd41250e190bc049181900360800190a160009e50505050505050505050505050505090565b6000805460ff16611a8f576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155611aa5333386866121a1565b1490506000805460ff1916600117905592915050565b600a5481565b6006546000906001600160a01b031663b8168816611add6125ae565b600b54600c546008546040518563ffffffff1660e01b81526004018085815260200184815260200183815260200182815260200194505050505060206040518083038186803b158015611b2f57600080fd5b505afa158015611b43573d6000803e3d6000fd5b505050506040513d6020811015611b5957600080fd5b5051905090565b6000805460ff16611ba5576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19169055611bbb33858585612fde565b90506000805460ff191660011790559392505050565b60035460009061010090046001600160a01b03163314611bf75761108b600160456126c2565b600480546001600160a01b038481166001600160a01b0319831681179093556040805191909216808252602082019390935281517fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a9929181900390910190a160006111b3565b6000805460ff16611ca2576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155611cb46116f2565b14611cff576040805162461bcd60e51b81526020600482015260166024820152751858d8dc9d59481a5b9d195c995cdd0819985a5b195960521b604482015290519081900360640190fd5b611d07610df3565b90506000805460ff1916600117905590565b6001600160a01b0381166000908152600e6020526040812054819081908190818080611d4489612bbd565b935090506000816003811115611d5657fe5b14611d745760095b975060009650869550859450611da79350505050565b611d7c6120f2565b925090506000816003811115611d8e57fe5b14611d9a576009611d5e565b5060009650919450925090505b9193509193565b6000610cb68261348e565b6000610cb68261350d565b6001600160a01b039182166000908152600f6020908152604080832093909416825291909152205490565b6004546000906001600160a01b031633141580611e0a575033155b15611e2257611e1b600160006126c2565b9050610e53565b60038054600480546001600160a01b03818116610100818102610100600160a81b0319871617968790556001600160a01b031990931690935560408051948390048216808652929095041660208401528351909391927ff9ffabca9c8276e99321725bcb43fb076a6c66a54b7f21c4e8146d8519b417dc92908290030190a1600454604080516001600160a01b038085168252909216602083015280517fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a99281900390910190a160009250505090565b600080611efd6116f2565b90508015611f2357611f1b816010811115611f1457fe5b60406126c2565b915050610cd2565b6111b383612c75565b6006546001600160a01b031681565b600080611f49858585613587565b5095945050505050565b60035461010090046001600160a01b031681565b6006546000906001600160a01b03166315f24053611f836125ae565b600b54600c546040518463ffffffff1660e01b815260040180848152602001838152602001828152602001935050505060206040518083038186803b158015611b2f57600080fd5b6000805460ff16612010576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556120226116f2565b90508015612040576112a481601081111561203957fe5b60466126c2565b6112b5836136b9565b60008054819060ff16612090576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556120a26116f2565b905080156120cd576120c08160108111156120b957fe5b60366126c2565b9250600091506120de9050565b6120d8333386613761565b92509250505b6000805460ff191660011790559092909150565b600d5460009081908061210d5750506007546000915061219d565b60006121176125ae565b9050600061212361553f565b600061213484600b54600c54613b46565b93509050600081600381111561214657fe5b1461215b5795506000945061219d9350505050565b6121658386613b84565b92509050600081600381111561217757fe5b1461218c5795506000945061219d9350505050565b505160009550935061219d92505050565b9091565b600554604080516317b9b84b60e31b81523060048201526001600160a01b03868116602483015285811660448301526064820185905291516000938493169163bdcdc25891608480830192602092919082900301818787803b15801561220657600080fd5b505af115801561221a573d6000803e3d6000fd5b505050506040513d602081101561223057600080fd5b50519050801561224f576122476003604a83612ef6565b915050611043565b836001600160a01b0316856001600160a01b03161415612275576122476002604b6126c2565b60006001600160a01b03878116908716141561229457506000196122bc565b506001600160a01b038086166000908152600f60209081526040808320938a16835292905220545b6000806000806122cc8589612e6b565b909450925060008460038111156122df57fe5b146122fd576122f06009604b6126c2565b9650505050505050611043565b6001600160a01b038a166000908152600e60205260409020546123209089612e6b565b9094509150600084600381111561233357fe5b14612344576122f06009604c6126c2565b6001600160a01b0389166000908152600e60205260409020546123679089612f5c565b9094509050600084600381111561237a57fe5b1461238b576122f06009604d6126c2565b6001600160a01b03808b166000908152600e6020526040808220859055918b1681522081905560001985146123e3576001600160a01b03808b166000908152600f60209081526040808320938f168352929052208390555b886001600160a01b03168a6001600160a01b03166000805160206158478339815191528a6040518082815260200191505060405180910390a36005546040805163352b4a3f60e11b81523060048201526001600160a01b038d811660248301528c81166044830152606482018c905291519190921691636a56947e91608480830192600092919082900301818387803b15801561247f57600080fd5b505af1158015612493573d6000803e3d6000fd5b50600092506124a0915050565b9b9a5050505050505050505050565b60008054819060ff166124f6576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556125086116f2565b905080156125335761252681601081111561251f57fe5b60356126c2565b9250600091506125449050565b61253e338686613761565b92509250505b6000805460ff1916600117905590939092509050565b600080600061256761553f565b6125718686612e8e565b9092509050600082600381111561258457fe5b1461259557509150600090506125a7565b60006125a082613c34565b9350935050505b9250929050565b601154604080516370a0823160e01b815230600482015290516000926001600160a01b03169182916370a0823191602480820192602092909190829003018186803b1580156125fc57600080fd5b505afa158015612610573d6000803e3d6000fd5b505050506040513d602081101561262657600080fd5b505191505090565b6000805460ff16612673576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556126856116f2565b905080156126a3576112a481601081111561269c57fe5b604e6126c2565b6126ac83613c43565b509150506000805460ff19166001179055919050565b60007f45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa08360108111156126f157fe5b8360558111156126fd57fe5b604080519283526020830191909152600082820152519081900360600190a18260108111156111b357fe5b600354600090819061010090046001600160a01b0316331461275057611f1b600160316126c2565b612758612c71565b6009541461276c57611f1b600a60336126c2565b826127756125ae565b101561278757611f1b600e60326126c2565b600c5483111561279d57611f1b600260346126c2565b50600c54828103908111156127e35760405162461bcd60e51b815260040180806020018281038252602481526020018061595c6024913960400191505060405180910390fd5b600c8190556003546128039061010090046001600160a01b031684613d2b565b600354604080516101009092046001600160a01b0316825260208201859052818101839052517f3bad0c59cf2f06e7314077049f48a93578cd16f5ef92329f1dab1420a99c177e916060908290030190a160006111b3565b600080600560009054906101000a90046001600160a01b03166001600160a01b0316630d983cc66040518163ffffffff1660e01b815260040160206040518083038186803b1580156128ac57600080fd5b505afa1580156128c0573d6000803e3d6000fd5b505050506040513d60208110156128d657600080fd5b50516001600160a01b031633146128f357611f1b600160526126c2565b6128fb612c71565b6009541461290f57611f1b600a60546126c2565b826129186125ae565b101561292a57611f1b600e60536126c2565b600c5483111561294057611f1b600260556126c2565b50600c54828103908111156129865760405162461bcd60e51b815260040180806020018281038252602481526020018061595c6024913960400191505060405180910390fd5b600c8190556005546040805163f79ed94b60e01b81529051612a03926001600160a01b03169163f79ed94b916004808301926020929190829003018186803b1580156129d157600080fd5b505afa1580156129e5573d6000803e3d6000fd5b505050506040513d60208110156129fb57600080fd5b505184613d2b565b600554604080516306cc1e6360e11b815290517fdf5031b8923cbae66913909bcc9c30d689c67ddd9f4ce6c0ecf81e42d16c6f0a926001600160a01b031691630d983cc6916004808301926020929190829003018186803b158015612a6757600080fd5b505afa158015612a7b573d6000803e3d6000fd5b505050506040513d6020811015612a9157600080fd5b50516005546040805163f79ed94b60e01b815290516001600160a01b039092169163f79ed94b91600480820192602092909190829003018186803b158015612ad857600080fd5b505afa158015612aec573d6000803e3d6000fd5b505050506040513d6020811015612b0257600080fd5b5051604080516001600160a01b03938416815292909116602083015281810186905260608201849052519081900360800190a160006111b3565b6000805460ff16612b81576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155612b936116f2565b90508015612bb1576112a4816010811115612baa57fe5b60276126c2565b6112b533600085613e22565b6001600160a01b038116600090815260106020526040812080548291829182918291612bf4575060009450849350612c6c92505050565b612c048160000154600a546142e9565b90945092506000846003811115612c1757fe5b14612c2c575091935060009250612c6c915050565b612c3a838260010154614328565b90945091506000846003811115612c4d57fe5b14612c62575091935060009250612c6c915050565b5060009450925050505b915091565b4390565b600354600090819061010090046001600160a01b03163314612c9d57611f1b600160426126c2565b612ca5612c71565b60095414612cb957611f1b600a60416126c2565b600660009054906101000a90046001600160a01b03169050826001600160a01b0316632191f92a6040518163ffffffff1660e01b815260040160206040518083038186803b158015612d0a57600080fd5b505afa158015612d1e573d6000803e3d6000fd5b505050506040513d6020811015612d3457600080fd5b5051612d87576040805162461bcd60e51b815260206004820152601c60248201527f6d61726b6572206d6574686f642072657475726e65642066616c736500000000604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b03858116918217909255604080519284168352602083019190915280517fedffc32e068c7c95dfd4bdfd5c4d939a084d6b11c4199eac8436ed234d72f9269281900390910190a160006111b3565b60008054819060ff16612e31576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155612e436116f2565b90508015612e61576120c0816010811115612e5a57fe5b601e6126c2565b6120d83385614353565b600080838311612e825750600090508183036125a7565b506003905060006125a7565b6000612e9861553f565b600080612ea98660000151866142e9565b90925090506000826003811115612ebc57fe5b14612edb575060408051602081019091526000815290925090506125a7565b60408051602081019091529081526000969095509350505050565b60007f45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa0846010811115612f2557fe5b846055811115612f3157fe5b604080519283526020830191909152818101859052519081900360600190a183601081111561104357fe5b600080838301848110612f74576000925090506125a7565b5060029150600090506125a7565b6000806000612f8f61553f565b612f998787612e8e565b90925090506000826003811115612fac57fe5b14612fbd5750915060009050612fd6565b612fcf612fc982613c34565b86612f5c565b9350935050505b935093915050565b6005546040805163d02f735160e01b81523060048201526001600160a01b038781166024830152868116604483015285811660648301526084820185905291516000938493169163d02f73519160a480830192602092919082900301818787803b15801561304b57600080fd5b505af115801561305f573d6000803e3d6000fd5b505050506040513d602081101561307557600080fd5b50519050801561308c576122476003601b83612ef6565b846001600160a01b0316846001600160a01b031614156130b2576122476006601c6126c2565b6130ba6155d0565b6001600160a01b0385166000908152600e60205260409020546130dd9085612e6b565b60208301819052828260038111156130f157fe5b60038111156130fc57fe5b905250600090508151600381111561311057fe5b146131355761312c6009601a836000015160038111156118da57fe5b92505050611043565b61315484604051806020016040528066b1a2bc2ec500008152506147b2565b608082018190526131669085906147da565b60608201526131736120f2565b60c083018190528282600381111561318757fe5b600381111561319257fe5b90525060009050815160038111156131a657fe5b146131f8576040805162461bcd60e51b815260206004820152601860248201527f65786368616e67652072617465206d617468206572726f720000000000000000604482015290519081900360640190fd5b61321860405180602001604052808360c00151815250826080015161255a565b60a083018190528282600381111561322c57fe5b600381111561323757fe5b905250600090508151600381111561324b57fe5b146132675761312c6009601a836000015160038111156118da57fe5b613277600c548260a00151614814565b60e0820152600d54608082015161328e91906147da565b6101008201526001600160a01b0386166000908152600e602052604090205460608201516132bc9190612f5c565b60408301819052828260038111156132d057fe5b60038111156132db57fe5b90525060009050815160038111156132ef57fe5b1461330b5761312c60096019836000015160038111156118da57fe5b60e0810151600c55610100810151600d556020808201516001600160a01b038088166000818152600e855260408082209490945583860151928b16808252908490209290925560608501518351908152925191939092600080516020615847833981519152929081900390910190a36080810151604080519182525130916001600160a01b038816916000805160206158478339815191529181900360200190a360a081015160e082015160408051308152602081019390935282810191909152517fa91e67c5ea634cd43a12c5a482724b03de01e85ca68702a53d0c2f45cb7c1dc59181900360600190a160055460408051636d35bf9160e01b81523060048201526001600160a01b038a81166024830152898116604483015288811660648301526084820188905291519190921691636d35bf919160a480830192600092919082900301818387803b15801561346257600080fd5b505af1158015613476573d6000803e3d6000fd5b5060009250613483915050565b979650505050505050565b6000805460ff166134d3576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556134e56116f2565b90508015613503576112a48160108111156134fc57fe5b60086126c2565b6112b5338461484a565b6000805460ff16613552576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556135646116f2565b9050801561357b576112a4816010811115612baa57fe5b6112b533846000613e22565b60008054819060ff166135ce576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556135e06116f2565b9050801561360b576135fe8160108111156135f757fe5b600f6126c2565b9250600091506136a29050565b836001600160a01b031663a6afed956040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561364657600080fd5b505af115801561365a573d6000803e3d6000fd5b505050506040513d602081101561367057600080fd5b505190508015613690576135fe81601081111561368957fe5b60106126c2565b61369c33878787614b58565b92509250505b6000805460ff191660011790559094909350915050565b60035460009061010090046001600160a01b031633146136df5761108b600160476126c2565b6136e7612c71565b600954146136fb5761108b600a60486126c2565b670de0b6b3a76400008211156137175761108b600260496126c2565b6008805490839055604080518281526020810185905281517faaa68312e2ea9d50e16af5068410ab56e1a1fd06037b1a35664812c30f821460929181900390910190a160006111b3565b60055460408051631200453160e11b81523060048201526001600160a01b0386811660248301528581166044830152606482018590529151600093849384939116916324008a629160848082019260209290919082900301818787803b1580156137ca57600080fd5b505af11580156137de573d6000803e3d6000fd5b505050506040513d60208110156137f457600080fd5b5051905080156138185761380b6003603883612ef6565b925060009150612fd69050565b613820612c71565b600954146138345761380b600a60396126c2565b61383c61561d565b6001600160a01b038616600090815260106020526040902060010154606082015261386686612bbd565b608083018190526020830182600381111561387d57fe5b600381111561388857fe5b905250600090508160200151600381111561389f57fe5b146138c9576138bb60096037836020015160038111156118da57fe5b935060009250612fd6915050565b6000198514156138e257608081015160408201526138ea565b604081018590525b6138f88782604001516150db565b60e08201819052608082015161390d91612e6b565b60a083018190526020830182600381111561392457fe5b600381111561392f57fe5b905250600090508160200151600381111561394657fe5b146139825760405162461bcd60e51b815260040180806020018281038252603a81526020018061580d603a913960400191505060405180910390fd5b613992600b548260e00151612e6b565b60c08301819052602083018260038111156139a957fe5b60038111156139b457fe5b90525060009050816020015160038111156139cb57fe5b14613a075760405162461bcd60e51b81526004018080602001828103825260318152602001806158676031913960400191505060405180910390fd5b60a080820180516001600160a01b03808a16600081815260106020908152604091829020948555600a5460019095019490945560c0870151600b81905560e088015195518251948f16855294840192909252828101949094526060820192909252608081019190915290517f1a2a22cb034d26d1854bdc6666a5b91fe25efbbb5dcad3b0355478d6f5c362a1929181900390910190a160055460e0820151606083015160408051631ededc9160e01b81523060048201526001600160a01b038c811660248301528b8116604483015260648201949094526084810192909252519190921691631ededc919160a480830192600092919082900301818387803b158015613b1257600080fd5b505af1158015613b26573d6000803e3d6000fd5b5060009250613b33915050565b8160e00151935093505050935093915050565b600080600080613b568787612f5c565b90925090506000826003811115613b6957fe5b14613b7a5750915060009050612fd6565b612fcf8186612e6b565b6000613b8e61553f565b600080613ba386670de0b6b3a76400006142e9565b90925090506000826003811115613bb657fe5b14613bd5575060408051602081019091526000815290925090506125a7565b600080613be28388614328565b90925090506000826003811115613bf557fe5b14613c17575060408051602081019091526000815290945092506125a7915050565b604080516020810190915290815260009890975095505050505050565b51670de0b6b3a7640000900490565b600080600080613c51612c71565b60095414613c7057613c65600a604f6126c2565b93509150612c6c9050565b613c7a33866150db565b905080600c54019150600c54821015613cda576040805162461bcd60e51b815260206004820181905260248201527f61646420726573657276657320756e6578706563746564206f766572666c6f77604482015290519081900360640190fd5b600c829055604080513381526020810183905280820184905290517fa91e67c5ea634cd43a12c5a482724b03de01e85ca68702a53d0c2f45cb7c1dc59181900360600190a160009350915050915091565b6011546040805163a9059cbb60e01b81526001600160a01b0385811660048301526024820185905291519190921691829163a9059cbb9160448082019260009290919082900301818387803b158015613d8357600080fd5b505af1158015613d97573d6000803e3d6000fd5b5050505060003d60008114613db35760208114613dbd57600080fd5b6000199150613dc9565b60206000803e60005191505b5080613e1c576040805162461bcd60e51b815260206004820152601960248201527f544f4b454e5f5452414e534645525f4f55545f4641494c454400000000000000604482015290519081900360640190fd5b50505050565b6000821580613e2f575081155b613e6a5760405162461bcd60e51b81526004018080602001828103825260348152602001806159286034913960400191505060405180910390fd5b613e72615663565b613e7a6120f2565b6040830181905260208301826003811115613e9157fe5b6003811115613e9c57fe5b9052506000905081602001516003811115613eb357fe5b14613ed757613ecf6009602b836020015160038111156118da57fe5b9150506111b3565b8315613f58576060810184905260408051602081018252908201518152613efe908561255a565b6080830181905260208301826003811115613f1557fe5b6003811115613f2057fe5b9052506000905081602001516003811115613f3757fe5b14613f5357613ecf60096029836020015160038111156118da57fe5b613fd1565b613f748360405180602001604052808460400151815250615325565b6060830181905260208301826003811115613f8b57fe5b6003811115613f9657fe5b9052506000905081602001516003811115613fad57fe5b14613fc957613ecf6009602a836020015160038111156118da57fe5b608081018390525b60055460608201516040805163eabe7d9160e01b81523060048201526001600160a01b03898116602483015260448201939093529051600093929092169163eabe7d919160648082019260209290919082900301818787803b15801561403657600080fd5b505af115801561404a573d6000803e3d6000fd5b505050506040513d602081101561406057600080fd5b505190508015614080576140776003602883612ef6565b925050506111b3565b614088612c71565b6009541461409c57614077600a602c6126c2565b6140ac600d548360600151612e6b565b60a08401819052602084018260038111156140c357fe5b60038111156140ce57fe5b90525060009050826020015160038111156140e557fe5b14614101576140776009602e846020015160038111156118da57fe5b6001600160a01b0386166000908152600e602052604090205460608301516141299190612e6b565b60c084018190526020840182600381111561414057fe5b600381111561414b57fe5b905250600090508260200151600381111561416257fe5b1461417e576140776009602d846020015160038111156118da57fe5b816080015161418b6125ae565b101561419d57614077600e602f6126c2565b6141ab868360800151613d2b565b60a0820151600d5560c08201516001600160a01b0387166000818152600e6020908152604091829020939093556060850151815190815290513093600080516020615847833981519152928290030190a36080820151606080840151604080516001600160a01b038b168152602081019490945283810191909152517fe5b754fb1abb7f01b499791d0b820ae3b6af3424ac1c59768edb53f4ec31a9299281900390910190a160055460808301516060840151604080516351dff98960e01b81523060048201526001600160a01b038b81166024830152604482019490945260648101929092525191909216916351dff98991608480830192600092919082900301818387803b1580156142be57600080fd5b505af11580156142d2573d6000803e3d6000fd5b50600092506142df915050565b9695505050505050565b600080836142fc575060009050806125a7565b8383028385828161430957fe5b041461431d575060029150600090506125a7565b6000925090506125a7565b6000808261433c57506001905060006125a7565b600083858161434757fe5b04915091509250929050565b60055460408051634ef4c3e160e01b81523060048201526001600160a01b03858116602483015260448201859052915160009384938493911691634ef4c3e19160648082019260209290919082900301818787803b1580156143b457600080fd5b505af11580156143c8573d6000803e3d6000fd5b505050506040513d60208110156143de57600080fd5b505190508015614402576143f56003601f83612ef6565b9250600091506125a79050565b61440a612c71565b6009541461441e576143f5600a60226126c2565b614426615663565b61442e6120f2565b604083018190526020830182600381111561444557fe5b600381111561445057fe5b905250600090508160200151600381111561446757fe5b146144915761448360096021836020015160038111156118da57fe5b9350600092506125a7915050565b61449b86866150db565b60c08201819052604080516020810182529083015181526144bc9190615325565b60608301819052602083018260038111156144d357fe5b60038111156144de57fe5b90525060009050816020015160038111156144f557fe5b14614547576040805162461bcd60e51b815260206004820181905260248201527f4d494e545f45584348414e47455f43414c43554c4154494f4e5f4641494c4544604482015290519081900360640190fd5b614557600d548260600151612f5c565b608083018190526020830182600381111561456e57fe5b600381111561457957fe5b905250600090508160200151600381111561459057fe5b146145cc5760405162461bcd60e51b81526004018080602001828103825260288152602001806159006028913960400191505060405180910390fd5b6001600160a01b0386166000908152600e602052604090205460608201516145f49190612f5c565b60a083018190526020830182600381111561460b57fe5b600381111561461657fe5b905250600090508160200151600381111561462d57fe5b146146695760405162461bcd60e51b815260040180806020018281038252602b8152602001806157ab602b913960400191505060405180910390fd5b6080810151600d5560a08101516001600160a01b0387166000818152600e60209081526040918290209390935560c084015160608086015183519485529484019190915282820193909352517f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f929181900390910190a1606081015160408051918252516001600160a01b0388169130916000805160206158478339815191529181900360200190a360055460c08201516060830151604080516341c728b960e01b81523060048201526001600160a01b038b81166024830152604482019490945260648101929092525191909216916341c728b991608480830192600092919082900301818387803b15801561477f57600080fd5b505af1158015614793573d6000803e3d6000fd5b50600092506147a0915050565b8160c001519350935050509250929050565b6000670de0b6b3a76400006147cb84846000015161533c565b816147d257fe5b049392505050565b60006111b38383604051806040016040528060158152602001747375627472616374696f6e20756e646572666c6f7760581b81525061537e565b60006111b38383604051806040016040528060118152602001706164646974696f6e206f766572666c6f7760781b815250615415565b6005546040805163368f515360e21b81523060048201526001600160a01b0385811660248301526044820185905291516000938493169163da3d454c91606480830192602092919082900301818787803b1580156148a757600080fd5b505af11580156148bb573d6000803e3d6000fd5b505050506040513d60208110156148d157600080fd5b5051905080156148f0576148e86003600e83612ef6565b915050610cb6565b6148f8612c71565b6009541461490b576148e8600a806126c2565b826149146125ae565b1015614926576148e8600e60096126c2565b61492e6156a1565b61493785612bbd565b602083018190528282600381111561494b57fe5b600381111561495657fe5b905250600090508151600381111561496a57fe5b1461498f5761498660096007836000015160038111156118da57fe5b92505050610cb6565b61499d816020015185612f5c565b60408301819052828260038111156149b157fe5b60038111156149bc57fe5b90525060009050815160038111156149d057fe5b146149ec576149866009600c836000015160038111156118da57fe5b6149f8600b5485612f5c565b6060830181905282826003811115614a0c57fe5b6003811115614a1757fe5b9052506000905081516003811115614a2b57fe5b14614a47576149866009600b836000015160038111156118da57fe5b614a518585613d2b565b604080820180516001600160a01b03881660008181526010602090815290859020928355600a54600190930192909255606080860151600b81905593518551928352928201899052818501929092529081019190915290517f13ed6866d4e1ee6da46f845c46d7e54120883d75c5ea9a2dacc1c4ca8984ab809181900360800190a160055460408051635c77860560e01b81523060048201526001600160a01b0388811660248301526044820188905291519190921691635c77860591606480830192600092919082900301818387803b158015614b2e57600080fd5b505af1158015614b42573d6000803e3d6000fd5b5060009250614b4f915050565b95945050505050565b60055460408051632fe3f38f60e11b81523060048201526001600160a01b0384811660248301528781166044830152868116606483015260848201869052915160009384938493911691635fc7e71e9160a48082019260209290919082900301818787803b158015614bc957600080fd5b505af1158015614bdd573d6000803e3d6000fd5b505050506040513d6020811015614bf357600080fd5b505190508015614c1757614c0a6003601283612ef6565b9250600091506150d29050565b614c1f612c71565b60095414614c3357614c0a600a60166126c2565b614c3b612c71565b846001600160a01b0316636c540baf6040518163ffffffff1660e01b815260040160206040518083038186803b158015614c7457600080fd5b505afa158015614c88573d6000803e3d6000fd5b505050506040513d6020811015614c9e57600080fd5b505114614cb157614c0a600a60116126c2565b866001600160a01b0316866001600160a01b03161415614cd757614c0a600660176126c2565b84614ce857614c0a600760156126c2565b600019851415614cfe57614c0a600760146126c2565b600080614d0c898989613761565b90925090508115614d3c57614d2d826010811115614d2657fe5b60186126c2565b9450600093506150d292505050565b6005546040805163c488847b60e01b81523060048201526001600160a01b038981166024830152604482018590528251600094859492169263c488847b926064808301939192829003018186803b158015614d9657600080fd5b505afa158015614daa573d6000803e3d6000fd5b505050506040513d6040811015614dc057600080fd5b50805160209091015190925090508115614e0b5760405162461bcd60e51b81526004018080602001828103825260338152602001806158986033913960400191505060405180910390fd5b80886001600160a01b03166370a082318c6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015614e6257600080fd5b505afa158015614e76573d6000803e3d6000fd5b505050506040513d6020811015614e8c57600080fd5b50511015614ee1576040805162461bcd60e51b815260206004820152601860248201527f4c49515549444154455f5345495a455f544f4f5f4d5543480000000000000000604482015290519081900360640190fd5b60006001600160a01b038916301415614f0757614f00308d8d85612fde565b9050614f91565b6040805163b2a02ff160e01b81526001600160a01b038e811660048301528d81166024830152604482018590529151918b169163b2a02ff1916064808201926020929091908290030181600087803b158015614f6257600080fd5b505af1158015614f76573d6000803e3d6000fd5b505050506040513d6020811015614f8c57600080fd5b505190505b8015614fdb576040805162461bcd60e51b81526020600482015260146024820152731d1bdad95b881cd95a5e9d5c994819985a5b195960621b604482015290519081900360640190fd5b604080516001600160a01b03808f168252808e1660208301528183018790528b1660608201526080810184905290517f298637f684da70674f26509b10f07ec2fbc77a335ab1e7d6215a4b2484d8bb529181900360a00190a1600554604080516347ef3b3b60e01b81523060048201526001600160a01b038c811660248301528f811660448301528e811660648301526084820188905260a48201869052915191909216916347ef3b3b9160c480830192600092919082900301818387803b1580156150a657600080fd5b505af11580156150ba573d6000803e3d6000fd5b50600092506150c7915050565b975092955050505050505b94509492505050565b601154604080516370a0823160e01b815230600482015290516000926001600160a01b031691839183916370a08231916024808301926020929190829003018186803b15801561512a57600080fd5b505afa15801561513e573d6000803e3d6000fd5b505050506040513d602081101561515457600080fd5b5051604080516323b872dd60e01b81526001600160a01b038881166004830152306024830152604482018890529151929350908416916323b872dd9160648082019260009290919082900301818387803b1580156151b157600080fd5b505af11580156151c5573d6000803e3d6000fd5b5050505060003d600081146151e157602081146151eb57600080fd5b60001991506151f7565b60206000803e60005191505b508061524a576040805162461bcd60e51b815260206004820152601860248201527f544f4b454e5f5452414e534645525f494e5f4641494c45440000000000000000604482015290519081900360640190fd5b601154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561529557600080fd5b505afa1580156152a9573d6000803e3d6000fd5b505050506040513d60208110156152bf57600080fd5b5051905082811015615318576040805162461bcd60e51b815260206004820152601a60248201527f544f4b454e5f5452414e534645525f494e5f4f564552464c4f57000000000000604482015290519081900360640190fd5b9190910395945050505050565b600080600061533261553f565b612571868661546a565b60006111b383836040518060400160405280601781526020017f6d756c7469706c69636174696f6e206f766572666c6f770000000000000000008152506154c9565b6000818484111561540d5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156153d25781810151838201526020016153ba565b50505050905090810190601f1680156153ff5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008383018285821015610f745760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156153d25781810151838201526020016153ba565b600061547461553f565b600080615489670de0b6b3a7640000876142e9565b9092509050600082600381111561549c57fe5b146154bb575060408051602081019091526000815290925090506125a7565b6125a0818660000151613b84565b60008315806154d6575082155b156154e3575060006111b3565b838302838582816154f057fe5b04148390610f745760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156153d25781810151838201526020016153ba565b6040518060200160405280600081525090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061559357805160ff19168380011785556155c0565b828001600101855582156155c0579182015b828111156155c05782518255916020019190600101906155a5565b506155cc9291506156ca565b5090565b604080516101208101909152806000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6040805161010081019091528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6040805160e0810190915280600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b604080516080810190915280600081526020016000815260200160008152602001600081525090565b610e5391905b808211156155cc57600081556001016156d056fe6f6e6c792061646d696e206d617920696e697469616c697a6520746865206d61726b65746d61726b6574206d6179206f6e6c7920626520696e697469616c697a6564206f6e6365696e697469616c2065786368616e67652072617465206d7573742062652067726561746572207468616e207a65726f2e73657474696e6720696e7465726573742072617465206d6f64656c206661696c65646f6e6c79207468652061646d696e206d61792063616c6c205f72657369676e496d706c656d656e746174696f6e4d494e545f4e45575f4143434f554e545f42414c414e43455f43414c43554c4154494f4e5f4641494c4544626f72726f7742616c616e636553746f7265643a20626f72726f7742616c616e636553746f726564496e7465726e616c206661696c656452455041595f424f52524f575f4e45575f4143434f554e545f424f52524f575f42414c414e43455f43414c43554c4154494f4e5f4641494c4544ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef52455041595f424f52524f575f4e45575f544f54414c5f42414c414e43455f43414c43554c4154494f4e5f4641494c45444c49515549444154455f434f4d5054524f4c4c45525f43414c43554c4154455f414d4f554e545f5345495a455f4641494c454465786368616e67655261746553746f7265643a2065786368616e67655261746553746f726564496e7465726e616c206661696c65644d494e545f4e45575f544f54414c5f535550504c595f43414c43554c4154494f4e5f4641494c45446f6e65206f662072656465656d546f6b656e73496e206f722072656465656d416d6f756e74496e206d757374206265207a65726f72656475636520726573657276657320756e657870656374656420756e646572666c6f776f6e6c79207468652061646d696e206d61792063616c6c205f6265636f6d65496d706c656d656e746174696f6ea265627a7a72315820a1b68c6f82d85617c1db95410f3146329d9fe61d70a04255f363a5431282cb4764736f6c63430005110032
Deployed Bytecode Sourcemap
123584:1059:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;123584:1059:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4584: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;4584:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49893:237;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;49893:237:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;7715:36;;;:::i;117656:149::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;117656:149:0;;:::i;:::-;;;;;;;;;;;;;;;;124361:279;;;:::i;:::-;;5887:33;;;:::i;54142:224::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;54142:224:0;-1:-1:-1;;;;;54142:224:0;;:::i;6532:23::-;;;:::i;56987:261::-;;;:::i;114907:684::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;114907:684:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;114907:684:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;114907:684:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;114907:684:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;114907:684:0;;;;;;;;-1:-1:-1;114907:684:0;;-1:-1:-1;;;;;5:28;;2:2;;;46:1;43;36:12;2:2;114907:684:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;114907:684:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;114907:684:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;114907:684:0;;-1:-1:-1;;;114907:684:0;;;;;-1:-1:-1;114907:684:0;;-1:-1:-1;114907:684:0:i;49228:195::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;49228:195:0;;;;;;;;;;;;;;;;;:::i;118093:189::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;118093:189:0;;;;;;;;:::i;5311:35::-;;;:::i;:::-;;;;-1:-1:-1;;;;;5311:35:0;;;;;;;;;;;;;;4780:21;;;:::i;:::-;;;;;;;;;;;;;;;;;;;51161:354;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;51161:354:0;-1:-1:-1;;;;;51161:354:0;;:::i;58868:88::-;;;:::i;119235:119::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;119235:119:0;;:::i;98497:735::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;98497:735:0;-1:-1:-1;;;;;98497:735:0;;:::i;6296:24::-;;;:::i;123902:349::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;123902:349:0;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;123902:349:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;123902:349:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;123902:349:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;123902:349:0;;-1:-1:-1;123902:349:0;;-1:-1:-1;;;;;123902:349:0:i;13444:29::-;;;:::i;5437:39::-;;;:::i;104455:571::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;104455:571:0;;:::i;7505:54::-;;;:::i;6010:30::-;;;:::i;12559:25::-;;;:::i;50793:112::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;50793:112:0;-1:-1:-1;;;;;50793:112:0;;:::i;53659:192::-;;;:::i;107305:579::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;107305:579:0;;:::i;116934:133::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;116934:133:0;;:::i;6426:25::-;;;:::i;4680:20::-;;;:::i;54575:287::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;54575:287:0;-1:-1:-1;;;;;54575:287:0;;:::i;44267:1529::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;44267:1529:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;44267:1529:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;44267:1529:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;44267:1529:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;44267:1529:0;;;;;;;;-1:-1:-1;44267:1529:0;;-1:-1:-1;;;;;5:28;;2:2;;;46:1;43;36:12;2:2;44267:1529:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;44267:1529:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;44267:1529:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;44267:1529:0;;-1:-1:-1;;;44267:1529:0;;;;;-1:-1:-1;44267:1529:0;;-1:-1:-1;44267:1529:0:i;115981:133::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;115981:133:0;;:::i;59204:3852::-;;;:::i;48736:185::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;48736:185:0;;;;;;;;:::i;6161:23::-;;;:::i;53329:184::-;;;:::i;91564:194::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;91564:194:0;;;;;;;;;;;;;;;;;:::i;96605:647::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;96605:647:0;-1:-1:-1;;;;;96605:647:0;;:::i;56539:198::-;;;:::i;51861:703::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;51861:703:0;-1:-1:-1;;;;;51861:703:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;117335:113;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;117335:113:0;;:::i;116465:::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;116465:113:0;;:::i;50460:143::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;50460:143:0;;;;;;;;;;:::i;97530:742::-;;;:::i;110493:633::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;110493:633:0;-1:-1:-1;;;;;110493:633:0;;:::i;5578:42::-;;;:::i;118764:237::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;118764:237:0;;;;;;;;;;;;;;;;;:::i;5200:28::-;;;:::i;52992:161::-;;;:::i;99535:607::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;99535:607:0;;:::i;4584:18::-;;;;;;;;;;;;;;;-1:-1:-1;;4584:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;49893:237::-;49992:10;49961:4;50013:23;;;:18;:23;;;;;;;;-1:-1:-1;;;;;50013:32:0;;;;;;;;;;;:41;;;50070:30;;;;;;;49961:4;;49992:10;50013:32;;49992:10;;50070:30;;;;;;;;;;;50118:4;50111:11;;;49893:237;;;;;:::o;7715:36::-;7747:4;7715:36;:::o;117656:149::-;117713:4;117731:8;117744:32;117764:11;117744:19;:32::i;:::-;-1:-1:-1;117730:46:0;-1:-1:-1;;117656:149:0;;;;:::o;124361:279::-;124577:5;;;;;-1:-1:-1;;;;;124577:5:0;124563:10;:19;124555:77;;;;-1:-1:-1;;;124555:77:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;124361:279::o;5887:33::-;;;;:::o;54142:224::-;54220:4;114022:11;;;;114014:34;;;;;-1:-1:-1;;;114014:34:0;;;;;;;;;;;;-1:-1:-1;;;114014:34:0;;;;;;;;;;;;;;;114073:5;114059:19;;-1:-1:-1;;114059:19:0;;;54245:16;:14;:16::i;:::-;:40;54237:75;;;;;-1:-1:-1;;;54237:75:0;;;;;;;;;;;;-1:-1:-1;;;54237:75:0;;;;;;;;;;;;;;;54330:28;54350:7;54330:19;:28::i;:::-;54323:35;;114089:1;114101:11;:18;;-1:-1:-1;;114101:18:0;114115:4;114101:18;;;54142:224;;-1:-1:-1;54142:224:0:o;6532:23::-;;;;:::o;56987:261::-;57038:4;57056:13;57071:11;57086:28;:26;:28::i;:::-;57055:59;;-1:-1:-1;57055:59:0;-1:-1:-1;57140:18:0;57133:3;:25;;;;;;;;;57125:91;;;;-1:-1:-1;;;57125:91:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57234:6;-1:-1:-1;;56987:261:0;;:::o;114907:684::-;115341:107;115358:12;115372:18;115392:28;115422:5;115429:7;115438:9;115341:16;:107::i;:::-;115508:10;:24;;-1:-1:-1;;;;;;115508:24:0;-1:-1:-1;;;;;115508:24:0;;;;;;;;;;;115543:40;;;-1:-1:-1;;;115543:40:0;;;;115558:10;;;;;115543:38;;:40;;;;;;;;;;;;;;;115558:10;115543:40;;;5:2:-1;;;;30:1;27;20:12;5:2;115543:40:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;115543:40:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;;;;114907:684:0:o;49228:195::-;49323:4;114022:11;;;;114014:34;;;;;-1:-1:-1;;;114014:34:0;;;;;;;;;;;;-1:-1:-1;;;114014:34:0;;;;;;;;;;;;;;;114073:5;114059:19;;-1:-1:-1;;114059:19:0;;;49347:44;49362:10;49374:3;49379;49384:6;49347:14;:44::i;:::-;:68;49340:75;;114101:11;:18;;-1:-1:-1;;114101:18:0;114115:4;114101:18;;;49228:195;;-1:-1:-1;;;49228:195:0:o;118093:189::-;118174:4;118192:8;118205:48;118231:8;118241:11;118205:25;:48::i;:::-;-1:-1:-1;118191:62:0;118093:189;-1:-1:-1;;;;118093:189:0:o;5311:35::-;;;-1:-1:-1;;;;;5311:35:0;;:::o;4780:21::-;;;;;;:::o;51161:354::-;51223:4;51240:23;;:::i;:::-;51266:38;;;;;;;;51281:21;:19;:21::i;:::-;51266:38;;-1:-1:-1;;;;;51380:20:0;;51316:14;51380:20;;;:13;:20;;;;;;51240:64;;-1:-1:-1;51316:14:0;;;51348:53;;51240:64;;51348:17;:53::i;:::-;51315:86;;-1:-1:-1;51315:86:0;-1:-1:-1;51428:18:0;51420:4;:26;;;;;;;;;51412:70;;;;;-1:-1:-1;;;51412:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;51500:7;51161:354;-1:-1:-1;;;;51161:354:0:o;58868:88::-;58910:4;58934:14;:12;:14::i;:::-;58927:21;;58868:88;:::o;119235:119::-;119291:4;119315:31;119336:9;119315:20;:31::i;98497:735::-;98644:5;;98575:4;;98644:5;;;-1:-1:-1;;;;;98644:5:0;98630:10;:19;98626:124;;98673:65;98678:18;98698:39;98673:4;:65::i;:::-;98666:72;;;;98626:124;98800:11;;98897:30;;;-1:-1:-1;;;98897:30:0;;;;-1:-1:-1;;;;;98800:11:0;;;;98897:28;;;;;:30;;;;;;;;;;;;;;:28;:30;;;5:2:-1;;;;30:1;27;20:12;5:2;98897:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;98897:30:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;98897:30:0;98889:71;;;;;-1:-1:-1;;;98889:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;99028:11;:28;;-1:-1:-1;;;;;;99028:28:0;-1:-1:-1;;;;;99028:28:0;;;;;;;;;99138:46;;;;;;;;;;;;;;;;;;;;;;;;;;;99209:14;99204:20;99197:27;98497:735;-1:-1:-1;;;98497:735:0:o;6296:24::-;;;;:::o;123902:349::-;124188:5;;;;;-1:-1:-1;;;;;124188:5:0;124174:10;:19;124166:77;;;;-1:-1:-1;;;124166:77:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;123902:349;:::o;13444:29::-;;;-1:-1:-1;;;;;13444:29:0;;:::o;5437:39::-;;;-1:-1:-1;;;;;5437:39:0;;:::o;104455:571::-;104530:4;114022:11;;;;114014:34;;;;;-1:-1:-1;;;114014:34:0;;;;;;;;;;;;-1:-1:-1;;;114014:34:0;;;;;;;;;;;;;;;114073:5;114059:19;;-1:-1:-1;;114059:19:0;;;104560:16;:14;:16::i;:::-;104547:29;-1:-1:-1;104591:29:0;;104587:277;;104782:70;104793:5;104787:12;;;;;;;;104801:50;104782:4;:70::i;:::-;104775:77;;;;;104587:277;104984:34;105005:12;104984:20;:34::i;:::-;104977:41;;;114101:11;:18;;-1:-1:-1;;114101:18:0;114115:4;114101:18;;;104455:571;;-1:-1:-1;104455:571:0:o;7505:54::-;7555:4;7505:54;:::o;6010:30::-;;;;:::o;12559:25::-;;;-1:-1:-1;;;;;12559:25:0;;:::o;50793:112::-;-1:-1:-1;;;;;50877:20:0;50850:7;50877:20;;;:13;:20;;;;;;;50793:112::o;53659:192::-;53721:4;114022:11;;;;114014:34;;;;;-1:-1:-1;;;114014:34:0;;;;;;;;;;;;-1:-1:-1;;;114014:34:0;;;;;;;;;;;;;;;114073:5;114059:19;;-1:-1:-1;;114059:19:0;;;53746:16;:14;:16::i;:::-;:40;53738:75;;;;;-1:-1:-1;;;53738:75:0;;;;;;;;;;;;-1:-1:-1;;;53738:75:0;;;;;;;;;;;;;;;-1:-1:-1;53831:12:0;;114101:11;:18;;-1:-1:-1;;114101:18:0;114115:4;114101:18;;;53659:192;:::o;107305:579::-;107382:4;114022:11;;;;114014:34;;;;;-1:-1:-1;;;114014:34:0;;;;;;;;;;;;-1:-1:-1;;;114014:34:0;;;;;;;;;;;;;;;114073:5;114059:19;;-1:-1:-1;;114059:19:0;;;107412:16;:14;:16::i;:::-;107399:29;-1:-1:-1;107443:29:0;;107439:279;;107634:72;107645:5;107639:12;;;;;;;;107653:52;107634:4;:72::i;107439:279::-;107840:36;107863:12;107840:22;:36::i;116934:133::-;116997:4;117021:38;117046:12;117021:24;:38::i;6426:25::-;;;;:::o;4680:20::-;;;;;;;;;;;;;;-1:-1:-1;;4680:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54575:287;54642:4;54660:13;54675:11;54690:36;54718:7;54690:27;:36::i;:::-;54659:67;;-1:-1:-1;54659:67:0;-1:-1:-1;54752:18:0;54745:3;:25;;;;;;;;;54737:93;;;;-1:-1:-1;;;54737:93:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44267:1529;44621:5;;;;;-1:-1:-1;;;;;44621:5:0;44607:10;:19;44599:68;;;;-1:-1:-1;;;44599:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44686:18;;:23;:43;;;;-1:-1:-1;44713:11:0;;:16;44686:43;44678:91;;;;-1:-1:-1;;;44678:91:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44820:27;:58;;;44897:31;44889:92;;;;-1:-1:-1;;;44889:92:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45026:8;45037:29;45053:12;45037:15;:29::i;:::-;45026:40;-1:-1:-1;45085:27:0;;45077:66;;;;;-1:-1:-1;;;45077:66:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;45283:16;:14;:16::i;:::-;45262:18;:37;25709:4;45310:11;:25;45435:46;45462:18;45435:26;:46::i;:::-;45429:52;-1:-1:-1;45500:27:0;;45492:74;;;;-1:-1:-1;;;45492:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45579:12;;;;:4;;:12;;;;;:::i;:::-;-1:-1:-1;45602:16:0;;;;:6;;:16;;;;;:::i;:::-;-1:-1:-1;;45629:8:0;:20;;;;;;-1:-1:-1;;45629:20:0;;;;;;:8;45770:18;;;;;45629:20;45770:18;;;-1:-1:-1;;;;;44267:1529:0:o;115981:133::-;116030:4;116048:8;116061:24;116074:10;116061:12;:24::i;59204:3852::-;59246:4;59312:23;59338:16;:14;:16::i;:::-;59396:18;;59312:42;;-1:-1:-1;59484:45:0;;;59480:105;;;59558:14;59546:27;;;;;;59480:105;59652:14;59669;:12;:14::i;:::-;59714:12;;59758:13;;59806:11;;59914:17;;:71;;;-1:-1:-1;;;59914:71:0;;;;;;;;;;;;;;;;;;;;;;59652:31;;-1:-1:-1;59714:12:0;;59758:13;;59806:11;;59694:17;;-1:-1:-1;;;;;59914:17:0;;;;:31;;:71;;;;;;;;;;;;;;:17;:71;;;5:2:-1;;;;30:1;27;20:12;5:2;59914:71:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;59914:71:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;59914:71:0;;-1:-1:-1;4955:9:0;60004:43;;;59996:84;;;;;-1:-1:-1;;;59996:84:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;60171:17;60190:15;60209:52;60217:18;60237:23;60209:7;:52::i;:::-;60170:91;;-1:-1:-1;60170:91:0;-1:-1:-1;60291:18:0;60280:7;:29;;;;;;;;;60272:73;;;;;-1:-1:-1;;;60272:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;60837:31;;:::i;:::-;60879:24;60914:20;60945:21;60977:19;61043:58;61053:35;;;;;;;;61068:18;61053:35;;;61090:10;61043:9;:58::i;:::-;61009:92;;-1:-1:-1;61009:92:0;-1:-1:-1;61127:18:0;61116:7;:29;;;;;;;;;61112:183;;61169:114;61180:16;61198:69;61274:7;61269:13;;;;;;;;61169:10;:114::i;:::-;61162:121;;;;;;;;;;;;;;;;;;61112:183;61340:53;61358:20;61380:12;61340:17;:53::i;:::-;61307:86;;-1:-1:-1;61307:86:0;-1:-1:-1;61419:18:0;61408:7;:29;;;;;;;;;61404:181;;61461:112;61472:16;61490:67;61564:7;61559:13;;;;;;;61404:181;61626:42;61634:19;61655:12;61626:7;:42::i;:::-;61597:71;;-1:-1:-1;61597:71:0;-1:-1:-1;61694:18:0;61683:7;:29;;;;;;;;;61679:178;;61736:109;61747:16;61765:64;61836:7;61831:13;;;;;;;61679:178;61899:100;61924:38;;;;;;;;61939:21;;61924:38;;;61964:19;61985:13;61899:24;:100::i;:::-;61869:130;;-1:-1:-1;61869:130:0;-1:-1:-1;62025:18:0;62014:7;:29;;;;;;;;;62010:179;;62067:110;62078:16;62096:65;62168:7;62163:13;;;;;;;62010:179;62229:82;62254:20;62276:16;62294;62229:24;:82::i;:::-;62201:110;;-1:-1:-1;62201:110:0;-1:-1:-1;62337:18:0;62326:7;:29;;;;;;;;;62322:177;;62379:108;62390:16;62408:63;62478:7;62473:13;;;;;;;62322:177;62702:18;:39;;;62752:11;:28;;;62791:12;:30;;;62832:13;:32;;;62929:79;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63033:14;63021:27;;;;;;;;;;;;;;;;59204:3852;:::o;48736:185::-;48814:4;114022:11;;;;114014:34;;;;;-1:-1:-1;;;114014:34:0;;;;;;;;;;;;-1:-1:-1;;;114014:34:0;;;;;;;;;;;;;;;114073:5;114059:19;;-1:-1:-1;;114059:19:0;;;48838:51;48853:10;48865;48877:3;48882:6;48838:14;:51::i;:::-;:75;48831:82;;114101:11;:18;;-1:-1:-1;;114101:18:0;114115:4;114101:18;;;48736:185;;-1:-1:-1;;48736:185:0:o;6161:23::-;;;;:::o;53329:184::-;53406:17;;53382:4;;-1:-1:-1;;;;;53406:17:0;:31;53438:14;:12;:14::i;:::-;53454:12;;53468:13;;53483:21;;53406:99;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;53406:99:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;53406:99:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;53406:99:0;;-1:-1:-1;53329:184:0;:::o;91564:194::-;91666:4;114022:11;;;;114014:34;;;;;-1:-1:-1;;;114014:34:0;;;;;;;;;;;;-1:-1:-1;;;114014:34:0;;;;;;;;;;;;;;;114073:5;114059:19;;-1:-1:-1;;114059:19:0;;;91690:60;91704:10;91716;91728:8;91738:11;91690:13;:60::i;:::-;91683:67;;114101:11;:18;;-1:-1:-1;;114101:18:0;114115:4;114101:18;;;91564:194;;-1:-1:-1;;;91564:194:0:o;96605:647::-;96750:5;;96682:4;;96750:5;;;-1:-1:-1;;;;;96750:5:0;96736:10;:19;96732:126;;96779:67;96784:18;96804:41;96779:4;:67::i;96732:126::-;96957:12;;;-1:-1:-1;;;;;97040:30:0;;;-1:-1:-1;;;;;;97040:30:0;;;;;;;97155:49;;;96957:12;;;;97155:49;;;;;;;;;;;;;;;;;;;;;;;97229:14;97224:20;;56539:198;56599:4;114022:11;;;;114014:34;;;;;-1:-1:-1;;;114014:34:0;;;;;;;;;;;;-1:-1:-1;;;114014:34:0;;;;;;;;;;;;;;;114073:5;114059:19;;-1:-1:-1;;114059:19:0;;;56624:16;:14;:16::i;:::-;:40;56616:75;;;;;-1:-1:-1;;;56616:75:0;;;;;;;;;;;;-1:-1:-1;;;56616:75:0;;;;;;;;;;;;;;;56709:20;:18;:20::i;:::-;56702:27;;114101:11;:18;;-1:-1:-1;;114101:18:0;114115:4;114101:18;;;56539:198;:::o;51861:703::-;-1:-1:-1;;;;;51985:22:0;;51929:4;51985:22;;;:13;:22;;;;;;51929:4;;;;;;;;;52136:36;51999:7;52136:27;:36::i;:::-;52112:60;-1:-1:-1;52112:60:0;-1:-1:-1;52195:18:0;52187:4;:26;;;;;;;;;52183:99;;52243:16;52238:22;52230:40;-1:-1:-1;52262:1:0;;-1:-1:-1;52262:1:0;;-1:-1:-1;52262:1:0;;-1:-1:-1;52230:40:0;;-1:-1:-1;;;;52230:40:0;52183:99;52325:28;:26;:28::i;:::-;52294:59;-1:-1:-1;52294:59:0;-1:-1:-1;52376:18:0;52368:4;:26;;;;;;;;;52364:99;;52424:16;52419:22;;52364:99;-1:-1:-1;52488:14:0;;-1:-1:-1;52505:13:0;;-1:-1:-1;52520:13:0;-1:-1:-1;52520:13:0;-1:-1:-1;51861:703:0;;;;;;:::o;117335:113::-;117388:4;117412:28;117427:12;117412:14;:28::i;116465:113::-;116518:4;116542:28;116557:12;116542:14;:28::i;50460:143::-;-1:-1:-1;;;;;50561:25:0;;;50534:7;50561:25;;;:18;:25;;;;;;;;:34;;;;;;;;;;;;;50460:143::o;97530:742::-;97680:12;;97572:4;;-1:-1:-1;;;;;97680:12:0;97666:10;:26;;;:54;;-1:-1:-1;97696:10:0;:24;97666:54;97662:164;;;97744:70;97749:18;97769:44;97744:4;:70::i;:::-;97737:77;;;;97662:164;97910:5;;;97952:12;;;-1:-1:-1;;;;;97952:12:0;;;97910:5;98025:20;;;-1:-1:-1;;;;;;98025:20:0;;;;;;;-1:-1:-1;;;;;;98094:25:0;;;;;;98137;;;97910:5;;;;;;98137:25;;;98156:5;;;;;98137:25;;;;;;97910:5;;97952:12;;98137:25;;;;;;;;;98211:12;;98178:46;;;-1:-1:-1;;;;;98178:46:0;;;;;98211:12;;;98178:46;;;;;;;;;;;;;;;;98249:14;98237:27;;;;97530:742;:::o;110493:633::-;110580:4;110597:10;110610:16;:14;:16::i;:::-;110597:29;-1:-1:-1;110641:29:0;;110637:298;;110845:78;110856:5;110850:12;;;;;;;;110864:58;110845:4;:78::i;:::-;110838:85;;;;;110637:298;111070:48;111097:20;111070:26;:48::i;5578:42::-;;;-1:-1:-1;;;;;5578:42:0;;:::o;118764:237::-;118877:4;118895:8;118908:64;118932:8;118942:11;118955:16;118908:23;:64::i;:::-;-1:-1:-1;118894:78:0;118764:237;-1:-1:-1;;;;;118764:237:0:o;5200:28::-;;;;;;-1:-1:-1;;;;;5200:28:0;;:::o;52992:161::-;53069:17;;53045:4;;-1:-1:-1;;;;;53069:17:0;:31;53101:14;:12;:14::i;:::-;53117:12;;53131:13;;53069:76;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;99535:607:0;99624:4;114022:11;;;;114014:34;;;;;-1:-1:-1;;;114014:34:0;;;;;;;;;;;;-1:-1:-1;;;114014:34:0;;;;;;;;;;;;;;;114073:5;114059:19;;-1:-1:-1;;114059:19:0;;;99654:16;:14;:16::i;:::-;99641:29;-1:-1:-1;99685:29:0;;99681:286;;99882:73;99893:5;99887:12;;;;;;;;99901:53;99882:4;:73::i;99681:286::-;100086:48;100109:24;100086:22;:48::i;79675:572::-;79753:4;114022:11;;79753:4;;114022:11;;114014:34;;;;;-1:-1:-1;;;114014:34:0;;;;;;;;;;;;-1:-1:-1;;;114014:34:0;;;;;;;;;;;;;;;114073:5;114059:19;;-1:-1:-1;;114059:19:0;;;79789:16;:14;:16::i;:::-;79776:29;-1:-1:-1;79820:29:0;;79816:260;;79993:67;80004:5;79998:12;;;;;;;;80012:47;79993:4;:67::i;:::-;79985:79;-1:-1:-1;80062:1:0;;-1:-1:-1;79985:79:0;;-1:-1:-1;79985:79:0;79816:260;80186:53;80203:10;80215;80227:11;80186:16;:53::i;:::-;80179:60;;;;;114089:1;114101:11;:18;;-1:-1:-1;;114101:18:0;114115:4;114101:18;;;79675:572;;;;-1:-1:-1;79675:572:0:o;57512:1186::-;57621:11;;57573:9;;;;57647:17;57643:1048;;-1:-1:-1;;57841:27:0;;57821:18;;-1:-1:-1;57813:56:0;;57643:1048;58051:14;58068;:12;:14::i;:::-;58051:31;;58097:33;58145:23;;:::i;:::-;58183:17;58259:54;58274:9;58285:12;;58299:13;;58259:14;:54::i;:::-;58217:96;-1:-1:-1;58217:96:0;-1:-1:-1;58343:18:0;58332:7;:29;;;;;;;;;58328:89;;58390:7;-1:-1:-1;58399:1:0;;-1:-1:-1;58382:19:0;;-1:-1:-1;;;;58382:19:0;58328:89;58459:50;58466:28;58496:12;58459:6;:50::i;:::-;58433:76;-1:-1:-1;58433:76:0;-1:-1:-1;58539:18:0;58528:7;:29;;;;;;;;;58524:89;;58586:7;-1:-1:-1;58595:1:0;;-1:-1:-1;58578:19:0;;-1:-1:-1;;;;58578:19:0;58524:89;-1:-1:-1;58657:21:0;58637:18;;-1:-1:-1;58657:21:0;-1:-1:-1;58629:50:0;;-1:-1:-1;;;58629:50:0;57512:1186;;;:::o;46259:2216::-;46433:11;;:60;;;-1:-1:-1;;;46433:60:0;;46469:4;46433:60;;;;-1:-1:-1;;;;;46433:60:0;;;;;;;;;;;;;;;;;;;;;;46357:4;;;;46433:11;;:27;;:60;;;;;;;;;;;;;;46357:4;46433:11;:60;;;5:2:-1;;;;30:1;27;20:12;5:2;46433:60:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;46433:60:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;46433:60:0;;-1:-1:-1;46508:12:0;;46504:144;;46544:92;46555:27;46584:42;46628:7;46544:10;:92::i;:::-;46537:99;;;;;46504:144;46714:3;-1:-1:-1;;;;;46707:10:0;:3;-1:-1:-1;;;;;46707:10:0;;46703:105;;;46741:55;46746:15;46763:32;46741:4;:55::i;46703:105::-;46885:22;-1:-1:-1;;;;;46926:14:0;;;;;;;46922:160;;;-1:-1:-1;;;46922:160:0;;;-1:-1:-1;;;;;;47038:23:0;;;;;;;:18;:23;;;;;;;;:32;;;;;;;;;;46922:160;47160:17;47188;47216;47244;47300:34;47308:17;47327:6;47300:7;:34::i;:::-;47274:60;;-1:-1:-1;47274:60:0;-1:-1:-1;47360:18:0;47349:7;:29;;;;;;;;;47345:125;;47402:56;47407:16;47425:32;47402:4;:56::i;:::-;47395:63;;;;;;;;;;47345:125;-1:-1:-1;;;;;47516:18:0;;;;;;:13;:18;;;;;;47508:35;;47536:6;47508:7;:35::i;:::-;47482:61;;-1:-1:-1;47482:61:0;-1:-1:-1;47569:18:0;47558:7;:29;;;;;;;;;47554:124;;47611:55;47616:16;47634:31;47611:4;:55::i;47554:124::-;-1:-1:-1;;;;;47724:18:0;;;;;;:13;:18;;;;;;47716:35;;47744:6;47716:7;:35::i;:::-;47690:61;;-1:-1:-1;47690:61:0;-1:-1:-1;47777:18:0;47766:7;:29;;;;;;;;;47762:122;;47819:53;47824:16;47842:29;47819:4;:53::i;47762:122::-;-1:-1:-1;;;;;48017:18:0;;;;;;;:13;:18;;;;;;:33;;;48061:18;;;;;;:33;;;-1:-1:-1;;48167:29:0;;48163:109;;-1:-1:-1;;;;;48213:23:0;;;;;;;:18;:23;;;;;;;;:32;;;;;;;;;:47;;;48163:109;48343:3;-1:-1:-1;;;;;48329:26:0;48338:3;-1:-1:-1;;;;;48329:26:0;-1:-1:-1;;;;;;;;;;;48348:6:0;48329:26;;;;;;;;;;;;;;;;;;48368:11;;:59;;;-1:-1:-1;;;48368:59:0;;48403:4;48368:59;;;;-1:-1:-1;;;;;48368:59:0;;;;;;;;;;;;;;;;;;;;;;:11;;;;;:26;;:59;;;;;:11;;:59;;;;;;;:11;;:59;;;5:2:-1;;;;30:1;27;20:12;5:2;48368:59:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;48452:14:0;;-1:-1:-1;48447:20:0;;-1:-1:-1;;48447:20:0;;48440:27;46259:2216;-1:-1:-1;;;;;;;;;;;46259:2216:0:o;80580:594::-;80682:4;114022:11;;80682:4;;114022:11;;114014:34;;;;;-1:-1:-1;;;114014:34:0;;;;;;;;;;;;-1:-1:-1;;;114014:34:0;;;;;;;;;;;;;;;114073:5;114059:19;;-1:-1:-1;;114059:19:0;;;80718:16;:14;:16::i;:::-;80705:29;-1:-1:-1;80749:29:0;;80745:260;;80922:67;80933:5;80927:12;;;;;;;;80941:47;80922:4;:67::i;:::-;80914:79;-1:-1:-1;80991:1:0;;-1:-1:-1;80914:79:0;;-1:-1:-1;80914:79:0;80745:260;81115:51;81132:10;81144:8;81154:11;81115:16;:51::i;:::-;81108:58;;;;;114089:1;114101:11;:18;;-1:-1:-1;;114101:18:0;114115:4;114101:18;;;80580:594;;;;-1:-1:-1;80580:594:0;-1:-1:-1;80580:594:0:o;27863:313::-;27940:9;27951:4;27969:13;27984:18;;:::i;:::-;28006:20;28016:1;28019:6;28006:9;:20::i;:::-;27968:58;;-1:-1:-1;27968:58:0;-1:-1:-1;28048:18:0;28041:3;:25;;;;;;;;;28037:73;;-1:-1:-1;28091:3:0;-1:-1:-1;28096:1:0;;-1:-1:-1;28083:15:0;;28037:73;28130:18;28150:17;28159:7;28150:8;:17::i;:::-;28122:46;;;;;;27863:313;;;;;;:::o;119622:169::-;119724:10;;119753:30;;;-1:-1:-1;;;119753:30:0;;119777:4;119753:30;;;;;;119669:4;;-1:-1:-1;;;;;119724:10:0;;;;119753:15;;:30;;;;;;;;;;;;;;;119724:10;119753:30;;;5:2:-1;;;;30:1;27;20:12;5:2;119753:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;119753:30:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;119753:30:0;;-1:-1:-1;;119622:169:0;:::o;101639:590::-;101716:4;114022:11;;;;114014:34;;;;;-1:-1:-1;;;114014:34:0;;;;;;;;;;;;-1:-1:-1;;;114014:34:0;;;;;;;;;;;;;;;114073:5;114059:19;;-1:-1:-1;;114059:19:0;;;101746:16;:14;:16::i;:::-;101733:29;-1:-1:-1;101777:29:0;;101773:274;;101968:67;101979:5;101973:12;;;;;;;;101987:47;101968:4;:67::i;101773:274::-;102170:28;102188:9;102170:17;:28::i;:::-;-1:-1:-1;102158:40:0;-1:-1:-1;;114101:11:0;:18;;-1:-1:-1;;114101:18:0;114115:4;114101:18;;;101639:590;;-1:-1:-1;101639:590:0:o;22457:153::-;22518:4;22540:33;22553:3;22548:9;;;;;;;;22564:4;22559:10;;;;;;;;22540:33;;;;;;;;;;;;;22571:1;22540:33;;;;;;;;;;;;;22598:3;22593:9;;;;;;;105303:1747;105514:5;;105370:4;;;;105514:5;;;-1:-1:-1;;;;;105514:5:0;105500:10;:19;105496:124;;105543:65;105548:18;105568:39;105543:4;:65::i;105496:124::-;105746:16;:14;:16::i;:::-;105724:18;;:38;105720:147;;105786:69;105791:22;105815:39;105786:4;:69::i;105720:147::-;105973:12;105956:14;:12;:14::i;:::-;:29;105952:152;;;106009:83;106014:29;106045:46;106009:4;:83::i;105952:152::-;106198:13;;106183:12;:28;106179:129;;;106235:61;106240:15;106257:38;106235:4;:61::i;106179:129::-;-1:-1:-1;106460:13:0;;:28;;;;106596:33;;;106588:82;;;;-1:-1:-1;;;106588:82:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;106744:13;:32;;;106910:5;;106896:34;;106910:5;;;-1:-1:-1;;;;;106910:5:0;106917:12;106896:13;:34::i;:::-;106964:5;;106948:54;;;106964:5;;;;-1:-1:-1;;;;;106964:5:0;106948:54;;;;;;;;;;;;;;;;;;;;;;;;;107027:14;107022:20;;108163:1961;108232:4;108290:21;108407:11;;;;;;;;;-1:-1:-1;;;;;108407:11:0;-1:-1:-1;;;;;108386:50:0;;:52;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;108386:52:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;108386:52:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;108386:52:0;-1:-1:-1;;;;;108372:66:0;:10;:66;108368:173;;108462:67;108467:18;108487:41;108462:4;:67::i;108368:173::-;108667:16;:14;:16::i;:::-;108645:18;;:38;108641:149;;108707:71;108712:22;108736:41;108707:4;:71::i;108641:149::-;108896:12;108879:14;:12;:14::i;:::-;:29;108875:154;;;108932:85;108937:29;108968:48;108932:4;:85::i;108875:154::-;109123:13;;109108:12;:28;109104:131;;;109160:63;109165:15;109182:40;109160:4;:63::i;109104:131::-;-1:-1:-1;109387:13:0;;:28;;;;109523:33;;;109515:82;;;;-1:-1:-1;;;109515:82:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;109671:13;:32;;;109858:11;;109837:51;;;-1:-1:-1;;;109837:51:0;;;;109823:80;;-1:-1:-1;;;;;109858:11:0;;109837:49;;:51;;;;;;;;;;;;;;109858:11;109837:51;;;5:2:-1;;;;30:1;27;20:12;5:2;109837:51:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;109837:51:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;109837:51:0;109890:12;109823:13;:80::i;:::-;109959:11;;109938:52;;;-1:-1:-1;;;109938:52:0;;;;109921:155;;-1:-1:-1;;;;;109959:11:0;;109938:50;;:52;;;;;;;;;;;;;;109959:11;109938:52;;;5:2:-1;;;;30:1;27;20:12;5:2;109938:52:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;109938:52:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;109938:52:0;110013:11;;109992:51;;;-1:-1:-1;;;109992:51:0;;;;-1:-1:-1;;;;;110013:11:0;;;;109992:49;;:51;;;;;109938:52;;109992:51;;;;;;;;110013:11;109992:51;;;5:2:-1;;;;30:1;27;20:12;5:2;109992:51:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;109992:51:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;109992:51:0;109921:155;;;-1:-1:-1;;;;;109921:155:0;;;;;;;;;109992:51;109921:155;;;;;;;;;;;;;;;;;;;;;;;;110101:14;110096:20;;69145:537;69229:4;114022:11;;;;114014:34;;;;;-1:-1:-1;;;114014:34:0;;;;;;;;;;;;-1:-1:-1;;;114014:34:0;;;;;;;;;;;;;;;114073:5;114059:19;;-1:-1:-1;;114059:19:0;;;69259:16;:14;:16::i;:::-;69246:29;-1:-1:-1;69290:29:0;;69286:249;;69462:61;69473:5;69467:12;;;;;;;;69481:41;69462:4;:61::i;69286:249::-;69634:40;69646:10;69658:1;69661:12;69634:11;:40::i;55116:1268::-;-1:-1:-1;;;;;55465:23:0;;55193:9;55465:23;;;:14;:23;;;;;55694:24;;55193:9;;;;;;;;55690:92;;-1:-1:-1;55748:18:0;;-1:-1:-1;55748:18:0;;-1:-1:-1;55740:30:0;;-1:-1:-1;;;55740:30:0;55690:92;56009:46;56017:14;:24;;;56043:11;;56009:7;:46::i;:::-;55976:79;;-1:-1:-1;55976:79:0;-1:-1:-1;56081:18:0;56070:7;:29;;;;;;;;;56066:81;;-1:-1:-1;56124:7:0;;-1:-1:-1;56133:1:0;;-1:-1:-1;56116:19:0;;-1:-1:-1;;56116:19:0;56066:81;56179:58;56187:19;56208:14;:28;;;56179:7;:58::i;:::-;56159:78;;-1:-1:-1;56159:78:0;-1:-1:-1;56263:18:0;56252:7;:29;;;;;;;;;56248:81;;-1:-1:-1;56306:7:0;;-1:-1:-1;56315:1:0;;-1:-1:-1;56298:19:0;;-1:-1:-1;;56298:19:0;56248:81;-1:-1:-1;56349:18:0;;-1:-1:-1;56369:6:0;-1:-1:-1;;;55116:1268:0;;;;:::o;52723:93::-;52796:12;52723:93;:::o;111456:1299::-;111756:5;;111550:4;;;;111756:5;;;-1:-1:-1;;;;;111756:5:0;111742:10;:19;111738:132;;111785:73;111790:18;111810:47;111785:4;:73::i;111738:132::-;111996:16;:14;:16::i;:::-;111974:18;;:38;111970:155;;112036:77;112041:22;112065:47;112036:4;:77::i;111970:155::-;112219:17;;;;;;;;;-1:-1:-1;;;;;112219:17:0;112196:40;;112339:20;-1:-1:-1;;;;;112339:40:0;;:42;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;112339:42:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;112339:42:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;112339:42:0;112331:83;;;;;-1:-1:-1;;;112331:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;112491:17;:40;;-1:-1:-1;;;;;;112491:40:0;-1:-1:-1;;;;;112491:40:0;;;;;;;;;112637:70;;;;;;;;;;;;;;;;;;;;;;;;;;;112732:14;112727:20;;63454:547;63524:4;114022:11;;63524:4;;114022:11;;114014:34;;;;;-1:-1:-1;;;114014:34:0;;;;;;;;;;;;-1:-1:-1;;;114014:34:0;;;;;;;;;;;;;;;114073:5;114059:19;;-1:-1:-1;;114059:19:0;;;63560:16;:14;:16::i;:::-;63547:29;-1:-1:-1;63591:29:0;;63587:252;;63764:59;63775:5;63769:12;;;;;;;;63783:39;63764:4;:59::i;63587:252::-;63960:33;63970:10;63982;63960:9;:33::i;24317:236::-;24373:9;24384:4;24410:1;24405;:6;24401:145;;-1:-1:-1;24436:18:0;;-1:-1:-1;24456:5:0;;;24428:34;;24401:145;-1:-1:-1;24503:27:0;;-1:-1:-1;24532:1:0;24495:39;;27397:353;27466:9;27477:10;;:::i;:::-;27501:14;27517:19;27540:27;27548:1;:10;;;27560:6;27540:7;:27::i;:::-;27500:67;;-1:-1:-1;27500:67:0;-1:-1:-1;27590:18:0;27582:4;:26;;;;;;;;;27578:92;;-1:-1:-1;27639:18:0;;;;;;;;;-1:-1:-1;27639:18:0;;27633:4;;-1:-1:-1;27639:18:0;-1:-1:-1;27625:33:0;;27578:92;27710:31;;;;;;;;;;;;-1:-1:-1;;27710:31:0;;-1:-1:-1;27397:353:0;-1:-1:-1;;;;27397:353:0:o;22733:187::-;22818:4;22840:43;22853:3;22848:9;;;;;;;;22864:4;22859:10;;;;;;;;22840:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;22908:3;22903:9;;;;;;;24638:258;24694:9;;24731:5;;;24753:6;;;24749:140;;24784:18;;-1:-1:-1;24804:1:0;-1:-1:-1;24776:30:0;;24749:140;-1:-1:-1;24847:26:0;;-1:-1:-1;24875:1:0;;-1:-1:-1;24839:38:0;;28321:328;28418:9;28429:4;28447:13;28462:18;;:::i;:::-;28484:20;28494:1;28497:6;28484:9;:20::i;:::-;28446:58;;-1:-1:-1;28446:58:0;-1:-1:-1;28526:18:0;28519:3;:25;;;;;;;;;28515:73;;-1:-1:-1;28569:3:0;-1:-1:-1;28574:1:0;;-1:-1:-1;28561:15:0;;28515:73;28607:34;28615:17;28624:7;28615:8;:17::i;:::-;28634:6;28607:7;:34::i;:::-;28600:41;;;;;;28321:328;;;;;;;:::o;92780:3376::-;92971:11;;:87;;;-1:-1:-1;;;92971:87:0;;93004:4;92971:87;;;;-1:-1:-1;;;;;92971:87:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;92898:4;;;;92971:11;;:24;;:87;;;;;;;;;;;;;;92898:4;92971:11;:87;;;5:2:-1;;;;30:1;27;20:12;5:2;92971:87:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;92971:87:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;92971:87:0;;-1:-1:-1;93073:12:0;;93069:151;;93109:99;93120:27;93149:49;93200:7;93109:10;:99::i;93069:151::-;93293:10;-1:-1:-1;;;;;93281:22:0;:8;-1:-1:-1;;;;;93281:22:0;;93277:146;;;93327:84;93332:26;93360:50;93327:4;:84::i;93277:146::-;93542:34;;:::i;:::-;-1:-1:-1;;;;;93913:23:0;;;;;;:13;:23;;;;;;93905:45;;93938:11;93905:7;:45::i;:::-;93879:22;;;93864:86;;;93865:4;93864:86;;;;;;;;;;;;;;;;;;;-1:-1:-1;93981:18:0;;-1:-1:-1;93965:12:0;;:34;;;;;;;;;93961:176;;94023:102;94034:16;94052:52;94111:4;:12;;;94106:18;;;;;;;94023:102;94016:109;;;;;;93961:176;94176:62;94181:11;94194:43;;;;;;;;7555:4;94194:43;;;94176:4;:62::i;:::-;94149:24;;;:89;;;94278:43;;94283:11;;94278:4;:43::i;:::-;94249:26;;;:72;94378:28;:26;:28::i;:::-;94349:25;;;94334:72;;;94335:4;94334:72;;;;;;;;;;;;;;;;;;;-1:-1:-1;94441:18:0;;-1:-1:-1;94425:12:0;;:34;;;;;;;;;94417:71;;;;;-1:-1:-1;;;94417:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;94544:87;94562:42;;;;;;;;94577:4;:25;;;94562:42;;;94606:4;:24;;;94544:17;:87::i;:::-;94516:24;;;94501:130;;;94502:4;94501:130;;;;;;;;;;;;;;;;;;;-1:-1:-1;94662:18:0;;-1:-1:-1;94646:12:0;;:34;;;;;;;;;94642:176;;94704:102;94715:16;94733:52;94792:4;:12;;;94787:18;;;;;;;94642:176;94854:45;94859:13;;94874:4;:24;;;94854:4;:45::i;:::-;94830:21;;;:69;94937:11;;94950:24;;;;94932:43;;94937:11;94932:4;:43::i;:::-;94910:19;;;:65;-1:-1:-1;;;;;95041:25:0;;;;;;:13;:25;;;;;;95068:26;;;;95033:62;;95041:25;95033:7;:62::i;:::-;95005:24;;;94990:105;;;94991:4;94990:105;;;;;;;;;;;;;;;;;;;-1:-1:-1;95126:18:0;;-1:-1:-1;95110:12:0;;:34;;;;;;;;;95106:176;;95168:102;95179:16;95197:52;95256:4;:12;;;95251:18;;;;;;;95106:176;95501:21;;;;95485:13;:37;95547:19;;;;95533:11;:33;95603:22;;;;;-1:-1:-1;;;;;95577:23:0;;;-1:-1:-1;95577:23:0;;;:13;:23;;;;;;:48;;;;95664:24;;;;95636:25;;;;;;;;;;:52;;;;95774:26;;;;95743:58;;;;;;;95636:25;;95577:23;;-1:-1:-1;;;;;;;;;;;95743:58:0;;;;;;;;;;95851:24;;;;95817:59;;;;;;;95844:4;;-1:-1:-1;;;;;95817:59:0;;;-1:-1:-1;;;;;;;;;;;95817:59:0;;;;;;;;95921:24;;;;95947:21;;;;95892:77;;;95914:4;95892:77;;;;;;;;;;;;;;;;;;;;;;;;;;96022:11;;:86;;;-1:-1:-1;;;96022:86:0;;96054:4;96022:86;;;;-1:-1:-1;;;;;96022:86:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:11;;;;;:23;;:86;;;;;:11;;:86;;;;;;;:11;;:86;;;5:2:-1;;;;30:1;27;20:12;5:2;96022:86:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;96133:14:0;;-1:-1:-1;96128:20:0;;-1:-1:-1;;96128:20:0;;96121:27;92780:3376;-1:-1:-1;;;;;;;92780:3376:0:o;75437:524::-;75511:4;114022:11;;;;114014:34;;;;;-1:-1:-1;;;114014:34:0;;;;;;;;;;;;-1:-1:-1;;;114014:34:0;;;;;;;;;;;;;;;114073:5;114059:19;;-1:-1:-1;;114059:19:0;;;75541:16;:14;:16::i;:::-;75528:29;-1:-1:-1;75572:29:0;;75568:249;;75744:61;75755:5;75749:12;;;;;;;;75763:41;75744:4;:61::i;75568:249::-;75916:37;75928:10;75940:12;75916:11;:37::i;68238:527::-;68312:4;114022:11;;;;114014:34;;;;;-1:-1:-1;;;114014:34:0;;;;;;;;;;;;-1:-1:-1;;;114014:34:0;;;;;;;;;;;;;;;114073:5;114059:19;;-1:-1:-1;;114059:19:0;;;68342:16;:14;:16::i;:::-;68329:29;-1:-1:-1;68373:29:0;;68369:249;;68545:61;68556:5;68550:12;;;;;;;68369:249;68717:40;68729:10;68741:12;68755:1;68717:11;:40::i;85815:994::-;85949:4;114022:11;;85949:4;;114022:11;;114014:34;;;;;-1:-1:-1;;;114014:34:0;;;;;;;;;;;;-1:-1:-1;;;114014:34:0;;;;;;;;;;;;;;;114073:5;114059:19;;-1:-1:-1;;114059:19:0;;;85985:16;:14;:16::i;:::-;85972:29;-1:-1:-1;86016:29:0;;86012:269;;86194:71;86205:5;86199:12;;;;;;;;86213:51;86194:4;:71::i;:::-;86186:83;-1:-1:-1;86267:1:0;;-1:-1:-1;86186:83:0;;-1:-1:-1;86186:83:0;86012:269;86301:16;-1:-1:-1;;;;;86301:31:0;;:33;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;86301:33:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;86301:33:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;86301:33:0;;-1:-1:-1;86349:29:0;;86345:273;;86527:75;86538:5;86532:12;;;;;;;;86546:55;86527:4;:75::i;86345:273::-;86728:73;86749:10;86761:8;86771:11;86784:16;86728:20;:73::i;:::-;86721:80;;;;;114089:1;114101:11;:18;;-1:-1:-1;;114101:18:0;114115:4;114101:18;;;85815:994;;;;-1:-1:-1;85815:994:0;-1:-1:-1;;85815:994:0:o;100410:973::-;100560:5;;100491:4;;100560:5;;;-1:-1:-1;;;;;100560:5:0;100546:10;:19;100542:127;;100589:68;100594:18;100614:42;100589:4;:68::i;100542:127::-;100776:16;:14;:16::i;:::-;100754:18;;:38;100750:150;;100816:72;100821:22;100845:42;100816:4;:72::i;100750:150::-;5121:4;100972:24;:51;100968:157;;;101047:66;101052:15;101069:43;101047:4;:66::i;100968:157::-;101169:21;;;101201:48;;;;101267:68;;;;;;;;;;;;;;;;;;;;;;;;;101360:14;101355:20;;81879:3409;82059:11;;:75;;;-1:-1:-1;;;82059:75:0;;82098:4;82059:75;;;;-1:-1:-1;;;;;82059:75:0;;;;;;;;;;;;;;;;;;;;;;81974:4;;;;;;82059:11;;;:30;;:75;;;;;;;;;;;;;;;81974:4;82059:11;:75;;;5:2:-1;;;;30:1;27;20:12;5:2;82059:75:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;82059:75:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;82059:75:0;;-1:-1:-1;82149:12:0;;82145:153;;82186:96;82197:27;82226:46;82274:7;82186:10;:96::i;:::-;82178:108;-1:-1:-1;82284:1:0;;-1:-1:-1;82178:108:0;;-1:-1:-1;82178:108:0;82145:153;82408:16;:14;:16::i;:::-;82386:18;;:38;82382:153;;82449:70;82454:22;82478:40;82449:4;:70::i;82382:153::-;82547:32;;:::i;:::-;-1:-1:-1;;;;;82693:24:0;;;;;;:14;:24;;;;;:38;;;82672:18;;;:59;82862:37;82708:8;82862:27;:37::i;:::-;82839:19;;;82824:75;;;82825:12;;;82824:75;;;;;;;;;;;;;;;;;;;-1:-1:-1;82930:18:0;;-1:-1:-1;82914:4:0;:12;;;:34;;;;;;;;;82910:192;;82973:113;82984:16;83002:63;83072:4;:12;;;83067:18;;;;;;;82973:113;82965:125;-1:-1:-1;83088:1:0;;-1:-1:-1;82965:125:0;;-1:-1:-1;;82965:125:0;82910:192;-1:-1:-1;;83184:11:0;:23;83180:157;;;83243:19;;;;83224:16;;;:38;83180:157;;;83295:16;;;:30;;;83180:157;83935:37;83948:5;83955:4;:16;;;83935:12;:37::i;:::-;83910:22;;;:62;;;84282:19;;;;84274:52;;:7;:52::i;:::-;84248:22;;;84233:93;;;84234:12;;;84233:93;;;;;;;;;;;;;;;;;;;-1:-1:-1;84361:18:0;;-1:-1:-1;84345:4:0;:12;;;:34;;;;;;;;;84337:105;;;;-1:-1:-1;;;84337:105:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;84494:45;84502:12;;84516:4;:22;;;84494:7;:45::i;:::-;84470:20;;;84455:84;;;84456:12;;;84455:84;;;;;;;;;;;;;;;;;;;-1:-1:-1;84574:18:0;;-1:-1:-1;84558:4:0;:12;;;:34;;;;;;;;;84550:96;;;;-1:-1:-1;;;84550:96:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;84766:22;;;;;;-1:-1:-1;;;;;84729:24:0;;;;;;;:14;:24;;;;;;;;;:59;;;84840:11;;84799:38;;;;:52;;;;84877:20;;;;84862:12;:35;;;84987:22;;;;85011;;84958:98;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;85109:11;;85171:22;;;;85195:18;;;;85109:105;;;-1:-1:-1;;;85109:105:0;;85147:4;85109:105;;;;-1:-1:-1;;;;;85109:105:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:11;;;;;:29;;:105;;;;;:11;;:105;;;;;;;:11;;:105;;;5:2:-1;;;;30:1;27;20:12;5:2;85109:105:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;85240:14:0;;-1:-1:-1;85235:20:0;;-1:-1:-1;;85235:20:0;;85257:4;:22;;;85227:53;;;;;;81879:3409;;;;;;:::o;24965:271::-;25036:9;25047:4;25065:14;25081:8;25093:13;25101:1;25104;25093:7;:13::i;:::-;25064:42;;-1:-1:-1;25064:42:0;-1:-1:-1;25131:18:0;25123:4;:26;;;;;;;;;25119:75;;-1:-1:-1;25174:4:0;-1:-1:-1;25180:1:0;;-1:-1:-1;25166:16:0;;25119:75;25213:15;25221:3;25226:1;25213:7;:15::i;26156:515::-;26217:9;26228:10;;:::i;:::-;26252:14;26268:20;26292:22;26300:3;25709:4;26292:7;:22::i;:::-;26251:63;;-1:-1:-1;26251:63:0;-1:-1:-1;26337:18:0;26329:4;:26;;;;;;;;;26325:92;;-1:-1:-1;26386:18:0;;;;;;;;;-1:-1:-1;26386:18:0;;26380:4;;-1:-1:-1;26386:18:0;-1:-1:-1;26372:33:0;;26325:92;26430:14;26446:13;26463:31;26471:15;26488:5;26463:7;:31::i;:::-;26429:65;;-1:-1:-1;26429:65:0;-1:-1:-1;26517:18:0;26509:4;:26;;;;;;;;;26505:92;;-1:-1:-1;26566:18:0;;;;;;;;;-1:-1:-1;26566:18:0;;26560:4;;-1:-1:-1;26566:18:0;-1:-1:-1;26552:33:0;;-1:-1:-1;;26552:33:0;26505:92;26637:25;;;;;;;;;;;;-1:-1:-1;;26637:25:0;;-1:-1:-1;26156:515:0;-1:-1:-1;;;;;;26156:515:0:o;32676:213::-;32858:12;25709:4;32858:23;;;32676:213::o;102569:1631::-;102630:4;102636;102697:21;102729:20;102876:16;:14;:16::i;:::-;102854:18;;:38;102850:163;;102917:66;102922:22;102946:36;102917:4;:66::i;:::-;102909:92;-1:-1:-1;102985:15:0;-1:-1:-1;102909:92:0;;-1:-1:-1;102909:92:0;102850:163;103602:35;103615:10;103627:9;103602:12;:35::i;:::-;103584:53;;103685:15;103669:13;;:31;103650:50;;103775:13;;103755:16;:33;;103747:78;;;;;-1:-1:-1;;;103747:78:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;103902:13;:32;;;104023:60;;;104037:10;104023:60;;;;;;;;;;;;;;;;;;;;;;;;;104159:14;104146:46;-1:-1:-1;104176:15:0;-1:-1:-1;;102569:1631:0;;;:::o;122456:904::-;122592:10;;122614:26;;;-1:-1:-1;;;122614:26:0;;-1:-1:-1;;;;;122614:26:0;;;;;;;;;;;;;;;122592:10;;;;;;;122614:14;;:26;;;;;122532:31;;122614:26;;;;;;;;122532:31;122592:10;122614:26;;;5:2:-1;;;;30:1;27;20:12;5:2;122614:26:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;122614:26:0;;;;122653:12;122707:16;122746:1;122741:152;;;;122916:2;122911:219;;;;123265:1;123262;123255:12;122741:152;-1:-1:-1;;122836:6:0;-1:-1:-1;122741:152:0;;122911:219;123013:2;123010:1;123007;122992:24;123055:1;123049:8;123038:19;;122700:586;;123315:7;123307:45;;;;;-1:-1:-1;;;123307:45:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;122456:904;;;;:::o;70571:4598::-;70678:4;70703:19;;;:42;;-1:-1:-1;70726:19:0;;70703:42;70695:107;;;;-1:-1:-1;;;70695:107:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;70815:27;;:::i;:::-;70959:28;:26;:28::i;:::-;70930:25;;;70915:72;;;70916:12;;;70915:72;;;;;;;;;;;;;;;;;;;-1:-1:-1;71018:18:0;;-1:-1:-1;71002:4:0;:12;;;:34;;;;;;;;;70998:168;;71060:94;71071:16;71089:44;71140:4;:12;;;71135:18;;;;;;;71060:94;71053:101;;;;;70998:168;71220:18;;71216:1290;;71496:17;;;:34;;;71601:42;;;;;;;;71616:25;;;;71601:42;;71583:77;;71516:14;71583:17;:77::i;:::-;71562:17;;;71547:113;;;71548:12;;;71547:113;;;;;;;;;;;;;;;;;;;-1:-1:-1;71695:18:0;;-1:-1:-1;71679:4:0;:12;;;:34;;;;;;;;;71675:185;;71741:103;71752:16;71770:53;71830:4;:12;;;71825:18;;;;;;;71675:185;71216:1290;;;72162:82;72185:14;72201:42;;;;;;;;72216:4;:25;;;72201:42;;;72162:22;:82::i;:::-;72141:17;;;72126:118;;;72127:12;;;72126:118;;;;;;;;;;;;;;;;;;;-1:-1:-1;72279:18:0;;-1:-1:-1;72263:4:0;:12;;;:34;;;;;;;;;72259:185;;72325:103;72336:16;72354:53;72414:4;:12;;;72409:18;;;;;;;72259:185;72460:17;;;:34;;;71216:1290;72575:11;;72626:17;;;;72575:69;;;-1:-1:-1;;;72575:69:0;;72609:4;72575:69;;;;-1:-1:-1;;;;;72575:69:0;;;;;;;;;;;;;;;;72560:12;;72575:11;;;;;:25;;:69;;;;;;;;;;;;;;;72560:12;72575:11;:69;;;5:2:-1;;;;30:1;27;20:12;5:2;72575:69:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;72575:69:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;72575:69:0;;-1:-1:-1;72659:12:0;;72655:142;;72695:90;72706:27;72735:40;72777:7;72695:10;:90::i;:::-;72688:97;;;;;;72655:142;72907:16;:14;:16::i;:::-;72885:18;;:38;72881:142;;72947:64;72952:22;72976:34;72947:4;:64::i;72881:142::-;73318:39;73326:11;;73339:4;:17;;;73318:7;:39::i;:::-;73295:19;;;73280:77;;;73281:12;;;73280:77;;;;;;;;;;;;;;;;;;;-1:-1:-1;73388:18:0;;-1:-1:-1;73372:4:0;:12;;;:34;;;;;;;;;73368:178;;73430:104;73441:16;73459:54;73520:4;:12;;;73515:18;;;;;;;73368:178;-1:-1:-1;;;;;73606:23:0;;;;;;:13;:23;;;;;;73631:17;;;;73598:51;;73606:23;73598:7;:51::i;:::-;73573:21;;;73558:91;;;73559:12;;;73558:91;;;;;;;;;;;;;;;;;;;-1:-1:-1;73680:18:0;;-1:-1:-1;73664:4:0;:12;;;:34;;;;;;;;;73660:181;;73722:107;73733:16;73751:57;73815:4;:12;;;73810:18;;;;;;;73660:181;73939:4;:17;;;73922:14;:12;:14::i;:::-;:34;73918:155;;;73980:81;73985:29;74016:44;73980:4;:81::i;73918:155::-;74569:42;74583:8;74593:4;:17;;;74569:13;:42::i;:::-;74704:19;;;;74690:11;:33;74760:21;;;;-1:-1:-1;;;;;74734:23:0;;;;;;:13;:23;;;;;;;;;:47;;;;74893:17;;;;74859:52;;;;;;;74886:4;;-1:-1:-1;;;;;;;;;;;74859:52:0;;;;;;;74944:17;;;;74963;;;;;74927:54;;;-1:-1:-1;;;;;74927:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;75034:11;;75084:17;;;;75103;;;;75034:87;;;-1:-1:-1;;;75034:87:0;;75067:4;75034:87;;;;-1:-1:-1;;;;;75034:87:0;;;;;;;;;;;;;;;;;;;;;;:11;;;;;:24;;:87;;;;;:11;;:87;;;;;;;:11;;:87;;;5:2:-1;;;;30:1;27;20:12;5:2;75034:87:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;75146:14:0;;-1:-1:-1;75141:20:0;;-1:-1:-1;;75141:20:0;;75134:27;70571:4598;-1:-1:-1;;;;;;70571:4598:0:o;23529:343::-;23585:9;;23617:6;23613:69;;-1:-1:-1;23648:18:0;;-1:-1:-1;23648:18:0;23640:30;;23613:69;23703:5;;;23707:1;23703;:5;:1;23725:5;;;;;:10;23721:144;;-1:-1:-1;23760:26:0;;-1:-1:-1;23788:1:0;;-1:-1:-1;23752:38:0;;23721:144;23831:18;;-1:-1:-1;23851:1:0;-1:-1:-1;23823:30:0;;23967:215;24023:9;;24055:6;24051:77;;-1:-1:-1;24086:26:0;;-1:-1:-1;24114:1:0;24078:38;;24051:77;24148:18;24172:1;24168;:5;;;;;;24140:34;;;;23967:215;;;;;:::o;64711:3176::-;64859:11;;:58;;;-1:-1:-1;;;64859:58:0;;64891:4;64859:58;;;;-1:-1:-1;;;;;64859:58:0;;;;;;;;;;;;;;;64781:4;;;;;;64859:11;;;:23;;:58;;;;;;;;;;;;;;;64781:4;64859:11;:58;;;5:2:-1;;;;30:1;27;20:12;5:2;64859:58:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;64859:58:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;64859:58:0;;-1:-1:-1;64932:12:0;;64928:145;;64969:88;64980:27;65009:38;65049:7;64969:10;:88::i;:::-;64961:100;-1:-1:-1;65059:1:0;;-1:-1:-1;64961:100:0;;-1:-1:-1;64961:100:0;64928:145;65183:16;:14;:16::i;:::-;65161:18;;:38;65157:145;;65224:62;65229:22;65253:32;65224:4;:62::i;65157:145::-;65314:25;;:::i;:::-;65396:28;:26;:28::i;:::-;65367:25;;;65352:72;;;65353:12;;;65352:72;;;;;;;;;;;;;;;;;;;-1:-1:-1;65455:18:0;;-1:-1:-1;65439:4:0;:12;;;:34;;;;;;;;;65435:171;;65498:92;65509:16;65527:42;65576:4;:12;;;65571:18;;;;;;;65498:92;65490:104;-1:-1:-1;65592:1:0;;-1:-1:-1;65490:104:0;;-1:-1:-1;;65490:104:0;65435:171;66238:32;66251:6;66259:10;66238:12;:32::i;:::-;66214:21;;;:56;;;66543:42;;;;;;;;66558:25;;;;66543:42;;66497:89;;66214:56;66497:22;:89::i;:::-;66478:15;;;66463:123;;;66464:12;;;66463:123;;;;;;;;;;;;;;;;;;;-1:-1:-1;66621:18:0;;-1:-1:-1;66605:4:0;:12;;;:34;;;;;;;;;66597:79;;;;;-1:-1:-1;;;66597:79:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;66980:37;66988:11;;67001:4;:15;;;66980:7;:37::i;:::-;66957:19;;;66942:75;;;66943:12;;;66942:75;;;;;;;;;;;;;;;;;;;-1:-1:-1;67052:18:0;;-1:-1:-1;67036:4:0;:12;;;:34;;;;;;;;;67028:87;;;;-1:-1:-1;;;67028:87:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;67176:21:0;;;;;;:13;:21;;;;;;67199:15;;;;67168:47;;67176:21;67168:7;:47::i;:::-;67143:21;;;67128:87;;;67129:12;;;67128:87;;;;;;;;;;;;;;;;;;;-1:-1:-1;67250:18:0;;-1:-1:-1;67234:4:0;:12;;;:34;;;;;;;;;67226:90;;;;-1:-1:-1;;;67226:90:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;67409:19;;;;67395:11;:33;67463:21;;;;-1:-1:-1;;;;;67439:21:0;;;;;;:13;:21;;;;;;;;;:45;;;;67573:21;;;;67596:15;;;;;67560:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;67660:15;;;;67628:48;;;;;;;-1:-1:-1;;;;;67628:48:0;;;67645:4;;-1:-1:-1;;;;;;;;;;;67628:48:0;;;;;;;;67729:11;;67775:21;;;;67798:15;;;;67729:85;;;-1:-1:-1;;;67729:85:0;;67760:4;67729:85;;;;-1:-1:-1;;;;;67729:85:0;;;;;;;;;;;;;;;;;;;;;;:11;;;;;:22;;:85;;;;;:11;;:85;;;;;;;:11;;:85;;;5:2:-1;;;;30:1;27;20:12;5:2;67729:85:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;67840:14:0;;-1:-1:-1;67835:20:0;;-1:-1:-1;;67835:20:0;;67857:4;:21;;;67827:52;;;;;;64711:3176;;;;;:::o;35647:121::-;35706:4;25709;35730:19;35735:1;35738;:10;;;35730:4;:19::i;:::-;:30;;;;;;;35647:121;-1:-1:-1;;;35647:121:0:o;35045:120::-;35098:4;35122:35;35127:1;35130;35122:35;;;;;;;;;;;;;-1:-1:-1;;;35122:35:0;;;:4;:35::i;34410:116::-;34463:4;34487:31;34492:1;34495;34487:31;;;;;;;;;;;;;-1:-1:-1;;;34487:31:0;;;:4;:31::i;76388:3034::-;76546:11;;:64;;;-1:-1:-1;;;76546:64:0;;76580:4;76546:64;;;;-1:-1:-1;;;;;76546:64:0;;;;;;;;;;;;;;;76472:4;;;;76546:11;;:25;;:64;;;;;;;;;;;;;;76472:4;76546:11;:64;;;5:2:-1;;;;30:1;27;20:12;5:2;76546:64:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;76546:64:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;76546:64:0;;-1:-1:-1;76625:12:0;;76621:142;;76661:90;76672:27;76701:40;76743:7;76661:10;:90::i;:::-;76654:97;;;;;76621:142;76873:16;:14;:16::i;:::-;76851:18;;:38;76847:142;;76913:64;76918:22;76942:34;76913:4;:64::i;76847:142::-;77098:12;77081:14;:12;:14::i;:::-;:29;77077:143;;;77134:74;77139:29;77170:37;77134:4;:74::i;77077:143::-;77232:27;;:::i;:::-;77547:37;77575:8;77547:27;:37::i;:::-;77524:19;;;77509:75;;;77510:4;77509:75;;;;;;;;;;;;;;;;;;;-1:-1:-1;77615:18:0;;-1:-1:-1;77599:12:0;;:34;;;;;;;;;77595:181;;77657:107;77668:16;77686:57;77750:4;:12;;;77745:18;;;;;;;77657:107;77650:114;;;;;;77595:181;77829:42;77837:4;:19;;;77858:12;77829:7;:42::i;:::-;77803:22;;;77788:83;;;77789:4;77788:83;;;;;;;;;;;;;;;;;;;-1:-1:-1;77902:18:0;;-1:-1:-1;77886:12:0;;:34;;;;;;;;;77882:188;;77944:114;77955:16;77973:64;78044:4;:12;;;78039:18;;;;;;;77882:188;78121:35;78129:12;;78143;78121:7;:35::i;:::-;78097:20;;;78082:74;;;78083:4;78082:74;;;;;;;;;;;;;;;;;;;-1:-1:-1;78187:18:0;;-1:-1:-1;78171:12:0;;:34;;;;;;;;;78167:179;;78229:105;78240:16;78258:55;78320:4;:12;;;78315:18;;;;;;;78167:179;78838:37;78852:8;78862:12;78838:13;:37::i;:::-;78995:22;;;;;;-1:-1:-1;;;;;78958:24:0;;;;;;:14;:24;;;;;;;;:59;;;79069:11;;79028:38;;;;:52;;;;79106:20;;;;;79091:12;:35;;;79213:22;;79182:76;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;79311:11;;:63;;;-1:-1:-1;;;79311:63:0;;79344:4;79311:63;;;;-1:-1:-1;;;;;79311:63:0;;;;;;;;;;;;;;;:11;;;;;:24;;:63;;;;;:11;;:63;;;;;;;:11;;:63;;;5:2:-1;;;;30:1;27;20:12;5:2;79311:63:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;79399:14:0;;-1:-1:-1;79394:20:0;;-1:-1:-1;;79394:20:0;;79387:27;76388:3034;-1:-1:-1;;;;;76388:3034:0:o;87421:3582::-;87642:11;;:111;;;-1:-1:-1;;;87642:111:0;;87685:4;87642:111;;;;-1:-1:-1;;;;;87642:111:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;87559:4;;;;;;87642:11;;;:34;;:111;;;;;;;;;;;;;;;87559:4;87642:11;:111;;;5:2:-1;;;;30:1;27;20:12;5:2;87642:111:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;87642:111:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;87642:111:0;;-1:-1:-1;87768:12:0;;87764:150;;87805:93;87816:27;87845:43;87890:7;87805:10;:93::i;:::-;87797:105;-1:-1:-1;87900:1:0;;-1:-1:-1;87797:105:0;;-1:-1:-1;87797:105:0;87764:150;88024:16;:14;:16::i;:::-;88002:18;;:38;87998:150;;88065:67;88070:22;88094:37;88065:4;:67::i;87998:150::-;88294:16;:14;:16::i;:::-;88253;-1:-1:-1;;;;;88253:35:0;;:37;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;88253:37:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;88253:37:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;88253:37:0;:57;88249:180;;88335:78;88340:22;88364:48;88335:4;:78::i;88249:180::-;88502:10;-1:-1:-1;;;;;88490:22:0;:8;-1:-1:-1;;;;;88490:22:0;;88486:145;;;88537:78;88542:26;88570:44;88537:4;:78::i;88486:145::-;88686:16;88682:147;;88727:86;88732:36;88770:42;88727:4;:86::i;88682:147::-;-1:-1:-1;;88885:11:0;:23;88881:158;;;88933:90;88938:36;88976:46;88933:4;:90::i;88881:158::-;89095:21;89118:22;89144:51;89161:10;89173:8;89183:11;89144:16;:51::i;:::-;89094:101;;-1:-1:-1;89094:101:0;-1:-1:-1;89210:40:0;;89206:163;;89275:78;89286:16;89280:23;;;;;;;;89305:47;89275:4;:78::i;:::-;89267:90;-1:-1:-1;89355:1:0;;-1:-1:-1;89267:90:0;;-1:-1:-1;;;89267:90:0;89206:163;89626:11;;:102;;;-1:-1:-1;;;89626:102:0;;89676:4;89626:102;;;;-1:-1:-1;;;;;89626:102:0;;;;;;;;;;;;;;;89583:21;;;;89626:11;;;:41;;:102;;;;;;;;;;;;:11;:102;;;5:2:-1;;;;30:1;27;20:12;5:2;89626:102:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;89626:102:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;89626:102:0;;;;;;;;;-1:-1:-1;89626:102:0;-1:-1:-1;89747:40:0;;89739:104;;;;-1:-1:-1;;;89739:104:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;89977:11;89937:16;-1:-1:-1;;;;;89937:26:0;;89964:8;89937:36;;;;;;;;;;;;;-1:-1:-1;;;;;89937:36:0;-1:-1:-1;;;;;89937:36:0;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;89937:36:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;89937:36:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;89937:36:0;:51;;89929:88;;;;;-1:-1:-1;;;89929:88:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;90146:15;-1:-1:-1;;;;;90176:42:0;;90213:4;90176:42;90172:254;;;90248:63;90270:4;90277:10;90289:8;90299:11;90248:13;:63::i;:::-;90235:76;;90172:254;;;90357:57;;;-1:-1:-1;;;90357:57:0;;-1:-1:-1;;;;;90357:57:0;;;;;;;;;;;;;;;;;;;;;;:22;;;;;;:57;;;;;;;;;;;;;;;-1:-1:-1;90357:22:0;:57;;;5:2:-1;;;;30:1;27;20:12;5:2;90357:57:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;90357:57:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;90357:57:0;;-1:-1:-1;90172:254:0;90532:34;;90524:67;;;;;-1:-1:-1;;;90524:67:0;;;;;;;;;;;;-1:-1:-1;;;90524:67:0;;;;;;;;;;;;;;;90656:96;;;-1:-1:-1;;;;;90656:96:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;90805:11;;:129;;;-1:-1:-1;;;90805:129:0;;90847:4;90805:129;;;;-1:-1:-1;;;;;90805:129:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:11;;;;;:33;;:129;;;;;:11;;:129;;;;;;;:11;;:129;;;5:2:-1;;;;30:1;27;20:12;5:2;90805:129:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;90960:14:0;;-1:-1:-1;90955:20:0;;-1:-1:-1;;90955:20:0;;90947:48;-1:-1:-1;90977:17:0;;-1:-1:-1;;;;;;87421:3582:0;;;;;;;;:::o;120408:1344::-;120552:10;;120595:51;;;-1:-1:-1;;;120595:51:0;;120640:4;120595:51;;;;;;120475:4;;-1:-1:-1;;;;;120552:10:0;;120475:4;;120552:10;;120595:36;;:51;;;;;;;;;;;;;;120552:10;120595:51;;;5:2:-1;;;;30:1;27;20:12;5:2;120595:51:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;120595:51:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;120595:51:0;120657:47;;;-1:-1:-1;;;120657:47:0;;-1:-1:-1;;;;;120657:47:0;;;;;;;120690:4;120657:47;;;;;;;;;;;;120595:51;;-1:-1:-1;120657:18:0;;;;;;:47;;;;;-1:-1:-1;;120657:47:0;;;;;;;;-1:-1:-1;120657:18:0;:47;;;5:2:-1;;;;30:1;27;20:12;5:2;120657:47:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;120657:47:0;;;;120717:12;120771:16;120810:1;120805:153;;;;120981:2;120976:220;;;;121332:1;121329;121322:12;120805:153;-1:-1:-1;;120901:6:0;-1:-1:-1;120805:153:0;;120976:220;121079:2;121076:1;121073;121058:24;121121:1;121115:8;121104:19;;120764:589;;121382:7;121374:44;;;;;-1:-1:-1;;;121374:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;121531:10;;121516:51;;;-1:-1:-1;;;121516:51:0;;121561:4;121516:51;;;;;;121496:17;;-1:-1:-1;;;;;121531:10:0;;121516:36;;:51;;;;;;;;;;;;;;121531:10;121516:51;;;5:2:-1;;;;30:1;27;20:12;5:2;121516:51:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;121516:51:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;121516:51:0;;-1:-1:-1;121586:29:0;;;;121578:68;;;;;-1:-1:-1;;;121578:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;121664:28;;;;;120408:1344;-1:-1:-1;;;;;120408:1344:0:o;29911:337::-;29999:9;30010:4;30028:13;30043:19;;:::i;:::-;30066:31;30081:6;30089:7;30066:14;:31::i;36243:122::-;36296:4;36320:37;36325:1;36328;36320:37;;;;;;;;;;;;;;;;;:4;:37::i;35173:158::-;35254:4;35287:12;35279:6;;;;35271:29;;;;-1:-1:-1;;;35271:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;35271:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;35318:5:0;;;35173:158::o;34534:179::-;34615:4;34641:5;;;34673:12;34665:6;;;;34657:29;;;;-1:-1:-1;;;34657:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;29180:620:0;29260:9;29271:10;;:::i;:::-;29578:14;29594;29612:25;25709:4;29630:6;29612:7;:25::i;:::-;29577:60;;-1:-1:-1;29577:60:0;-1:-1:-1;29660:18:0;29652:4;:26;;;;;;;;;29648:92;;-1:-1:-1;29709:18:0;;;;;;;;;-1:-1:-1;29709:18:0;;29703:4;;-1:-1:-1;29709:18:0;-1:-1:-1;29695:33:0;;29648:92;29757:35;29764:9;29775:7;:16;;;29757:6;:35::i;36373:250::-;36454:4;36475:6;;;:16;;-1:-1:-1;36485:6:0;;36475:16;36471:57;;;-1:-1:-1;36515:1:0;36508:8;;36471:57;36547:5;;;36551:1;36547;:5;:1;36571:5;;;;;:10;36583:12;36563:33;;;;;-1:-1:-1;;;36563:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;123584:1059:0;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;123584:1059:0;;;-1:-1:-1;123584:1059:0;:::i;:::-;;;:::o;:::-;;;;;;;;;;;-1:-1:-1;123584:1059:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;-1:-1:-1;123584:1059:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;-1:-1:-1;123584:1059:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;-1:-1:-1;123584:1059:0;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;
Swarm Source
bzzr://a1b68c6f82d85617c1db95410f3146329d9fe61d70a04255f363a5431282cb47
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
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.