Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 6 from a total of 6 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Redeem Underlyin... | 20319785 | 129 days ago | IN | 0 ETH | 0.00021545 | ||||
Redeem Underlyin... | 20319763 | 129 days ago | IN | 0 ETH | 0.0001885 | ||||
Mint | 16611598 | 649 days ago | IN | 0 ETH | 0.00034483 | ||||
Mint | 16611588 | 649 days ago | IN | 0 ETH | 0.00034565 | ||||
Mint | 16611572 | 649 days ago | IN | 0 ETH | 0.00034048 | ||||
0x60806040 | 13331982 | 1149 days ago | IN | 0 ETH | 0.35668327 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
CErc20Delegate
Compiler Version
v0.5.17+commit.d19bba13
Contract Source Code (Solidity Multiple files format)
pragma solidity ^0.5.16; import "./CErc20.sol"; /** * @title Compound's CErc20Delegate Contract * @notice CTokens which wrap an EIP-20 underlying and are delegated to * @author Compound */ contract CErc20Delegate is CDelegateInterface, CErc20 { /** * @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 calldata data) external { // Shh -- currently unused data; // Shh -- we don't ever want this hook to be marked pure if (false) { implementation = address(0); } require(msg.sender == address(this) || hasAdminRights(), "!self"); // Make sure admin storage is set up correctly __admin = address(0); __adminHasRights = false; __fuseAdminHasRights = false; } /** * @notice Called by the delegator on a delegate to forfeit its responsibility */ function _resignImplementation() internal { // Shh -- we don't ever want this hook to be marked pure if (false) { implementation = address(0); } } /** * @dev Internal function 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 _setImplementationInternal(address implementation_, bool allowResign, bytes memory becomeImplementationData) internal { // Check whitelist require(fuseAdmin.cErc20DelegateWhitelist(implementation, implementation_, allowResign), "!impl"); // Call _resignImplementation internally (this delegate's code) if (allowResign) _resignImplementation(); // Get old implementation address oldImplementation = implementation; // Store new implementation implementation = implementation_; // Call _becomeImplementation externally (delegating to new delegate's code) _functionCall(address(this), abi.encodeWithSignature("_becomeImplementation(bytes)", becomeImplementationData), "!become"); // Emit event emit NewImplementation(oldImplementation, implementation); } /** * @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 _setImplementationSafe(address implementation_, bool allowResign, bytes calldata becomeImplementationData) external { // Check admin rights require(hasAdminRights(), "!admin"); // Set implementation _setImplementationInternal(implementation_, allowResign, becomeImplementationData); } /** * @notice Function called before all delegator functions * @dev Checks comptroller.autoImplementation and upgrades the implementation if necessary */ function _prepare() external payable { if (msg.sender != address(this) && ComptrollerV3Storage(address(comptroller)).autoImplementation()) { (address latestCErc20Delegate, bool allowResign, bytes memory becomeImplementationData) = fuseAdmin.latestCErc20Delegate(implementation); if (implementation != latestCErc20Delegate) _setImplementationInternal(latestCErc20Delegate, allowResign, becomeImplementationData); } } }
pragma solidity ^0.5.16; /** * @title Careful Math * @author Compound * @notice Derived from OpenZeppelin's SafeMath library * https://github.com/OpenZeppelin/openzeppelin-solidity/blob/master/contracts/math/SafeMath.sol */ contract CarefulMath { /** * @dev Possible error codes that we can return */ enum MathError { NO_ERROR, DIVISION_BY_ZERO, INTEGER_OVERFLOW, INTEGER_UNDERFLOW } /** * @dev Multiplies two numbers, returns an error on overflow. */ function mulUInt(uint a, uint b) internal pure returns (MathError, uint) { if (a == 0) { return (MathError.NO_ERROR, 0); } uint c = a * b; if (c / a != b) { return (MathError.INTEGER_OVERFLOW, 0); } else { return (MathError.NO_ERROR, c); } } /** * @dev Integer division of two numbers, truncating the quotient. */ function divUInt(uint a, uint b) internal pure returns (MathError, uint) { if (b == 0) { return (MathError.DIVISION_BY_ZERO, 0); } return (MathError.NO_ERROR, a / b); } /** * @dev Subtracts two numbers, returns an error on overflow (i.e. if subtrahend is greater than minuend). */ function subUInt(uint a, uint b) internal pure returns (MathError, uint) { if (b <= a) { return (MathError.NO_ERROR, a - b); } else { return (MathError.INTEGER_UNDERFLOW, 0); } } /** * @dev Adds two numbers, returns an error on overflow. */ function addUInt(uint a, uint b) internal pure returns (MathError, uint) { uint c = a + b; if (c >= a) { return (MathError.NO_ERROR, c); } else { return (MathError.INTEGER_OVERFLOW, 0); } } /** * @dev add a and b and then subtract c */ function addThenSubUInt(uint a, uint b, uint c) internal pure returns (MathError, uint) { (MathError err0, uint sum) = addUInt(a, b); if (err0 != MathError.NO_ERROR) { return (err0, 0); } return subUInt(sum, c); } }
pragma solidity ^0.5.16; import "./CToken.sol"; interface CompLike { function delegate(address delegatee) external; } /** * @title Compound's CErc20 Contract * @notice CTokens which wrap an EIP-20 underlying * @dev This contract should not to be deployed on its own; instead, deploy `CErc20Delegator` (proxy contract) and `CErc20Delegate` (logic/implementation contract). * @author Compound */ contract CErc20 is CToken, CErc20Interface { /** * @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 name_ ERC-20 name of this token * @param symbol_ ERC-20 symbol of this token */ function initialize(address underlying_, ComptrollerInterface comptroller_, InterestRateModel interestRateModel_, string memory name_, string memory symbol_, uint256 reserveFactorMantissa_, uint256 adminFeeMantissa_) public { // CToken initialize does the bulk of the work uint256 initialExchangeRateMantissa_ = 0.2e18; uint8 decimals_ = EIP20Interface(underlying_).decimals(); super.initialize(comptroller_, interestRateModel_, initialExchangeRateMantissa_, name_, symbol_, decimals_, reserveFactorMantissa_, adminFeeMantissa_); // Set underlying and sanity check it underlying = underlying_; EIP20Interface(underlying).totalSupply(); } /*** User Interface ***/ /** * @notice Sender supplies assets into the market and receives cTokens in exchange * @dev Accrues interest whether or not the operation succeeds, unless reverted * @param mintAmount The amount of the underlying asset to supply * @return uint 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 cTokens in exchange for the underlying asset * @dev Accrues interest whether or not the operation succeeds, unless reverted * @param redeemTokens The number of cTokens to redeem into underlying * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function redeem(uint redeemTokens) external returns (uint) { return redeemInternal(redeemTokens); } /** * @notice Sender redeems cTokens in exchange for a specified amount of underlying asset * @dev Accrues interest whether or not the operation succeeds, unless reverted * @param redeemAmount The amount of underlying to redeem * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function redeemUnderlying(uint redeemAmount) external returns (uint) { return redeemUnderlyingInternal(redeemAmount); } /** * @notice Sender borrows assets from the protocol to their own address * @param borrowAmount The amount of the underlying asset to borrow * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function borrow(uint borrowAmount) external returns (uint) { return borrowInternal(borrowAmount); } /** * @notice Sender repays their own borrow * @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 cToken to be liquidated * @param repayAmount The amount of the underlying borrowed asset to repay * @param cTokenCollateral 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, CTokenInterface cTokenCollateral) external returns (uint) { (uint err,) = liquidateBorrowInternal(borrower, repayAmount, cTokenCollateral); return err; } /*** 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) { uint balanceBefore = EIP20Interface(underlying).balanceOf(address(this)); _callOptionalReturn(abi.encodeWithSelector(EIP20NonStandardInterface(underlying).transferFrom.selector, from, address(this), amount), "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 { _callOptionalReturn(abi.encodeWithSelector(EIP20NonStandardInterface(underlying).transfer.selector, to, amount), "TOKEN_TRANSFER_OUT_FAILED"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param data The call data (encoded using abi.encode or one of its variants). * @param errorMessage The revert string to return on failure. */ function _callOptionalReturn(bytes memory data, string memory errorMessage) internal { bytes memory returndata = _functionCall(underlying, data, errorMessage); if (returndata.length > 0) require(abi.decode(returndata, (bool)), errorMessage); } /** * @notice Admin call to delegate the votes of the COMP-like underlying * @param compLikeDelegatee The address to delegate votes to * @dev CTokens whose underlying are not CompLike should revert here */ function _delegateCompLikeTo(address compLikeDelegatee) external { require(hasAdminRights(), "only the admin may set the comp-like delegate"); CompLike(underlying).delegate(compLikeDelegatee); } }
pragma solidity ^0.5.16; contract ComptrollerInterface { /// @notice Indicator that this is a Comptroller contract (for inspection) bool public constant isComptroller = true; /*** Assets You Are In ***/ function enterMarkets(address[] calldata cTokens) external returns (uint[] memory); function exitMarket(address cToken) external returns (uint); /*** Policy Hooks ***/ function mintAllowed(address cToken, address minter, uint mintAmount) external returns (uint); function mintWithinLimits(address cToken, uint exchangeRateMantissa, uint accountTokens, uint mintAmount) external returns (uint); function mintVerify(address cToken, address minter, uint mintAmount, uint mintTokens) external; function redeemAllowed(address cToken, address redeemer, uint redeemTokens) external returns (uint); function redeemVerify(address cToken, address redeemer, uint redeemAmount, uint redeemTokens) external; function borrowAllowed(address cToken, address borrower, uint borrowAmount) external returns (uint); function borrowWithinLimits(address cToken, uint accountBorrowsNew) external returns (uint); function borrowVerify(address cToken, address borrower, uint borrowAmount) external; function repayBorrowAllowed( address cToken, address payer, address borrower, uint repayAmount) external returns (uint); function repayBorrowVerify( address cToken, address payer, address borrower, uint repayAmount, uint borrowerIndex) external; function liquidateBorrowAllowed( address cTokenBorrowed, address cTokenCollateral, address liquidator, address borrower, uint repayAmount) external returns (uint); function liquidateBorrowVerify( address cTokenBorrowed, address cTokenCollateral, address liquidator, address borrower, uint repayAmount, uint seizeTokens) external; function seizeAllowed( address cTokenCollateral, address cTokenBorrowed, address liquidator, address borrower, uint seizeTokens) external returns (uint); function seizeVerify( address cTokenCollateral, address cTokenBorrowed, address liquidator, address borrower, uint seizeTokens) external; function transferAllowed(address cToken, address src, address dst, uint transferTokens) external returns (uint); function transferVerify(address cToken, address src, address dst, uint transferTokens) external; /*** Liquidity/Liquidation Calculations ***/ function liquidateCalculateSeizeTokens( address cTokenBorrowed, address cTokenCollateral, uint repayAmount) external view returns (uint, uint); /*** Pool-Wide/Cross-Asset Reentrancy Prevention ***/ function _beforeNonReentrant() external; function _afterNonReentrant() external; }
pragma solidity ^0.5.16; import "./IFuseFeeDistributor.sol"; import "./CToken.sol"; import "./PriceOracle.sol"; contract UnitrollerAdminStorage { /** * @notice Administrator for Fuse */ IFuseFeeDistributor internal constant fuseAdmin = IFuseFeeDistributor(0xa731585ab05fC9f83555cf9Bff8F58ee94e18F85); /** * @notice Administrator for this contract */ address public admin; /** * @notice Pending administrator for this contract */ address public pendingAdmin; /** * @notice Whether or not the Fuse admin has admin rights */ bool public fuseAdminHasRights = true; /** * @notice Whether or not the admin has admin rights */ bool public adminHasRights = true; /** * @notice Returns a boolean indicating if the sender has admin rights */ function hasAdminRights() internal view returns (bool) { return (msg.sender == admin && adminHasRights) || (msg.sender == address(fuseAdmin) && fuseAdminHasRights); } /** * @notice Active brains of Unitroller */ address public comptrollerImplementation; /** * @notice Pending brains of Unitroller */ address public pendingComptrollerImplementation; } contract ComptrollerV1Storage is UnitrollerAdminStorage { /** * @notice Oracle which gives the price of any given asset */ PriceOracle public oracle; /** * @notice Multiplier used to calculate the maximum repayAmount when liquidating a borrow */ uint public closeFactorMantissa; /** * @notice Multiplier representing the discount on collateral that a liquidator receives */ uint public liquidationIncentiveMantissa; /** * @notice UNUSED AFTER UPGRADE: Max number of assets a single account can participate in (borrow or use as collateral) */ uint internal maxAssets; /** * @notice Per-account mapping of "assets you are in", capped by maxAssets */ mapping(address => CToken[]) public accountAssets; } contract ComptrollerV2Storage is ComptrollerV1Storage { struct Market { /** * @notice Whether or not this market is listed */ bool isListed; /** * @notice Multiplier representing the most one can borrow against their collateral in this market. * For instance, 0.9 to allow borrowing 90% of collateral value. * Must be between 0 and 1, and stored as a mantissa. */ uint collateralFactorMantissa; /** * @notice Per-market mapping of "accounts in this asset" */ mapping(address => bool) accountMembership; } /** * @notice Official mapping of cTokens -> Market metadata * @dev Used e.g. to determine if a market is supported */ mapping(address => Market) public markets; /// @notice A list of all markets CToken[] public allMarkets; /** * @dev Maps borrowers to booleans indicating if they have entered any markets */ mapping(address => bool) internal borrowers; /// @notice A list of all borrowers who have entered markets address[] public allBorrowers; /// @notice Indexes of borrower account addresses in the `allBorrowers` array mapping(address => uint256) internal borrowerIndexes; /** * @dev Maps suppliers to booleans indicating if they have ever supplied to any markets */ mapping(address => bool) public suppliers; /// @notice All cTokens addresses mapped by their underlying token addresses mapping(address => CToken) public cTokensByUnderlying; /// @notice Whether or not the supplier whitelist is enforced bool public enforceWhitelist; /// @notice Maps addresses to booleans indicating if they are allowed to supply assets (i.e., mint cTokens) mapping(address => bool) public whitelist; /// @notice An array of all whitelisted accounts address[] public whitelistArray; /// @notice Indexes of account addresses in the `whitelistArray` array mapping(address => uint256) internal whitelistIndexes; /** * @notice The Pause Guardian can pause certain actions as a safety mechanism. * Actions which allow users to remove their own assets cannot be paused. * Liquidation / seizing / transfer can only be paused globally, not by market. */ address public pauseGuardian; bool public _mintGuardianPaused; bool public _borrowGuardianPaused; bool public transferGuardianPaused; bool public seizeGuardianPaused; mapping(address => bool) public mintGuardianPaused; mapping(address => bool) public borrowGuardianPaused; } contract ComptrollerV3Storage is ComptrollerV2Storage { /** * @dev Whether or not the implementation should be auto-upgraded. */ bool public autoImplementation; /// @notice The borrowCapGuardian can set borrowCaps to any number for any market. Lowering the borrow cap could disable borrowing on the given market. address public borrowCapGuardian; /// @notice Borrow caps enforced by borrowAllowed for each cToken address. Defaults to zero which corresponds to unlimited borrowing. mapping(address => uint) public borrowCaps; /// @notice Supply caps enforced by mintAllowed for each cToken address. Defaults to zero which corresponds to unlimited supplying. mapping(address => uint) public supplyCaps; /// @notice RewardsDistributor contracts to notify of flywheel changes. address[] public rewardsDistributors; /// @dev Guard variable for pool-wide/cross-asset re-entrancy checks bool internal _notEntered; /// @dev Whether or not _notEntered has been initialized bool internal _notEnteredInitialized; }
pragma solidity ^0.5.16; import "./ComptrollerInterface.sol"; import "./CTokenInterfaces.sol"; import "./ErrorReporter.sol"; import "./Exponential.sol"; import "./EIP20Interface.sol"; import "./EIP20NonStandardInterface.sol"; import "./InterestRateModel.sol"; /** * @title Compound's CToken Contract * @notice Abstract base for CTokens * @author Compound */ contract CToken is CTokenInterface, Exponential, TokenErrorReporter { /** * @notice Returns a boolean indicating if the sender has admin rights */ function hasAdminRights() internal view returns (bool) { ComptrollerV3Storage comptrollerStorage = ComptrollerV3Storage(address(comptroller)); return (msg.sender == comptrollerStorage.admin() && comptrollerStorage.adminHasRights()) || (msg.sender == address(fuseAdmin) && comptrollerStorage.fuseAdminHasRights()); } /** * @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_, uint256 reserveFactorMantissa_, uint256 adminFeeMantissa_) public { require(msg.sender == address(fuseAdmin), "only Fuse 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_; // Set reserve factor err = _setReserveFactorFresh(reserveFactorMantissa_); require(err == uint(Error.NO_ERROR), "setting reserve factor failed"); // Set admin fee err = _setAdminFeeFresh(adminFeeMantissa_); require(err == uint(Error.NO_ERROR), "setting admin fee failed"); // The counter starts true to prevent changing it from zero to non-zero (i.e. smaller cost/refund) _notEntered = true; } /** * @dev Returns latest pending Fuse fee (to be set with `_setFuseFeeFresh`) */ function getPendingFuseFeeFromAdmin() internal view returns (uint) { return fuseAdmin.interestFeeRate(); } /** * @notice Transfer `tokens` tokens from `src` to `dst` by `spender` * @dev Called by both `transfer` and `transferFrom` internally * @param spender The address of the account performing the transfer * @param src The address of the source account * @param dst The address of the destination account * @param tokens The number of tokens to transfer * @return Whether or not the transfer succeeded */ function transferTokens(address spender, address src, address dst, uint tokens) internal returns (uint) { /* Fail if transfer not allowed */ uint allowed = comptroller.transferAllowed(address(this), src, dst, tokens); if (allowed != 0) { return failOpaque(Error.COMPTROLLER_REJECTION, FailureInfo.TRANSFER_COMPTROLLER_REJECTION, allowed); } /* Do not allow self-transfers */ if (src == dst) { return fail(Error.BAD_INPUT, FailureInfo.TRANSFER_NOT_ALLOWED); } /* Get the allowance, infinite for the account owner */ uint startingAllowance = 0; if (spender == src) { startingAllowance = uint(-1); } else { startingAllowance = transferAllowances[src][spender]; } /* Do the calculations, checking for {under,over}flow */ MathError mathErr; uint allowanceNew; uint srcTokensNew; uint dstTokensNew; (mathErr, allowanceNew) = subUInt(startingAllowance, tokens); if (mathErr != MathError.NO_ERROR) { return fail(Error.MATH_ERROR, FailureInfo.TRANSFER_NOT_ALLOWED); } (mathErr, srcTokensNew) = subUInt(accountTokens[src], tokens); if (mathErr != MathError.NO_ERROR) { return fail(Error.MATH_ERROR, FailureInfo.TRANSFER_NOT_ENOUGH); } (mathErr, dstTokensNew) = addUInt(accountTokens[dst], tokens); if (mathErr != MathError.NO_ERROR) { return fail(Error.MATH_ERROR, FailureInfo.TRANSFER_TOO_MUCH); } ///////////////////////// // EFFECTS & INTERACTIONS // (No safe failures beyond this point) accountTokens[src] = srcTokensNew; accountTokens[dst] = dstTokensNew; /* Eat some of the allowance (if necessary) */ if (startingAllowance != uint(-1)) { transferAllowances[src][spender] = allowanceNew; } /* We emit a Transfer event */ emit Transfer(src, dst, tokens); /* We call the defense hook */ // unused function // 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(false) 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(false) returns (bool) { return transferTokens(msg.sender, src, dst, amount) == uint(Error.NO_ERROR); } /** * @notice Approve `spender` to transfer up to `amount` from `src` * @dev This will overwrite the approval amount for `spender` * and is subject to issues noted [here](https://eips.ethereum.org/EIPS/eip-20#approve) * @param spender The address of the account which may transfer tokens * @param amount The number of tokens that are approved (-1 means infinite) * @return Whether or not the approval succeeded */ function approve(address spender, uint256 amount) external returns (bool) { address src = msg.sender; transferAllowances[src][spender] = amount; emit Approval(src, spender, amount); return true; } /** * @notice Get the current allowance from `owner` for `spender` * @param owner The address of the account which owns the tokens to be spent * @param spender The address of the account which may transfer tokens * @return The number of tokens allowed to be spent (-1 means infinite) */ function allowance(address owner, address spender) external view returns (uint256) { return transferAllowances[owner][spender]; } /** * @notice Get the token balance of the `owner` * @param owner The address of the account to query * @return The number of tokens owned by `owner` */ function balanceOf(address owner) external view returns (uint256) { return accountTokens[owner]; } /** * @notice Get the underlying balance of the `owner` * @dev This also accrues interest in a transaction * @param owner The address of the account to query * @return The amount of underlying owned by `owner` */ function balanceOfUnderlying(address owner) external returns (uint) { Exp memory exchangeRate = Exp({mantissa: exchangeRateCurrent()}); (MathError mErr, uint balance) = mulScalarTruncate(exchangeRate, accountTokens[owner]); require(mErr == MathError.NO_ERROR, "balance could not be calculated"); return balance; } /** * @notice Get a snapshot of the account's balances, and the cached exchange rate * @dev This is used by comptroller to more efficiently perform liquidity checks. * @param account Address of the account to snapshot * @return (possible error, token balance, borrow balance, exchange rate mantissa) */ function getAccountSnapshot(address account) external view returns (uint, uint, uint, uint) { uint cTokenBalance = accountTokens[account]; uint borrowBalance; uint exchangeRateMantissa; MathError mErr; (mErr, borrowBalance) = borrowBalanceStoredInternal(account); if (mErr != MathError.NO_ERROR) { return (uint(Error.MATH_ERROR), 0, 0, 0); } (mErr, exchangeRateMantissa) = exchangeRateStoredInternal(); if (mErr != MathError.NO_ERROR) { return (uint(Error.MATH_ERROR), 0, 0, 0); } return (uint(Error.NO_ERROR), cTokenBalance, borrowBalance, exchangeRateMantissa); } /** * @dev Function to simply retrieve block number * This exists mainly for inheriting test contracts to stub this result. */ function getBlockNumber() internal view returns (uint) { return block.number; } /** * @notice Returns the current per-block borrow interest rate for this cToken * @return The borrow interest rate per block, scaled by 1e18 */ function borrowRatePerBlock() external view returns (uint) { return interestRateModel.getBorrowRate(getCashPrior(), totalBorrows, add_(totalReserves, add_(totalAdminFees, totalFuseFees))); } /** * @notice Returns the current per-block supply interest rate for this cToken * @return The supply interest rate per block, scaled by 1e18 */ function supplyRatePerBlock() external view returns (uint) { return interestRateModel.getSupplyRate(getCashPrior(), totalBorrows, add_(totalReserves, add_(totalAdminFees, totalFuseFees)), reserveFactorMantissa + fuseFeeMantissa + adminFeeMantissa); } /** * @notice Returns the current total borrows plus accrued interest * @return The total borrows with interest */ function totalBorrowsCurrent() external nonReentrant(false) 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(false) 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(false) returns (uint) { require(accrueInterest() == uint(Error.NO_ERROR), "accrue interest failed"); return exchangeRateStored(); } /** * @notice Calculates the exchange rate from the underlying to the CToken * @dev This function does not accrue interest before calculating the exchange rate * @return Calculated exchange rate scaled by 1e18 */ function exchangeRateStored() public view returns (uint) { (MathError err, uint result) = exchangeRateStoredInternal(); require(err == MathError.NO_ERROR, "exchangeRateStored: exchangeRateStoredInternal failed"); return result; } /** * @notice Calculates the exchange rate from the underlying to the CToken * @dev This function does not accrue interest before calculating the exchange rate * @return (error code, calculated exchange rate scaled by 1e18) */ function exchangeRateStoredInternal() internal view returns (MathError, uint) { uint _totalSupply = totalSupply; if (_totalSupply == 0) { /* * If there are no tokens minted: * exchangeRate = initialExchangeRate */ return (MathError.NO_ERROR, initialExchangeRateMantissa); } else { /* * Otherwise: * exchangeRate = (totalCash + totalBorrows - (totalReserves + totalFuseFees + totalAdminFees)) / totalSupply */ uint totalCash = getCashPrior(); uint cashPlusBorrowsMinusReserves; Exp memory exchangeRate; MathError mathErr; (mathErr, cashPlusBorrowsMinusReserves) = addThenSubUInt(totalCash, totalBorrows, add_(totalReserves, add_(totalAdminFees, totalFuseFees))); if (mathErr != MathError.NO_ERROR) { return (mathErr, 0); } (mathErr, exchangeRate) = getExp(cashPlusBorrowsMinusReserves, _totalSupply); if (mathErr != MathError.NO_ERROR) { return (mathErr, 0); } return (MathError.NO_ERROR, exchangeRate.mantissa); } } /** * @notice Get cash balance of this cToken in the underlying asset * @return The quantity of underlying asset owned by this contract */ function getCash() external view returns (uint) { return getCashPrior(); } /** * @notice Applies accrued interest to total borrows and reserves * @dev This calculates interest accrued from the last checkpointed block * up to the current block and writes new checkpoint to storage. */ function accrueInterest() public returns (uint) { /* Remember the initial block number */ uint currentBlockNumber = getBlockNumber(); /* Short-circuit accumulating 0 interest */ if (accrualBlockNumber == currentBlockNumber) { return uint(Error.NO_ERROR); } /* Read the previous values out of storage */ uint cashPrior = getCashPrior(); /* Calculate the current borrow interest rate */ uint borrowRateMantissa = interestRateModel.getBorrowRate(cashPrior, totalBorrows, add_(totalReserves, add_(totalAdminFees, totalFuseFees))); require(borrowRateMantissa <= borrowRateMaxMantissa, "borrow rate is absurdly high"); /* Calculate the number of blocks elapsed since the last accrual */ (MathError mathErr, uint blockDelta) = subUInt(currentBlockNumber, accrualBlockNumber); require(mathErr == MathError.NO_ERROR, "could not calculate block delta"); return finishInterestAccrual(currentBlockNumber, cashPrior, borrowRateMantissa, blockDelta); } /** * @dev Split off from `accrueInterest` to avoid "stack too deep" error". */ function finishInterestAccrual(uint currentBlockNumber, uint cashPrior, uint borrowRateMantissa, uint blockDelta) private returns (uint) { /* * 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 * totalFuseFeesNew = interestAccumulated * fuseFee + totalFuseFees * totalAdminFeesNew = interestAccumulated * adminFee + totalAdminFees * borrowIndexNew = simpleInterestFactor * borrowIndex + borrowIndex */ Exp memory simpleInterestFactor = mul_(Exp({mantissa: borrowRateMantissa}), blockDelta); uint interestAccumulated = mul_ScalarTruncate(simpleInterestFactor, totalBorrows); uint totalBorrowsNew = add_(interestAccumulated, totalBorrows); uint totalReservesNew = mul_ScalarTruncateAddUInt(Exp({mantissa: reserveFactorMantissa}), interestAccumulated, totalReserves); uint totalFuseFeesNew = mul_ScalarTruncateAddUInt(Exp({mantissa: fuseFeeMantissa}), interestAccumulated, totalFuseFees); uint totalAdminFeesNew = mul_ScalarTruncateAddUInt(Exp({mantissa: adminFeeMantissa}), interestAccumulated, totalAdminFees); uint borrowIndexNew = mul_ScalarTruncateAddUInt(simpleInterestFactor, borrowIndex, borrowIndex); ///////////////////////// // EFFECTS & INTERACTIONS // (No safe failures beyond this point) /* We write the previously calculated values into storage */ accrualBlockNumber = currentBlockNumber; borrowIndex = borrowIndexNew; totalBorrows = totalBorrowsNew; totalReserves = totalReservesNew; totalFuseFees = totalFuseFeesNew; totalAdminFees = totalAdminFeesNew; /* We emit an AccrueInterest event */ emit AccrueInterest(cashPrior, interestAccumulated, borrowIndexNew, totalBorrowsNew); // Attempt to add interest checkpoint address(interestRateModel).call(abi.encodeWithSignature("checkpointInterest(uint256)", borrowRateMantissa)); return uint(Error.NO_ERROR); } /** * @notice Sender supplies assets into the market and receives cTokens in exchange * @dev Accrues interest whether or not the operation succeeds, unless reverted * @param mintAmount The amount of the underlying asset to supply * @return (uint, uint) An error code (0=success, otherwise a failure, see ErrorReporter.sol), and the actual mint amount. */ function mintInternal(uint mintAmount) internal nonReentrant(false) returns (uint, uint) { uint error = accrueInterest(); if (error != uint(Error.NO_ERROR)) { // accrueInterest emits logs on errors, but we still want to log the fact that an attempted borrow failed return (fail(Error(error), FailureInfo.MINT_ACCRUE_INTEREST_FAILED), 0); } // mintFresh emits the actual Mint event if successful and logs on errors, so we don't need to return mintFresh(msg.sender, mintAmount); } struct MintLocalVars { Error err; MathError mathErr; uint exchangeRateMantissa; uint mintTokens; uint totalSupplyNew; uint accountTokensNew; uint actualMintAmount; } /** * @notice User supplies assets into the market and receives cTokens in exchange * @dev Assumes interest has already been accrued up to the current block * @param minter The address of the account which is supplying the assets * @param mintAmount The amount of the underlying asset to supply * @return (uint, uint) An error code (0=success, otherwise a failure, see ErrorReporter.sol), and the actual mint amount. */ function mintFresh(address minter, uint mintAmount) internal returns (uint, uint) { /* Fail if mint not allowed */ uint allowed = comptroller.mintAllowed(address(this), minter, mintAmount); if (allowed != 0) { return (failOpaque(Error.COMPTROLLER_REJECTION, FailureInfo.MINT_COMPTROLLER_REJECTION, allowed), 0); } /* Verify market's block number equals current block number */ if (accrualBlockNumber != getBlockNumber()) { return (fail(Error.MARKET_NOT_FRESH, FailureInfo.MINT_FRESHNESS_CHECK), 0); } MintLocalVars memory vars; (vars.mathErr, vars.exchangeRateMantissa) = exchangeRateStoredInternal(); if (vars.mathErr != MathError.NO_ERROR) { return (failOpaque(Error.MATH_ERROR, FailureInfo.MINT_EXCHANGE_RATE_READ_FAILED, uint(vars.mathErr)), 0); } // Check max supply // unused function /* allowed = comptroller.mintWithinLimits(address(this), vars.exchangeRateMantissa, accountTokens[minter], mintAmount); if (allowed != 0) { return (failOpaque(Error.COMPTROLLER_REJECTION, FailureInfo.MINT_COMPTROLLER_REJECTION, allowed), 0); } */ ///////////////////////// // EFFECTS & INTERACTIONS // (No safe failures beyond this point) /* * We call `doTransferIn` for the minter and the mintAmount. * Note: The cToken must handle variations between ERC-20 and ETH underlying. * `doTransferIn` reverts if anything goes wrong, since we can't be sure if * side-effects occurred. The function returns the amount actually transferred, * in case of a fee. On success, the cToken holds an additional `actualMintAmount` * of cash. */ vars.actualMintAmount = doTransferIn(minter, mintAmount); /* * We get the current exchange rate and calculate the number of cTokens to be minted: * mintTokens = actualMintAmount / exchangeRate */ (vars.mathErr, vars.mintTokens) = divScalarByExpTruncate(vars.actualMintAmount, Exp({mantissa: vars.exchangeRateMantissa})); require(vars.mathErr == MathError.NO_ERROR, "MINT_EXCHANGE_CALCULATION_FAILED"); /* * We calculate the new total supply of cTokens and minter token balance, checking for overflow: * totalSupplyNew = totalSupply + mintTokens * accountTokensNew = accountTokens[minter] + mintTokens */ vars.totalSupplyNew = add_(totalSupply, vars.mintTokens); vars.accountTokensNew = add_(accountTokens[minter], vars.mintTokens); /* We write previously calculated values into storage */ totalSupply = vars.totalSupplyNew; accountTokens[minter] = vars.accountTokensNew; /* We emit a Mint event, and a Transfer event */ emit Mint(minter, vars.actualMintAmount, vars.mintTokens); emit Transfer(address(this), minter, vars.mintTokens); /* We call the defense hook */ comptroller.mintVerify(address(this), minter, vars.actualMintAmount, vars.mintTokens); return (uint(Error.NO_ERROR), vars.actualMintAmount); } /** * @notice Sender redeems cTokens in exchange for the underlying asset * @dev Accrues interest whether or not the operation succeeds, unless reverted * @param redeemTokens The number of cTokens to redeem into underlying * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function redeemInternal(uint redeemTokens) internal nonReentrant(false) returns (uint) { uint error = accrueInterest(); if (error != uint(Error.NO_ERROR)) { // accrueInterest emits logs on errors, but we still want to log the fact that an attempted redeem failed return fail(Error(error), FailureInfo.REDEEM_ACCRUE_INTEREST_FAILED); } // redeemFresh emits redeem-specific logs on errors, so we don't need to return redeemFresh(msg.sender, redeemTokens, 0); } /** * @notice Sender redeems cTokens in exchange for a specified amount of underlying asset * @dev Accrues interest whether or not the operation succeeds, unless reverted * @param redeemAmount The amount of underlying to receive from redeeming cTokens * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function redeemUnderlyingInternal(uint redeemAmount) internal nonReentrant(false) returns (uint) { uint error = accrueInterest(); if (error != uint(Error.NO_ERROR)) { // accrueInterest emits logs on errors, but we still want to log the fact that an attempted redeem failed return fail(Error(error), FailureInfo.REDEEM_ACCRUE_INTEREST_FAILED); } // redeemFresh emits redeem-specific logs on errors, so we don't need to return redeemFresh(msg.sender, 0, redeemAmount); } struct RedeemLocalVars { Error err; MathError mathErr; uint exchangeRateMantissa; uint redeemTokens; uint redeemAmount; uint totalSupplyNew; uint accountTokensNew; } /** * @notice User redeems cTokens in exchange for the underlying asset * @dev Assumes interest has already been accrued up to the current block * @param redeemer The address of the account which is redeeming the tokens * @param redeemTokensIn The number of cTokens to redeem into underlying (only one of redeemTokensIn or redeemAmountIn may be non-zero) * @param redeemAmountIn The number of underlying tokens to receive from redeeming cTokens (only one of redeemTokensIn or redeemAmountIn may be non-zero) * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function redeemFresh(address payable redeemer, uint redeemTokensIn, uint redeemAmountIn) internal returns (uint) { require(redeemTokensIn == 0 || redeemAmountIn == 0, "one of redeemTokensIn or redeemAmountIn must be zero"); RedeemLocalVars memory vars; /* exchangeRate = invoke Exchange Rate Stored() */ (vars.mathErr, vars.exchangeRateMantissa) = exchangeRateStoredInternal(); if (vars.mathErr != MathError.NO_ERROR) { return failOpaque(Error.MATH_ERROR, FailureInfo.REDEEM_EXCHANGE_RATE_READ_FAILED, uint(vars.mathErr)); } /* If redeemTokensIn > 0: */ if (redeemTokensIn > 0) { /* * We calculate the exchange rate and the amount of underlying to be redeemed: * redeemTokens = redeemTokensIn * redeemAmount = redeemTokensIn x exchangeRateCurrent */ vars.redeemTokens = redeemTokensIn; (vars.mathErr, vars.redeemAmount) = mulScalarTruncate(Exp({mantissa: vars.exchangeRateMantissa}), redeemTokensIn); if (vars.mathErr != MathError.NO_ERROR) { return failOpaque(Error.MATH_ERROR, FailureInfo.REDEEM_EXCHANGE_TOKENS_CALCULATION_FAILED, uint(vars.mathErr)); } } else { /* * We get the current exchange rate and calculate the amount to be redeemed: * redeemTokens = redeemAmountIn / exchangeRate * redeemAmount = redeemAmountIn */ (vars.mathErr, vars.redeemTokens) = divScalarByExpTruncate(redeemAmountIn, Exp({mantissa: vars.exchangeRateMantissa})); if (vars.mathErr != MathError.NO_ERROR) { return failOpaque(Error.MATH_ERROR, FailureInfo.REDEEM_EXCHANGE_AMOUNT_CALCULATION_FAILED, uint(vars.mathErr)); } vars.redeemAmount = redeemAmountIn; } /* Fail if redeem not allowed */ uint allowed = comptroller.redeemAllowed(address(this), redeemer, vars.redeemTokens); if (allowed != 0) { return failOpaque(Error.COMPTROLLER_REJECTION, FailureInfo.REDEEM_COMPTROLLER_REJECTION, allowed); } /* Verify market's block number equals current block number */ if (accrualBlockNumber != getBlockNumber()) { return fail(Error.MARKET_NOT_FRESH, FailureInfo.REDEEM_FRESHNESS_CHECK); } /* * We calculate the new total supply and redeemer balance, checking for underflow: * totalSupplyNew = totalSupply - redeemTokens * accountTokensNew = accountTokens[redeemer] - redeemTokens */ (vars.mathErr, vars.totalSupplyNew) = subUInt(totalSupply, vars.redeemTokens); if (vars.mathErr != MathError.NO_ERROR) { return failOpaque(Error.MATH_ERROR, FailureInfo.REDEEM_NEW_TOTAL_SUPPLY_CALCULATION_FAILED, uint(vars.mathErr)); } (vars.mathErr, vars.accountTokensNew) = subUInt(accountTokens[redeemer], vars.redeemTokens); if (vars.mathErr != MathError.NO_ERROR) { return failOpaque(Error.MATH_ERROR, FailureInfo.REDEEM_NEW_ACCOUNT_BALANCE_CALCULATION_FAILED, uint(vars.mathErr)); } /* Fail gracefully if protocol has insufficient cash */ if (getCashPrior() < vars.redeemAmount) { return fail(Error.TOKEN_INSUFFICIENT_CASH, FailureInfo.REDEEM_TRANSFER_OUT_NOT_POSSIBLE); } ///////////////////////// // EFFECTS & INTERACTIONS // (No safe failures beyond this point) /* * We invoke doTransferOut for the redeemer and the redeemAmount. * Note: The cToken must handle variations between ERC-20 and ETH underlying. * On success, the cToken has redeemAmount less of cash. * doTransferOut reverts if anything goes wrong, since we can't be sure if side effects occurred. */ doTransferOut(redeemer, vars.redeemAmount); /* We write previously calculated values into storage */ totalSupply = vars.totalSupplyNew; accountTokens[redeemer] = vars.accountTokensNew; /* We emit a Transfer event, and a Redeem event */ emit Transfer(redeemer, address(this), vars.redeemTokens); emit Redeem(redeemer, vars.redeemAmount, vars.redeemTokens); /* We call the defense hook */ comptroller.redeemVerify(address(this), redeemer, vars.redeemAmount, vars.redeemTokens); return uint(Error.NO_ERROR); } /** * @notice Sender borrows assets from the protocol to their own address * @param borrowAmount The amount of the underlying asset to borrow * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function borrowInternal(uint borrowAmount) internal nonReentrant(false) 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 */ uint cashPrior = getCashPrior(); if (cashPrior < 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)); } // Check min borrow for this user for this asset allowed = comptroller.borrowWithinLimits(address(this), vars.accountBorrowsNew); if (allowed != 0) { return failOpaque(Error.COMPTROLLER_REJECTION, FailureInfo.BORROW_COMPTROLLER_REJECTION, allowed); } (vars.mathErr, vars.totalBorrowsNew) = addUInt(totalBorrows, borrowAmount); if (vars.mathErr != MathError.NO_ERROR) { return failOpaque(Error.MATH_ERROR, FailureInfo.BORROW_NEW_TOTAL_BALANCE_CALCULATION_FAILED, uint(vars.mathErr)); } ///////////////////////// // EFFECTS & INTERACTIONS // (No safe failures beyond this point) /* * We invoke doTransferOut for the borrower and the borrowAmount. * Note: The cToken must handle variations between ERC-20 and ETH underlying. * On success, the cToken borrowAmount less of cash. * doTransferOut reverts if anything goes wrong, since we can't be sure if side effects occurred. */ doTransferOut(borrower, borrowAmount); /* We write the previously calculated values into storage */ accountBorrows[borrower].principal = vars.accountBorrowsNew; accountBorrows[borrower].interestIndex = borrowIndex; totalBorrows = vars.totalBorrowsNew; /* We emit a Borrow event */ emit Borrow(borrower, borrowAmount, vars.accountBorrowsNew, vars.totalBorrowsNew); /* We call the defense hook */ // unused function // 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(false) 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(false) returns (uint, uint) { uint error = accrueInterest(); if (error != uint(Error.NO_ERROR)) { // accrueInterest emits logs on errors, but we still want to log the fact that an attempted borrow failed return (fail(Error(error), FailureInfo.REPAY_BEHALF_ACCRUE_INTEREST_FAILED), 0); } // repayBorrowFresh emits repay-borrow-specific logs on errors, so we don't need to return repayBorrowFresh(msg.sender, borrower, repayAmount); } struct RepayBorrowLocalVars { Error err; MathError mathErr; uint repayAmount; uint borrowerIndex; uint accountBorrows; uint accountBorrowsNew; uint totalBorrowsNew; uint actualRepayAmount; } /** * @notice Borrows are repaid by another user (possibly the borrower). * @param payer the account paying off the borrow * @param borrower the account with the debt being payed off * @param repayAmount the amount of undelrying tokens being returned * @return (uint, uint) An error code (0=success, otherwise a failure, see ErrorReporter.sol), and the actual repayment amount. */ function repayBorrowFresh(address payer, address borrower, uint repayAmount) internal returns (uint, uint) { /* Fail if repayBorrow not allowed */ uint allowed = comptroller.repayBorrowAllowed(address(this), payer, borrower, repayAmount); if (allowed != 0) { return (failOpaque(Error.COMPTROLLER_REJECTION, FailureInfo.REPAY_BORROW_COMPTROLLER_REJECTION, allowed), 0); } /* Verify market's block number equals current block number */ if (accrualBlockNumber != getBlockNumber()) { return (fail(Error.MARKET_NOT_FRESH, FailureInfo.REPAY_BORROW_FRESHNESS_CHECK), 0); } RepayBorrowLocalVars memory vars; /* We remember the original borrowerIndex for verification purposes */ vars.borrowerIndex = accountBorrows[borrower].interestIndex; /* We fetch the amount the borrower owes, with accumulated interest */ (vars.mathErr, vars.accountBorrows) = borrowBalanceStoredInternal(borrower); if (vars.mathErr != MathError.NO_ERROR) { return (failOpaque(Error.MATH_ERROR, FailureInfo.REPAY_BORROW_ACCUMULATED_BALANCE_CALCULATION_FAILED, uint(vars.mathErr)), 0); } /* If repayAmount == -1, repayAmount = accountBorrows */ if (repayAmount == uint(-1)) { vars.repayAmount = vars.accountBorrows; } else { vars.repayAmount = repayAmount; } ///////////////////////// // EFFECTS & INTERACTIONS // (No safe failures beyond this point) /* * We call doTransferIn for the payer and the repayAmount * Note: The cToken must handle variations between ERC-20 and ETH underlying. * On success, the cToken holds an additional repayAmount of cash. * doTransferIn reverts if anything goes wrong, since we can't be sure if side effects occurred. * it returns the amount actually transferred, in case of a fee. */ vars.actualRepayAmount = doTransferIn(payer, vars.repayAmount); /* * We calculate the new borrower and total borrow balances, failing on underflow: * accountBorrowsNew = accountBorrows - actualRepayAmount * totalBorrowsNew = totalBorrows - actualRepayAmount */ (vars.mathErr, vars.accountBorrowsNew) = subUInt(vars.accountBorrows, vars.actualRepayAmount); require(vars.mathErr == MathError.NO_ERROR, "REPAY_BORROW_NEW_ACCOUNT_BORROW_BALANCE_CALCULATION_FAILED"); (vars.mathErr, vars.totalBorrowsNew) = subUInt(totalBorrows, vars.actualRepayAmount); require(vars.mathErr == MathError.NO_ERROR, "REPAY_BORROW_NEW_TOTAL_BALANCE_CALCULATION_FAILED"); /* We write the previously calculated values into storage */ accountBorrows[borrower].principal = vars.accountBorrowsNew; accountBorrows[borrower].interestIndex = borrowIndex; totalBorrows = vars.totalBorrowsNew; /* We emit a RepayBorrow event */ emit RepayBorrow(payer, borrower, vars.actualRepayAmount, vars.accountBorrowsNew, vars.totalBorrowsNew); /* We call the defense hook */ // unused function // comptroller.repayBorrowVerify(address(this), payer, borrower, vars.actualRepayAmount, vars.borrowerIndex); return (uint(Error.NO_ERROR), vars.actualRepayAmount); } /** * @notice The sender liquidates the borrowers collateral. * The collateral seized is transferred to the liquidator. * @param borrower The borrower of this cToken to be liquidated * @param cTokenCollateral The market in which to seize collateral from the borrower * @param repayAmount The amount of the underlying borrowed asset to repay * @return (uint, uint) An error code (0=success, otherwise a failure, see ErrorReporter.sol), and the actual repayment amount. */ function liquidateBorrowInternal(address borrower, uint repayAmount, CTokenInterface cTokenCollateral) internal nonReentrant(false) returns (uint, uint) { uint error = accrueInterest(); if (error != uint(Error.NO_ERROR)) { // accrueInterest emits logs on errors, but we still want to log the fact that an attempted liquidation failed return (fail(Error(error), FailureInfo.LIQUIDATE_ACCRUE_BORROW_INTEREST_FAILED), 0); } error = cTokenCollateral.accrueInterest(); if (error != uint(Error.NO_ERROR)) { // accrueInterest emits logs on errors, but we still want to log the fact that an attempted liquidation failed return (fail(Error(error), FailureInfo.LIQUIDATE_ACCRUE_COLLATERAL_INTEREST_FAILED), 0); } // liquidateBorrowFresh emits borrow-specific logs on errors, so we don't need to return liquidateBorrowFresh(msg.sender, borrower, repayAmount, cTokenCollateral); } /** * @notice The liquidator liquidates the borrowers collateral. * The collateral seized is transferred to the liquidator. * @param borrower The borrower of this cToken to be liquidated * @param liquidator The address repaying the borrow and seizing collateral * @param cTokenCollateral The market in which to seize collateral from the borrower * @param repayAmount The amount of the underlying borrowed asset to repay * @return (uint, uint) An error code (0=success, otherwise a failure, see ErrorReporter.sol), and the actual repayment amount. */ function liquidateBorrowFresh(address liquidator, address borrower, uint repayAmount, CTokenInterface cTokenCollateral) internal returns (uint, uint) { /* Fail if liquidate not allowed */ uint allowed = comptroller.liquidateBorrowAllowed(address(this), address(cTokenCollateral), liquidator, borrower, repayAmount); if (allowed != 0) { return (failOpaque(Error.COMPTROLLER_REJECTION, FailureInfo.LIQUIDATE_COMPTROLLER_REJECTION, allowed), 0); } /* Verify market's block number equals current block number */ if (accrualBlockNumber != getBlockNumber()) { return (fail(Error.MARKET_NOT_FRESH, FailureInfo.LIQUIDATE_FRESHNESS_CHECK), 0); } /* Verify cTokenCollateral market's block number equals current block number */ if (cTokenCollateral.accrualBlockNumber() != getBlockNumber()) { return (fail(Error.MARKET_NOT_FRESH, FailureInfo.LIQUIDATE_COLLATERAL_FRESHNESS_CHECK), 0); } /* Fail if borrower = liquidator */ if (borrower == liquidator) { return (fail(Error.INVALID_ACCOUNT_PAIR, FailureInfo.LIQUIDATE_LIQUIDATOR_IS_BORROWER), 0); } /* Fail if repayAmount = 0 */ if (repayAmount == 0) { return (fail(Error.INVALID_CLOSE_AMOUNT_REQUESTED, FailureInfo.LIQUIDATE_CLOSE_AMOUNT_IS_ZERO), 0); } /* Fail if repayAmount = -1 */ if (repayAmount == uint(-1)) { return (fail(Error.INVALID_CLOSE_AMOUNT_REQUESTED, FailureInfo.LIQUIDATE_CLOSE_AMOUNT_IS_UINT_MAX), 0); } /* Fail if repayBorrow fails */ (uint repayBorrowError, uint actualRepayAmount) = repayBorrowFresh(liquidator, borrower, repayAmount); if (repayBorrowError != uint(Error.NO_ERROR)) { return (fail(Error(repayBorrowError), FailureInfo.LIQUIDATE_REPAY_BORROW_FRESH_FAILED), 0); } ///////////////////////// // EFFECTS & INTERACTIONS // (No safe failures beyond this point) /* We calculate the number of collateral tokens that will be seized */ (uint amountSeizeError, uint seizeTokens) = comptroller.liquidateCalculateSeizeTokens(address(this), address(cTokenCollateral), actualRepayAmount); require(amountSeizeError == uint(Error.NO_ERROR), "LIQUIDATE_COMPTROLLER_CALCULATE_AMOUNT_SEIZE_FAILED"); /* Revert if borrower collateral token balance < seizeTokens */ require(cTokenCollateral.balanceOf(borrower) >= seizeTokens, "LIQUIDATE_SEIZE_TOO_MUCH"); // If this is also the collateral, run seizeInternal to avoid re-entrancy, otherwise make an external call uint seizeError; if (address(cTokenCollateral) == address(this)) { seizeError = seizeInternal(address(this), liquidator, borrower, seizeTokens); } else { seizeError = cTokenCollateral.seize(liquidator, borrower, seizeTokens); } /* Revert if seize tokens fails (since we cannot be sure of side effects) */ require(seizeError == uint(Error.NO_ERROR), "token seizure failed"); /* We emit a LiquidateBorrow event */ emit LiquidateBorrow(liquidator, borrower, actualRepayAmount, address(cTokenCollateral), seizeTokens); /* We call the defense hook */ // unused function // comptroller.liquidateBorrowVerify(address(this), address(cTokenCollateral), liquidator, borrower, actualRepayAmount, seizeTokens); return (uint(Error.NO_ERROR), actualRepayAmount); } /** * @notice Transfers collateral tokens (this market) to the liquidator. * @dev Will fail unless called by another cToken during the process of liquidation. * Its absolutely critical to use msg.sender as the borrowed cToken and not a parameter. * @param liquidator The account receiving seized collateral * @param borrower The account having collateral seized * @param seizeTokens The number of cTokens to seize * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function seize(address liquidator, address borrower, uint seizeTokens) external nonReentrant(true) 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 CToken. * Its absolutely critical to use msg.sender as the seizer cToken and not a parameter. * @param seizerToken The contract seizing the collateral (i.e. borrowed cToken) * @param liquidator The account receiving seized collateral * @param borrower The account having collateral seized * @param seizeTokens The number of cTokens to seize * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function seizeInternal(address seizerToken, address liquidator, address borrower, uint seizeTokens) internal returns (uint) { /* 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); } 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.protocolSeizeAmount = mul_ScalarTruncate(Exp({mantissa: vars.exchangeRateMantissa}), vars.protocolSeizeTokens); 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 */ // unused function // comptroller.seizeVerify(address(this), seizerToken, liquidator, borrower, seizeTokens); return uint(Error.NO_ERROR); } /*** Admin Functions ***/ /** * @notice Sets a new comptroller for the market * @dev Internal function to set a new comptroller * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function _setComptroller(ComptrollerInterface newComptroller) internal returns (uint) { 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 admin fee for the protocol using _setAdminFeeFresh * @dev Admin function to accrue interest and set a new admin fee * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function _setAdminFee(uint newAdminFeeMantissa) external nonReentrant(false) 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 admin fee change failed. return fail(Error(error), FailureInfo.SET_ADMIN_FEE_ACCRUE_INTEREST_FAILED); } // _setAdminFeeFresh emits reserve-factor-specific logs on errors, so we don't need to. return _setAdminFeeFresh(newAdminFeeMantissa); } /** * @notice Sets a new admin fee for the protocol (*requires fresh interest accrual) * @dev Admin function to set a new admin fee * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function _setAdminFeeFresh(uint newAdminFeeMantissa) internal returns (uint) { // Verify market's block number equals current block number if (accrualBlockNumber != getBlockNumber()) { return fail(Error.MARKET_NOT_FRESH, FailureInfo.SET_ADMIN_FEE_FRESH_CHECK); } // Sanitize newAdminFeeMantissa if (newAdminFeeMantissa == uint(-1)) newAdminFeeMantissa = adminFeeMantissa; // Get latest Fuse fee uint newFuseFeeMantissa = getPendingFuseFeeFromAdmin(); // Check reserveFactorMantissa + newAdminFeeMantissa + newFuseFeeMantissa ≤ reserveFactorPlusFeesMaxMantissa if (add_(add_(reserveFactorMantissa, newAdminFeeMantissa), newFuseFeeMantissa) > reserveFactorPlusFeesMaxMantissa) { return fail(Error.BAD_INPUT, FailureInfo.SET_ADMIN_FEE_BOUNDS_CHECK); } // If setting admin fee if (adminFeeMantissa != newAdminFeeMantissa) { // Check caller is admin if (!hasAdminRights()) { return fail(Error.UNAUTHORIZED, FailureInfo.SET_ADMIN_FEE_ADMIN_CHECK); } // Set admin fee uint oldAdminFeeMantissa = adminFeeMantissa; adminFeeMantissa = newAdminFeeMantissa; // Emit event emit NewAdminFee(oldAdminFeeMantissa, newAdminFeeMantissa); } // If setting Fuse fee if (fuseFeeMantissa != newFuseFeeMantissa) { // Set Fuse fee uint oldFuseFeeMantissa = fuseFeeMantissa; fuseFeeMantissa = newFuseFeeMantissa; // Emit event emit NewFuseFee(oldFuseFeeMantissa, newFuseFeeMantissa); } 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(false) 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 (!hasAdminRights()) { 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 (add_(add_(newReserveFactorMantissa, adminFeeMantissa), fuseFeeMantissa) > reserveFactorPlusFeesMaxMantissa) { return fail(Error.BAD_INPUT, FailureInfo.SET_RESERVE_FACTOR_BOUNDS_CHECK); } uint oldReserveFactorMantissa = reserveFactorMantissa; reserveFactorMantissa = newReserveFactorMantissa; emit NewReserveFactor(oldReserveFactorMantissa, newReserveFactorMantissa); return uint(Error.NO_ERROR); } /** * @notice Accrues interest and reduces reserves by transferring to admin * @param reduceAmount Amount of reduction to reserves * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function _reduceReserves(uint reduceAmount) external nonReentrant(false) 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 (!hasAdminRights()) { 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) // We checked reduceAmount <= totalReserves above, so this should never revert. totalReservesNew = sub_(totalReserves, reduceAmount); // 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(msg.sender, reduceAmount); emit ReservesReduced(msg.sender, reduceAmount, totalReservesNew); return uint(Error.NO_ERROR); } /** * @notice Accrues interest and reduces Fuse fees by transferring to Fuse * @param withdrawAmount Amount of fees to withdraw * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function _withdrawFuseFees(uint withdrawAmount) external nonReentrant(false) 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 Fuse fee withdrawal failed. return fail(Error(error), FailureInfo.WITHDRAW_FUSE_FEES_ACCRUE_INTEREST_FAILED); } // _withdrawFuseFeesFresh emits reserve-reduction-specific logs on errors, so we don't need to. return _withdrawFuseFeesFresh(withdrawAmount); } /** * @notice Reduces Fuse fees by transferring to Fuse * @dev Requires fresh interest accrual * @param withdrawAmount Amount of fees to withdraw * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function _withdrawFuseFeesFresh(uint withdrawAmount) internal returns (uint) { // totalFuseFees - reduceAmount uint totalFuseFeesNew; // We fail gracefully unless market's block number equals current block number if (accrualBlockNumber != getBlockNumber()) { return fail(Error.MARKET_NOT_FRESH, FailureInfo.WITHDRAW_FUSE_FEES_FRESH_CHECK); } // Fail gracefully if protocol has insufficient underlying cash if (getCashPrior() < withdrawAmount) { return fail(Error.TOKEN_INSUFFICIENT_CASH, FailureInfo.WITHDRAW_FUSE_FEES_CASH_NOT_AVAILABLE); } // Check withdrawAmount ≤ fuseFees[n] (totalFuseFees) if (withdrawAmount > totalFuseFees) { return fail(Error.BAD_INPUT, FailureInfo.WITHDRAW_FUSE_FEES_VALIDATION); } ///////////////////////// // EFFECTS & INTERACTIONS // (No safe failures beyond this point) // We checked withdrawAmount <= totalFuseFees above, so this should never revert. totalFuseFeesNew = sub_(totalFuseFees, withdrawAmount); // Store fuseFees[n+1] = fuseFees[n] - withdrawAmount totalFuseFees = totalFuseFeesNew; // doTransferOut reverts if anything goes wrong, since we can't be sure if side effects occurred. doTransferOut(address(fuseAdmin), withdrawAmount); return uint(Error.NO_ERROR); } /** * @notice Accrues interest and reduces admin fees by transferring to admin * @param withdrawAmount Amount of fees to withdraw * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function _withdrawAdminFees(uint withdrawAmount) external nonReentrant(false) 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 admin fee withdrawal failed. return fail(Error(error), FailureInfo.WITHDRAW_ADMIN_FEES_ACCRUE_INTEREST_FAILED); } // _withdrawAdminFeesFresh emits reserve-reduction-specific logs on errors, so we don't need to. return _withdrawAdminFeesFresh(withdrawAmount); } /** * @notice Reduces admin fees by transferring to admin * @dev Requires fresh interest accrual * @param withdrawAmount Amount of fees to withdraw * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function _withdrawAdminFeesFresh(uint withdrawAmount) internal returns (uint) { // totalAdminFees - reduceAmount uint totalAdminFeesNew; // We fail gracefully unless market's block number equals current block number if (accrualBlockNumber != getBlockNumber()) { return fail(Error.MARKET_NOT_FRESH, FailureInfo.WITHDRAW_ADMIN_FEES_FRESH_CHECK); } // Fail gracefully if protocol has insufficient underlying cash if (getCashPrior() < withdrawAmount) { return fail(Error.TOKEN_INSUFFICIENT_CASH, FailureInfo.WITHDRAW_ADMIN_FEES_CASH_NOT_AVAILABLE); } // Check withdrawAmount ≤ adminFees[n] (totalAdminFees) if (withdrawAmount > totalAdminFees) { return fail(Error.BAD_INPUT, FailureInfo.WITHDRAW_ADMIN_FEES_VALIDATION); } ///////////////////////// // EFFECTS & INTERACTIONS // (No safe failures beyond this point) // We checked withdrawAmount <= totalAdminFees above, so this should never revert. totalAdminFeesNew = sub_(totalAdminFees, withdrawAmount); // Store adminFees[n+1] = adminFees[n] - withdrawAmount totalAdminFees = totalAdminFeesNew; // doTransferOut reverts if anything goes wrong, since we can't be sure if side effects occurred. doTransferOut(address(uint160(UnitrollerAdminStorage(address(comptroller)).admin())), withdrawAmount); 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 (!hasAdminRights()) { 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); // Attempt to reset interest checkpoints on old IRM if (address(oldInterestRateModel) != address(0)) address(oldInterestRateModel).call(abi.encodeWithSignature("resetInterestCheckpoints()")); // Attempt to add first interest checkpoint on new IRM address(newInterestRateModel).call(abi.encodeWithSignature("checkpointInterest()")); return uint(Error.NO_ERROR); } /** * @notice updates the cToken ERC20 name and symbol * @dev Admin function to update the cToken ERC20 name and symbol * @param _name the new ERC20 token name to use * @param _symbol the new ERC20 token symbol to use * @return uint 0=success, otherwise a failure (see ErrorReporter.sol for details) */ function _setNameAndSymbol(string calldata _name, string calldata _symbol) external { // Check caller is admin require(hasAdminRights(), "caller not admin"); // Set ERC20 name and symbol name = _name; symbol = _symbol; } /*** 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(bool localOnly) { _beforeNonReentrant(localOnly); _; _afterNonReentrant(localOnly); } /** * @dev Split off from `nonReentrant` to keep contract below the 24 KB size limit. * Saves space because function modifier code is "inlined" into every function with the modifier). * In this specific case, the optimization saves around 1500 bytes of that valuable 24 KB limit. */ function _beforeNonReentrant(bool localOnly) private { require(_notEntered, "re-entered"); if (!localOnly) comptroller._beforeNonReentrant(); _notEntered = false; } /** * @dev Split off from `nonReentrant` to keep contract below the 24 KB size limit. * Saves space because function modifier code is "inlined" into every function with the modifier). * In this specific case, the optimization saves around 150 bytes of that valuable 24 KB limit. */ function _afterNonReentrant(bool localOnly) private { _notEntered = true; // get a gas-refund post-Istanbul if (!localOnly) comptroller._afterNonReentrant(); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * @param data The call data (encoded using abi.encode or one of its variants). * @param errorMessage The revert string to return on failure. */ function _functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.call(data); if (!success) { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } return returndata; } }
pragma solidity ^0.5.16; import "./IFuseFeeDistributor.sol"; import "./ComptrollerStorage.sol"; import "./ComptrollerInterface.sol"; import "./InterestRateModel.sol"; contract CTokenAdminStorage { /** * @notice Administrator for Fuse */ IFuseFeeDistributor internal constant fuseAdmin = IFuseFeeDistributor(0xa731585ab05fC9f83555cf9Bff8F58ee94e18F85); /** * @dev LEGACY USE ONLY: Administrator for this contract */ address payable internal __admin; /** * @dev LEGACY USE ONLY: Whether or not the Fuse admin has admin rights */ bool internal __fuseAdminHasRights; /** * @dev LEGACY USE ONLY: Whether or not the admin has admin rights */ bool internal __adminHasRights; } contract CTokenStorage is CTokenAdminStorage { /** * @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 + fees */ uint internal constant reserveFactorPlusFeesMaxMantissa = 1e18; /** * @notice LEGACY USE ONLY: Pending administrator for this contract */ address payable private __pendingAdmin; /** * @notice Contract which oversees inter-cToken operations */ ComptrollerInterface public comptroller; /** * @notice Model which tells what the current interest rate should be */ InterestRateModel public interestRateModel; /** * @notice Initial exchange rate used when minting the first CTokens (used when totalSupply = 0) */ uint internal initialExchangeRateMantissa; /** * @notice Fraction of interest currently set aside for admin fees */ uint public adminFeeMantissa; /** * @notice Fraction of interest currently set aside for Fuse fees */ uint public fuseFeeMantissa; /** * @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 amount of admin fees of the underlying held in this market */ uint public totalAdminFees; /** * @notice Total amount of Fuse fees of the underlying held in this market */ uint public totalFuseFees; /** * @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 = 2.8e16; //2.8% } contract CTokenInterface is CTokenStorage { /** * @notice Indicator that this is a CToken contract (for inspection) */ bool public constant isCToken = true; /** * @notice Indicator that this is or is not a CEther contract (for inspection) */ bool public constant isCEther = false; /*** Market Events ***/ /** * @notice Event emitted when interest is accrued */ event AccrueInterest(uint cashPrior, uint interestAccumulated, uint borrowIndex, uint totalBorrows); /** * @notice Event emitted when tokens are minted */ event Mint(address minter, uint mintAmount, uint mintTokens); /** * @notice Event emitted when tokens are redeemed */ event Redeem(address redeemer, uint redeemAmount, uint redeemTokens); /** * @notice Event emitted when underlying is borrowed */ event Borrow(address borrower, uint borrowAmount, uint accountBorrows, uint totalBorrows); /** * @notice Event emitted when a borrow is repaid */ event RepayBorrow(address payer, address borrower, uint repayAmount, uint accountBorrows, uint totalBorrows); /** * @notice Event emitted when a borrow is liquidated */ event LiquidateBorrow(address liquidator, address borrower, uint repayAmount, address cTokenCollateral, uint seizeTokens); /*** Admin Events ***/ /** * @notice Event emitted when 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 admin fee is changed */ event NewAdminFee(uint oldAdminFeeMantissa, uint newAdminFeeMantissa); /** * @notice Event emitted when the Fuse fee is changed */ event NewFuseFee(uint oldFuseFeeMantissa, uint newFuseFeeMantissa); /** * @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 _setReserveFactor(uint newReserveFactorMantissa) external returns (uint); function _reduceReserves(uint reduceAmount) external returns (uint); function _setInterestRateModel(InterestRateModel newInterestRateModel) public returns (uint); } contract CErc20Storage { /** * @notice Underlying asset for this CToken */ address public underlying; } contract CErc20Interface is CErc20Storage { /*** User Interface ***/ function mint(uint mintAmount) external returns (uint); function redeem(uint redeemTokens) external returns (uint); function redeemUnderlying(uint redeemAmount) external returns (uint); function borrow(uint borrowAmount) external returns (uint); function repayBorrow(uint repayAmount) external returns (uint); function repayBorrowBehalf(address borrower, uint repayAmount) external returns (uint); function liquidateBorrow(address borrower, uint repayAmount, CTokenInterface cTokenCollateral) external returns (uint); } contract CEtherInterface is CErc20Storage { /** * @notice Indicator that this is a CEther contract (for inspection) */ bool public constant isCEther = true; } contract CDelegationStorage { /** * @notice Implementation address for this contract */ address public implementation; } contract CDelegateInterface is CDelegationStorage { /** * @notice Emitted when implementation is changed */ event NewImplementation(address oldImplementation, address newImplementation); /** * @notice Called by the admin to update the implementation of the delegator * @param implementation_ The address of the new implementation for delegation * @param allowResign Flag to indicate whether to call _resignImplementation on the old implementation * @param becomeImplementationData The encoded bytes data to be passed to _becomeImplementation */ function _setImplementationSafe(address implementation_, bool allowResign, bytes calldata becomeImplementationData) external; /** * @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 calldata data) external; /** * @notice Function called before all delegator functions * @dev Checks comptroller.autoImplementation and upgrades the implementation if necessary */ function _prepare() external payable; }
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); }
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); }
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, SUPPLIER_NOT_WHITELISTED, BORROW_BELOW_MIN, SUPPLY_ABOVE_MAX, NONZERO_TOTAL_SUPPLY } enum FailureInfo { ACCEPT_ADMIN_PENDING_ADMIN_CHECK, ACCEPT_PENDING_IMPLEMENTATION_ADDRESS_CHECK, ADD_REWARDS_DISTRIBUTOR_OWNER_CHECK, EXIT_MARKET_BALANCE_OWED, EXIT_MARKET_REJECTION, TOGGLE_ADMIN_RIGHTS_OWNER_CHECK, TOGGLE_AUTO_IMPLEMENTATIONS_ENABLED_OWNER_CHECK, 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_LIQUIDATION_INCENTIVE_OWNER_CHECK, SET_LIQUIDATION_INCENTIVE_VALIDATION, SET_MAX_ASSETS_OWNER_CHECK, SET_PENDING_ADMIN_OWNER_CHECK, SET_PENDING_IMPLEMENTATION_CONTRACT_CHECK, SET_PENDING_IMPLEMENTATION_OWNER_CHECK, SET_PRICE_ORACLE_OWNER_CHECK, SET_WHITELIST_ENFORCEMENT_OWNER_CHECK, SET_WHITELIST_STATUS_OWNER_CHECK, SUPPORT_MARKET_EXISTS, SUPPORT_MARKET_OWNER_CHECK, SET_PAUSE_GUARDIAN_OWNER_CHECK, UNSUPPORT_MARKET_OWNER_CHECK, UNSUPPORT_MARKET_DOES_NOT_EXIST, UNSUPPORT_MARKET_IN_USE } /** * @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, UTILIZATION_ABOVE_MAX } /* * 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_NEW_TOTAL_FUSE_FEES_CALCULATION_FAILED, ACCRUE_INTEREST_NEW_TOTAL_ADMIN_FEES_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, NEW_UTILIZATION_RATE_ABOVE_MAX, 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, WITHDRAW_FUSE_FEES_ACCRUE_INTEREST_FAILED, WITHDRAW_FUSE_FEES_CASH_NOT_AVAILABLE, WITHDRAW_FUSE_FEES_FRESH_CHECK, WITHDRAW_FUSE_FEES_VALIDATION, WITHDRAW_ADMIN_FEES_ACCRUE_INTEREST_FAILED, WITHDRAW_ADMIN_FEES_CASH_NOT_AVAILABLE, WITHDRAW_ADMIN_FEES_FRESH_CHECK, WITHDRAW_ADMIN_FEES_VALIDATION, 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, TOGGLE_ADMIN_RIGHTS_OWNER_CHECK, SET_PENDING_ADMIN_OWNER_CHECK, SET_ADMIN_FEE_ACCRUE_INTEREST_FAILED, SET_ADMIN_FEE_ADMIN_CHECK, SET_ADMIN_FEE_FRESH_CHECK, SET_ADMIN_FEE_BOUNDS_CHECK, SET_FUSE_FEE_ACCRUE_INTEREST_FAILED, SET_FUSE_FEE_FRESH_CHECK, SET_FUSE_FEE_BOUNDS_CHECK, SET_RESERVE_FACTOR_ACCRUE_INTEREST_FAILED, SET_RESERVE_FACTOR_ADMIN_CHECK, SET_RESERVE_FACTOR_FRESH_CHECK, SET_RESERVE_FACTOR_BOUNDS_CHECK, TRANSFER_COMPTROLLER_REJECTION, TRANSFER_NOT_ALLOWED, TRANSFER_NOT_ENOUGH, TRANSFER_TOO_MUCH, ADD_RESERVES_ACCRUE_INTEREST_FAILED, ADD_RESERVES_FRESH_CHECK, ADD_RESERVES_TRANSFER_IN_NOT_POSSIBLE } /** * @dev `error` corresponds to enum Error; `info` corresponds to enum FailureInfo, and `detail` is an arbitrary * contract-specific code that enables us to report opaque error codes from upgradeable contracts. **/ event Failure(uint error, uint info, uint detail); /** * @dev use this when reporting a known error from the money market or a non-upgradeable collaborator */ function fail(Error err, FailureInfo info) internal returns (uint) { emit Failure(uint(err), uint(info), 0); return uint(err); } /** * @dev use this when reporting an opaque error from an upgradeable collaborator contract */ function failOpaque(Error err, FailureInfo info, uint opaqueError) internal returns (uint) { emit Failure(uint(err), uint(info), opaqueError); return err == Error.COMPTROLLER_REJECTION ? 1000 + opaqueError : uint(err); } }
pragma solidity ^0.5.16; import "./CarefulMath.sol"; import "./ExponentialNoError.sol"; /** * @title Exponential module for storing fixed-precision decimals * @author Compound * @dev Legacy contract for compatibility reasons with existing contracts that still use MathError * @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, ExponentialNoError { /** * @dev Creates an exponential from numerator and denominator values. * Note: Returns an error if (`num` * 10e18) > MAX_INT, * or if `denom` is zero. */ function getExp(uint num, uint denom) pure internal returns (MathError, Exp memory) { (MathError err0, uint scaledNumerator) = mulUInt(num, expScale); if (err0 != MathError.NO_ERROR) { return (err0, Exp({mantissa: 0})); } (MathError err1, uint rational) = divUInt(scaledNumerator, denom); if (err1 != MathError.NO_ERROR) { return (err1, Exp({mantissa: 0})); } return (MathError.NO_ERROR, Exp({mantissa: rational})); } /** * @dev Adds two exponentials, returning a new exponential. */ function addExp(Exp memory a, Exp memory b) pure internal returns (MathError, Exp memory) { (MathError error, uint result) = addUInt(a.mantissa, b.mantissa); return (error, Exp({mantissa: result})); } /** * @dev Subtracts two exponentials, returning a new exponential. */ function subExp(Exp memory a, Exp memory b) pure internal returns (MathError, Exp memory) { (MathError error, uint result) = subUInt(a.mantissa, b.mantissa); return (error, Exp({mantissa: result})); } /** * @dev Multiply an Exp by a scalar, returning a new Exp. */ function mulScalar(Exp memory a, uint scalar) pure internal returns (MathError, Exp memory) { (MathError err0, uint scaledMantissa) = mulUInt(a.mantissa, scalar); if (err0 != MathError.NO_ERROR) { return (err0, Exp({mantissa: 0})); } return (MathError.NO_ERROR, Exp({mantissa: scaledMantissa})); } /** * @dev Multiply an Exp by a scalar, then truncate to return an unsigned integer. */ function mulScalarTruncate(Exp memory a, uint scalar) pure internal returns (MathError, uint) { (MathError err, Exp memory product) = mulScalar(a, scalar); if (err != MathError.NO_ERROR) { return (err, 0); } return (MathError.NO_ERROR, truncate(product)); } /** * @dev Multiply an Exp by a scalar, truncate, then add an to an unsigned integer, returning an unsigned integer. */ function mulScalarTruncateAddUInt(Exp memory a, uint scalar, uint addend) pure internal returns (MathError, uint) { (MathError err, Exp memory product) = mulScalar(a, scalar); if (err != MathError.NO_ERROR) { return (err, 0); } return addUInt(truncate(product), addend); } /** * @dev Divide an Exp by a scalar, returning a new Exp. */ function divScalar(Exp memory a, uint scalar) pure internal returns (MathError, Exp memory) { (MathError err0, uint descaledMantissa) = divUInt(a.mantissa, scalar); if (err0 != MathError.NO_ERROR) { return (err0, Exp({mantissa: 0})); } return (MathError.NO_ERROR, Exp({mantissa: descaledMantissa})); } /** * @dev Divide a scalar by an Exp, returning a new Exp. */ function divScalarByExp(uint scalar, Exp memory divisor) pure internal returns (MathError, Exp memory) { /* We are doing this as: getExp(mulUInt(expScale, scalar), divisor.mantissa) How it works: Exp = a / b; Scalar = s; `s / (a / b)` = `b * s / a` and since for an Exp `a = mantissa, b = expScale` */ (MathError err0, uint numerator) = mulUInt(expScale, scalar); if (err0 != MathError.NO_ERROR) { return (err0, Exp({mantissa: 0})); } return getExp(numerator, divisor.mantissa); } /** * @dev Divide a scalar by an Exp, then truncate to return an unsigned integer. */ function divScalarByExpTruncate(uint scalar, Exp memory divisor) pure internal returns (MathError, uint) { (MathError err, Exp memory fraction) = divScalarByExp(scalar, divisor); if (err != MathError.NO_ERROR) { return (err, 0); } return (MathError.NO_ERROR, truncate(fraction)); } /** * @dev Multiplies two exponentials, returning a new exponential. */ function mulExp(Exp memory a, Exp memory b) pure internal returns (MathError, Exp memory) { (MathError err0, uint doubleScaledProduct) = mulUInt(a.mantissa, b.mantissa); if (err0 != MathError.NO_ERROR) { return (err0, Exp({mantissa: 0})); } // We add half the scale before dividing so that we get rounding instead of truncation. // See "Listing 6" and text above it at https://accu.org/index.php/journals/1717 // Without this change, a result like 6.6...e-19 will be truncated to 0 instead of being rounded to 1e-18. (MathError err1, uint doubleScaledProductWithHalfScale) = addUInt(halfExpScale, doubleScaledProduct); if (err1 != MathError.NO_ERROR) { return (err1, Exp({mantissa: 0})); } (MathError err2, uint product) = divUInt(doubleScaledProductWithHalfScale, expScale); // The only error `div` can return is MathError.DIVISION_BY_ZERO but we control `expScale` and it is not zero. assert(err2 == MathError.NO_ERROR); return (MathError.NO_ERROR, Exp({mantissa: product})); } /** * @dev Multiplies two exponentials given their mantissas, returning a new exponential. */ function mulExp(uint a, uint b) pure internal returns (MathError, Exp memory) { return mulExp(Exp({mantissa: a}), Exp({mantissa: b})); } /** * @dev Multiplies three exponentials, returning a new exponential. */ function mulExp3(Exp memory a, Exp memory b, Exp memory c) pure internal returns (MathError, Exp memory) { (MathError err, Exp memory ab) = mulExp(a, b); if (err != MathError.NO_ERROR) { return (err, ab); } return mulExp(ab, c); } /** * @dev Divides two exponentials, returning a new exponential. * (a/scale) / (b/scale) = (a/scale) * (scale/b) = a/b, * which we can scale as an Exp by calling getExp(a.mantissa, b.mantissa) */ function divExp(Exp memory a, Exp memory b) pure internal returns (MathError, Exp memory) { return getExp(a.mantissa, b.mantissa); } }
pragma solidity ^0.5.16; /** * @title Exponential module for storing fixed-precision decimals * @author Compound * @notice Exp is a struct which stores decimals with a fixed precision of 18 decimal places. * Thus, if we wanted to store the 5.1, mantissa would store 5.1e18. That is: * `Exp({mantissa: 5100000000000000000})`. */ contract ExponentialNoError { 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 Truncates the given exp to a whole number value. * For example, truncate(Exp{mantissa: 15 * expScale}) = 15 */ function truncate(Exp memory exp) pure internal returns (uint) { // Note: We are not using careful math here as we're performing a division that cannot fail return exp.mantissa / expScale; } /** * @dev Multiply an Exp by a scalar, then truncate to return an unsigned integer. */ function mul_ScalarTruncate(Exp memory a, uint scalar) pure internal returns (uint) { Exp memory product = mul_(a, scalar); return truncate(product); } /** * @dev Multiply an Exp by a scalar, truncate, then add an to an unsigned integer, returning an unsigned integer. */ function mul_ScalarTruncateAddUInt(Exp memory a, uint scalar, uint addend) pure internal returns (uint) { Exp memory product = mul_(a, scalar); return add_(truncate(product), addend); } /** * @dev Checks if first Exp is less than second Exp. */ function lessThanExp(Exp memory left, Exp memory right) pure internal returns (bool) { return left.mantissa < right.mantissa; } /** * @dev Checks if left Exp <= right Exp. */ function lessThanOrEqualExp(Exp memory left, Exp memory right) pure internal returns (bool) { return left.mantissa <= right.mantissa; } /** * @dev Checks if left Exp > right Exp. */ function greaterThanExp(Exp memory left, Exp memory right) pure internal returns (bool) { return left.mantissa > right.mantissa; } /** * @dev returns true if Exp is exactly zero */ function isZeroExp(Exp memory value) pure internal returns (bool) { return value.mantissa == 0; } function safe224(uint n, string memory errorMessage) pure internal returns (uint224) { require(n < 2**224, errorMessage); return uint224(n); } function safe32(uint n, string memory errorMessage) pure internal returns (uint32) { require(n < 2**32, errorMessage); return uint32(n); } function add_(Exp memory a, Exp memory b) pure internal returns (Exp memory) { return Exp({mantissa: add_(a.mantissa, b.mantissa)}); } function add_(Double memory a, Double memory b) pure internal returns (Double memory) { return Double({mantissa: add_(a.mantissa, b.mantissa)}); } function add_(uint a, uint b) pure internal returns (uint) { return add_(a, b, "addition overflow"); } function add_(uint a, uint b, string memory errorMessage) pure internal returns (uint) { uint c = a + b; require(c >= a, errorMessage); return c; } function sub_(Exp memory a, Exp memory b) pure internal returns (Exp memory) { return Exp({mantissa: sub_(a.mantissa, b.mantissa)}); } function sub_(Double memory a, Double memory b) pure internal returns (Double memory) { return Double({mantissa: sub_(a.mantissa, b.mantissa)}); } function sub_(uint a, uint b) pure internal returns (uint) { return sub_(a, b, "subtraction underflow"); } function sub_(uint a, uint b, string memory errorMessage) pure internal returns (uint) { require(b <= a, errorMessage); return a - b; } function mul_(Exp memory a, Exp memory b) pure internal returns (Exp memory) { return Exp({mantissa: mul_(a.mantissa, b.mantissa) / expScale}); } function mul_(Exp memory a, uint b) pure internal returns (Exp memory) { return Exp({mantissa: mul_(a.mantissa, b)}); } function mul_(uint a, Exp memory b) pure internal returns (uint) { return mul_(a, b.mantissa) / expScale; } function mul_(Double memory a, Double memory b) pure internal returns (Double memory) { return Double({mantissa: mul_(a.mantissa, b.mantissa) / doubleScale}); } function mul_(Double memory a, uint b) pure internal returns (Double memory) { return Double({mantissa: mul_(a.mantissa, b)}); } function mul_(uint a, Double memory b) pure internal returns (uint) { return mul_(a, b.mantissa) / doubleScale; } function mul_(uint a, uint b) pure internal returns (uint) { return mul_(a, b, "multiplication overflow"); } function mul_(uint a, uint b, string memory errorMessage) pure internal returns (uint) { if (a == 0 || b == 0) { return 0; } uint c = a * b; require(c / a == b, errorMessage); return c; } function div_(Exp memory a, Exp memory b) pure internal returns (Exp memory) { return Exp({mantissa: div_(mul_(a.mantissa, expScale), b.mantissa)}); } function div_(Exp memory a, uint b) pure internal returns (Exp memory) { return Exp({mantissa: div_(a.mantissa, b)}); } function div_(uint a, Exp memory b) pure internal returns (uint) { return div_(mul_(a, expScale), b.mantissa); } function div_(Double memory a, Double memory b) pure internal returns (Double memory) { return Double({mantissa: div_(mul_(a.mantissa, doubleScale), b.mantissa)}); } function div_(Double memory a, uint b) pure internal returns (Double memory) { return Double({mantissa: div_(a.mantissa, b)}); } function div_(uint a, Double memory b) pure internal returns (uint) { return div_(mul_(a, doubleScale), b.mantissa); } function div_(uint a, uint b) pure internal returns (uint) { return div_(a, b, "divide by zero"); } function div_(uint a, uint b, string memory errorMessage) pure internal returns (uint) { require(b > 0, errorMessage); return a / b; } function fraction(uint a, uint b) pure internal returns (Double memory) { return Double({mantissa: div_(mul_(a, doubleScale), b)}); } }
pragma solidity ^0.5.16; interface IFuseFeeDistributor { function minBorrowEth() external view returns (uint256); function maxSupplyEth() external view returns (uint256); function maxUtilizationRate() external view returns (uint256); function interestFeeRate() external view returns (uint256); function comptrollerImplementationWhitelist(address oldImplementation, address newImplementation) external view returns (bool); function cErc20DelegateWhitelist(address oldImplementation, address newImplementation, bool allowResign) external view returns (bool); function cEtherDelegateWhitelist(address oldImplementation, address newImplementation, bool allowResign) external view returns (bool); function latestComptrollerImplementation(address oldImplementation) external view returns (address); function latestCErc20Delegate(address oldImplementation) external view returns (address cErc20Delegate, bool allowResign, bytes memory becomeImplementationData); function latestCEtherDelegate(address oldImplementation) external view returns (address cEtherDelegate, bool allowResign, bytes memory becomeImplementationData); function deployCEther(bytes calldata constructorData) external returns (address); function deployCErc20(bytes calldata constructorData) external returns (address); function () external payable; }
pragma solidity ^0.5.16; /** * @title Compound's InterestRateModel Interface * @author Compound */ contract InterestRateModel { /// @notice Indicator that this is an InterestRateModel contract (for inspection) bool public constant isInterestRateModel = true; /** * @notice Calculates the current borrow interest rate per block * @param cash The total amount of cash the market has * @param borrows The total amount of borrows the market has outstanding * @param reserves The total 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); }
pragma solidity ^0.5.16; import "./CToken.sol"; contract PriceOracle { /// @notice Indicator that this is a PriceOracle contract (for inspection) bool public constant isPriceOracle = true; /** * @notice Get the underlying price of a cToken asset * @param cToken The cToken to get the underlying price of * @return The underlying asset price mantissa (scaled by 1e18). * Zero means the price is unavailable. */ function getUnderlyingPrice(CToken cToken) external view returns (uint); }
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":"cTokenCollateral","type":"address"},{"indexed":false,"internalType":"uint256","name":"seizeTokens","type":"uint256"}],"name":"LiquidateBorrow","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"uint256","name":"mintAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"mintTokens","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldAdminFeeMantissa","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newAdminFeeMantissa","type":"uint256"}],"name":"NewAdminFee","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":"uint256","name":"oldFuseFeeMantissa","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newFuseFeeMantissa","type":"uint256"}],"name":"NewFuseFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldImplementation","type":"address"},{"indexed":false,"internalType":"address","name":"newImplementation","type":"address"}],"name":"NewImplementation","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":"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"},{"constant":false,"inputs":[{"internalType":"bytes","name":"data","type":"bytes"}],"name":"_becomeImplementation","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"compLikeDelegatee","type":"address"}],"name":"_delegateCompLikeTo","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"_prepare","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"reduceAmount","type":"uint256"}],"name":"_reduceReserves","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"newAdminFeeMantissa","type":"uint256"}],"name":"_setAdminFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"implementation_","type":"address"},{"internalType":"bool","name":"allowResign","type":"bool"},{"internalType":"bytes","name":"becomeImplementationData","type":"bytes"}],"name":"_setImplementationSafe","outputs":[],"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":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"name":"_setNameAndSymbol","outputs":[],"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":"withdrawAmount","type":"uint256"}],"name":"_withdrawAdminFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"withdrawAmount","type":"uint256"}],"name":"_withdrawFuseFees","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":"adminFeeMantissa","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"fuseFeeMantissa","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":"contract ComptrollerInterface","name":"comptroller_","type":"address"},{"internalType":"contract InterestRateModel","name":"interestRateModel_","type":"address"},{"internalType":"uint256","name":"initialExchangeRateMantissa_","type":"uint256"},{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"uint8","name":"decimals_","type":"uint8"},{"internalType":"uint256","name":"reserveFactorMantissa_","type":"uint256"},{"internalType":"uint256","name":"adminFeeMantissa_","type":"uint256"}],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","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":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"uint256","name":"reserveFactorMantissa_","type":"uint256"},{"internalType":"uint256","name":"adminFeeMantissa_","type":"uint256"}],"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":"isCEther","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isCToken","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 CTokenInterface","name":"cTokenCollateral","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":"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":"totalAdminFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"totalFuseFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","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
608060405234801561001057600080fd5b50615ffb80620000216000396000f3fe6080604052600436106103765760003560e01c8063852a12e3116101d1578063ae9d70b011610102578063dc028ab1116100a0578063f5e3c4621161006f578063f5e3c46214610f69578063f8f9da2814610fac578063fca7820b14610fc1578063fe9c44ae14610feb57610376565b8063dc028ab114610ed1578063dd62ed3e14610ee6578063f2b3abbd14610f21578063f3fdb15a14610f5457610376565b8063c37f68e2116100dc578063c37f68e214610e0f578063c5ebeaec14610e68578063db006a7514610e92578063dbfe7c1914610ebc57610376565b8063ae9d70b014610da2578063b2a02ff114610db7578063bd6d894d14610dfa57610376565b8063a0712d681161016f578063a7b820df11610149578063a7b820df14610d15578063a9059cbb14610d3f578063aa5af0fd14610d78578063ac784ddc14610d8d57610376565b8063a0712d6814610b7a578063a0b0d28914610ba4578063a6afed9514610d0057610376565b806391dd36c6116101ab57806391dd36c614610ade57806395d89b4114610b0857806395dd919314610b1d578063a03dce8d14610b5057610376565b8063852a12e314610a8a5780638d02d9a114610ab45780638f840ddd14610ac957610376565b80633b1d21a2116102ab57806361feacff116102495780636f307dc3116102235780636f307dc3146109fa57806370a0823114610a0f57806373acee9814610a425780637f1e06be14610a5757610376565b806361feacff146109bb5780636752e702146109d05780636c540baf146109e557610376565b806356e677281161028557806356e67728146108d05780635c60da1b1461094b5780635fe3b5671461097c578063601a0bf11461099157610376565b80633b1d21a21461081457806347bd37181461082957806350d85b731461083e57610376565b8063182df0f5116103185780632608f818116102f25780632608f818146106b2578063313ce567146106eb57806334154d4c146107165780633af9e669146107e157610376565b8063182df0f5146106525780631db789441461066757806323b872dd1461066f57610376565b80630f8855e8116103545780630f8855e81461048e578063173b9904146105f557806317bfdfbc1461060a57806318160ddd1461063d57610376565b806306fdde031461037b578063095ea7b3146104055780630e75270214610452575b600080fd5b34801561038757600080fd5b50610390611000565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103ca5781810151838201526020016103b2565b50505050905090810190601f1680156103f75780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561041157600080fd5b5061043e6004803603604081101561042857600080fd5b506001600160a01b03813516906020013561108b565b604080519115158252519081900360200190f35b34801561045e57600080fd5b5061047c6004803603602081101561047557600080fd5b50356110f8565b60408051918252519081900360200190f35b34801561049a57600080fd5b506105f360048036036101008110156104b257600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b8111156104ec57600080fd5b8201836020820111156104fe57600080fd5b803590602001918460018302840111600160201b8311171561051f57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561057157600080fd5b82018360208201111561058357600080fd5b803590602001918460018302840111600160201b831117156105a457600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505060ff833516935050506020810135906040013561110e565b005b34801561060157600080fd5b5061047c6113bc565b34801561061657600080fd5b5061047c6004803603602081101561062d57600080fd5b50356001600160a01b03166113c2565b34801561064957600080fd5b5061047c61143e565b34801561065e57600080fd5b5061047c611444565b6105f36114a7565b34801561067b57600080fd5b5061043e6004803603606081101561069257600080fd5b506001600160a01b038135811691602081013590911690604001356116b8565b3480156106be57600080fd5b5061047c600480360360408110156106d557600080fd5b506001600160a01b0381351690602001356116e6565b3480156106f757600080fd5b506107006116fc565b6040805160ff9092168252519081900360200190f35b34801561072257600080fd5b506105f36004803603604081101561073957600080fd5b810190602081018135600160201b81111561075357600080fd5b82018360208201111561076557600080fd5b803590602001918460018302840111600160201b8311171561078657600080fd5b919390929091602081019035600160201b8111156107a357600080fd5b8201836020820111156107b557600080fd5b803590602001918460018302840111600160201b831117156107d657600080fd5b509092509050611705565b3480156107ed57600080fd5b5061047c6004803603602081101561080457600080fd5b50356001600160a01b0316611771565b34801561082057600080fd5b5061047c611827565b34801561083557600080fd5b5061047c611836565b34801561084a57600080fd5b506105f36004803603606081101561086157600080fd5b6001600160a01b03823516916020810135151591810190606081016040820135600160201b81111561089257600080fd5b8201836020820111156108a457600080fd5b803590602001918460018302840111600160201b831117156108c557600080fd5b50909250905061183c565b3480156108dc57600080fd5b506105f3600480360360208110156108f357600080fd5b810190602081018135600160201b81111561090d57600080fd5b82018360208201111561091f57600080fd5b803590602001918460018302840111600160201b8311171561094057600080fd5b5090925090506118c5565b34801561095757600080fd5b50610960611923565b604080516001600160a01b039092168252519081900360200190f35b34801561098857600080fd5b50610960611932565b34801561099d57600080fd5b5061047c600480360360208110156109b457600080fd5b5035611941565b3480156109c757600080fd5b5061047c611992565b3480156109dc57600080fd5b5061047c611998565b3480156109f157600080fd5b5061047c6119a3565b348015610a0657600080fd5b506109606119a9565b348015610a1b57600080fd5b5061047c60048036036020811015610a3257600080fd5b50356001600160a01b03166119b8565b348015610a4e57600080fd5b5061047c6119d3565b348015610a6357600080fd5b506105f360048036036020811015610a7a57600080fd5b50356001600160a01b0316611a46565b348015610a9657600080fd5b5061047c60048036036020811015610aad57600080fd5b5035611aeb565b348015610ac057600080fd5b5061047c611af6565b348015610ad557600080fd5b5061047c611afc565b348015610aea57600080fd5b5061047c60048036036020811015610b0157600080fd5b5035611b02565b348015610b1457600080fd5b50610390611b3f565b348015610b2957600080fd5b5061047c60048036036020811015610b4057600080fd5b50356001600160a01b0316611b9a565b348015610b5c57600080fd5b5061047c60048036036020811015610b7357600080fd5b5035611bfe565b348015610b8657600080fd5b5061047c60048036036020811015610b9d57600080fd5b5035611c3b565b348015610bb057600080fd5b506105f3600480360360e0811015610bc757600080fd5b6001600160a01b0382358116926020810135821692604082013590921691810190608081016060820135600160201b811115610c0257600080fd5b820183602082011115610c1457600080fd5b803590602001918460018302840111600160201b83111715610c3557600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b811115610c8757600080fd5b820183602082011115610c9957600080fd5b803590602001918460018302840111600160201b83111715610cba57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505082359350505060200135611c47565b348015610d0c57600080fd5b5061047c611d60565b348015610d2157600080fd5b5061047c60048036036020811015610d3857600080fd5b5035611f25565b348015610d4b57600080fd5b5061043e60048036036040811015610d6257600080fd5b506001600160a01b038135169060200135611f62565b348015610d8457600080fd5b5061047c611f8f565b348015610d9957600080fd5b5061043e611f95565b348015610dae57600080fd5b5061047c611f9a565b348015610dc357600080fd5b5061047c60048036036060811015610dda57600080fd5b506001600160a01b03813581169160208101359091169060400135612052565b348015610e0657600080fd5b5061047c612076565b348015610e1b57600080fd5b50610e4260048036036020811015610e3257600080fd5b50356001600160a01b03166120ea565b604080519485526020850193909352838301919091526060830152519081900360800190f35b348015610e7457600080fd5b5061047c60048036036020811015610e8b57600080fd5b503561217f565b348015610e9e57600080fd5b5061047c60048036036020811015610eb557600080fd5b503561218a565b348015610ec857600080fd5b5061047c612195565b348015610edd57600080fd5b5061047c61219b565b348015610ef257600080fd5b5061047c60048036036040811015610f0957600080fd5b506001600160a01b03813581169160200135166121a1565b348015610f2d57600080fd5b5061047c60048036036020811015610f4457600080fd5b50356001600160a01b03166121cc565b348015610f6057600080fd5b50610960612206565b348015610f7557600080fd5b5061047c60048036036060811015610f8c57600080fd5b506001600160a01b03813581169160208101359160409091013516612215565b348015610fb857600080fd5b5061047c61222d565b348015610fcd57600080fd5b5061047c60048036036020811015610fe457600080fd5b50356122a2565b348015610ff757600080fd5b5061043e6122df565b6002805460408051602060018416156101000260001901909316849004601f810184900484028201840190925281815292918301828280156110835780601f1061105857610100808354040283529160200191611083565b820191906000526020600020905b81548152906001019060200180831161106657829003601f168201915b505050505081565b3360008181526013602090815260408083206001600160a01b03871680855290835281842086905581518681529151939493909284927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929081900390910190a360019150505b92915050565b600080611104836122e4565b509150505b919050565b3373a731585ab05fc9f83555cf9bff8f58ee94e18f85146111605760405162461bcd60e51b8152600401808060200182810382526029815260200180615eb16029913960400191505060405180910390fd5b600b541580156111705750600c54155b6111ab5760405162461bcd60e51b8152600401808060200182810382526023815260200180615d9e6023913960400191505060405180910390fd5b6007869055856111ec5760405162461bcd60e51b8152600401808060200182810382526030815260200180615dc16030913960400191505060405180910390fd5b60006111f789612347565b9050801561124c576040805162461bcd60e51b815260206004820152601a60248201527f73657474696e6720636f6d7074726f6c6c6572206661696c6564000000000000604482015290519081900360640190fd5b61125461247a565b600b55670de0b6b3a7640000600c5561126c8861247e565b905080156112ab5760405162461bcd60e51b8152600401808060200182810382526022815260200180615e1e6022913960400191505060405180910390fd5b85516112be906002906020890190615b8e565b5084516112d2906003906020880190615b8e565b506004805460ff191660ff86161790556112eb83612784565b90508015611340576040805162461bcd60e51b815260206004820152601d60248201527f73657474696e67207265736572766520666163746f72206661696c6564000000604482015290519081900360640190fd5b6113498261283d565b9050801561139e576040805162461bcd60e51b815260206004820152601860248201527f73657474696e672061646d696e20666565206661696c65640000000000000000604482015290519081900360640190fd5b50506001805460ff60b01b1916600160b01b17905550505050505050565b600a5481565b6000806113ce81612962565b60006113d8611d60565b14611423576040805162461bcd60e51b81526020600482015260166024820152751858d8dc9d59481a5b9d195c995cdd0819985a5b195960521b604482015290519081900360640190fd5b61142c83611b9a565b91505b61143881612a2b565b50919050565b60115481565b6000806000611451612a96565b9092509050600082600381111561146457fe5b146114a05760405162461bcd60e51b8152600401808060200182810382526035815260200180615f5e6035913960400191505060405180910390fd5b9150505b90565b33301480159061152d5750600560009054906101000a90046001600160a01b03166001600160a01b031663dd5cd22c6040518163ffffffff1660e01b815260040160206040518083038186803b15801561150057600080fd5b505afa158015611514573d6000803e3d6000fd5b505050506040513d602081101561152a57600080fd5b50515b156116b65760008054604080516345cc970560e01b81526001600160a01b03909216600483015251829160609173a731585ab05fc9f83555cf9bff8f58ee94e18f85916345cc97059160248083019287929190829003018186803b15801561159457600080fd5b505afa1580156115a8573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405260608110156115d157600080fd5b81516020830151604080850180519151939592948301929184600160201b8211156115fb57600080fd5b90830190602082018581111561161057600080fd5b8251600160201b81118282018810171561162957600080fd5b82525081516020918201929091019080838360005b8381101561165657818101518382015260200161163e565b50505050905090810190601f1680156116835780820380516001836020036101000a031916815260200191505b5060405250506000549396509194509250506001600160a01b038085169116146116b2576116b2838383612b56565b5050505b565b6000806116c481612962565b60006116d233878787612d72565b1491506116de81612a2b565b509392505050565b6000806116f38484612ffe565b50949350505050565b60045460ff1681565b61170d613063565b611751576040805162461bcd60e51b815260206004820152601060248201526f31b0b63632b9103737ba1030b236b4b760811b604482015290519081900360640190fd5b61175d60028585615c08565b5061176a60038383615c08565b5050505050565b600061177b615c76565b604051806020016040528061178e612076565b90526001600160a01b0384166000908152601260205260408120549192509081906117ba9084906131de565b909250905060008260038111156117cd57fe5b1461181f576040805162461bcd60e51b815260206004820152601f60248201527f62616c616e636520636f756c64206e6f742062652063616c63756c6174656400604482015290519081900360640190fd5b949350505050565b6000611831613232565b905090565b600d5481565b611844613063565b61187e576040805162461bcd60e51b815260206004820152600660248201526510b0b236b4b760d11b604482015290519081900360640190fd5b6118bf848484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612b5692505050565b50505050565b333014806118d657506118d6613063565b61190f576040805162461bcd60e51b815260206004820152600560248201526410b9b2b63360d91b604482015290519081900360640190fd5b5050600180546001600160b01b0319169055565b6000546001600160a01b031681565b6005546001600160a01b031681565b60008061194d81612962565b6000611957611d60565b9050801561197d5761197581601181111561196e57fe5b603b613280565b92505061142f565b611986846132e6565b92505061143881612a2b565b600f5481565b666379da05b6000081565b600b5481565b6015546001600160a01b031681565b6001600160a01b031660009081526012602052604090205490565b6000806119df81612962565b60006119e9611d60565b14611a34576040805162461bcd60e51b81526020600482015260166024820152751858d8dc9d59481a5b9d195c995cdd0819985a5b195960521b604482015290519081900360640190fd5b600d549150611a4281612a2b565b5090565b611a4e613063565b611a895760405162461bcd60e51b815260040180806020018281038252602d815260200180615df1602d913960400191505060405180910390fd5b601554604080516317066a5760e21b81526001600160a01b03848116600483015291519190921691635c19a95c91602480830192600092919082900301818387803b158015611ad757600080fd5b505af115801561176a573d6000803e3d6000fd5b60006110f2826133b2565b60085481565b600e5481565b600080611b0e81612962565b6000611b18611d60565b90508015611b3657611975816011811115611b2f57fe5b6052613280565b6119868461283d565b6003805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156110835780601f1061105857610100808354040283529160200191611083565b6000806000611ba8846133f2565b90925090506000826003811115611bbb57fe5b14611bf75760405162461bcd60e51b8152600401808060200182810382526037815260200180615e406037913960400191505060405180910390fd5b9392505050565b600080611c0a81612962565b6000611c14611d60565b90508015611c3257611975816011811115611c2b57fe5b6033613280565b611986846134a6565b60008061110483613527565b60006702c68af0bb14000090506000886001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b158015611c8f57600080fd5b505afa158015611ca3573d6000803e3d6000fd5b505050506040513d6020811015611cb957600080fd5b50519050611ccd8888848989868a8a61110e565b601580546001600160a01b0319166001600160a01b038b81169190911791829055604080516318160ddd60e01b8152905192909116916318160ddd91600480820192602092909190829003018186803b158015611d2957600080fd5b505afa158015611d3d573d6000803e3d6000fd5b505050506040513d6020811015611d5357600080fd5b5050505050505050505050565b600080611d6b61247a565b905080600b541415611d815760009150506114a4565b6000611d8b613232565b90506000600660009054906101000a90046001600160a01b03166001600160a01b03166315f2405383600d54611dd0600e54611dcb600f54601054613567565b613567565b6040518463ffffffff1660e01b815260040180848152602001838152602001828152602001935050505060206040518083038186803b158015611e1257600080fd5b505afa158015611e26573d6000803e3d6000fd5b505050506040513d6020811015611e3c57600080fd5b5051905065048c27395000811115611e9b576040805162461bcd60e51b815260206004820152601c60248201527f626f72726f772072617465206973206162737572646c79206869676800000000604482015290519081900360640190fd5b600080611eaa85600b5461359d565b90925090506000826003811115611ebd57fe5b14611f0f576040805162461bcd60e51b815260206004820152601f60248201527f636f756c64206e6f742063616c63756c61746520626c6f636b2064656c746100604482015290519081900360640190fd5b611f1b858585846135c0565b9550505050505090565b600080611f3181612962565b6000611f3b611d60565b90508015611f5957611975816011811115611f5257fe5b6037613280565b611986846137d8565b600080611f6e81612962565b6000611f7c33338787612d72565b149150611f8881612a2b565b5092915050565b600c5481565b600081565b6006546000906001600160a01b031663b8168816611fb6613232565b600d54611fcd600e54611dcb600f54601054613567565b600854600954600a5401016040518563ffffffff1660e01b81526004018085815260200184815260200183815260200182815260200194505050505060206040518083038186803b15801561202157600080fd5b505afa158015612035573d6000803e3d6000fd5b505050506040513d602081101561204b57600080fd5b5051905090565b6000600161205f81612962565b61206b338686866138c0565b91506116de81612a2b565b60008061208281612962565b600061208c611d60565b146120d7576040805162461bcd60e51b81526020600482015260166024820152751858d8dc9d59481a5b9d195c995cdd0819985a5b195960521b604482015290519081900360640190fd5b6120df611444565b9150611a4281612a2b565b6001600160a01b038116600090815260126020526040812054819081908190818080612115896133f2565b93509050600081600381111561212757fe5b146121455760095b9750600096508695508594506121789350505050565b61214d612a96565b92509050600081600381111561215f57fe5b1461216b57600961212f565b5060009650919450925090505b9193509193565b60006110f282613c9f565b60006110f282613cdd565b60095481565b60105481565b6001600160a01b03918216600090815260136020908152604080832093909416825291909152205490565b6000806121d7611d60565b905080156121fd576121f58160118111156121ee57fe5b604b613280565b915050611109565b611bf78361247e565b6006546001600160a01b031681565b600080612223858585613d16565b5095945050505050565b6006546000906001600160a01b03166315f24053612249613232565b600d54612260600e54611dcb600f54601054613567565b6040518463ffffffff1660e01b815260040180848152602001838152602001828152602001935050505060206040518083038186803b15801561202157600080fd5b6000806122ae81612962565b60006122b8611d60565b905080156122d6576119758160118111156122cf57fe5b6059613280565b61198684612784565b600181565b60008060006122f281612962565b60006122fc611d60565b905080156123275761231a81601181111561231357fe5b6041613280565b9350600092506123389050565b612332333387613e02565b93509350505b61234181612a2b565b50915091565b600080600560009054906101000a90046001600160a01b03169050826001600160a01b0316627e3dd26040518163ffffffff1660e01b815260040160206040518083038186803b15801561239a57600080fd5b505afa1580156123ae573d6000803e3d6000fd5b505050506040513d60208110156123c457600080fd5b5051612417576040805162461bcd60e51b815260206004820152601c60248201527f6d61726b6572206d6574686f642072657475726e65642066616c736500000000604482015290519081900360640190fd5b600580546001600160a01b0319166001600160a01b03858116918217909255604080519284168352602083019190915280517f7ac369dbd14fa5ea3f473ed67cc9d598964a77501540ba6751eb0b3decf5870d9281900390910190a16000611bf7565b4390565b600080612489613063565b612499576121f56001604d613280565b6124a161247a565b600b54146124b5576121f5600a604c613280565b600660009054906101000a90046001600160a01b03169050826001600160a01b0316632191f92a6040518163ffffffff1660e01b815260040160206040518083038186803b15801561250657600080fd5b505afa15801561251a573d6000803e3d6000fd5b505050506040513d602081101561253057600080fd5b5051612583576040805162461bcd60e51b815260206004820152601c60248201527f6d61726b6572206d6574686f642072657475726e65642066616c736500000000604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b03858116918217909255604080519284168352602083019190915280517fedffc32e068c7c95dfd4bdfd5c4d939a084d6b11c4199eac8436ed234d72f9269281900390910190a16001600160a01b038116156126b55760408051600481526024810182526020810180516001600160e01b0316636cc1140b60e11b178152915181516001600160a01b0385169382918083835b6020831061264a5780518252601f19909201916020918201910161262b565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146126ac576040519150601f19603f3d011682016040523d82523d6000602084013e6126b1565b606091505b5050505b60408051600481526024810182526020810180516001600160e01b031663742a137b60e11b178152915181516001600160a01b0387169382918083835b602083106127115780518252601f1990920191602091820191016126f2565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612773576040519150601f19603f3d011682016040523d82523d6000602084013e612778565b606091505b5060009150611bf79050565b600061278e613063565b6127a55761279e6001605a613280565b9050611109565b6127ad61247a565b600b54146127c15761279e600a605b613280565b670de0b6b3a76400006127e16127d984600854613567565b600954613567565b11156127f35761279e6002605c613280565b600a805490839055604080518281526020810185905281517faaa68312e2ea9d50e16af5068410ab56e1a1fd06037b1a35664812c30f821460929181900390910190a16000611bf7565b600061284761247a565b600b541461285b5761279e600a6054613280565b60001982141561286b5760085491505b6000612875614152565b9050670de0b6b3a764000061289561288f600a5486613567565b83613567565b11156128a7576121f560026055613280565b826008541461290d576128b8613063565b6128c8576121f560016053613280565b6008805490849055604080518281526020810186905281517fcdd0b588250e1398549f79cfdb8217c186688822905d6715b0834ea1c865594a929181900390910190a1505b806009541461295b576009805490829055604080518281526020810184905281517f92eef861b6533b7d3417f39c2ad7b460eed4e88a32fa3604f30e718b7602e7dc929181900390910190a1505b6000611bf7565b600154600160b01b900460ff166129ad576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b80612a1b57600560009054906101000a90046001600160a01b03166001600160a01b031663c90c20b16040518163ffffffff1660e01b8152600401600060405180830381600087803b158015612a0257600080fd5b505af1158015612a16573d6000803e3d6000fd5b505050505b506001805460ff60b01b19169055565b6001805460ff60b01b1916600160b01b17905580612a9357600560009054906101000a90046001600160a01b03166001600160a01b031663632e51426040518163ffffffff1660e01b8152600401600060405180830381600087803b158015611ad757600080fd5b50565b601154600090819080612ab157505060075460009150612b52565b6000612abb613232565b90506000612ac7615c76565b6000612ae984600d54612ae4600e54611dcb600f54601054613567565b6141a1565b935090506000816003811115612afb57fe5b14612b1057955060009450612b529350505050565b612b1a83866141ed565b925090506000816003811115612b2c57fe5b14612b4157955060009450612b529350505050565b5051600095509350612b5292505050565b9091565b600054604080516338e6a07360e11b81526001600160a01b039283166004820152918516602483015283151560448301525173a731585ab05fc9f83555cf9bff8f58ee94e18f85916371cd40e6916064808301926020929190829003018186803b158015612bc357600080fd5b505afa158015612bd7573d6000803e3d6000fd5b505050506040513d6020811015612bed57600080fd5b5051612c28576040805162461bcd60e51b8152602060048201526005602482015264085a5b5c1b60da1b604482015290519081900360640190fd5b8115612c3657612c3661429d565b600080546001600160a01b038581166001600160a01b031983161783556040516020602482018181528651604484015286519390941694612d2394309488949193849360649093019290860191908190849084905b83811015612ca3578181015183820152602001612c8b565b50505050905090810190601f168015612cd05780820380516001836020036101000a031916815260200191505b5060408051601f19818403018152918152602080830180516001600160e01b0316630adccee560e31b17905281518083019092526007825266216265636f6d6560c81b9082015290935091506142a29050565b50600054604080516001600160a01b038085168252909216602083015280517fd604de94d45953f9138079ec1b82d533cb2160c906d1076d1f7ed54befbca97a9281900390910190a150505050565b600554604080516317b9b84b60e31b81523060048201526001600160a01b03868116602483015285811660448301526064820185905291516000938493169163bdcdc25891608480830192602092919082900301818787803b158015612dd757600080fd5b505af1158015612deb573d6000803e3d6000fd5b505050506040513d6020811015612e0157600080fd5b505190508015612e2057612e186003605d836143f1565b91505061181f565b836001600160a01b0316856001600160a01b03161415612e4657612e186002605e613280565b60006001600160a01b038781169087161415612e655750600019612e8d565b506001600160a01b038086166000908152601360209081526040808320938a16835292905220545b600080600080612e9d858961359d565b90945092506000846003811115612eb057fe5b14612ece57612ec16009605e613280565b965050505050505061181f565b6001600160a01b038a16600090815260126020526040902054612ef1908961359d565b90945091506000846003811115612f0457fe5b14612f1557612ec16009605f613280565b6001600160a01b038916600090815260126020526040902054612f38908961447a565b90945090506000846003811115612f4b57fe5b14612f5c57612ec160096060613280565b6001600160a01b03808b16600090815260126020526040808220859055918b168152208190556000198514612fb4576001600160a01b03808b166000908152601360209081526040808320938f168352929052208390555b886001600160a01b03168a6001600160a01b0316600080516020615eda8339815191528a6040518082815260200191505060405180910390a35060009a9950505050505050505050565b600080600061300c81612962565b6000613016611d60565b905080156130415761303481601181111561302d57fe5b6040613280565b9350600092506130529050565b61304c338787613e02565b93509350505b61305b81612a2b565b509250929050565b600554604080516303e1469160e61b815290516000926001600160a01b031691829163f851a44091600480820192602092909190829003018186803b1580156130ab57600080fd5b505afa1580156130bf573d6000803e3d6000fd5b505050506040513d60208110156130d557600080fd5b50516001600160a01b03163314801561314f5750806001600160a01b0316630a755ec26040518163ffffffff1660e01b815260040160206040518083038186803b15801561312257600080fd5b505afa158015613136573d6000803e3d6000fd5b505050506040513d602081101561314c57600080fd5b50515b806114a057503373a731585ab05fc9f83555cf9bff8f58ee94e18f851480156114a05750806001600160a01b0316632f1069ba6040518163ffffffff1660e01b815260040160206040518083038186803b1580156131ac57600080fd5b505afa1580156131c0573d6000803e3d6000fd5b505050506040513d60208110156131d657600080fd5b505191505090565b60008060006131eb615c76565b6131f586866144a0565b9092509050600082600381111561320857fe5b14613219575091506000905061322b565b600061322482614508565b9350935050505b9250929050565b601554604080516370a0823160e01b815230600482015290516000926001600160a01b03169182916370a0823191602480820192602092909190829003018186803b1580156131ac57600080fd5b60007f45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa08360118111156132af57fe5b8360638111156132bb57fe5b604080519283526020830191909152600082820152519081900360600190a1826011811115611bf757fe5b6000806132f1613063565b613301576121f56001603c613280565b61330961247a565b600b541461331d576121f5600a603e613280565b82613326613232565b1015613338576121f5600e603d613280565b600e5483111561334e576121f56002603f613280565b61335a600e5484614517565b600e819055905061336b3384614551565b604080513381526020810185905280820183905290517f3bad0c59cf2f06e7314077049f48a93578cd16f5ef92329f1dab1420a99c177e9181900360600190a16000611bf7565b6000806133be81612962565b60006133c8611d60565b905080156133e6576119758160118111156133df57fe5b602a613280565b611986336000866145d6565b6001600160a01b0381166000908152601460205260408120805482918291829182916134295750600094508493506134a192505050565b6134398160000154600c54614a9d565b9094509250600084600381111561344c57fe5b146134615750919350600092506134a1915050565b61346f838260010154614adc565b9094509150600084600381111561348257fe5b146134975750919350600092506134a1915050565b5060009450925050505b915091565b6000806134b161247a565b600b54146134c5576121f5600a6035613280565b826134ce613232565b10156134e0576121f5600e6034613280565b6010548311156134f6576121f560026036613280565b61350260105484614517565b6010819055905061295b73a731585ab05fc9f83555cf9bff8f58ee94e18f8584614551565b600080600061353581612962565b600061353f611d60565b9050801561355d5761231a81601181111561355657fe5b6020613280565b6123323386614b07565b6000611bf78383604051806040016040528060118152602001706164646974696f6e206f766572666c6f7760781b815250614e83565b6000808383116135b457506000905081830361322b565b5060039050600061322b565b60006135ca615c76565b6135e260405180602001604052808681525084614ed8565b905060006135f282600d54614f02565b9050600061360282600d54613567565b905060006136236040518060200160405280600a5481525084600e54614f21565b90506000613644604051806020016040528060095481525085601054614f21565b90506000613665604051806020016040528060085481525086600f54614f21565b9050600061367887600c54600c54614f21565b600b8d9055600c819055600d869055600e8590556010849055600f839055604080518d8152602081018990528082018390526060810188905290519192507f4dec04e750ca11537cabcd8a9eab06494de08da3735bc8871cd41250e190bc04919081900360800190a16006546040805160248082018e905282518083039091018152604490910182526020810180516001600160e01b0316635efd023360e11b178152915181516001600160a01b0390941693919290918291908083835b602083106137555780518252601f199092019160209182019101613736565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146137b7576040519150601f19603f3d011682016040523d82523d6000602084013e6137bc565b606091505b50600091506137c89050565b9c9b505050505050505050505050565b6000806137e361247a565b600b54146137f7576121f5600a6039613280565b82613800613232565b1015613812576121f5600e6038613280565b600f54831115613828576121f56002603a613280565b613834600f5484614517565b905080600f8190555061295b600560009054906101000a90046001600160a01b03166001600160a01b031663f851a4406040518163ffffffff1660e01b815260040160206040518083038186803b15801561388e57600080fd5b505afa1580156138a2573d6000803e3d6000fd5b505050506040513d60208110156138b857600080fd5b505184614551565b6005546040805163d02f735160e01b81523060048201526001600160a01b038781166024830152868116604483015285811660648301526084820185905291516000938493169163d02f73519160a480830192602092919082900301818787803b15801561392d57600080fd5b505af1158015613941573d6000803e3d6000fd5b505050506040513d602081101561395757600080fd5b50519050801561396e57612e186003601d836143f1565b846001600160a01b0316846001600160a01b0316141561399457612e186006601e613280565b61399c615c89565b6001600160a01b0385166000908152601260205260409020546139bf908561359d565b60208301819052828260038111156139d357fe5b60038111156139de57fe5b90525060009050815160038111156139f257fe5b14613a1c57613a136009601c83600001516003811115613a0e57fe5b6143f1565b9250505061181f565b613a3b846040518060200160405280666379da05b60000815250614f49565b60808201819052613a4d908590614517565b6060820152613a5a612a96565b60c0830181905282826003811115613a6e57fe5b6003811115613a7957fe5b9052506000905081516003811115613a8d57fe5b14613adf576040805162461bcd60e51b815260206004820152601860248201527f65786368616e67652072617465206d617468206572726f720000000000000000604482015290519081900360640190fd5b613aff60405180602001604052808360c001518152508260800151614f02565b60a08201819052600e54613b1291613567565b60e08201526011546080820151613b299190614517565b6101008201526001600160a01b0386166000908152601260205260409020546060820151613b57919061447a565b6040830181905282826003811115613b6b57fe5b6003811115613b7657fe5b9052506000905081516003811115613b8a57fe5b14613ba657613a136009601b83600001516003811115613a0e57fe5b60e0810151600e556101008101516011556020808201516001600160a01b0380881660008181526012855260408082209490945583860151928b16808252908490209290925560608501518351908152925191939092600080516020615eda833981519152929081900390910190a36080810151604080519182525130916001600160a01b03881691600080516020615eda8339815191529181900360200190a360a081015160e082015160408051308152602081019390935282810191909152517fa91e67c5ea634cd43a12c5a482724b03de01e85ca68702a53d0c2f45cb7c1dc59181900360600190a16000979650505050505050565b600080613cab81612962565b6000613cb5611d60565b90508015613cd357611975816011811115613ccc57fe5b600a613280565b6119863385614f71565b600080613ce981612962565b6000613cf3611d60565b90508015613d0a576119758160118111156133df57fe5b611986338560006145d6565b6000806000613d2481612962565b6000613d2e611d60565b90508015613d5957613d4c816011811115613d4557fe5b6011613280565b935060009250613df09050565b846001600160a01b031663a6afed956040518163ffffffff1660e01b8152600401602060405180830381600087803b158015613d9457600080fd5b505af1158015613da8573d6000803e3d6000fd5b505050506040513d6020811015613dbe57600080fd5b505190508015613dde57613d4c816011811115613dd757fe5b6012613280565b613dea338888886152af565b93509350505b613df981612a2b565b50935093915050565b60055460408051631200453160e11b81523060048201526001600160a01b0386811660248301528581166044830152606482018590529151600093849384939116916324008a629160848082019260209290919082900301818787803b158015613e6b57600080fd5b505af1158015613e7f573d6000803e3d6000fd5b505050506040513d6020811015613e9557600080fd5b505190508015613eb957613eac60036043836143f1565b92506000915061414a9050565b613ec161247a565b600b5414613ed557613eac600a6044613280565b613edd615cd6565b6001600160a01b0386166000908152601460205260409020600101546060820152613f07866133f2565b6080830181905260208301826003811115613f1e57fe5b6003811115613f2957fe5b9052506000905081602001516003811115613f4057fe5b14613f6a57613f5c6009604283602001516003811115613a0e57fe5b93506000925061414a915050565b600019851415613f835760808101516040820152613f8b565b604081018590525b613f998782604001516157a1565b60e082018190526080820151613fae9161359d565b60a0830181905260208301826003811115613fc557fe5b6003811115613fd057fe5b9052506000905081602001516003811115613fe757fe5b146140235760405162461bcd60e51b815260040180806020018281038252603a815260200180615e77603a913960400191505060405180910390fd5b614033600d548260e0015161359d565b60c083018190526020830182600381111561404a57fe5b600381111561405557fe5b905250600090508160200151600381111561406c57fe5b146140a85760405162461bcd60e51b8152600401808060200182810382526031815260200180615efa6031913960400191505060405180910390fd5b60a080820180516001600160a01b03808a16600081815260146020908152604091829020948555600c5460019095019490945560c0870151600d81905560e088015195518251948f16855294840192909252828101949094526060820192909252608081019190915290517f1a2a22cb034d26d1854bdc6666a5b91fe25efbbb5dcad3b0355478d6f5c362a1929181900390910190a160e00151600093509150505b935093915050565b600073a731585ab05fc9f83555cf9bff8f58ee94e18f856001600160a01b031663dd86fea16040518163ffffffff1660e01b815260040160206040518083038186803b15801561202157600080fd5b6000806000806141b1878761447a565b909250905060008260038111156141c457fe5b146141d5575091506000905061414a565b6141df818661359d565b935093505050935093915050565b60006141f7615c76565b60008061420c86670de0b6b3a7640000614a9d565b9092509050600082600381111561421f57fe5b1461423e5750604080516020810190915260008152909250905061322b565b60008061424b8388614adc565b9092509050600082600381111561425e57fe5b146142805750604080516020810190915260008152909450925061322b915050565b604080516020810190915290815260009890975095505050505050565b6116b6565b606060006060856001600160a01b0316856040518082805190602001908083835b602083106142e25780518252601f1990920191602091820191016142c3565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114614344576040519150601f19603f3d011682016040523d82523d6000602084013e614349565b606091505b5091509150816143e8578051156143635780518082602001fd5b8360405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156143ad578181015183820152602001614395565b50505050905090810190601f1680156143da5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b95945050505050565b60007f45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa084601181111561442057fe5b84606381111561442c57fe5b604080519283526020830191909152818101859052519081900360600190a1600384601181111561445957fe5b1461446f5783601181111561446a57fe5b61181f565b506103e80192915050565b6000808383018481106144925760009250905061322b565b50600291506000905061322b565b60006144aa615c76565b6000806144bb866000015186614a9d565b909250905060008260038111156144ce57fe5b146144ed5750604080516020810190915260008152909250905061322b565b60408051602081019091529081526000969095509350505050565b51670de0b6b3a7640000900490565b6000611bf78383604051806040016040528060158152602001747375627472616374696f6e20756e646572666c6f7760581b81525061597e565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091018252602081810180516001600160e01b031663a9059cbb60e01b1790528251808401909352601983527f544f4b454e5f5452414e534645525f4f55545f4641494c454400000000000000908301526145d2916159d8565b5050565b60008215806145e3575081155b61461e5760405162461bcd60e51b8152600401808060200182810382526034815260200180615f936034913960400191505060405180910390fd5b614626615d1c565b61462e612a96565b604083018190526020830182600381111561464557fe5b600381111561465057fe5b905250600090508160200151600381111561466757fe5b1461468b576146836009602e83602001516003811115613a0e57fe5b915050611bf7565b831561470c5760608101849052604080516020810182529082015181526146b290856131de565b60808301819052602083018260038111156146c957fe5b60038111156146d457fe5b90525060009050816020015160038111156146eb57fe5b14614707576146836009602c83602001516003811115613a0e57fe5b614785565b6147288360405180602001604052808460400151815250615a60565b606083018190526020830182600381111561473f57fe5b600381111561474a57fe5b905250600090508160200151600381111561476157fe5b1461477d576146836009602d83602001516003811115613a0e57fe5b608081018390525b60055460608201516040805163eabe7d9160e01b81523060048201526001600160a01b03898116602483015260448201939093529051600093929092169163eabe7d919160648082019260209290919082900301818787803b1580156147ea57600080fd5b505af11580156147fe573d6000803e3d6000fd5b505050506040513d602081101561481457600080fd5b5051905080156148345761482b6003602b836143f1565b92505050611bf7565b61483c61247a565b600b54146148505761482b600a602f613280565b614860601154836060015161359d565b60a084018190526020840182600381111561487757fe5b600381111561488257fe5b905250600090508260200151600381111561489957fe5b146148b55761482b6009603184602001516003811115613a0e57fe5b6001600160a01b03861660009081526012602052604090205460608301516148dd919061359d565b60c08401819052602084018260038111156148f457fe5b60038111156148ff57fe5b905250600090508260200151600381111561491657fe5b146149325761482b6009603084602001516003811115613a0e57fe5b816080015161493f613232565b10156149515761482b600e6032613280565b61495f868360800151614551565b60a082015160115560c08201516001600160a01b038716600081815260126020908152604091829020939093556060850151815190815290513093600080516020615eda833981519152928290030190a36080820151606080840151604080516001600160a01b038b168152602081019490945283810191909152517fe5b754fb1abb7f01b499791d0b820ae3b6af3424ac1c59768edb53f4ec31a9299281900390910190a160055460808301516060840151604080516351dff98960e01b81523060048201526001600160a01b038b81166024830152604482019490945260648101929092525191909216916351dff98991608480830192600092919082900301818387803b158015614a7257600080fd5b505af1158015614a86573d6000803e3d6000fd5b5060009250614a93915050565b9695505050505050565b60008083614ab05750600090508061322b565b83830283858281614abd57fe5b0414614ad15750600291506000905061322b565b60009250905061322b565b60008082614af0575060019050600061322b565b6000838581614afb57fe5b04915091509250929050565b60055460408051634ef4c3e160e01b81523060048201526001600160a01b03858116602483015260448201859052915160009384938493911691634ef4c3e19160648082019260209290919082900301818787803b158015614b6857600080fd5b505af1158015614b7c573d6000803e3d6000fd5b505050506040513d6020811015614b9257600080fd5b505190508015614bb657614ba960036021836143f1565b92506000915061322b9050565b614bbe61247a565b600b5414614bd257614ba9600a6024613280565b614bda615d1c565b614be2612a96565b6040830181905260208301826003811115614bf957fe5b6003811115614c0457fe5b9052506000905081602001516003811115614c1b57fe5b14614c4557614c376009602383602001516003811115613a0e57fe5b93506000925061322b915050565b614c4f86866157a1565b60c0820181905260408051602081018252908301518152614c709190615a60565b6060830181905260208301826003811115614c8757fe5b6003811115614c9257fe5b9052506000905081602001516003811115614ca957fe5b14614cfb576040805162461bcd60e51b815260206004820181905260248201527f4d494e545f45584348414e47455f43414c43554c4154494f4e5f4641494c4544604482015290519081900360640190fd5b614d0b6011548260600151613567565b60808201526001600160a01b0386166000908152601260205260409020546060820151614d389190613567565b60a0820181905260808201516011556001600160a01b0387166000818152601260209081526040918290209390935560c084015160608086015183519485529484019190915282820193909352517f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f929181900390910190a1606081015160408051918252516001600160a01b038816913091600080516020615eda8339815191529181900360200190a360055460c08201516060830151604080516341c728b960e01b81523060048201526001600160a01b038b81166024830152604482019490945260648101929092525191909216916341c728b991608480830192600092919082900301818387803b158015614e5057600080fd5b505af1158015614e64573d6000803e3d6000fd5b5060009250614e71915050565b8160c001519350935050509250929050565b600083830182858210156116f35760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156143ad578181015183820152602001614395565b614ee0615c76565b6040518060200160405280614ef9856000015185615a77565b90529392505050565b6000614f0c615c76565b614f168484614ed8565b905061181f81614508565b6000614f2b615c76565b614f358585614ed8565b90506143e8614f4382614508565b84613567565b6000670de0b6b3a7640000614f62848460000151615a77565b81614f6957fe5b049392505050565b6005546040805163368f515360e21b81523060048201526001600160a01b0385811660248301526044820185905291516000938493169163da3d454c91606480830192602092919082900301818787803b158015614fce57600080fd5b505af1158015614fe2573d6000803e3d6000fd5b505050506040513d6020811015614ff857600080fd5b5051905080156150175761500f60036010836143f1565b9150506110f2565b61501f61247a565b600b54146150335761500f600a600c613280565b600061503d613232565b90508381101561505c57615053600e600b613280565b925050506110f2565b615064615d5a565b61506d866133f2565b602083018190528282600381111561508157fe5b600381111561508c57fe5b90525060009050815160038111156150a057fe5b146150c5576150bb60098083600001516003811115613a0e57fe5b93505050506110f2565b6150d381602001518661447a565b60408301819052828260038111156150e757fe5b60038111156150f257fe5b905250600090508151600381111561510657fe5b14615122576150bb6009600e83600001516003811115613a0e57fe5b6005546040808301518151631de6c8a560e21b8152306004820152602481019190915290516001600160a01b039092169163779b2294916044808201926020929091908290030181600087803b15801561517b57600080fd5b505af115801561518f573d6000803e3d6000fd5b505050506040513d60208110156151a557600080fd5b5051925082156151bc576150bb60036010856143f1565b6151c8600d548661447a565b60608301819052828260038111156151dc57fe5b60038111156151e757fe5b90525060009050815160038111156151fb57fe5b14615217576150bb6009600d83600001516003811115613a0e57fe5b6152218686614551565b604080820180516001600160a01b03891660008181526014602090815290859020928355600c54600190930192909255606080860151600d819055935185519283529282018a9052818501929092529081019190915290517f13ed6866d4e1ee6da46f845c46d7e54120883d75c5ea9a2dacc1c4ca8984ab809181900360800190a160009695505050505050565b60055460408051632fe3f38f60e11b81523060048201526001600160a01b0384811660248301528781166044830152868116606483015260848201869052915160009384938493911691635fc7e71e9160a48082019260209290919082900301818787803b15801561532057600080fd5b505af1158015615334573d6000803e3d6000fd5b505050506040513d602081101561534a57600080fd5b50519050801561536e5761536160036014836143f1565b9250600091506157989050565b61537661247a565b600b541461538a57615361600a6018613280565b61539261247a565b846001600160a01b0316636c540baf6040518163ffffffff1660e01b815260040160206040518083038186803b1580156153cb57600080fd5b505afa1580156153df573d6000803e3d6000fd5b505050506040513d60208110156153f557600080fd5b50511461540857615361600a6013613280565b866001600160a01b0316866001600160a01b0316141561542e5761536160066019613280565b8461543f5761536160076017613280565b6000198514156154555761536160076016613280565b600080615463898989613e02565b909250905081156154935761548482601181111561547d57fe5b601a613280565b94506000935061579892505050565b6005546040805163c488847b60e01b81523060048201526001600160a01b038981166024830152604482018590528251600094859492169263c488847b926064808301939192829003018186803b1580156154ed57600080fd5b505afa158015615501573d6000803e3d6000fd5b505050506040513d604081101561551757600080fd5b508051602090910151909250905081156155625760405162461bcd60e51b8152600401808060200182810382526033815260200180615f2b6033913960400191505060405180910390fd5b80886001600160a01b03166370a082318c6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b1580156155b957600080fd5b505afa1580156155cd573d6000803e3d6000fd5b505050506040513d60208110156155e357600080fd5b50511015615638576040805162461bcd60e51b815260206004820152601860248201527f4c49515549444154455f5345495a455f544f4f5f4d5543480000000000000000604482015290519081900360640190fd5b60006001600160a01b03891630141561565e57615657308d8d856138c0565b90506156e8565b6040805163b2a02ff160e01b81526001600160a01b038e811660048301528d81166024830152604482018590529151918b169163b2a02ff1916064808201926020929091908290030181600087803b1580156156b957600080fd5b505af11580156156cd573d6000803e3d6000fd5b505050506040513d60208110156156e357600080fd5b505190505b8015615732576040805162461bcd60e51b81526020600482015260146024820152731d1bdad95b881cd95a5e9d5c994819985a5b195960621b604482015290519081900360640190fd5b604080516001600160a01b03808f168252808e1660208301528183018790528b1660608201526080810184905290517f298637f684da70674f26509b10f07ec2fbc77a335ab1e7d6215a4b2484d8bb529181900360a00190a16000975092955050505050505b94509492505050565b601554604080516370a0823160e01b8152306004820152905160009283926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b1580156157f157600080fd5b505afa158015615805573d6000803e3d6000fd5b505050506040513d602081101561581b57600080fd5b5051604080516001600160a01b038716602482015230604482015260648082018790528251808303909101815260849091018252602081810180516001600160e01b03166323b872dd60e01b1790528251808401909352601883527f544f4b454e5f5452414e534645525f494e5f4641494c45440000000000000000908301529192506158a891906159d8565b601554604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156158f357600080fd5b505afa158015615907573d6000803e3d6000fd5b505050506040513d602081101561591d57600080fd5b5051905081811015615976576040805162461bcd60e51b815260206004820152601a60248201527f544f4b454e5f5452414e534645525f494e5f4f564552464c4f57000000000000604482015290519081900360640190fd5b039392505050565b600081848411156159d05760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156143ad578181015183820152602001614395565b505050900390565b6015546060906159f2906001600160a01b031684846142a2565b8051909150156116b257808060200190516020811015615a1157600080fd5b505182906118bf5760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156143ad578181015183820152602001614395565b6000806000615a6d615c76565b6131f58686615ab9565b6000611bf783836040518060400160405280601781526020017f6d756c7469706c69636174696f6e206f766572666c6f77000000000000000000815250615b18565b6000615ac3615c76565b600080615ad8670de0b6b3a764000087614a9d565b90925090506000826003811115615aeb57fe5b14615b0a5750604080516020810190915260008152909250905061322b565b6132248186600001516141ed565b6000831580615b25575082155b15615b3257506000611bf7565b83830283858281615b3f57fe5b041483906116f35760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156143ad578181015183820152602001614395565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10615bcf57805160ff1916838001178555615bfc565b82800160010185558215615bfc579182015b82811115615bfc578251825591602001919060010190615be1565b50611a42929150615d83565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10615c495782800160ff19823516178555615bfc565b82800160010185558215615bfc579182015b82811115615bfc578235825591602001919060010190615c5b565b6040518060200160405280600081525090565b604080516101208101909152806000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6040805161010081019091528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6040805160e0810190915280600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b604080516080810190915280600081526020016000815260200160008152602001600081525090565b6114a491905b80821115611a425760008155600101615d8956fe6d61726b6574206d6179206f6e6c7920626520696e697469616c697a6564206f6e6365696e697469616c2065786368616e67652072617465206d7573742062652067726561746572207468616e207a65726f2e6f6e6c79207468652061646d696e206d6179207365742074686520636f6d702d6c696b652064656c656761746573657474696e6720696e7465726573742072617465206d6f64656c206661696c6564626f72726f7742616c616e636553746f7265643a20626f72726f7742616c616e636553746f726564496e7465726e616c206661696c656452455041595f424f52524f575f4e45575f4143434f554e545f424f52524f575f42414c414e43455f43414c43554c4154494f4e5f4641494c45446f6e6c7920467573652061646d696e206d617920696e697469616c697a6520746865206d61726b6574ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef52455041595f424f52524f575f4e45575f544f54414c5f42414c414e43455f43414c43554c4154494f4e5f4641494c45444c49515549444154455f434f4d5054524f4c4c45525f43414c43554c4154455f414d4f554e545f5345495a455f4641494c454465786368616e67655261746553746f7265643a2065786368616e67655261746553746f726564496e7465726e616c206661696c65646f6e65206f662072656465656d546f6b656e73496e206f722072656465656d416d6f756e74496e206d757374206265207a65726fa265627a7a723158203d195b9e8609e89a3876903b1747559160b318b9a1b0847b1160bbb71ef9b10964736f6c63430005110032
Deployed Bytecode
0x6080604052600436106103765760003560e01c8063852a12e3116101d1578063ae9d70b011610102578063dc028ab1116100a0578063f5e3c4621161006f578063f5e3c46214610f69578063f8f9da2814610fac578063fca7820b14610fc1578063fe9c44ae14610feb57610376565b8063dc028ab114610ed1578063dd62ed3e14610ee6578063f2b3abbd14610f21578063f3fdb15a14610f5457610376565b8063c37f68e2116100dc578063c37f68e214610e0f578063c5ebeaec14610e68578063db006a7514610e92578063dbfe7c1914610ebc57610376565b8063ae9d70b014610da2578063b2a02ff114610db7578063bd6d894d14610dfa57610376565b8063a0712d681161016f578063a7b820df11610149578063a7b820df14610d15578063a9059cbb14610d3f578063aa5af0fd14610d78578063ac784ddc14610d8d57610376565b8063a0712d6814610b7a578063a0b0d28914610ba4578063a6afed9514610d0057610376565b806391dd36c6116101ab57806391dd36c614610ade57806395d89b4114610b0857806395dd919314610b1d578063a03dce8d14610b5057610376565b8063852a12e314610a8a5780638d02d9a114610ab45780638f840ddd14610ac957610376565b80633b1d21a2116102ab57806361feacff116102495780636f307dc3116102235780636f307dc3146109fa57806370a0823114610a0f57806373acee9814610a425780637f1e06be14610a5757610376565b806361feacff146109bb5780636752e702146109d05780636c540baf146109e557610376565b806356e677281161028557806356e67728146108d05780635c60da1b1461094b5780635fe3b5671461097c578063601a0bf11461099157610376565b80633b1d21a21461081457806347bd37181461082957806350d85b731461083e57610376565b8063182df0f5116103185780632608f818116102f25780632608f818146106b2578063313ce567146106eb57806334154d4c146107165780633af9e669146107e157610376565b8063182df0f5146106525780631db789441461066757806323b872dd1461066f57610376565b80630f8855e8116103545780630f8855e81461048e578063173b9904146105f557806317bfdfbc1461060a57806318160ddd1461063d57610376565b806306fdde031461037b578063095ea7b3146104055780630e75270214610452575b600080fd5b34801561038757600080fd5b50610390611000565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103ca5781810151838201526020016103b2565b50505050905090810190601f1680156103f75780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561041157600080fd5b5061043e6004803603604081101561042857600080fd5b506001600160a01b03813516906020013561108b565b604080519115158252519081900360200190f35b34801561045e57600080fd5b5061047c6004803603602081101561047557600080fd5b50356110f8565b60408051918252519081900360200190f35b34801561049a57600080fd5b506105f360048036036101008110156104b257600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b8111156104ec57600080fd5b8201836020820111156104fe57600080fd5b803590602001918460018302840111600160201b8311171561051f57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561057157600080fd5b82018360208201111561058357600080fd5b803590602001918460018302840111600160201b831117156105a457600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505060ff833516935050506020810135906040013561110e565b005b34801561060157600080fd5b5061047c6113bc565b34801561061657600080fd5b5061047c6004803603602081101561062d57600080fd5b50356001600160a01b03166113c2565b34801561064957600080fd5b5061047c61143e565b34801561065e57600080fd5b5061047c611444565b6105f36114a7565b34801561067b57600080fd5b5061043e6004803603606081101561069257600080fd5b506001600160a01b038135811691602081013590911690604001356116b8565b3480156106be57600080fd5b5061047c600480360360408110156106d557600080fd5b506001600160a01b0381351690602001356116e6565b3480156106f757600080fd5b506107006116fc565b6040805160ff9092168252519081900360200190f35b34801561072257600080fd5b506105f36004803603604081101561073957600080fd5b810190602081018135600160201b81111561075357600080fd5b82018360208201111561076557600080fd5b803590602001918460018302840111600160201b8311171561078657600080fd5b919390929091602081019035600160201b8111156107a357600080fd5b8201836020820111156107b557600080fd5b803590602001918460018302840111600160201b831117156107d657600080fd5b509092509050611705565b3480156107ed57600080fd5b5061047c6004803603602081101561080457600080fd5b50356001600160a01b0316611771565b34801561082057600080fd5b5061047c611827565b34801561083557600080fd5b5061047c611836565b34801561084a57600080fd5b506105f36004803603606081101561086157600080fd5b6001600160a01b03823516916020810135151591810190606081016040820135600160201b81111561089257600080fd5b8201836020820111156108a457600080fd5b803590602001918460018302840111600160201b831117156108c557600080fd5b50909250905061183c565b3480156108dc57600080fd5b506105f3600480360360208110156108f357600080fd5b810190602081018135600160201b81111561090d57600080fd5b82018360208201111561091f57600080fd5b803590602001918460018302840111600160201b8311171561094057600080fd5b5090925090506118c5565b34801561095757600080fd5b50610960611923565b604080516001600160a01b039092168252519081900360200190f35b34801561098857600080fd5b50610960611932565b34801561099d57600080fd5b5061047c600480360360208110156109b457600080fd5b5035611941565b3480156109c757600080fd5b5061047c611992565b3480156109dc57600080fd5b5061047c611998565b3480156109f157600080fd5b5061047c6119a3565b348015610a0657600080fd5b506109606119a9565b348015610a1b57600080fd5b5061047c60048036036020811015610a3257600080fd5b50356001600160a01b03166119b8565b348015610a4e57600080fd5b5061047c6119d3565b348015610a6357600080fd5b506105f360048036036020811015610a7a57600080fd5b50356001600160a01b0316611a46565b348015610a9657600080fd5b5061047c60048036036020811015610aad57600080fd5b5035611aeb565b348015610ac057600080fd5b5061047c611af6565b348015610ad557600080fd5b5061047c611afc565b348015610aea57600080fd5b5061047c60048036036020811015610b0157600080fd5b5035611b02565b348015610b1457600080fd5b50610390611b3f565b348015610b2957600080fd5b5061047c60048036036020811015610b4057600080fd5b50356001600160a01b0316611b9a565b348015610b5c57600080fd5b5061047c60048036036020811015610b7357600080fd5b5035611bfe565b348015610b8657600080fd5b5061047c60048036036020811015610b9d57600080fd5b5035611c3b565b348015610bb057600080fd5b506105f3600480360360e0811015610bc757600080fd5b6001600160a01b0382358116926020810135821692604082013590921691810190608081016060820135600160201b811115610c0257600080fd5b820183602082011115610c1457600080fd5b803590602001918460018302840111600160201b83111715610c3557600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b811115610c8757600080fd5b820183602082011115610c9957600080fd5b803590602001918460018302840111600160201b83111715610cba57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505082359350505060200135611c47565b348015610d0c57600080fd5b5061047c611d60565b348015610d2157600080fd5b5061047c60048036036020811015610d3857600080fd5b5035611f25565b348015610d4b57600080fd5b5061043e60048036036040811015610d6257600080fd5b506001600160a01b038135169060200135611f62565b348015610d8457600080fd5b5061047c611f8f565b348015610d9957600080fd5b5061043e611f95565b348015610dae57600080fd5b5061047c611f9a565b348015610dc357600080fd5b5061047c60048036036060811015610dda57600080fd5b506001600160a01b03813581169160208101359091169060400135612052565b348015610e0657600080fd5b5061047c612076565b348015610e1b57600080fd5b50610e4260048036036020811015610e3257600080fd5b50356001600160a01b03166120ea565b604080519485526020850193909352838301919091526060830152519081900360800190f35b348015610e7457600080fd5b5061047c60048036036020811015610e8b57600080fd5b503561217f565b348015610e9e57600080fd5b5061047c60048036036020811015610eb557600080fd5b503561218a565b348015610ec857600080fd5b5061047c612195565b348015610edd57600080fd5b5061047c61219b565b348015610ef257600080fd5b5061047c60048036036040811015610f0957600080fd5b506001600160a01b03813581169160200135166121a1565b348015610f2d57600080fd5b5061047c60048036036020811015610f4457600080fd5b50356001600160a01b03166121cc565b348015610f6057600080fd5b50610960612206565b348015610f7557600080fd5b5061047c60048036036060811015610f8c57600080fd5b506001600160a01b03813581169160208101359160409091013516612215565b348015610fb857600080fd5b5061047c61222d565b348015610fcd57600080fd5b5061047c60048036036020811015610fe457600080fd5b50356122a2565b348015610ff757600080fd5b5061043e6122df565b6002805460408051602060018416156101000260001901909316849004601f810184900484028201840190925281815292918301828280156110835780601f1061105857610100808354040283529160200191611083565b820191906000526020600020905b81548152906001019060200180831161106657829003601f168201915b505050505081565b3360008181526013602090815260408083206001600160a01b03871680855290835281842086905581518681529151939493909284927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929081900390910190a360019150505b92915050565b600080611104836122e4565b509150505b919050565b3373a731585ab05fc9f83555cf9bff8f58ee94e18f85146111605760405162461bcd60e51b8152600401808060200182810382526029815260200180615eb16029913960400191505060405180910390fd5b600b541580156111705750600c54155b6111ab5760405162461bcd60e51b8152600401808060200182810382526023815260200180615d9e6023913960400191505060405180910390fd5b6007869055856111ec5760405162461bcd60e51b8152600401808060200182810382526030815260200180615dc16030913960400191505060405180910390fd5b60006111f789612347565b9050801561124c576040805162461bcd60e51b815260206004820152601a60248201527f73657474696e6720636f6d7074726f6c6c6572206661696c6564000000000000604482015290519081900360640190fd5b61125461247a565b600b55670de0b6b3a7640000600c5561126c8861247e565b905080156112ab5760405162461bcd60e51b8152600401808060200182810382526022815260200180615e1e6022913960400191505060405180910390fd5b85516112be906002906020890190615b8e565b5084516112d2906003906020880190615b8e565b506004805460ff191660ff86161790556112eb83612784565b90508015611340576040805162461bcd60e51b815260206004820152601d60248201527f73657474696e67207265736572766520666163746f72206661696c6564000000604482015290519081900360640190fd5b6113498261283d565b9050801561139e576040805162461bcd60e51b815260206004820152601860248201527f73657474696e672061646d696e20666565206661696c65640000000000000000604482015290519081900360640190fd5b50506001805460ff60b01b1916600160b01b17905550505050505050565b600a5481565b6000806113ce81612962565b60006113d8611d60565b14611423576040805162461bcd60e51b81526020600482015260166024820152751858d8dc9d59481a5b9d195c995cdd0819985a5b195960521b604482015290519081900360640190fd5b61142c83611b9a565b91505b61143881612a2b565b50919050565b60115481565b6000806000611451612a96565b9092509050600082600381111561146457fe5b146114a05760405162461bcd60e51b8152600401808060200182810382526035815260200180615f5e6035913960400191505060405180910390fd5b9150505b90565b33301480159061152d5750600560009054906101000a90046001600160a01b03166001600160a01b031663dd5cd22c6040518163ffffffff1660e01b815260040160206040518083038186803b15801561150057600080fd5b505afa158015611514573d6000803e3d6000fd5b505050506040513d602081101561152a57600080fd5b50515b156116b65760008054604080516345cc970560e01b81526001600160a01b03909216600483015251829160609173a731585ab05fc9f83555cf9bff8f58ee94e18f85916345cc97059160248083019287929190829003018186803b15801561159457600080fd5b505afa1580156115a8573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405260608110156115d157600080fd5b81516020830151604080850180519151939592948301929184600160201b8211156115fb57600080fd5b90830190602082018581111561161057600080fd5b8251600160201b81118282018810171561162957600080fd5b82525081516020918201929091019080838360005b8381101561165657818101518382015260200161163e565b50505050905090810190601f1680156116835780820380516001836020036101000a031916815260200191505b5060405250506000549396509194509250506001600160a01b038085169116146116b2576116b2838383612b56565b5050505b565b6000806116c481612962565b60006116d233878787612d72565b1491506116de81612a2b565b509392505050565b6000806116f38484612ffe565b50949350505050565b60045460ff1681565b61170d613063565b611751576040805162461bcd60e51b815260206004820152601060248201526f31b0b63632b9103737ba1030b236b4b760811b604482015290519081900360640190fd5b61175d60028585615c08565b5061176a60038383615c08565b5050505050565b600061177b615c76565b604051806020016040528061178e612076565b90526001600160a01b0384166000908152601260205260408120549192509081906117ba9084906131de565b909250905060008260038111156117cd57fe5b1461181f576040805162461bcd60e51b815260206004820152601f60248201527f62616c616e636520636f756c64206e6f742062652063616c63756c6174656400604482015290519081900360640190fd5b949350505050565b6000611831613232565b905090565b600d5481565b611844613063565b61187e576040805162461bcd60e51b815260206004820152600660248201526510b0b236b4b760d11b604482015290519081900360640190fd5b6118bf848484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612b5692505050565b50505050565b333014806118d657506118d6613063565b61190f576040805162461bcd60e51b815260206004820152600560248201526410b9b2b63360d91b604482015290519081900360640190fd5b5050600180546001600160b01b0319169055565b6000546001600160a01b031681565b6005546001600160a01b031681565b60008061194d81612962565b6000611957611d60565b9050801561197d5761197581601181111561196e57fe5b603b613280565b92505061142f565b611986846132e6565b92505061143881612a2b565b600f5481565b666379da05b6000081565b600b5481565b6015546001600160a01b031681565b6001600160a01b031660009081526012602052604090205490565b6000806119df81612962565b60006119e9611d60565b14611a34576040805162461bcd60e51b81526020600482015260166024820152751858d8dc9d59481a5b9d195c995cdd0819985a5b195960521b604482015290519081900360640190fd5b600d549150611a4281612a2b565b5090565b611a4e613063565b611a895760405162461bcd60e51b815260040180806020018281038252602d815260200180615df1602d913960400191505060405180910390fd5b601554604080516317066a5760e21b81526001600160a01b03848116600483015291519190921691635c19a95c91602480830192600092919082900301818387803b158015611ad757600080fd5b505af115801561176a573d6000803e3d6000fd5b60006110f2826133b2565b60085481565b600e5481565b600080611b0e81612962565b6000611b18611d60565b90508015611b3657611975816011811115611b2f57fe5b6052613280565b6119868461283d565b6003805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156110835780601f1061105857610100808354040283529160200191611083565b6000806000611ba8846133f2565b90925090506000826003811115611bbb57fe5b14611bf75760405162461bcd60e51b8152600401808060200182810382526037815260200180615e406037913960400191505060405180910390fd5b9392505050565b600080611c0a81612962565b6000611c14611d60565b90508015611c3257611975816011811115611c2b57fe5b6033613280565b611986846134a6565b60008061110483613527565b60006702c68af0bb14000090506000886001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b158015611c8f57600080fd5b505afa158015611ca3573d6000803e3d6000fd5b505050506040513d6020811015611cb957600080fd5b50519050611ccd8888848989868a8a61110e565b601580546001600160a01b0319166001600160a01b038b81169190911791829055604080516318160ddd60e01b8152905192909116916318160ddd91600480820192602092909190829003018186803b158015611d2957600080fd5b505afa158015611d3d573d6000803e3d6000fd5b505050506040513d6020811015611d5357600080fd5b5050505050505050505050565b600080611d6b61247a565b905080600b541415611d815760009150506114a4565b6000611d8b613232565b90506000600660009054906101000a90046001600160a01b03166001600160a01b03166315f2405383600d54611dd0600e54611dcb600f54601054613567565b613567565b6040518463ffffffff1660e01b815260040180848152602001838152602001828152602001935050505060206040518083038186803b158015611e1257600080fd5b505afa158015611e26573d6000803e3d6000fd5b505050506040513d6020811015611e3c57600080fd5b5051905065048c27395000811115611e9b576040805162461bcd60e51b815260206004820152601c60248201527f626f72726f772072617465206973206162737572646c79206869676800000000604482015290519081900360640190fd5b600080611eaa85600b5461359d565b90925090506000826003811115611ebd57fe5b14611f0f576040805162461bcd60e51b815260206004820152601f60248201527f636f756c64206e6f742063616c63756c61746520626c6f636b2064656c746100604482015290519081900360640190fd5b611f1b858585846135c0565b9550505050505090565b600080611f3181612962565b6000611f3b611d60565b90508015611f5957611975816011811115611f5257fe5b6037613280565b611986846137d8565b600080611f6e81612962565b6000611f7c33338787612d72565b149150611f8881612a2b565b5092915050565b600c5481565b600081565b6006546000906001600160a01b031663b8168816611fb6613232565b600d54611fcd600e54611dcb600f54601054613567565b600854600954600a5401016040518563ffffffff1660e01b81526004018085815260200184815260200183815260200182815260200194505050505060206040518083038186803b15801561202157600080fd5b505afa158015612035573d6000803e3d6000fd5b505050506040513d602081101561204b57600080fd5b5051905090565b6000600161205f81612962565b61206b338686866138c0565b91506116de81612a2b565b60008061208281612962565b600061208c611d60565b146120d7576040805162461bcd60e51b81526020600482015260166024820152751858d8dc9d59481a5b9d195c995cdd0819985a5b195960521b604482015290519081900360640190fd5b6120df611444565b9150611a4281612a2b565b6001600160a01b038116600090815260126020526040812054819081908190818080612115896133f2565b93509050600081600381111561212757fe5b146121455760095b9750600096508695508594506121789350505050565b61214d612a96565b92509050600081600381111561215f57fe5b1461216b57600961212f565b5060009650919450925090505b9193509193565b60006110f282613c9f565b60006110f282613cdd565b60095481565b60105481565b6001600160a01b03918216600090815260136020908152604080832093909416825291909152205490565b6000806121d7611d60565b905080156121fd576121f58160118111156121ee57fe5b604b613280565b915050611109565b611bf78361247e565b6006546001600160a01b031681565b600080612223858585613d16565b5095945050505050565b6006546000906001600160a01b03166315f24053612249613232565b600d54612260600e54611dcb600f54601054613567565b6040518463ffffffff1660e01b815260040180848152602001838152602001828152602001935050505060206040518083038186803b15801561202157600080fd5b6000806122ae81612962565b60006122b8611d60565b905080156122d6576119758160118111156122cf57fe5b6059613280565b61198684612784565b600181565b60008060006122f281612962565b60006122fc611d60565b905080156123275761231a81601181111561231357fe5b6041613280565b9350600092506123389050565b612332333387613e02565b93509350505b61234181612a2b565b50915091565b600080600560009054906101000a90046001600160a01b03169050826001600160a01b0316627e3dd26040518163ffffffff1660e01b815260040160206040518083038186803b15801561239a57600080fd5b505afa1580156123ae573d6000803e3d6000fd5b505050506040513d60208110156123c457600080fd5b5051612417576040805162461bcd60e51b815260206004820152601c60248201527f6d61726b6572206d6574686f642072657475726e65642066616c736500000000604482015290519081900360640190fd5b600580546001600160a01b0319166001600160a01b03858116918217909255604080519284168352602083019190915280517f7ac369dbd14fa5ea3f473ed67cc9d598964a77501540ba6751eb0b3decf5870d9281900390910190a16000611bf7565b4390565b600080612489613063565b612499576121f56001604d613280565b6124a161247a565b600b54146124b5576121f5600a604c613280565b600660009054906101000a90046001600160a01b03169050826001600160a01b0316632191f92a6040518163ffffffff1660e01b815260040160206040518083038186803b15801561250657600080fd5b505afa15801561251a573d6000803e3d6000fd5b505050506040513d602081101561253057600080fd5b5051612583576040805162461bcd60e51b815260206004820152601c60248201527f6d61726b6572206d6574686f642072657475726e65642066616c736500000000604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b03858116918217909255604080519284168352602083019190915280517fedffc32e068c7c95dfd4bdfd5c4d939a084d6b11c4199eac8436ed234d72f9269281900390910190a16001600160a01b038116156126b55760408051600481526024810182526020810180516001600160e01b0316636cc1140b60e11b178152915181516001600160a01b0385169382918083835b6020831061264a5780518252601f19909201916020918201910161262b565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146126ac576040519150601f19603f3d011682016040523d82523d6000602084013e6126b1565b606091505b5050505b60408051600481526024810182526020810180516001600160e01b031663742a137b60e11b178152915181516001600160a01b0387169382918083835b602083106127115780518252601f1990920191602091820191016126f2565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612773576040519150601f19603f3d011682016040523d82523d6000602084013e612778565b606091505b5060009150611bf79050565b600061278e613063565b6127a55761279e6001605a613280565b9050611109565b6127ad61247a565b600b54146127c15761279e600a605b613280565b670de0b6b3a76400006127e16127d984600854613567565b600954613567565b11156127f35761279e6002605c613280565b600a805490839055604080518281526020810185905281517faaa68312e2ea9d50e16af5068410ab56e1a1fd06037b1a35664812c30f821460929181900390910190a16000611bf7565b600061284761247a565b600b541461285b5761279e600a6054613280565b60001982141561286b5760085491505b6000612875614152565b9050670de0b6b3a764000061289561288f600a5486613567565b83613567565b11156128a7576121f560026055613280565b826008541461290d576128b8613063565b6128c8576121f560016053613280565b6008805490849055604080518281526020810186905281517fcdd0b588250e1398549f79cfdb8217c186688822905d6715b0834ea1c865594a929181900390910190a1505b806009541461295b576009805490829055604080518281526020810184905281517f92eef861b6533b7d3417f39c2ad7b460eed4e88a32fa3604f30e718b7602e7dc929181900390910190a1505b6000611bf7565b600154600160b01b900460ff166129ad576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b80612a1b57600560009054906101000a90046001600160a01b03166001600160a01b031663c90c20b16040518163ffffffff1660e01b8152600401600060405180830381600087803b158015612a0257600080fd5b505af1158015612a16573d6000803e3d6000fd5b505050505b506001805460ff60b01b19169055565b6001805460ff60b01b1916600160b01b17905580612a9357600560009054906101000a90046001600160a01b03166001600160a01b031663632e51426040518163ffffffff1660e01b8152600401600060405180830381600087803b158015611ad757600080fd5b50565b601154600090819080612ab157505060075460009150612b52565b6000612abb613232565b90506000612ac7615c76565b6000612ae984600d54612ae4600e54611dcb600f54601054613567565b6141a1565b935090506000816003811115612afb57fe5b14612b1057955060009450612b529350505050565b612b1a83866141ed565b925090506000816003811115612b2c57fe5b14612b4157955060009450612b529350505050565b5051600095509350612b5292505050565b9091565b600054604080516338e6a07360e11b81526001600160a01b039283166004820152918516602483015283151560448301525173a731585ab05fc9f83555cf9bff8f58ee94e18f85916371cd40e6916064808301926020929190829003018186803b158015612bc357600080fd5b505afa158015612bd7573d6000803e3d6000fd5b505050506040513d6020811015612bed57600080fd5b5051612c28576040805162461bcd60e51b8152602060048201526005602482015264085a5b5c1b60da1b604482015290519081900360640190fd5b8115612c3657612c3661429d565b600080546001600160a01b038581166001600160a01b031983161783556040516020602482018181528651604484015286519390941694612d2394309488949193849360649093019290860191908190849084905b83811015612ca3578181015183820152602001612c8b565b50505050905090810190601f168015612cd05780820380516001836020036101000a031916815260200191505b5060408051601f19818403018152918152602080830180516001600160e01b0316630adccee560e31b17905281518083019092526007825266216265636f6d6560c81b9082015290935091506142a29050565b50600054604080516001600160a01b038085168252909216602083015280517fd604de94d45953f9138079ec1b82d533cb2160c906d1076d1f7ed54befbca97a9281900390910190a150505050565b600554604080516317b9b84b60e31b81523060048201526001600160a01b03868116602483015285811660448301526064820185905291516000938493169163bdcdc25891608480830192602092919082900301818787803b158015612dd757600080fd5b505af1158015612deb573d6000803e3d6000fd5b505050506040513d6020811015612e0157600080fd5b505190508015612e2057612e186003605d836143f1565b91505061181f565b836001600160a01b0316856001600160a01b03161415612e4657612e186002605e613280565b60006001600160a01b038781169087161415612e655750600019612e8d565b506001600160a01b038086166000908152601360209081526040808320938a16835292905220545b600080600080612e9d858961359d565b90945092506000846003811115612eb057fe5b14612ece57612ec16009605e613280565b965050505050505061181f565b6001600160a01b038a16600090815260126020526040902054612ef1908961359d565b90945091506000846003811115612f0457fe5b14612f1557612ec16009605f613280565b6001600160a01b038916600090815260126020526040902054612f38908961447a565b90945090506000846003811115612f4b57fe5b14612f5c57612ec160096060613280565b6001600160a01b03808b16600090815260126020526040808220859055918b168152208190556000198514612fb4576001600160a01b03808b166000908152601360209081526040808320938f168352929052208390555b886001600160a01b03168a6001600160a01b0316600080516020615eda8339815191528a6040518082815260200191505060405180910390a35060009a9950505050505050505050565b600080600061300c81612962565b6000613016611d60565b905080156130415761303481601181111561302d57fe5b6040613280565b9350600092506130529050565b61304c338787613e02565b93509350505b61305b81612a2b565b509250929050565b600554604080516303e1469160e61b815290516000926001600160a01b031691829163f851a44091600480820192602092909190829003018186803b1580156130ab57600080fd5b505afa1580156130bf573d6000803e3d6000fd5b505050506040513d60208110156130d557600080fd5b50516001600160a01b03163314801561314f5750806001600160a01b0316630a755ec26040518163ffffffff1660e01b815260040160206040518083038186803b15801561312257600080fd5b505afa158015613136573d6000803e3d6000fd5b505050506040513d602081101561314c57600080fd5b50515b806114a057503373a731585ab05fc9f83555cf9bff8f58ee94e18f851480156114a05750806001600160a01b0316632f1069ba6040518163ffffffff1660e01b815260040160206040518083038186803b1580156131ac57600080fd5b505afa1580156131c0573d6000803e3d6000fd5b505050506040513d60208110156131d657600080fd5b505191505090565b60008060006131eb615c76565b6131f586866144a0565b9092509050600082600381111561320857fe5b14613219575091506000905061322b565b600061322482614508565b9350935050505b9250929050565b601554604080516370a0823160e01b815230600482015290516000926001600160a01b03169182916370a0823191602480820192602092909190829003018186803b1580156131ac57600080fd5b60007f45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa08360118111156132af57fe5b8360638111156132bb57fe5b604080519283526020830191909152600082820152519081900360600190a1826011811115611bf757fe5b6000806132f1613063565b613301576121f56001603c613280565b61330961247a565b600b541461331d576121f5600a603e613280565b82613326613232565b1015613338576121f5600e603d613280565b600e5483111561334e576121f56002603f613280565b61335a600e5484614517565b600e819055905061336b3384614551565b604080513381526020810185905280820183905290517f3bad0c59cf2f06e7314077049f48a93578cd16f5ef92329f1dab1420a99c177e9181900360600190a16000611bf7565b6000806133be81612962565b60006133c8611d60565b905080156133e6576119758160118111156133df57fe5b602a613280565b611986336000866145d6565b6001600160a01b0381166000908152601460205260408120805482918291829182916134295750600094508493506134a192505050565b6134398160000154600c54614a9d565b9094509250600084600381111561344c57fe5b146134615750919350600092506134a1915050565b61346f838260010154614adc565b9094509150600084600381111561348257fe5b146134975750919350600092506134a1915050565b5060009450925050505b915091565b6000806134b161247a565b600b54146134c5576121f5600a6035613280565b826134ce613232565b10156134e0576121f5600e6034613280565b6010548311156134f6576121f560026036613280565b61350260105484614517565b6010819055905061295b73a731585ab05fc9f83555cf9bff8f58ee94e18f8584614551565b600080600061353581612962565b600061353f611d60565b9050801561355d5761231a81601181111561355657fe5b6020613280565b6123323386614b07565b6000611bf78383604051806040016040528060118152602001706164646974696f6e206f766572666c6f7760781b815250614e83565b6000808383116135b457506000905081830361322b565b5060039050600061322b565b60006135ca615c76565b6135e260405180602001604052808681525084614ed8565b905060006135f282600d54614f02565b9050600061360282600d54613567565b905060006136236040518060200160405280600a5481525084600e54614f21565b90506000613644604051806020016040528060095481525085601054614f21565b90506000613665604051806020016040528060085481525086600f54614f21565b9050600061367887600c54600c54614f21565b600b8d9055600c819055600d869055600e8590556010849055600f839055604080518d8152602081018990528082018390526060810188905290519192507f4dec04e750ca11537cabcd8a9eab06494de08da3735bc8871cd41250e190bc04919081900360800190a16006546040805160248082018e905282518083039091018152604490910182526020810180516001600160e01b0316635efd023360e11b178152915181516001600160a01b0390941693919290918291908083835b602083106137555780518252601f199092019160209182019101613736565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146137b7576040519150601f19603f3d011682016040523d82523d6000602084013e6137bc565b606091505b50600091506137c89050565b9c9b505050505050505050505050565b6000806137e361247a565b600b54146137f7576121f5600a6039613280565b82613800613232565b1015613812576121f5600e6038613280565b600f54831115613828576121f56002603a613280565b613834600f5484614517565b905080600f8190555061295b600560009054906101000a90046001600160a01b03166001600160a01b031663f851a4406040518163ffffffff1660e01b815260040160206040518083038186803b15801561388e57600080fd5b505afa1580156138a2573d6000803e3d6000fd5b505050506040513d60208110156138b857600080fd5b505184614551565b6005546040805163d02f735160e01b81523060048201526001600160a01b038781166024830152868116604483015285811660648301526084820185905291516000938493169163d02f73519160a480830192602092919082900301818787803b15801561392d57600080fd5b505af1158015613941573d6000803e3d6000fd5b505050506040513d602081101561395757600080fd5b50519050801561396e57612e186003601d836143f1565b846001600160a01b0316846001600160a01b0316141561399457612e186006601e613280565b61399c615c89565b6001600160a01b0385166000908152601260205260409020546139bf908561359d565b60208301819052828260038111156139d357fe5b60038111156139de57fe5b90525060009050815160038111156139f257fe5b14613a1c57613a136009601c83600001516003811115613a0e57fe5b6143f1565b9250505061181f565b613a3b846040518060200160405280666379da05b60000815250614f49565b60808201819052613a4d908590614517565b6060820152613a5a612a96565b60c0830181905282826003811115613a6e57fe5b6003811115613a7957fe5b9052506000905081516003811115613a8d57fe5b14613adf576040805162461bcd60e51b815260206004820152601860248201527f65786368616e67652072617465206d617468206572726f720000000000000000604482015290519081900360640190fd5b613aff60405180602001604052808360c001518152508260800151614f02565b60a08201819052600e54613b1291613567565b60e08201526011546080820151613b299190614517565b6101008201526001600160a01b0386166000908152601260205260409020546060820151613b57919061447a565b6040830181905282826003811115613b6b57fe5b6003811115613b7657fe5b9052506000905081516003811115613b8a57fe5b14613ba657613a136009601b83600001516003811115613a0e57fe5b60e0810151600e556101008101516011556020808201516001600160a01b0380881660008181526012855260408082209490945583860151928b16808252908490209290925560608501518351908152925191939092600080516020615eda833981519152929081900390910190a36080810151604080519182525130916001600160a01b03881691600080516020615eda8339815191529181900360200190a360a081015160e082015160408051308152602081019390935282810191909152517fa91e67c5ea634cd43a12c5a482724b03de01e85ca68702a53d0c2f45cb7c1dc59181900360600190a16000979650505050505050565b600080613cab81612962565b6000613cb5611d60565b90508015613cd357611975816011811115613ccc57fe5b600a613280565b6119863385614f71565b600080613ce981612962565b6000613cf3611d60565b90508015613d0a576119758160118111156133df57fe5b611986338560006145d6565b6000806000613d2481612962565b6000613d2e611d60565b90508015613d5957613d4c816011811115613d4557fe5b6011613280565b935060009250613df09050565b846001600160a01b031663a6afed956040518163ffffffff1660e01b8152600401602060405180830381600087803b158015613d9457600080fd5b505af1158015613da8573d6000803e3d6000fd5b505050506040513d6020811015613dbe57600080fd5b505190508015613dde57613d4c816011811115613dd757fe5b6012613280565b613dea338888886152af565b93509350505b613df981612a2b565b50935093915050565b60055460408051631200453160e11b81523060048201526001600160a01b0386811660248301528581166044830152606482018590529151600093849384939116916324008a629160848082019260209290919082900301818787803b158015613e6b57600080fd5b505af1158015613e7f573d6000803e3d6000fd5b505050506040513d6020811015613e9557600080fd5b505190508015613eb957613eac60036043836143f1565b92506000915061414a9050565b613ec161247a565b600b5414613ed557613eac600a6044613280565b613edd615cd6565b6001600160a01b0386166000908152601460205260409020600101546060820152613f07866133f2565b6080830181905260208301826003811115613f1e57fe5b6003811115613f2957fe5b9052506000905081602001516003811115613f4057fe5b14613f6a57613f5c6009604283602001516003811115613a0e57fe5b93506000925061414a915050565b600019851415613f835760808101516040820152613f8b565b604081018590525b613f998782604001516157a1565b60e082018190526080820151613fae9161359d565b60a0830181905260208301826003811115613fc557fe5b6003811115613fd057fe5b9052506000905081602001516003811115613fe757fe5b146140235760405162461bcd60e51b815260040180806020018281038252603a815260200180615e77603a913960400191505060405180910390fd5b614033600d548260e0015161359d565b60c083018190526020830182600381111561404a57fe5b600381111561405557fe5b905250600090508160200151600381111561406c57fe5b146140a85760405162461bcd60e51b8152600401808060200182810382526031815260200180615efa6031913960400191505060405180910390fd5b60a080820180516001600160a01b03808a16600081815260146020908152604091829020948555600c5460019095019490945560c0870151600d81905560e088015195518251948f16855294840192909252828101949094526060820192909252608081019190915290517f1a2a22cb034d26d1854bdc6666a5b91fe25efbbb5dcad3b0355478d6f5c362a1929181900390910190a160e00151600093509150505b935093915050565b600073a731585ab05fc9f83555cf9bff8f58ee94e18f856001600160a01b031663dd86fea16040518163ffffffff1660e01b815260040160206040518083038186803b15801561202157600080fd5b6000806000806141b1878761447a565b909250905060008260038111156141c457fe5b146141d5575091506000905061414a565b6141df818661359d565b935093505050935093915050565b60006141f7615c76565b60008061420c86670de0b6b3a7640000614a9d565b9092509050600082600381111561421f57fe5b1461423e5750604080516020810190915260008152909250905061322b565b60008061424b8388614adc565b9092509050600082600381111561425e57fe5b146142805750604080516020810190915260008152909450925061322b915050565b604080516020810190915290815260009890975095505050505050565b6116b6565b606060006060856001600160a01b0316856040518082805190602001908083835b602083106142e25780518252601f1990920191602091820191016142c3565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114614344576040519150601f19603f3d011682016040523d82523d6000602084013e614349565b606091505b5091509150816143e8578051156143635780518082602001fd5b8360405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156143ad578181015183820152602001614395565b50505050905090810190601f1680156143da5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b95945050505050565b60007f45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa084601181111561442057fe5b84606381111561442c57fe5b604080519283526020830191909152818101859052519081900360600190a1600384601181111561445957fe5b1461446f5783601181111561446a57fe5b61181f565b506103e80192915050565b6000808383018481106144925760009250905061322b565b50600291506000905061322b565b60006144aa615c76565b6000806144bb866000015186614a9d565b909250905060008260038111156144ce57fe5b146144ed5750604080516020810190915260008152909250905061322b565b60408051602081019091529081526000969095509350505050565b51670de0b6b3a7640000900490565b6000611bf78383604051806040016040528060158152602001747375627472616374696f6e20756e646572666c6f7760581b81525061597e565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091018252602081810180516001600160e01b031663a9059cbb60e01b1790528251808401909352601983527f544f4b454e5f5452414e534645525f4f55545f4641494c454400000000000000908301526145d2916159d8565b5050565b60008215806145e3575081155b61461e5760405162461bcd60e51b8152600401808060200182810382526034815260200180615f936034913960400191505060405180910390fd5b614626615d1c565b61462e612a96565b604083018190526020830182600381111561464557fe5b600381111561465057fe5b905250600090508160200151600381111561466757fe5b1461468b576146836009602e83602001516003811115613a0e57fe5b915050611bf7565b831561470c5760608101849052604080516020810182529082015181526146b290856131de565b60808301819052602083018260038111156146c957fe5b60038111156146d457fe5b90525060009050816020015160038111156146eb57fe5b14614707576146836009602c83602001516003811115613a0e57fe5b614785565b6147288360405180602001604052808460400151815250615a60565b606083018190526020830182600381111561473f57fe5b600381111561474a57fe5b905250600090508160200151600381111561476157fe5b1461477d576146836009602d83602001516003811115613a0e57fe5b608081018390525b60055460608201516040805163eabe7d9160e01b81523060048201526001600160a01b03898116602483015260448201939093529051600093929092169163eabe7d919160648082019260209290919082900301818787803b1580156147ea57600080fd5b505af11580156147fe573d6000803e3d6000fd5b505050506040513d602081101561481457600080fd5b5051905080156148345761482b6003602b836143f1565b92505050611bf7565b61483c61247a565b600b54146148505761482b600a602f613280565b614860601154836060015161359d565b60a084018190526020840182600381111561487757fe5b600381111561488257fe5b905250600090508260200151600381111561489957fe5b146148b55761482b6009603184602001516003811115613a0e57fe5b6001600160a01b03861660009081526012602052604090205460608301516148dd919061359d565b60c08401819052602084018260038111156148f457fe5b60038111156148ff57fe5b905250600090508260200151600381111561491657fe5b146149325761482b6009603084602001516003811115613a0e57fe5b816080015161493f613232565b10156149515761482b600e6032613280565b61495f868360800151614551565b60a082015160115560c08201516001600160a01b038716600081815260126020908152604091829020939093556060850151815190815290513093600080516020615eda833981519152928290030190a36080820151606080840151604080516001600160a01b038b168152602081019490945283810191909152517fe5b754fb1abb7f01b499791d0b820ae3b6af3424ac1c59768edb53f4ec31a9299281900390910190a160055460808301516060840151604080516351dff98960e01b81523060048201526001600160a01b038b81166024830152604482019490945260648101929092525191909216916351dff98991608480830192600092919082900301818387803b158015614a7257600080fd5b505af1158015614a86573d6000803e3d6000fd5b5060009250614a93915050565b9695505050505050565b60008083614ab05750600090508061322b565b83830283858281614abd57fe5b0414614ad15750600291506000905061322b565b60009250905061322b565b60008082614af0575060019050600061322b565b6000838581614afb57fe5b04915091509250929050565b60055460408051634ef4c3e160e01b81523060048201526001600160a01b03858116602483015260448201859052915160009384938493911691634ef4c3e19160648082019260209290919082900301818787803b158015614b6857600080fd5b505af1158015614b7c573d6000803e3d6000fd5b505050506040513d6020811015614b9257600080fd5b505190508015614bb657614ba960036021836143f1565b92506000915061322b9050565b614bbe61247a565b600b5414614bd257614ba9600a6024613280565b614bda615d1c565b614be2612a96565b6040830181905260208301826003811115614bf957fe5b6003811115614c0457fe5b9052506000905081602001516003811115614c1b57fe5b14614c4557614c376009602383602001516003811115613a0e57fe5b93506000925061322b915050565b614c4f86866157a1565b60c0820181905260408051602081018252908301518152614c709190615a60565b6060830181905260208301826003811115614c8757fe5b6003811115614c9257fe5b9052506000905081602001516003811115614ca957fe5b14614cfb576040805162461bcd60e51b815260206004820181905260248201527f4d494e545f45584348414e47455f43414c43554c4154494f4e5f4641494c4544604482015290519081900360640190fd5b614d0b6011548260600151613567565b60808201526001600160a01b0386166000908152601260205260409020546060820151614d389190613567565b60a0820181905260808201516011556001600160a01b0387166000818152601260209081526040918290209390935560c084015160608086015183519485529484019190915282820193909352517f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f929181900390910190a1606081015160408051918252516001600160a01b038816913091600080516020615eda8339815191529181900360200190a360055460c08201516060830151604080516341c728b960e01b81523060048201526001600160a01b038b81166024830152604482019490945260648101929092525191909216916341c728b991608480830192600092919082900301818387803b158015614e5057600080fd5b505af1158015614e64573d6000803e3d6000fd5b5060009250614e71915050565b8160c001519350935050509250929050565b600083830182858210156116f35760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156143ad578181015183820152602001614395565b614ee0615c76565b6040518060200160405280614ef9856000015185615a77565b90529392505050565b6000614f0c615c76565b614f168484614ed8565b905061181f81614508565b6000614f2b615c76565b614f358585614ed8565b90506143e8614f4382614508565b84613567565b6000670de0b6b3a7640000614f62848460000151615a77565b81614f6957fe5b049392505050565b6005546040805163368f515360e21b81523060048201526001600160a01b0385811660248301526044820185905291516000938493169163da3d454c91606480830192602092919082900301818787803b158015614fce57600080fd5b505af1158015614fe2573d6000803e3d6000fd5b505050506040513d6020811015614ff857600080fd5b5051905080156150175761500f60036010836143f1565b9150506110f2565b61501f61247a565b600b54146150335761500f600a600c613280565b600061503d613232565b90508381101561505c57615053600e600b613280565b925050506110f2565b615064615d5a565b61506d866133f2565b602083018190528282600381111561508157fe5b600381111561508c57fe5b90525060009050815160038111156150a057fe5b146150c5576150bb60098083600001516003811115613a0e57fe5b93505050506110f2565b6150d381602001518661447a565b60408301819052828260038111156150e757fe5b60038111156150f257fe5b905250600090508151600381111561510657fe5b14615122576150bb6009600e83600001516003811115613a0e57fe5b6005546040808301518151631de6c8a560e21b8152306004820152602481019190915290516001600160a01b039092169163779b2294916044808201926020929091908290030181600087803b15801561517b57600080fd5b505af115801561518f573d6000803e3d6000fd5b505050506040513d60208110156151a557600080fd5b5051925082156151bc576150bb60036010856143f1565b6151c8600d548661447a565b60608301819052828260038111156151dc57fe5b60038111156151e757fe5b90525060009050815160038111156151fb57fe5b14615217576150bb6009600d83600001516003811115613a0e57fe5b6152218686614551565b604080820180516001600160a01b03891660008181526014602090815290859020928355600c54600190930192909255606080860151600d819055935185519283529282018a9052818501929092529081019190915290517f13ed6866d4e1ee6da46f845c46d7e54120883d75c5ea9a2dacc1c4ca8984ab809181900360800190a160009695505050505050565b60055460408051632fe3f38f60e11b81523060048201526001600160a01b0384811660248301528781166044830152868116606483015260848201869052915160009384938493911691635fc7e71e9160a48082019260209290919082900301818787803b15801561532057600080fd5b505af1158015615334573d6000803e3d6000fd5b505050506040513d602081101561534a57600080fd5b50519050801561536e5761536160036014836143f1565b9250600091506157989050565b61537661247a565b600b541461538a57615361600a6018613280565b61539261247a565b846001600160a01b0316636c540baf6040518163ffffffff1660e01b815260040160206040518083038186803b1580156153cb57600080fd5b505afa1580156153df573d6000803e3d6000fd5b505050506040513d60208110156153f557600080fd5b50511461540857615361600a6013613280565b866001600160a01b0316866001600160a01b0316141561542e5761536160066019613280565b8461543f5761536160076017613280565b6000198514156154555761536160076016613280565b600080615463898989613e02565b909250905081156154935761548482601181111561547d57fe5b601a613280565b94506000935061579892505050565b6005546040805163c488847b60e01b81523060048201526001600160a01b038981166024830152604482018590528251600094859492169263c488847b926064808301939192829003018186803b1580156154ed57600080fd5b505afa158015615501573d6000803e3d6000fd5b505050506040513d604081101561551757600080fd5b508051602090910151909250905081156155625760405162461bcd60e51b8152600401808060200182810382526033815260200180615f2b6033913960400191505060405180910390fd5b80886001600160a01b03166370a082318c6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b1580156155b957600080fd5b505afa1580156155cd573d6000803e3d6000fd5b505050506040513d60208110156155e357600080fd5b50511015615638576040805162461bcd60e51b815260206004820152601860248201527f4c49515549444154455f5345495a455f544f4f5f4d5543480000000000000000604482015290519081900360640190fd5b60006001600160a01b03891630141561565e57615657308d8d856138c0565b90506156e8565b6040805163b2a02ff160e01b81526001600160a01b038e811660048301528d81166024830152604482018590529151918b169163b2a02ff1916064808201926020929091908290030181600087803b1580156156b957600080fd5b505af11580156156cd573d6000803e3d6000fd5b505050506040513d60208110156156e357600080fd5b505190505b8015615732576040805162461bcd60e51b81526020600482015260146024820152731d1bdad95b881cd95a5e9d5c994819985a5b195960621b604482015290519081900360640190fd5b604080516001600160a01b03808f168252808e1660208301528183018790528b1660608201526080810184905290517f298637f684da70674f26509b10f07ec2fbc77a335ab1e7d6215a4b2484d8bb529181900360a00190a16000975092955050505050505b94509492505050565b601554604080516370a0823160e01b8152306004820152905160009283926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b1580156157f157600080fd5b505afa158015615805573d6000803e3d6000fd5b505050506040513d602081101561581b57600080fd5b5051604080516001600160a01b038716602482015230604482015260648082018790528251808303909101815260849091018252602081810180516001600160e01b03166323b872dd60e01b1790528251808401909352601883527f544f4b454e5f5452414e534645525f494e5f4641494c45440000000000000000908301529192506158a891906159d8565b601554604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156158f357600080fd5b505afa158015615907573d6000803e3d6000fd5b505050506040513d602081101561591d57600080fd5b5051905081811015615976576040805162461bcd60e51b815260206004820152601a60248201527f544f4b454e5f5452414e534645525f494e5f4f564552464c4f57000000000000604482015290519081900360640190fd5b039392505050565b600081848411156159d05760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156143ad578181015183820152602001614395565b505050900390565b6015546060906159f2906001600160a01b031684846142a2565b8051909150156116b257808060200190516020811015615a1157600080fd5b505182906118bf5760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156143ad578181015183820152602001614395565b6000806000615a6d615c76565b6131f58686615ab9565b6000611bf783836040518060400160405280601781526020017f6d756c7469706c69636174696f6e206f766572666c6f77000000000000000000815250615b18565b6000615ac3615c76565b600080615ad8670de0b6b3a764000087614a9d565b90925090506000826003811115615aeb57fe5b14615b0a5750604080516020810190915260008152909250905061322b565b6132248186600001516141ed565b6000831580615b25575082155b15615b3257506000611bf7565b83830283858281615b3f57fe5b041483906116f35760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156143ad578181015183820152602001614395565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10615bcf57805160ff1916838001178555615bfc565b82800160010185558215615bfc579182015b82811115615bfc578251825591602001919060010190615be1565b50611a42929150615d83565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10615c495782800160ff19823516178555615bfc565b82800160010185558215615bfc579182015b82811115615bfc578235825591602001919060010190615c5b565b6040518060200160405280600081525090565b604080516101208101909152806000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6040805161010081019091528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6040805160e0810190915280600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b604080516080810190915280600081526020016000815260200160008152602001600081525090565b6114a491905b80821115611a425760008155600101615d8956fe6d61726b6574206d6179206f6e6c7920626520696e697469616c697a6564206f6e6365696e697469616c2065786368616e67652072617465206d7573742062652067726561746572207468616e207a65726f2e6f6e6c79207468652061646d696e206d6179207365742074686520636f6d702d6c696b652064656c656761746573657474696e6720696e7465726573742072617465206d6f64656c206661696c6564626f72726f7742616c616e636553746f7265643a20626f72726f7742616c616e636553746f726564496e7465726e616c206661696c656452455041595f424f52524f575f4e45575f4143434f554e545f424f52524f575f42414c414e43455f43414c43554c4154494f4e5f4641494c45446f6e6c7920467573652061646d696e206d617920696e697469616c697a6520746865206d61726b6574ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef52455041595f424f52524f575f4e45575f544f54414c5f42414c414e43455f43414c43554c4154494f4e5f4641494c45444c49515549444154455f434f4d5054524f4c4c45525f43414c43554c4154455f414d4f554e545f5345495a455f4641494c454465786368616e67655261746553746f7265643a2065786368616e67655261746553746f726564496e7465726e616c206661696c65646f6e65206f662072656465656d546f6b656e73496e206f722072656465656d416d6f756e74496e206d757374206265207a65726fa265627a7a723158203d195b9e8609e89a3876903b1747559160b318b9a1b0847b1160bbb71ef9b10964736f6c63430005110032
Deployed Bytecode Sourcemap
204:3791:1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;999:18:3;;8:9:-1;5:2;;;30:1;27;20:12;5:2;999:18:3;;;:::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;999:18:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7737:237:2;;8:9:-1;5:2;;;30:1;27;20:12;5:2;7737:237:2;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;7737:237:2;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;3749:149:0;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3749:149:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;3749:149:0;;:::i;:::-;;;;;;;;;;;;;;;;1336:1988:2;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1336:1988:2;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;1336:1988:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;1336:1988:2;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;1336:1988:2;;;;;;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;1336:1988:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;1336:1988:2;;;;;;;;-1:-1:-1;1336:1988:2;;-1:-1:-1;;;;;5:28;;2:2;;;46:1;43;36:12;2:2;1336:1988:2;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;1336:1988:2;;;;;;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;1336:1988:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;1336:1988:2;;-1:-1:-1;;1336:1988:2;;;;;-1:-1:-1;;;1336:1988:2;;;;;;;;;:::i;:::-;;2484:33:3;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2484:33:3;;;:::i;12116:231:2:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;12116:231:2;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;12116:231:2;-1:-1:-1;;;;;12116:231:2;;:::i;3395:23:3:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3395:23:3;;;:::i;14975:261:2:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;14975:261:2;;;:::i;3528:464:1:-;;;:::i;7065:202:2:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;7065:202:2;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;7065:202:2;;;;;;;;;;;;;;;;;:::i;4186:189:0:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4186:189:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;4186:189:0;;;;;;;;:::i;1195:21:3:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1195:21:3;;;:::i;:::-;;;;;;;;;;;;;;;;;;;71543:272:2;;8:9:-1;5:2;;;30:1;27;20:12;5:2;71543:272:2;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;71543:272:2;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;71543:272:2;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;71543:272:2;;;;;;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;71543:272:2;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;71543:272:2;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;71543:272:2;;;;;;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;-1:-1;71543:272:2;;-1:-1:-1;71543:272:2;-1:-1:-1;71543:272:2;:::i;9005:354::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;9005:354:2;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;9005:354:2;-1:-1:-1;;;;;9005:354:2;;:::i;16934:88::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;16934:88:2;;;:::i;2893:24:3:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2893:24:3;;;:::i;3007:336:1:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3007:336:1;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;3007:336:1;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;3007:336:1;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;3007:336:1;;;;;;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;-1:-1;3007:336:1;;-1:-1:-1;3007:336:1;-1:-1:-1;3007:336:1;:::i;522:504::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;522:504:1;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;522:504:1;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;522:504:1;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;522:504:1;;;;;;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;-1:-1;522:504:1;;-1:-1:-1;522:504:1;-1:-1:-1;522:504:1;:::i;10092:29:3:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;10092:29:3;;;:::i;:::-;;;;-1:-1:-1;;;;;10092:29:3;;;;;;;;;;;;;;1782:39;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1782:39:3;;;:::i;60441:578:2:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;60441:578:2;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;60441:578:2;;:::i;3156:26:3:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3156:26:3;;;:::i;4368:56::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4368:56:3;;;:::i;2607:30::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2607:30:3;;;:::i;9125:25::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;9125:25:3;;;:::i;8637:112:2:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;8637:112:2;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;8637:112:2;-1:-1:-1;;;;;8637:112:2;;:::i;11626:199::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;11626:199:2;;;:::i;8650:217:0:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;8650:217:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;8650:217:0;-1:-1:-1;;;;;8650:217:0;;:::i;3027:133::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3027:133:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;3027:133:0;;:::i;2234:28:3:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2234:28:3;;;:::i;3023:25::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3023:25:3;;;:::i;55360:579:2:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;55360:579:2;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;55360:579:2;;:::i;1095:20:3:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1095:20:3;;;:::i;12556:287:2:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;12556:287:2;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;12556:287:2;-1:-1:-1;;;;;12556:287:2;;:::i;63213:595::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;63213:595:2;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;63213:595:2;;:::i;2074:133:0:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2074:133:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2074:133:0;;:::i;827:857::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;827:857:0;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;827:857:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;827:857:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;827:857: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;827:857:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;827:857:0;;;;;;;;-1:-1:-1;827:857:0;;-1:-1:-1;;;;;5:28;;2:2;;;46:1;43;36:12;2:2;827:857:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;827:857: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;827:857:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;827:857:0;;-1:-1:-1;;827:857:0;;;-1:-1:-1;;;827:857:0;;;;:::i;17270:1092:2:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;17270:1092:2;;;:::i;65791:600::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;65791:600:2;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;65791:600:2;;:::i;6566:192::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;6566:192:2;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;6566:192:2;;;;;;;;:::i;2758:23:3:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2758:23:3;;;:::i;4727:37::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4727:37:3;;;:::i;11216:264:2:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;11216:264:2;;;:::i;49923:200::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;49923:200:2;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;49923:200:2;;;;;;;;;;;;;;;;;:::i;14520:205::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;14520:205:2;;;:::i;9705:703::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;9705:703:2;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;9705:703:2;-1:-1:-1;;;;;9705:703:2;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3428:113:0;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3428:113:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;3428:113:0;;:::i;2558:::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2558:113:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2558:113:0;;:::i;2360:27:3:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2360:27:3;;;:::i;3289:25::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3289:25:3;;;:::i;8304:143:2:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;8304:143:2;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;8304:143:2;;;;;;;;;;:::i;68561:633::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;68561:633:2;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;68561:633:2;-1:-1:-1;;;;;68561:633:2;;:::i;1923:42:3:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1923:42:3;;;:::i;4857:237:0:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4857:237:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;4857:237:0;;;;;;;;;;;;;;;;;:::i;10836:204:2:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;10836:204:2;;;:::i;58280:614::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;58280:614:2;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;58280:614:2;;:::i;4580:36:3:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4580:36:3;;;:::i;999:18::-;;;;;;;;;;;;;;-1:-1:-1;;999:18:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;7737:237:2:-;7836:10;7805:4;7857:23;;;:18;:23;;;;;;;;-1:-1:-1;;;;;7857:32:2;;;;;;;;;;;:41;;;7914:30;;;;;;;7805:4;;7836:10;7857:32;;7836:10;;7914:30;;;;;;;;;;;7962:4;7955:11;;;7737:237;;;;;:::o;3749:149:0:-;3806:4;3824:8;3837:32;3857:11;3837:19;:32::i;:::-;-1:-1:-1;3823:46:0;-1:-1:-1;;3749:149:0;;;;:::o;1336:1988:2:-;1785:10;338:42:3;1785:32:2;1777:86;;;;-1:-1:-1;;;1777:86:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1882:18;;:23;:43;;;;-1:-1:-1;1909:11:2;;:16;1882:43;1874:91;;;;-1:-1:-1;;;1874:91:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2016:27;:58;;;2093:31;2085:92;;;;-1:-1:-1;;;2085:92:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2222:8;2233:29;2249:12;2233:15;:29::i;:::-;2222:40;-1:-1:-1;2281:27:2;;2273:66;;;;;-1:-1:-1;;;2273:66:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;2479:16;:14;:16::i;:::-;2458:18;:37;420:4:11;2506:11:2;:25;2631:46;2658:18;2631:26;:46::i;:::-;2625:52;-1:-1:-1;2696:27:2;;2688:74;;;;-1:-1:-1;;;2688:74:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2775:12;;;;:4;;:12;;;;;:::i;:::-;-1:-1:-1;2798:16:2;;;;:6;;:16;;;;;:::i;:::-;-1:-1:-1;2825:8:2;:20;;-1:-1:-1;;2825:20:2;;;;;;;2895:46;2918:22;2895;:46::i;:::-;2889:52;-1:-1:-1;2960:27:2;;2952:69;;;;;-1:-1:-1;;;2952:69:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;3066:36;3084:17;3066;:36::i;:::-;3060:42;-1:-1:-1;3121:27:2;;3113:64;;;;;-1:-1:-1;;;3113:64:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3312:4:2;3298:18;;-1:-1:-1;;;;3298:18:2;-1:-1:-1;;;3298:18:2;;;-1:-1:-1;;;;;;;1336:1988:2:o;2484:33:3:-;;;;:::o;12116:231:2:-;12201:4;12185:5;73088:30;73108:9;73088:19;:30::i;:::-;12251:14;12226:16;:14;:16::i;:::-;:40;12218:75;;;;;-1:-1:-1;;;12218:75:2;;;;;;;;;;;;-1:-1:-1;;;12218:75:2;;;;;;;;;;;;;;;12311:28;12331:7;12311:19;:28::i;:::-;12304:35;;73129:1;73141:29;73160:9;73141:18;:29::i;:::-;12116:231;;;;:::o;3395:23:3:-;;;;:::o;14975:261:2:-;15026:4;15044:13;15059:11;15074:28;:26;:28::i;:::-;15043:59;;-1:-1:-1;15043:59:2;-1:-1:-1;15128:18:2;15121:3;:25;;;;;;;;;15113:91;;;;-1:-1:-1;;;15113:91:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15222:6;-1:-1:-1;;14975:261:2;;:::o;3528:464:1:-;3580:10;3602:4;3580:27;;;;:94;;;3640:11;;;;;;;;;-1:-1:-1;;;;;3640:11:1;-1:-1:-1;;;;;3611:61:1;;:63;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3611:63:1;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;3611:63:1;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;3611:63:1;3580:94;3576:409;;;3692:28;3812:14;;3781:46;;;-1:-1:-1;;;3781:46:1;;-1:-1:-1;;;;;3812:14:1;;;3781:46;;;;;3692:28;;3740:37;;338:42:3;;3781:30:1;;:46;;;;;3692:28;;3781:46;;;;;;;338:42:3;3781:46:1;;;5:2:-1;;;;30:1;27;20:12;5:2;3781:46:1;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;3781:46:1;;;;;;39:16:-1;36:1;17:17;2:54;101:4;3781:46:1;80:15:-1;;;-1:-1;;76:31;65:43;;120:4;113:20;13:2;5:11;;2:2;;;29:1;26;19:12;2:2;3781:46:1;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;11:20;;8:2;;;44:1;41;34:12;8:2;62:21;;;;123:4;114:14;;138:31;;;135:2;;;182:1;179;172:12;135:2;213:10;;-1:-1;;;244:29;;285:43;;;282:58;-1:-1;233:115;230:2;;;361:1;358;351:12;230:2;372:25;;-1:-1;3781:46:1;;420:4:-1;411:14;;;;3781:46:1;;;;;411:14:-1;3781:46:1;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;3781:46:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3781:46:1;;-1:-1:-1;;3846:14:1;;3691:136;;-1:-1:-1;3691:136:1;;-1:-1:-1;3691:136:1;-1:-1:-1;;;;;;;3846:38:1;;;:14;;:38;3842:131;;3886:87;3913:20;3935:11;3948:24;3886:26;:87::i;:::-;3576:409;;;;3528:464::o;7065:202:2:-;7167:4;7151:5;73088:30;73108:9;73088:19;:30::i;:::-;7244:14;7191:44;7206:10;7218:3;7223;7228:6;7191:14;:44::i;:::-;:68;7184:75;;73141:29;73160:9;73141:18;:29::i;:::-;7065:202;;;;;;:::o;4186:189:0:-;4267:4;4285:8;4298:48;4324:8;4334:11;4298:25;:48::i;:::-;-1:-1:-1;4284:62:0;4186:189;-1:-1:-1;;;;4186:189:0:o;1195:21:3:-;;;;;;:::o;71543:272:2:-;71680:16;:14;:16::i;:::-;71672:45;;;;;-1:-1:-1;;;71672:45:2;;;;;;;;;;;;-1:-1:-1;;;71672:45:2;;;;;;;;;;;;;;;71768:12;:4;71775:5;;71768:12;:::i;:::-;-1:-1:-1;71791:16:2;:6;71800:7;;71791:16;:::i;:::-;;71543:272;;;;:::o;9005:354::-;9067:4;9084:23;;:::i;:::-;9110:38;;;;;;;;9125:21;:19;:21::i;:::-;9110:38;;-1:-1:-1;;;;;9224:20:2;;9160:14;9224:20;;;:13;:20;;;;;;9084:64;;-1:-1:-1;9160:14:2;;;9192:53;;9084:64;;9192:17;:53::i;:::-;9159:86;;-1:-1:-1;9159:86:2;-1:-1:-1;9272:18:2;9264:4;:26;;;;;;;;;9256:70;;;;;-1:-1:-1;;;9256:70:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;9344:7;9005:354;-1:-1:-1;;;;9005:354:2:o;16934:88::-;16976:4;17000:14;:12;:14::i;:::-;16993:21;;16934:88;:::o;2893:24:3:-;;;;:::o;3007:336:1:-;3182:16;:14;:16::i;:::-;3174:35;;;;;-1:-1:-1;;;3174:35:1;;;;;;;;;;;;-1:-1:-1;;;3174:35:1;;;;;;;;;;;;;;;3253:82;3280:15;3297:11;3310:24;;3253:82;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;3253:26:1;;-1:-1:-1;;;3253:82:1:i;:::-;3007:336;;;;:::o;522:504::-;798:10;820:4;798:27;;:47;;;829:16;:14;:16::i;:::-;790:65;;;;;-1:-1:-1;;;790:65:1;;;;;;;;;;;;-1:-1:-1;;;790:65:1;;;;;;;;;;;;;;;-1:-1:-1;;924:7:1;:20;;-1:-1:-1;;;;;;990:28:1;;;522:504::o;10092:29:3:-;;;-1:-1:-1;;;;;10092:29:3;;:::o;1782:39::-;;;-1:-1:-1;;;;;1782:39:3;;:::o;60441:578:2:-;60523:4;60507:5;73088:30;73108:9;73088:19;:30::i;:::-;60540:10;60553:16;:14;:16::i;:::-;60540:29;-1:-1:-1;60584:29:2;;60580:277;;60775:70;60786:5;60780:12;;;;;;;;60794:50;60775:4;:70::i;:::-;60768:77;;;;;60580:277;60977:34;60998:12;60977:20;:34::i;:::-;60970:41;;;73141:29;73160:9;73141:18;:29::i;3156:26:3:-;;;;:::o;4368:56::-;4418:6;4368:56;:::o;2607:30::-;;;;:::o;9125:25::-;;;-1:-1:-1;;;;;9125:25:3;;:::o;8637:112:2:-;-1:-1:-1;;;;;8721:20:2;8694:7;8721:20;;;:13;:20;;;;;;;8637:112::o;11626:199::-;11695:4;11679:5;73088:30;73108:9;73088:19;:30::i;:::-;11745:14;11720:16;:14;:16::i;:::-;:40;11712:75;;;;;-1:-1:-1;;;11712:75:2;;;;;;;;;;;;-1:-1:-1;;;11712:75:2;;;;;;;;;;;;;;;11805:12;;11798:19;;73141:29;73160:9;73141:18;:29::i;:::-;11626:199;;:::o;8650:217:0:-;8734:16;:14;:16::i;:::-;8726:74;;;;-1:-1:-1;;;8726:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8820:10;;8811:48;;;-1:-1:-1;;;8811:48:0;;-1:-1:-1;;;;;8811:48:0;;;;;;;;;8820:10;;;;;8811:29;;:48;;;;;8820:10;;8811:48;;;;;;;8820:10;;8811:48;;;5:2:-1;;;;30:1;27;20:12;5:2;8811:48:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;3027:133:0;3090:4;3114:38;3139:12;3114:24;:38::i;2234:28:3:-;;;;:::o;3023:25::-;;;;:::o;55360:579:2:-;55446:4;55430:5;73088:30;73108:9;73088:19;:30::i;:::-;55463:10;55476:16;:14;:16::i;:::-;55463:29;-1:-1:-1;55507:29:2;;55503:276;;55699:68;55710:5;55704:12;;;;;;;;55718:48;55699:4;:68::i;55503:276::-;55893:38;55911:19;55893:17;:38::i;1095:20:3:-;;;;;;;;;;;;;;;-1:-1:-1;;1095:20:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12556:287:2;12623:4;12641:13;12656:11;12671:36;12699:7;12671:27;:36::i;:::-;12640:67;;-1:-1:-1;12640:67:2;-1:-1:-1;12733:18:2;12726:3;:25;;;;;;;;;12718:93;;;;-1:-1:-1;;;12718:93:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12829:6;12556:287;-1:-1:-1;;;12556:287:2:o;63213:595::-;63299:4;63283:5;73088:30;73108:9;73088:19;:30::i;:::-;63316:10;63329:16;:14;:16::i;:::-;63316:29;-1:-1:-1;63360:29:2;;63356:284;;63555:73;63566:5;63560:12;;;;;;;;63574:53;63555:4;:73::i;63356:284::-;63762:38;63785:14;63762:22;:38::i;2074:133:0:-;2123:4;2141:8;2154:24;2167:10;2154:12;:24::i;827:857::-;1268:36;1307:6;1268:45;;1324:15;1357:11;-1:-1:-1;;;;;1342:36:0;;:38;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1342:38:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1342:38:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1342:38:0;;-1:-1:-1;1391:150:0;1408:12;1422:18;1442:28;1472:5;1479:7;1342:38;1499:22;1523:17;1391:16;:150::i;:::-;1601:10;:24;;-1:-1:-1;;;;;;1601:24:0;-1:-1:-1;;;;;1601:24:0;;;;;;;;;;;1636:40;;;-1:-1:-1;;;1636:40:0;;;;1651:10;;;;;1636:38;;:40;;;;;;;;;;;;;;;1651:10;1636:40;;;5:2:-1;;;;30:1;27;20:12;5:2;1636:40:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1636:40:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;;;;;;827:857:0:o;17270:1092:2:-;17312:4;17378:23;17404:16;:14;:16::i;:::-;17378:42;;17512:18;17490;;:40;17486:100;;;17559:14;17547:27;;;;;17486:100;17653:14;17670;:12;:14::i;:::-;17653:31;;17755:23;17781:17;;;;;;;;;-1:-1:-1;;;;;17781:17:2;-1:-1:-1;;;;;17781:31:2;;17813:9;17824:12;;17838:56;17843:13;;17858:35;17863:14;;17879:13;;17858:4;:35::i;:::-;17838:4;:56::i;:::-;17781:114;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;17781:114:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;17781:114:2;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;17781:114:2;;-1:-1:-1;1368:9:3;17914:43:2;;;17906:84;;;;;-1:-1:-1;;;17906:84:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;18081:17;18100:15;18119:47;18127:18;18147;;18119:7;:47::i;:::-;18080:86;;-1:-1:-1;18080:86:2;-1:-1:-1;18196:18:2;18185:7;:29;;;;;;;;;18177:73;;;;;-1:-1:-1;;;18177:73:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;18270:84;18292:18;18312:9;18323:18;18343:10;18270:21;:84::i;:::-;18263:91;;;;;;;17270:1092;:::o;65791:600::-;65878:4;65862:5;73088:30;73108:9;73088:19;:30::i;:::-;65895:10;65908:16;:14;:16::i;:::-;65895:29;-1:-1:-1;65939:29:2;;65935:286;;66135:74;66146:5;66140:12;;;;;;;;66154:54;66135:4;:74::i;65935:286::-;66344:39;66368:14;66344:23;:39::i;6566:192::-;6651:4;6635:5;73088:30;73108:9;73088:19;:30::i;:::-;6735:14;6675:51;6690:10;6702;6714:3;6719:6;6675:14;:51::i;:::-;:75;6668:82;;73141:29;73160:9;73141:18;:29::i;:::-;6566:192;;;;;:::o;2758:23:3:-;;;;:::o;4727:37::-;4759:5;4727:37;:::o;11216:264:2:-;11293:17;;11269:4;;-1:-1:-1;;;;;11293:17:2;:31;11325:14;:12;:14::i;:::-;11341:12;;11355:56;11360:13;;11375:35;11380:14;;11396:13;;11375:4;:35::i;11355:56::-;11455:16;;11437:15;;11413:21;;:39;:58;11293:179;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;11293:179:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;11293:179:2;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;11293:179:2;;-1:-1:-1;11216:264:2;:::o;49923:200::-;50031:4;50016;73088:30;73108:9;73088:19;:30::i;:::-;50055:60;50069:10;50081;50093:8;50103:11;50055:13;:60::i;:::-;50048:67;;73141:29;73160:9;73141:18;:29::i;14520:205::-;14587:4;14571:5;73088:30;73108:9;73088:19;:30::i;:::-;14637:14;14612:16;:14;:16::i;:::-;:40;14604:75;;;;;-1:-1:-1;;;14604:75:2;;;;;;;;;;;;-1:-1:-1;;;14604:75:2;;;;;;;;;;;;;;;14697:20;:18;:20::i;:::-;14690:27;;73141:29;73160:9;73141:18;:29::i;9705:703::-;-1:-1:-1;;;;;9829:22:2;;9773:4;9829:22;;;:13;:22;;;;;;9773:4;;;;;;;;;9980:36;9843:7;9980:27;:36::i;:::-;9956:60;-1:-1:-1;9956:60:2;-1:-1:-1;10039:18:2;10031:4;:26;;;;;;;;;10027:99;;10087:16;10082:22;10074:40;-1:-1:-1;10106:1:2;;-1:-1:-1;10106:1:2;;-1:-1:-1;10106:1:2;;-1:-1:-1;10074:40:2;;-1:-1:-1;;;;10074:40:2;10027:99;10169:28;:26;:28::i;:::-;10138:59;-1:-1:-1;10138:59:2;-1:-1:-1;10220:18:2;10212:4;:26;;;;;;;;;10208:99;;10268:16;10263:22;;10208:99;-1:-1:-1;10332:14:2;;-1:-1:-1;10349:13:2;;-1:-1:-1;10364:13:2;-1:-1:-1;10364:13:2;-1:-1:-1;9705:703:2;;;;;;:::o;3428:113:0:-;3481:4;3505:28;3520:12;3505:14;:28::i;2558:113::-;2611:4;2635:28;2650:12;2635:14;:28::i;2360:27:3:-;;;;:::o;3289:25::-;;;;:::o;8304:143:2:-;-1:-1:-1;;;;;8405:25:2;;;8378:7;8405:25;;;:18;:25;;;;;;;;:34;;;;;;;;;;;;;8304:143::o;68561:633::-;68648:4;68665:10;68678:16;:14;:16::i;:::-;68665:29;-1:-1:-1;68709:29:2;;68705:298;;68913:78;68924:5;68918:12;;;;;;;;68932:58;68913:4;:78::i;:::-;68906:85;;;;;68705:298;69138:48;69165:20;69138:26;:48::i;1923:42:3:-;;;-1:-1:-1;;;;;1923:42:3;;:::o;4857:237:0:-;4970:4;4988:8;5001:64;5025:8;5035:11;5048:16;5001:23;:64::i;:::-;-1:-1:-1;4987:78:0;4857:237;-1:-1:-1;;;;;4857:237:0:o;10836:204:2:-;10913:17;;10889:4;;-1:-1:-1;;;;;10913:17:2;:31;10945:14;:12;:14::i;:::-;10961:12;;10975:56;10980:13;;10995:35;11000:14;;11016:13;;10995:4;:35::i;10975:56::-;10913:119;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;58280:614:2;58376:4;58360:5;73088:30;73108:9;73088:19;:30::i;:::-;58393:10;58406:16;:14;:16::i;:::-;58393:29;-1:-1:-1;58437:29:2;;58433:286;;58634:73;58645:5;58639:12;;;;;;;;58653:53;58634:4;:73::i;58433:286::-;58838:48;58861:24;58838:22;:48::i;4580:36:3:-;4612:4;4580:36;:::o;37951:579:2:-;38036:4;38042;38020:5;73088:30;73108:9;73088:19;:30::i;:::-;38059:10;38072:16;:14;:16::i;:::-;38059:29;-1:-1:-1;38103:29:2;;38099:260;;38276:67;38287:5;38281:12;;;;;;;;38295:47;38276:4;:67::i;:::-;38268:79;-1:-1:-1;38345:1:2;;-1:-1:-1;38268:79:2;;-1:-1:-1;38268:79:2;38099:260;38469:53;38486:10;38498;38510:11;38469:16;:53::i;:::-;38462:60;;;;;73129:1;73141:29;73160:9;73141:18;:29::i;:::-;37951:579;;;;:::o;54505:567::-;54585:4;54602:35;54640:11;;;;;;;;;-1:-1:-1;;;;;54640:11:2;54602:49;;54737:14;-1:-1:-1;;;;;54737:28:2;;:30;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;54737:30:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;54737:30:2;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;54737:30:2;54729:71;;;;;-1:-1:-1;;;54729:71:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;54868:11;:28;;-1:-1:-1;;;;;;54868:28:2;-1:-1:-1;;;;;54868:28:2;;;;;;;;;54978:46;;;;;;;;;;;;;;;;;;;;;;;;;;;55049:14;55044:20;;10567:93;10640:12;10567:93;:::o;69524:1667::-;69618:4;69719:38;69809:16;:14;:16::i;:::-;69804:130;;69849:73;69854:18;69874:47;69849:4;:73::i;69804:130::-;70060:16;:14;:16::i;:::-;70038:18;;:38;70034:155;;70100:77;70105:22;70129:47;70100:4;:77::i;70034:155::-;70283:17;;;;;;;;;-1:-1:-1;;;;;70283:17:2;70260:40;;70403:20;-1:-1:-1;;;;;70403:40:2;;:42;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;70403:42:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;70403:42:2;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;70403:42:2;70395:83;;;;;-1:-1:-1;;;70395:83:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;70555:17;:40;;-1:-1:-1;;;;;;70555:40:2;-1:-1:-1;;;;;70555:40:2;;;;;;;;;70701:70;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;70849:43:2;;;70845:138;;70929:53;;;22:32:-1;6:49;;70929:53:2;;;;;49:4:-1;25:18;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;70894:89:2;;;;-1:-1:-1;;;;;70894:34:2;;;:89;;;;25:18:-1;36:153;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;70894:89:2;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;70894:89:2;;70845:138;71095:47;;;22:32:-1;6:49;;71095:47:2;;;;;49:4:-1;25:18;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;71060:83:2;;;;-1:-1:-1;;;;;71060:34:2;;;:83;;;;25:18:-1;36:153;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;71060:83:2;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;-1:-1;71168:14:2;;-1:-1:-1;71163:20:2;;-1:-1:-1;71163:20:2;59162:1026;59243:4;59299:16;:14;:16::i;:::-;59294:125;;59339:68;59344:18;59364:42;59339:4;:68::i;:::-;59332:75;;;;59294:125;59526:16;:14;:16::i;:::-;59504:18;;:38;59500:150;;59566:72;59571:22;59595:42;59566:4;:72::i;59500:150::-;1549:4:3;59722:71:2;59727:48;59732:24;59758:16;;59727:4;:48::i;:::-;59777:15;;59722:4;:71::i;:::-;:106;59718:212;;;59852:66;59857:15;59874:43;59852:4;:66::i;59718:212::-;59974:21;;;60006:48;;;;60072:68;;;;;;;;;;;;;;;;;;;;;;;;;60165:14;60160:20;;56197:1780;56268:4;56380:16;:14;:16::i;:::-;56358:18;;:38;56354:145;;56420:67;56425:22;56449:37;56420:4;:67::i;56354:145::-;-1:-1:-1;;56556:19:2;:31;56552:75;;;56611:16;;56589:38;;56552:75;56672:23;56698:28;:26;:28::i;:::-;56672:54;;1549:4:3;56863:74:2;56868:48;56873:21;;56896:19;56868:4;:48::i;:::-;56918:18;56863:4;:74::i;:::-;:109;56859:210;;;56996:61;57001:15;57018:38;56996:4;:61::i;56859:210::-;57138:19;57118:16;;:39;57114:482;;57217:16;:14;:16::i;:::-;57212:128;;57261:63;57266:18;57286:37;57261:4;:63::i;57212:128::-;57413:16;;;57444:38;;;;57531:53;;;;;;;;;;;;;;;;;;;;;;;;;57114:482;;57663:18;57644:15;;:37;57640:290;;57753:15;;;57783:36;;;;57868:50;;;;;;;;;;;;;;;;;;;;;;;;;57640:290;;57954:14;57949:20;;73498:196;73570:11;;-1:-1:-1;;;73570:11:2;;;;73562:34;;;;;-1:-1:-1;;;73562:34:2;;;;;;;;;;;;-1:-1:-1;;;73562:34:2;;;;;;;;;;;;;;;73612:9;73607:49;;73623:11;;;;;;;;;-1:-1:-1;;;;;73623:11:2;-1:-1:-1;;;;;73623:31:2;;:33;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;73623:33:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;73623:33:2;;;;73607:49;-1:-1:-1;73667:11:2;:19;;-1:-1:-1;;;;73667:19:2;;;73498:196::o;74013:182::-;74090:4;74076:18;;-1:-1:-1;;;;74076:18:2;-1:-1:-1;;;74076:18:2;;;74144:9;74139:48;;74155:11;;;;;;;;;-1:-1:-1;;;;;74155:11:2;-1:-1:-1;;;;;74155:30:2;;:32;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;74139:48:2;74013:182;:::o;15500:1264::-;15609:11;;15561:9;;;;15635:17;15631:1126;;-1:-1:-1;;15829:27:2;;15809:18;;-1:-1:-1;15801:56:2;;15631:1126;16074:14;16091;:12;:14::i;:::-;16074:31;;16120:33;16168:23;;:::i;:::-;16206:17;16282:97;16297:9;16308:12;;16322:56;16327:13;;16342:35;16347:14;;16363:13;;16342:4;:35::i;16322:56::-;16282:14;:97::i;:::-;16240:139;-1:-1:-1;16240:139:2;-1:-1:-1;16409:18:2;16398:7;:29;;;;;;;;;16394:89;;16456:7;-1:-1:-1;16465:1:2;;-1:-1:-1;16448:19:2;;-1:-1:-1;;;;16448:19:2;16394:89;16525:50;16532:28;16562:12;16525:6;:50::i;:::-;16499:76;-1:-1:-1;16499:76:2;-1:-1:-1;16605:18:2;16594:7;:29;;;;;;;;;16590:89;;16652:7;-1:-1:-1;16661:1:2;;-1:-1:-1;16644:19:2;;-1:-1:-1;;;;16644:19:2;16590:89;-1:-1:-1;16723:21:2;16703:18;;-1:-1:-1;16723:21:2;-1:-1:-1;16695:50:2;;-1:-1:-1;;;16695:50:2;15500:1264;;;:::o;1723:883:1:-;1931:14;;1897:79;;;-1:-1:-1;;;1897:79:1;;-1:-1:-1;;;;;1931:14:1;;;1897:79;;;;;;;;;;;;;;;;;;;338:42:3;;1897:33:1;;:79;;;;;;;;;;;;;;338:42:3;1897:79:1;;;5:2:-1;;;;30:1;27;20:12;5:2;1897:79:1;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1897:79:1;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1897:79:1;1889:97;;;;;-1:-1:-1;;;1889:97:1;;;;;;;;;;;;-1:-1:-1;;;1889:97:1;;;;;;;;;;;;;;;2076:11;2072:40;;;2089:23;:21;:23::i;:::-;2160:25;2188:14;;-1:-1:-1;;;;;2252:32:1;;;-1:-1:-1;;;;;;2252:32:1;;;;;2412:81;;;;;;;;;;;;;;;;;2188:14;;;;;2383:122;;2405:4;;2468:24;;2412:81;;;;;;;;;;;;;;;;;;;;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;2412:81:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2412:81:1;;;-1:-1:-1;;26:21;;;22:32;6:49;;2412:81:1;;;49:4:-1;25:18;;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;2383:122:1;;;;;;;;;;;-1:-1:-1;;;2383:122:1;;;;2412:81;;-1:-1:-1;2383:122:1;-1:-1:-1;2383:13:1;;-1:-1:-1;2383:122:1:i;:::-;-1:-1:-1;2583:14:1;;2546:52;;;-1:-1:-1;;;;;2546:52:1;;;;;2583:14;;;2546:52;;;;;;;;;;;;;;;;1723:883;;;;:::o;4018:2287:2:-;4192:11;;:60;;;-1:-1:-1;;;4192:60:2;;4228:4;4192:60;;;;-1:-1:-1;;;;;4192:60:2;;;;;;;;;;;;;;;;;;;;;;4116:4;;;;4192:11;;:27;;:60;;;;;;;;;;;;;;4116:4;4192:11;:60;;;5:2:-1;;;;30:1;27;20:12;5:2;4192:60:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;4192:60:2;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;4192:60:2;;-1:-1:-1;4267:12:2;;4263:144;;4303:92;4314:27;4343:42;4387:7;4303:10;:92::i;:::-;4296:99;;;;;4263:144;4473:3;-1:-1:-1;;;;;4466:10:2;:3;-1:-1:-1;;;;;4466:10:2;;4462:105;;;4500:55;4505:15;4522:32;4500:4;:55::i;4462:105::-;4644:22;-1:-1:-1;;;;;4685:14:2;;;;;;;4681:160;;;-1:-1:-1;;;4681:160:2;;;-1:-1:-1;;;;;;4797:23:2;;;;;;;:18;:23;;;;;;;;:32;;;;;;;;;;4681:160;4919:17;4947;4975;5003;5059:34;5067:17;5086:6;5059:7;:34::i;:::-;5033:60;;-1:-1:-1;5033:60:2;-1:-1:-1;5119:18:2;5108:7;:29;;;;;;;;;5104:125;;5161:56;5166:16;5184:32;5161:4;:56::i;:::-;5154:63;;;;;;;;;;5104:125;-1:-1:-1;;;;;5275:18:2;;;;;;:13;:18;;;;;;5267:35;;5295:6;5267:7;:35::i;:::-;5241:61;;-1:-1:-1;5241:61:2;-1:-1:-1;5328:18:2;5317:7;:29;;;;;;;;;5313:124;;5370:55;5375:16;5393:31;5370:4;:55::i;5313:124::-;-1:-1:-1;;;;;5483:18:2;;;;;;:13;:18;;;;;;5475:35;;5503:6;5475:7;:35::i;:::-;5449:61;;-1:-1:-1;5449:61:2;-1:-1:-1;5536:18:2;5525:7;:29;;;;;;;;;5521:122;;5578:53;5583:16;5601:29;5578:4;:53::i;5521:122::-;-1:-1:-1;;;;;5776:18:2;;;;;;;:13;:18;;;;;;:33;;;5820:18;;;;;;:33;;;-1:-1:-1;;5926:29:2;;5922:109;;-1:-1:-1;;;;;5972:23:2;;;;;;;:18;:23;;;;;;;;:32;;;;;;;;;:47;;;5922:109;6102:3;-1:-1:-1;;;;;6088:26:2;6097:3;-1:-1:-1;;;;;6088:26:2;-1:-1:-1;;;;;;;;;;;6107:6:2;6088:26;;;;;;;;;;;;;;;;;;-1:-1:-1;6282:14:2;;4018:2287;-1:-1:-1;;;;;;;;;;4018:2287:2:o;38863:601::-;38972:4;38978;38956:5;73088:30;73108:9;73088:19;:30::i;:::-;38995:10;39008:16;:14;:16::i;:::-;38995:29;-1:-1:-1;39039:29:2;;39035:260;;39212:67;39223:5;39217:12;;;;;;;;39231:47;39212:4;:67::i;:::-;39204:79;-1:-1:-1;39281:1:2;;-1:-1:-1;39204:79:2;;-1:-1:-1;39204:79:2;39035:260;39405:51;39422:10;39434:8;39444:11;39405:16;:51::i;:::-;39398:58;;;;;73129:1;73141:29;73160:9;73141:18;:29::i;:::-;38863:601;;;;;;:::o;548:338::-;685:11;;731:26;;;-1:-1:-1;;;731:26:2;;;;597:4;;-1:-1:-1;;;;;685:11:2;;;;731:24;;:26;;;;;;;;;;;;;;;685:11;731:26;;;5:2:-1;;;;30:1;27;20:12;5:2;731:26:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;731:26:2;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;731:26:2;-1:-1:-1;;;;;717:40:2;:10;:40;:79;;;;;761:18;-1:-1:-1;;;;;761:33:2;;:35;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;761:35:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;761:35:2;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;761:35:2;717:79;716:162;;;-1:-1:-1;802:10:2;338:42:3;802:32:2;:75;;;;;838:18;-1:-1:-1;;;;;838:37:2;;:39;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;838:39:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;838:39:2;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;838:39:2;709:169;;;548:338;:::o;2498:313:10:-;2575:9;2586:4;2604:13;2619:18;;:::i;:::-;2641:20;2651:1;2654:6;2641:9;:20::i;:::-;2603:58;;-1:-1:-1;2603:58:10;-1:-1:-1;2683:18:10;2676:3;:25;;;;;;;;;2672:73;;-1:-1:-1;2726:3:10;-1:-1:-1;2731:1:10;;-1:-1:-1;2718:15:10;;2672:73;2765:18;2785:17;2794:7;2785:8;:17::i;:::-;2757:46;;;;;;2498:313;;;;;;:::o;5362:169:0:-;5464:10;;5493:30;;;-1:-1:-1;;;5493:30:0;;5517:4;5493:30;;;;;;5409:4;;-1:-1:-1;;;;;5464:10:0;;;;5493:15;;:30;;;;;;;;;;;;;;;5464:10;5493:30;;;5:2:-1;;;;30:1;27;20:12;8793:153:9;8854:4;8876:33;8889:3;8884:9;;;;;;;;8900:4;8895:10;;;;;;;;8876:33;;;;;;;;;;;;;8907:1;8876:33;;;;;;;;;;;;;8934:3;8929:9;;;;;;;61296:1667:2;61363:4;61421:21;61494:16;:14;:16::i;:::-;61489:122;;61534:65;61539:18;61559:39;61534:4;:65::i;61489:122::-;61737:16;:14;:16::i;:::-;61715:18;;:38;61711:147;;61777:69;61782:22;61806:39;61777:4;:69::i;61711:147::-;61964:12;61947:14;:12;:14::i;:::-;:29;61943:152;;;62000:83;62005:29;62036:46;62000:4;:83::i;61943:152::-;62189:13;;62174:12;:28;62170:129;;;62226:61;62231:15;62248:38;62226:4;:61::i;62170:129::-;62540:33;62545:13;;62560:12;62540:4;:33::i;:::-;62647:13;:32;;;62521:52;-1:-1:-1;62799:39:2;62813:10;62825:12;62799:13;:39::i;:::-;62856:59;;;62872:10;62856:59;;;;;;;;;;;;;;;;;;;;;;;;;62940:14;62935:20;;27035:544;27126:4;27110:5;73088:30;73108:9;73088:19;:30::i;:::-;27143:10;27156:16;:14;:16::i;:::-;27143:29;-1:-1:-1;27187:29:2;;27183:249;;27359:61;27370:5;27364:12;;;;;;;;27378:41;27359:4;:61::i;27183:249::-;27531:40;27543:10;27555:1;27558:12;27531:11;:40::i;13097:1268::-;-1:-1:-1;;;;;13446:23:2;;13174:9;13446:23;;;:14;:23;;;;;13675:24;;13174:9;;;;;;;;13671:92;;-1:-1:-1;13729:18:2;;-1:-1:-1;13729:18:2;;-1:-1:-1;13721:30:2;;-1:-1:-1;;;13721:30:2;13671:92;13990:46;13998:14;:24;;;14024:11;;13990:7;:46::i;:::-;13957:79;;-1:-1:-1;13957:79:2;-1:-1:-1;14062:18:2;14051:7;:29;;;;;;;;;14047:81;;-1:-1:-1;14105:7:2;;-1:-1:-1;14114:1:2;;-1:-1:-1;14097:19:2;;-1:-1:-1;;14097:19:2;14047:81;14160:58;14168:19;14189:14;:28;;;14160:7;:58::i;:::-;14140:78;;-1:-1:-1;14140:78:2;-1:-1:-1;14244:18:2;14233:7;:29;;;;;;;;;14229:81;;-1:-1:-1;14287:7:2;;-1:-1:-1;14296:1:2;;-1:-1:-1;14279:19:2;;-1:-1:-1;;14279:19:2;14229:81;-1:-1:-1;14330:18:2;;-1:-1:-1;14350:6:2;-1:-1:-1;;;13097:1268:2;;;;:::o;64082:1457::-;64153:4;64211:21;64359:16;:14;:16::i;:::-;64337:18;;:38;64333:150;;64399:72;64404:22;64428:42;64399:4;:72::i;64333:150::-;64589:14;64572;:12;:14::i;:::-;:31;64568:157;;;64627:86;64632:29;64663:49;64627:4;:86::i;64568:157::-;64823:13;;64806:14;:30;64802:134;;;64860:64;64865:15;64882:41;64860:4;:64::i;64802:134::-;65179:35;65184:13;;65199:14;65179:4;:35::i;:::-;65290:13;:32;;;65160:54;-1:-1:-1;65442:49:2;338:42:3;65476:14:2;65442:13;:49::i;21221:554::-;21298:4;21304;21282:5;73088:30;73108:9;73088:19;:30::i;:::-;21321:10;21334:16;:14;:16::i;:::-;21321:29;-1:-1:-1;21365:29:2;;21361:252;;21538:59;21549:5;21543:12;;;;;;;;21557:39;21538:4;:59::i;21361:252::-;21734:33;21744:10;21756;21734:9;:33::i;3190:116:11:-;3243:4;3267:31;3272:1;3275;3267:31;;;;;;;;;;;;;-1:-1:-1;;;3267:31:11;;;:4;:31::i;1354:236:4:-;1410:9;1421:4;1447:1;1442;:6;1438:145;;-1:-1:-1;1473:18:4;;-1:-1:-1;1493:5:4;;;1465:34;;1438:145;-1:-1:-1;1540:27:4;;-1:-1:-1;1569:1:4;1532:39;;18467:2356:2;18598:4;19253:31;;:::i;:::-;19287:53;19292:35;;;;;;;;19307:18;19292:35;;;19329:10;19287:4;:53::i;:::-;19253:87;;19351:24;19378:54;19397:20;19419:12;;19378:18;:54::i;:::-;19351:81;;19443:20;19466:39;19471:19;19492:12;;19466:4;:39::i;:::-;19443:62;;19516:21;19540:101;19566:38;;;;;;;;19581:21;;19566:38;;;19606:19;19627:13;;19540:25;:101::i;:::-;19516:125;;19652:21;19676:95;19702:32;;;;;;;;19717:15;;19702:32;;;19736:19;19757:13;;19676:25;:95::i;:::-;19652:119;;19782:22;19807:97;19833:33;;;;;;;;19848:16;;19833:33;;;19868:19;19889:14;;19807:25;:97::i;:::-;19782:122;;19915:19;19937:73;19963:20;19985:11;;19998;;19937:25;:73::i;:::-;20214:18;:39;;;20264:11;:28;;;20303:12;:30;;;20344:13;:32;;;20387:13;:32;;;20430:14;:34;;;20529:79;;;;;;;;;;;;;;;;;;;;;;;;;;19915:95;;-1:-1:-1;20529:79:2;;;;;;;;;;20676:17;;20700:74;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;20700:74:2;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;20668:107:2;;;;-1:-1:-1;;;;;20676:17:2;;;;20700:74;;20668:107;;;;25:18:-1;20668:107:2;;25:18:-1;36:153;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;20668:107:2;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;-1:-1;20800:14:2;;-1:-1:-1;20795:20:2;;-1:-1:-1;20795:20:2;;20788:27;18467:2356;-1:-1:-1;;;;;;;;;;;;18467:2356:2:o;66667:1525::-;66739:4;66798:22;66947:16;:14;:16::i;:::-;66925:18;;:38;66921:151;;66987:73;66992:22;67016:43;66987:4;:73::i;66921:151::-;67178:14;67161;:12;:14::i;:::-;:31;67157:158;;;67216:87;67221:29;67252:50;67216:4;:87::i;67157:158::-;67415:14;;67398;:31;67394:136;;;67453:65;67458:15;67475:42;67453:4;:65::i;67394:136::-;67775:36;67780:14;;67796;67775:4;:36::i;:::-;67755:56;;67906:17;67889:14;:34;;;;68043:101;68104:11;;;;;;;;;-1:-1:-1;;;;;68104:11:2;-1:-1:-1;;;;;68073:50:2;;:52;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;68073:52:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;68073:52:2;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;68073:52:2;68129:14;68043:13;:101::i;51145:3097::-;51336:11;;:87;;;-1:-1:-1;;;51336:87:2;;51369:4;51336:87;;;;-1:-1:-1;;;;;51336:87:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51263:4;;;;51336:11;;:24;;:87;;;;;;;;;;;;;;51263:4;51336:11;:87;;;5:2:-1;;;;30:1;27;20:12;5:2;51336:87:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;51336:87:2;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;51336:87:2;;-1:-1:-1;51438:12:2;;51434:151;;51474:99;51485:27;51514:49;51565:7;51474:10;:99::i;51434:151::-;51658:10;-1:-1:-1;;;;;51646:22:2;:8;-1:-1:-1;;;;;51646:22:2;;51642:146;;;51692:84;51697:26;51725:50;51692:4;:84::i;51642:146::-;51800:34;;:::i;:::-;-1:-1:-1;;;;;52171:23:2;;;;;;:13;:23;;;;;;52163:45;;52196:11;52163:7;:45::i;:::-;52137:22;;;52122:86;;;52123:4;52122:86;;;;;;;;;;;;;;;;;;;-1:-1:-1;52239:18:2;;-1:-1:-1;52223:12:2;;:34;;;;;;;;;52219:176;;52281:102;52292:16;52310:52;52369:4;:12;;;52364:18;;;;;;;;52281:10;:102::i;:::-;52274:109;;;;;;52219:176;52434:62;52439:11;52452:43;;;;;;;;4418:6:3;52452:43:2;;;52434:4;:62::i;:::-;52407:24;;;:89;;;52536:43;;52541:11;;52536:4;:43::i;:::-;52507:26;;;:72;52636:28;:26;:28::i;:::-;52607:25;;;52592:72;;;52593:4;52592:72;;;;;;;;;;;;;;;;;;;-1:-1:-1;52699:18:2;;-1:-1:-1;52683:12:2;;:34;;;;;;;;;52675:71;;;;;-1:-1:-1;;;52675:71:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;52786:88;52805:42;;;;;;;;52820:4;:25;;;52805:42;;;52849:4;:24;;;52786:18;:88::i;:::-;52759:24;;;:115;;;52916:13;;52911:45;;:4;:45::i;:::-;52887:21;;;:69;52994:11;;53007:24;;;;52989:43;;52994:11;52989:4;:43::i;:::-;52967:19;;;:65;-1:-1:-1;;;;;53096:25:2;;;;;;:13;:25;;;;;;53123:26;;;;53088:62;;53096:25;53088:7;:62::i;:::-;53060:24;;;53045:105;;;53046:4;53045:105;;;;;;;;;;;;;;;;;;;-1:-1:-1;53181:18:2;;-1:-1:-1;53165:12:2;;:34;;;;;;;;;53161:176;;53223:102;53234:16;53252:52;53311:4;:12;;;53306:18;;;;;;;53161:176;53556:21;;;;53540:13;:37;53602:19;;;;53588:11;:33;53658:22;;;;;-1:-1:-1;;;;;53632:23:2;;;-1:-1:-1;53632:23:2;;;:13;:23;;;;;;:48;;;;53719:24;;;;53691:25;;;;;;;;;;:52;;;;53829:26;;;;53798:58;;;;;;;53691:25;;53632:23;;-1:-1:-1;;;;;;;;;;;53798:58:2;;;;;;;;;;53906:24;;;;53872:59;;;;;;;53899:4;;-1:-1:-1;;;;;53872:59:2;;;-1:-1:-1;;;;;;;;;;;53872:59:2;;;;;;;;53976:24;;;;54002:21;;;;53947:77;;;53969:4;53947:77;;;;;;;;;;;;;;;;;;;;;;;;;;54219:14;54207:27;51145:3097;-1:-1:-1;;;;;;;51145:3097:2:o;33334:531::-;33415:4;33399:5;73088:30;73108:9;73088:19;:30::i;:::-;33432:10;33445:16;:14;:16::i;:::-;33432:29;-1:-1:-1;33476:29:2;;33472:249;;33648:61;33659:5;33653:12;;;;;;;;33667:41;33648:4;:61::i;33472:249::-;33820:37;33832:10;33844:12;33820:11;:37::i;26121:534::-;26202:4;26186:5;73088:30;73108:9;73088:19;:30::i;:::-;26219:10;26232:16;:14;:16::i;:::-;26219:29;-1:-1:-1;26263:29:2;;26259:249;;26435:61;26446:5;26440:12;;;;;;;26259:249;26607:40;26619:10;26631:12;26645:1;26607:11;:40::i;44136:1001::-;44277:4;44283;44261:5;73088:30;73108:9;73088:19;:30::i;:::-;44300:10;44313:16;:14;:16::i;:::-;44300:29;-1:-1:-1;44344:29:2;;44340:269;;44522:71;44533:5;44527:12;;;;;;;;44541:51;44522:4;:71::i;:::-;44514:83;-1:-1:-1;44595:1:2;;-1:-1:-1;44514:83:2;;-1:-1:-1;44514:83:2;44340:269;44629:16;-1:-1:-1;;;;;44629:31:2;;:33;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;44629:33:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;44629:33:2;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;44629:33:2;;-1:-1:-1;44677:29:2;;44673:273;;44855:75;44866:5;44860:12;;;;;;;;44874:55;44855:4;:75::i;44673:273::-;45056:73;45077:10;45089:8;45099:11;45112:16;45056:20;:73::i;:::-;45049:80;;;;;73129:1;73141:29;73160:9;73141:18;:29::i;:::-;44136:1001;;;;;;;:::o;40169:3440::-;40349:11;;:75;;;-1:-1:-1;;;40349:75:2;;40388:4;40349:75;;;;-1:-1:-1;;;;;40349:75:2;;;;;;;;;;;;;;;;;;;;;;40264:4;;;;;;40349:11;;;:30;;:75;;;;;;;;;;;;;;;40264:4;40349:11;:75;;;5:2:-1;;;;30:1;27;20:12;5:2;40349:75:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;40349:75:2;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;40349:75:2;;-1:-1:-1;40439:12:2;;40435:153;;40476:96;40487:27;40516:46;40564:7;40476:10;:96::i;:::-;40468:108;-1:-1:-1;40574:1:2;;-1:-1:-1;40468:108:2;;-1:-1:-1;40468:108:2;40435:153;40698:16;:14;:16::i;:::-;40676:18;;:38;40672:153;;40739:70;40744:22;40768:40;40739:4;:70::i;40672:153::-;40837:32;;:::i;:::-;-1:-1:-1;;;;;40983:24:2;;;;;;:14;:24;;;;;:38;;;40962:18;;;:59;41152:37;40998:8;41152:27;:37::i;:::-;41129:19;;;41114:75;;;41115:12;;;41114:75;;;;;;;;;;;;;;;;;;;-1:-1:-1;41220:18:2;;-1:-1:-1;41204:4:2;:12;;;:34;;;;;;;;;41200:192;;41263:113;41274:16;41292:63;41362:4;:12;;;41357:18;;;;;;;41263:113;41255:125;-1:-1:-1;41378:1:2;;-1:-1:-1;41255:125:2;;-1:-1:-1;;41255:125:2;41200:192;-1:-1:-1;;41474:11:2;:23;41470:157;;;41533:19;;;;41514:16;;;:38;41470:157;;;41585:16;;;:30;;;41470:157;42225:37;42238:5;42245:4;:16;;;42225:12;:37::i;:::-;42200:22;;;:62;;;42572:19;;;;42564:52;;:7;:52::i;:::-;42538:22;;;42523:93;;;42524:12;;;42523:93;;;;;;;;;;;;;;;;;;;-1:-1:-1;42651:18:2;;-1:-1:-1;42635:4:2;:12;;;:34;;;;;;;;;42627:105;;;;-1:-1:-1;;;42627:105:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42784:45;42792:12;;42806:4;:22;;;42784:7;:45::i;:::-;42760:20;;;42745:84;;;42746:12;;;42745:84;;;;;;;;;;;;;;;;;;;-1:-1:-1;42864:18:2;;-1:-1:-1;42848:4:2;:12;;;:34;;;;;;;;;42840:96;;;;-1:-1:-1;;;42840:96:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43056:22;;;;;;-1:-1:-1;;;;;43019:24:2;;;;;;;:14;:24;;;;;;;;;:59;;;43130:11;;43089:38;;;;:52;;;;43167:20;;;;43152:12;:35;;;43277:22;;;;43301;;43248:98;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43578:22;;;43561:14;;-1:-1:-1;43578:22:2;-1:-1:-1;;40169:3440:2;;;;;;;:::o;3435:120::-;3496:4;338:42:3;-1:-1:-1;;;;;3520:25:2;;:27;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;2002:271:4;2073:9;2084:4;2102:14;2118:8;2130:13;2138:1;2141;2130:7;:13::i;:::-;2101:42;;-1:-1:-1;2101:42:4;-1:-1:-1;2168:18:4;2160:4;:26;;;;;;;;;2156:75;;-1:-1:-1;2211:4:4;-1:-1:-1;2217:1:4;;-1:-1:-1;2203:16:4;;2156:75;2250:15;2258:3;2263:1;2250:7;:15::i;:::-;2243:22;;;;;;2002:271;;;;;;:::o;791:515:10:-;852:9;863:10;;:::i;:::-;887:14;903:20;927:22;935:3;420:4:11;927:7:10;:22::i;:::-;886:63;;-1:-1:-1;886:63:10;-1:-1:-1;972:18:10;964:4;:26;;;;;;;;;960:92;;-1:-1:-1;1021:18:10;;;;;;;;;-1:-1:-1;1021:18:10;;1015:4;;-1:-1:-1;1021:18:10;-1:-1:-1;1007:33:10;;960:92;1065:14;1081:13;1098:31;1106:15;1123:5;1098:7;:31::i;:::-;1064:65;;-1:-1:-1;1064:65:10;-1:-1:-1;1152:18:10;1144:4;:26;;;;;;;;;1140:92;;-1:-1:-1;1201:18:10;;;;;;;;;-1:-1:-1;1201:18:10;;1195:4;;-1:-1:-1;1201:18:10;-1:-1:-1;1187:33:10;;-1:-1:-1;;1187:33:10;1140:92;1272:25;;;;;;;;;;;;-1:-1:-1;;1272:25:10;;-1:-1:-1;791:515:10;-1:-1:-1;;;;;;791:515:10:o;1136:191:1:-;1255:65;;74921:784:2;75025:12;75051;75065:23;75092:6;-1:-1:-1;;;;;75092:11:2;75104:4;75092:17;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;75092:17:2;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;75050:59:2;;;;75127:7;75122:546;;75222:17;;:21;75218:439;;75485:10;75479:17;75546:15;75533:10;75529:2;75525:19;75518:44;75433:148;75628:12;75621:20;;-1:-1:-1;;;75621:20:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;75621:20:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;75218:439;75687:10;74921:784;-1:-1:-1;;;;;74921:784:2:o;9069:245:9:-;9154:4;9176:43;9189:3;9184:9;;;;;;;;9200:4;9195:10;;;;;;;;9176:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;9246:27;9239:3;:34;;;;;;;;;:67;;9302:3;9297:9;;;;;;;;9239:67;;;-1:-1:-1;9276:4:9;:18;;9232:74;-1:-1:-1;;9069:245:9:o;1675:258:4:-;1731:9;;1768:5;;;1790:6;;;1786:140;;1821:18;;-1:-1:-1;1841:1:4;-1:-1:-1;1813:30:4;;1786:140;-1:-1:-1;1884:26:4;;-1:-1:-1;1912:1:4;;-1:-1:-1;1876:38:4;;2032:353:10;2101:9;2112:10;;:::i;:::-;2136:14;2152:19;2175:27;2183:1;:10;;;2195:6;2175:7;:27::i;:::-;2135:67;;-1:-1:-1;2135:67:10;-1:-1:-1;2225:18:10;2217:4;:26;;;;;;;;;2213:92;;-1:-1:-1;2274:18:10;;;;;;;;;-1:-1:-1;2274:18:10;;2268:4;;-1:-1:-1;2274:18:10;-1:-1:-1;2260:33:10;;2213:92;2345:31;;;;;;;;;;;;-1:-1:-1;;2345:31:10;;-1:-1:-1;2032:353:10;-1:-1:-1;;;;2032:353:10:o;816:213:11:-;998:12;420:4;998:23;;;816:213::o;3825:120::-;3878:4;3902:35;3907:1;3910;3902:35;;;;;;;;;;;;;-1:-1:-1;;;3902:35:11;;;:4;:35::i;7514:225:0:-;7610:91;;;-1:-1:-1;;;;;7610:91:0;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;7610:91:0;;;;;;;25:18:-1;;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;7590:141:0;;;;;;;;;;;;;;;;;;:19;:141::i;:::-;7514:225;;:::o;28468:4598:2:-;28575:4;28600:19;;;:42;;-1:-1:-1;28623:19:2;;28600:42;28592:107;;;;-1:-1:-1;;;28592:107:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28712:27;;:::i;:::-;28856:28;:26;:28::i;:::-;28827:25;;;28812:72;;;28813:12;;;28812:72;;;;;;;;;;;;;;;;;;;-1:-1:-1;28915:18:2;;-1:-1:-1;28899:4:2;:12;;;:34;;;;;;;;;28895:168;;28957:94;28968:16;28986:44;29037:4;:12;;;29032:18;;;;;;;28957:94;28950:101;;;;;28895:168;29117:18;;29113:1290;;29393:17;;;:34;;;29498:42;;;;;;;;29513:25;;;;29498:42;;29480:77;;29413:14;29480:17;:77::i;:::-;29459:17;;;29444:113;;;29445:12;;;29444:113;;;;;;;;;;;;;;;;;;;-1:-1:-1;29592:18:2;;-1:-1:-1;29576:4:2;:12;;;:34;;;;;;;;;29572:185;;29638:103;29649:16;29667:53;29727:4;:12;;;29722:18;;;;;;;29572:185;29113:1290;;;30059:82;30082:14;30098:42;;;;;;;;30113:4;:25;;;30098:42;;;30059:22;:82::i;:::-;30038:17;;;30023:118;;;30024:12;;;30023:118;;;;;;;;;;;;;;;;;;;-1:-1:-1;30176:18:2;;-1:-1:-1;30160:4:2;:12;;;:34;;;;;;;;;30156:185;;30222:103;30233:16;30251:53;30311:4;:12;;;30306:18;;;;;;;30156:185;30357:17;;;:34;;;29113:1290;30472:11;;30523:17;;;;30472:69;;;-1:-1:-1;;;30472:69:2;;30506:4;30472:69;;;;-1:-1:-1;;;;;30472:69:2;;;;;;;;;;;;;;;;30457:12;;30472:11;;;;;:25;;:69;;;;;;;;;;;;;;;30457:12;30472:11;:69;;;5:2:-1;;;;30:1;27;20:12;5:2;30472:69:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;30472:69:2;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;30472:69:2;;-1:-1:-1;30556:12:2;;30552:142;;30592:90;30603:27;30632:40;30674:7;30592:10;:90::i;:::-;30585:97;;;;;;30552:142;30804:16;:14;:16::i;:::-;30782:18;;:38;30778:142;;30844:64;30849:22;30873:34;30844:4;:64::i;30778:142::-;31215:39;31223:11;;31236:4;:17;;;31215:7;:39::i;:::-;31192:19;;;31177:77;;;31178:12;;;31177:77;;;;;;;;;;;;;;;;;;;-1:-1:-1;31285:18:2;;-1:-1:-1;31269:4:2;:12;;;:34;;;;;;;;;31265:178;;31327:104;31338:16;31356:54;31417:4;:12;;;31412:18;;;;;;;31265:178;-1:-1:-1;;;;;31503:23:2;;;;;;:13;:23;;;;;;31528:17;;;;31495:51;;31503:23;31495:7;:51::i;:::-;31470:21;;;31455:91;;;31456:12;;;31455:91;;;;;;;;;;;;;;;;;;;-1:-1:-1;31577:18:2;;-1:-1:-1;31561:4:2;:12;;;:34;;;;;;;;;31557:181;;31619:107;31630:16;31648:57;31712:4;:12;;;31707:18;;;;;;;31557:181;31836:4;:17;;;31819:14;:12;:14::i;:::-;:34;31815:155;;;31877:81;31882:29;31913:44;31877:4;:81::i;31815:155::-;32466:42;32480:8;32490:4;:17;;;32466:13;:42::i;:::-;32601:19;;;;32587:11;:33;32657:21;;;;-1:-1:-1;;;;;32631:23:2;;;;;;:13;:23;;;;;;;;;:47;;;;32790:17;;;;32756:52;;;;;;;32783:4;;-1:-1:-1;;;;;;;;;;;32756:52:2;;;;;;;32841:17;;;;32860;;;;;32824:54;;;-1:-1:-1;;;;;32824:54:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32931:11;;32981:17;;;;33000;;;;32931:87;;;-1:-1:-1;;;32931:87:2;;32964:4;32931:87;;;;-1:-1:-1;;;;;32931:87:2;;;;;;;;;;;;;;;;;;;;;;:11;;;;;:24;;:87;;;;;:11;;:87;;;;;;;:11;;:87;;;5:2:-1;;;;30:1;27;20:12;5:2;32931:87:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;33043:14:2;;-1:-1:-1;33038:20:2;;-1:-1:-1;;33038:20:2;;33031:27;28468:4598;-1:-1:-1;;;;;;28468:4598:2:o;566:343:4:-;622:9;;654:6;650:69;;-1:-1:-1;685:18:4;;-1:-1:-1;685:18:4;677:30;;650:69;740:5;;;744:1;740;:5;:1;762:5;;;;;:10;758:144;;-1:-1:-1;797:26:4;;-1:-1:-1;825:1:4;;-1:-1:-1;789:38:4;;758:144;868:18;;-1:-1:-1;888:1:4;-1:-1:-1;860:30:4;;1004:215;1060:9;;1092:6;1088:77;;-1:-1:-1;1123:26:4;;-1:-1:-1;1151:1:4;1115:38;;1088:77;1185:18;1209:1;1205;:5;;;;;;1177:34;;;;1004:215;;;;;:::o;22485:3285:2:-;22633:11;;:58;;;-1:-1:-1;;;22633:58:2;;22665:4;22633:58;;;;-1:-1:-1;;;;;22633:58:2;;;;;;;;;;;;;;;22555:4;;;;;;22633:11;;;:23;;:58;;;;;;;;;;;;;;;22555:4;22633:11;:58;;;5:2:-1;;;;30:1;27;20:12;5:2;22633:58:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;22633:58:2;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;22633:58:2;;-1:-1:-1;22706:12:2;;22702:145;;22743:88;22754:27;22783:38;22823:7;22743:10;:88::i;:::-;22735:100;-1:-1:-1;22833:1:2;;-1:-1:-1;22735:100:2;;-1:-1:-1;22735:100:2;22702:145;22957:16;:14;:16::i;:::-;22935:18;;:38;22931:145;;22998:62;23003:22;23027:32;22998:4;:62::i;22931:145::-;23088:25;;:::i;:::-;23170:28;:26;:28::i;:::-;23141:25;;;23126:72;;;23127:12;;;23126:72;;;;;;;;;;;;;;;;;;;-1:-1:-1;23229:18:2;;-1:-1:-1;23213:4:2;:12;;;:34;;;;;;;;;23209:171;;23272:92;23283:16;23301:42;23350:4;:12;;;23345:18;;;;;;;23272:92;23264:104;-1:-1:-1;23366:1:2;;-1:-1:-1;23264:104:2;;-1:-1:-1;;23264:104:2;23209:171;24358:32;24371:6;24379:10;24358:12;:32::i;:::-;24334:21;;;:56;;;24663:42;;;;;;;;24678:25;;;;24663:42;;24617:89;;24334:56;24617:22;:89::i;:::-;24598:15;;;24583:123;;;24584:12;;;24583:123;;;;;;;;;;;;;;;;;;;-1:-1:-1;24741:18:2;;-1:-1:-1;24725:4:2;:12;;;:34;;;;;;;;;24717:79;;;;;-1:-1:-1;;;24717:79:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25084:34;25089:11;;25102:4;:15;;;25084:4;:34::i;:::-;25062:19;;;:56;-1:-1:-1;;;;;25160:21:2;;;;;;:13;:21;;;;;;25183:15;;;;25155:44;;25160:21;25155:4;:44::i;:::-;25131:21;;;:68;;;25292:19;;;;25278:11;:33;-1:-1:-1;;;;;25322:21:2;;;;;;:13;:21;;;;;;;;;:45;;;;25456:21;;;;25479:15;;;;;25443:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25543:15;;;;25511:48;;;;;;;-1:-1:-1;;;;;25511:48:2;;;25528:4;;-1:-1:-1;;;;;;;;;;;25511:48:2;;;;;;;;25612:11;;25658:21;;;;25681:15;;;;25612:85;;;-1:-1:-1;;;25612:85:2;;25643:4;25612:85;;;;-1:-1:-1;;;;;25612:85:2;;;;;;;;;;;;;;;;;;;;;;:11;;;;;:22;;:85;;;;;:11;;:85;;;;;;;:11;;:85;;;5:2:-1;;;;30:1;27;20:12;5:2;25612:85:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;25723:14:2;;-1:-1:-1;25718:20:2;;-1:-1:-1;;25718:20:2;;25740:4;:21;;;25710:52;;;;;;22485:3285;;;;;:::o;3314:179:11:-;3395:4;3421:5;;;3453:12;3445:6;;;;3437:29;;;;-1:-1:-1;;;3437:29:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;4286:133:11;4345:10;;:::i;:::-;4375:36;;;;;;;;4390:19;4395:1;:10;;;4407:1;4390:4;:19::i;:::-;4375:36;;4368:43;4286:133;-1:-1:-1;;;4286:133:11:o;1142:174::-;1220:4;1237:18;;:::i;:::-;1258:15;1263:1;1266:6;1258:4;:15::i;:::-;1237:36;;1291:17;1300:7;1291:8;:17::i;1461:208::-;1559:4;1576:18;;:::i;:::-;1597:15;1602:1;1605:6;1597:4;:15::i;:::-;1576:36;;1630:31;1635:17;1644:7;1635:8;:17::i;:::-;1654:6;1630:4;:31::i;4427:121::-;4486:4;420;4510:19;4515:1;4518;:10;;;4510:4;:19::i;:::-;:30;;;;;;;4427:121;-1:-1:-1;;;4427:121:11:o;34292:3406:2:-;34450:11;;:64;;;-1:-1:-1;;;34450:64:2;;34484:4;34450:64;;;;-1:-1:-1;;;;;34450:64:2;;;;;;;;;;;;;;;34376:4;;;;34450:11;;:25;;:64;;;;;;;;;;;;;;34376:4;34450:11;:64;;;5:2:-1;;;;30:1;27;20:12;5:2;34450:64:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;34450:64:2;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;34450:64:2;;-1:-1:-1;34529:12:2;;34525:142;;34565:90;34576:27;34605:40;34647:7;34565:10;:90::i;:::-;34558:97;;;;;34525:142;34777:16;:14;:16::i;:::-;34755:18;;:38;34751:142;;34817:64;34822:22;34846:34;34817:4;:64::i;34751:142::-;34981:14;34998;:12;:14::i;:::-;34981:31;;35041:12;35029:9;:24;35025:138;;;35077:74;35082:29;35113:37;35077:4;:74::i;:::-;35070:81;;;;;;35025:138;35175:27;;:::i;:::-;35490:37;35518:8;35490:27;:37::i;:::-;35467:19;;;35452:75;;;35453:4;35452:75;;;;;;;;;;;;;;;;;;;-1:-1:-1;35558:18:2;;-1:-1:-1;35542:12:2;;:34;;;;;;;;;35538:181;;35600:107;35611:16;35629:57;35693:4;:12;;;35688:18;;;;;;;35600:107;35593:114;;;;;;;35538:181;35772:42;35780:4;:19;;;35801:12;35772:7;:42::i;:::-;35746:22;;;35731:83;;;35732:4;35731:83;;;;;;;;;;;;;;;;;;;-1:-1:-1;35845:18:2;;-1:-1:-1;35829:12:2;;:34;;;;;;;;;35825:188;;35887:114;35898:16;35916:64;35987:4;:12;;;35982:18;;;;;;;35825:188;36093:11;;36139:22;;;;;36093:69;;-1:-1:-1;;;36093:69:2;;36132:4;36093:69;;;;;;;;;;;;;-1:-1:-1;;;;;36093:11:2;;;;:30;;:69;;;;;;;;;;;;;;;:11;;:69;;;5:2:-1;;;;30:1;27;20:12;5:2;36093:69:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;36093:69:2;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;36093:69:2;;-1:-1:-1;36177:12:2;;36173:142;;36213:90;36224:27;36253:40;36295:7;36213:10;:90::i;36173:142::-;36366:35;36374:12;;36388;36366:7;:35::i;:::-;36342:20;;;36327:74;;;36328:4;36327:74;;;;;;;;;;;;;;;;;;;-1:-1:-1;36432:18:2;;-1:-1:-1;36416:12:2;;:34;;;;;;;;;36412:179;;36474:105;36485:16;36503:55;36565:4;:12;;;36560:18;;;;;;;36412:179;37083:37;37097:8;37107:12;37083:13;:37::i;:::-;37240:22;;;;;;-1:-1:-1;;;;;37203:24:2;;;;;;:14;:24;;;;;;;;:59;;;37314:11;;37273:38;;;;:52;;;;37351:20;;;;;37336:12;:35;;;37458:22;;37427:76;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37675:14;37663:27;34292:3406;-1:-1:-1;;;;;;34292:3406:2:o;45749:3613::-;45970:11;;:111;;;-1:-1:-1;;;45970:111:2;;46013:4;45970:111;;;;-1:-1:-1;;;;;45970:111:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45887:4;;;;;;45970:11;;;:34;;:111;;;;;;;;;;;;;;;45887:4;45970:11;:111;;;5:2:-1;;;;30:1;27;20:12;5:2;45970:111:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;45970:111:2;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;45970:111:2;;-1:-1:-1;46096:12:2;;46092:150;;46133:93;46144:27;46173:43;46218:7;46133:10;:93::i;:::-;46125:105;-1:-1:-1;46228:1:2;;-1:-1:-1;46125:105:2;;-1:-1:-1;46125:105:2;46092:150;46352:16;:14;:16::i;:::-;46330:18;;:38;46326:150;;46393:67;46398:22;46422:37;46393:4;:67::i;46326:150::-;46622:16;:14;:16::i;:::-;46581;-1:-1:-1;;;;;46581:35:2;;:37;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;46581:37:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;46581:37:2;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;46581:37:2;:57;46577:180;;46663:78;46668:22;46692:48;46663:4;:78::i;46577:180::-;46830:10;-1:-1:-1;;;;;46818:22:2;:8;-1:-1:-1;;;;;46818:22:2;;46814:145;;;46865:78;46870:26;46898:44;46865:4;:78::i;46814:145::-;47014:16;47010:147;;47055:86;47060:36;47098:42;47055:4;:86::i;47010:147::-;-1:-1:-1;;47213:11:2;:23;47209:158;;;47261:90;47266:36;47304:46;47261:4;:90::i;47209:158::-;47423:21;47446:22;47472:51;47489:10;47501:8;47511:11;47472:16;:51::i;:::-;47422:101;;-1:-1:-1;47422:101:2;-1:-1:-1;47538:40:2;;47534:163;;47603:78;47614:16;47608:23;;;;;;;;47633:47;47603:4;:78::i;:::-;47595:90;-1:-1:-1;47683:1:2;;-1:-1:-1;47595:90:2;;-1:-1:-1;;;47595:90:2;47534:163;47954:11;;:102;;;-1:-1:-1;;;47954:102:2;;48004:4;47954:102;;;;-1:-1:-1;;;;;47954:102:2;;;;;;;;;;;;;;;47911:21;;;;47954:11;;;:41;;:102;;;;;;;;;;;;:11;:102;;;5:2:-1;;;;30:1;27;20:12;5:2;47954:102:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;47954:102:2;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;47954:102:2;;;;;;;;;-1:-1:-1;47954:102:2;-1:-1:-1;48075:40:2;;48067:104;;;;-1:-1:-1;;;48067:104:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48305:11;48265:16;-1:-1:-1;;;;;48265:26:2;;48292:8;48265:36;;;;;;;;;;;;;-1:-1:-1;;;;;48265:36:2;-1:-1:-1;;;;;48265:36:2;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;48265:36:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;48265:36:2;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;48265:36:2;:51;;48257:88;;;;;-1:-1:-1;;;48257:88:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;48474:15;-1:-1:-1;;;;;48504:42:2;;48541:4;48504:42;48500:254;;;48576:63;48598:4;48605:10;48617:8;48627:11;48576:13;:63::i;:::-;48563:76;;48500:254;;;48685:57;;;-1:-1:-1;;;48685:57:2;;-1:-1:-1;;;;;48685:57:2;;;;;;;;;;;;;;;;;;;;;;:22;;;;;;:57;;;;;;;;;;;;;;;-1:-1:-1;48685:22:2;:57;;;5:2:-1;;;;30:1;27;20:12;5:2;48685:57:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;48685:57:2;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;48685:57:2;;-1:-1:-1;48500:254:2;48860:34;;48852:67;;;;;-1:-1:-1;;;48852:67:2;;;;;;;;;;;;-1:-1:-1;;;48852:67:2;;;;;;;;;;;;;;;48984:96;;;-1:-1:-1;;;;;48984:96:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49319:14;49306:48;-1:-1:-1;49336:17:2;;-1:-1:-1;;;;;;45749:3613:2;;;;;;;;:::o;6148:662:0:-;6268:10;;6253:51;;;-1:-1:-1;;;6253:51:0;;6298:4;6253:51;;;;;;6215:4;;;;-1:-1:-1;;;;;6268:10:0;;;;6253:36;;:51;;;;;;;;;;;;;;;6268:10;6253:51;;;5:2:-1;;;;30:1;27;20:12;5:2;6253:51:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;6253:51:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;6253:51:0;6335:112;;;-1:-1:-1;;;;;6335:112:0;;;;;;6433:4;6335:112;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;6335:112:0;;;;;;6253:51;25:18:-1;;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;6315:161:0;;;;;;;;;;;;;;;;6253:51;;-1:-1:-1;6315:161:0;;6335:112;6315:19;:161::i;:::-;6589:10;;6574:51;;;-1:-1:-1;;;6574:51:0;;6619:4;6574:51;;;;;;6554:17;;-1:-1:-1;;;;;6589:10:0;;6574:36;;:51;;;;;;;;;;;;;;6589:10;6574:51;;;5:2:-1;;;;30:1;27;20:12;5:2;6574:51:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;6574:51:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;6574:51:0;;-1:-1:-1;6644:29:0;;;;6636:68;;;;;-1:-1:-1;;;6636:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;6722:28;;6148:662;-1:-1:-1;;;6148:662:0:o;3953:158:11:-;4034:4;4067:12;4059:6;;;;4051:29;;;;-1:-1:-1;;;4051:29:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;4051:29:11;-1:-1:-1;;;4098:5:11;;;3953:158::o;8145:266:0:-;8281:10;;8241:23;;8267:45;;-1:-1:-1;;;;;8281:10:0;8293:4;8299:12;8267:13;:45::i;:::-;8327:17;;8241:71;;-1:-1:-1;8327:21:0;8323:80;;8369:10;8358:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;8358:30:0;8390:12;;8350:53;;;;-1:-1:-1;;;8350:53:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;4546:337:10;4634:9;4645:4;4663:13;4678:19;;:::i;:::-;4701:31;4716:6;4724:7;4701:14;:31::i;5023:122:11:-;5076:4;5100:37;5105:1;5108;5100:37;;;;;;;;;;;;;;;;;:4;:37::i;3815:620:10:-;3895:9;3906:10;;:::i;:::-;4213:14;4229;4247:25;420:4:11;4265:6:10;4247:7;:25::i;:::-;4212:60;;-1:-1:-1;4212:60:10;-1:-1:-1;4295:18:10;4287:4;:26;;;;;;;;;4283:92;;-1:-1:-1;4344:18:10;;;;;;;;;-1:-1:-1;4344:18:10;;4338:4;;-1:-1:-1;4344:18:10;-1:-1:-1;4330:33:10;;4283:92;4392:35;4399:9;4410:7;:16;;;4392:6;:35::i;5153:250:11:-;5234:4;5255:6;;;:16;;-1:-1:-1;5265:6:11;;5255:16;5251:57;;;-1:-1:-1;5295:1:11;5288:8;;5251:57;5327:5;;;5331:1;5327;:5;:1;5351:5;;;;;:10;5363:12;5343:33;;;;;-1:-1:-1;;;5343:33:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;204:3791:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;204:3791:1;;;-1:-1:-1;204:3791:1;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;204:3791:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;-1:-1:-1;204:3791:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;-1:-1:-1;204:3791:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;-1:-1:-1;204:3791:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;-1:-1:-1;204:3791:1;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;
Swarm Source
bzzr://3d195b9e8609e89a3876903b1747559160b318b9a1b0847b1160bbb71ef9b109
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.