Contract Address Details

0x3acAddeb99C714103683a1A061b793d53563f17C

Token
YUZU LP Token (fUSDC_celer_WROSE)
Creator
0x4ce415–7891e9 at 0x46537a–14482e
Balance
0 ROSE
Tokens
Fetching tokens...
Transactions
682 Transactions
Transfers
786 Transfers
Gas Used
166,937,072
Last Balance Update
4493347
Contract name:
CErc20Immutable




Optimization enabled
true
Compiler version
v0.5.16+commit.9c3226ce




Optimization runs
200
EVM Version
default




Verified at
2022-04-14 03:36:12.231702Z

Constructor Arguments

00000000000000000000000060bf7989a447c45aaa0aeb86873b50b5a3709b100000000000000000000000007c4d0c834701c6e7f57b8c1424d30adc46ea0840000000000000000000000000ba3cbebede0c4e17510664d3f3fb6d7305f720220000000000000000000000000000000000000000204fce5e3e250261100000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000080000000000000000000000004ce41518591272a42406b4829f6c4f66907891e9000000000000000000000000000000000000000000000000000000000000000d59555a55204c5020546f6b656e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001166555344435f63656c65725f57524f5345000000000000000000000000000000

Arg [0] (address) : 0x60bf7989a447c45aaa0aeb86873b50b5a3709b10
Arg [1] (address) : 0x7c4d0c834701c6e7f57b8c1424d30adc46ea0840
Arg [2] (address) : 0xba3cbebede0c4e17510664d3f3fb6d7305f72022
Arg [3] (uint256) : 10000000000000000000000000000
Arg [4] (string) : YUZU LP Token
Arg [5] (string) : fUSDC_celer_WROSE
Arg [6] (uint8) : 8
Arg [7] (address) : 0x4ce41518591272a42406b4829f6c4f66907891e9

              

Contract source code

pragma solidity ^0.5.16;
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;
}
function truncate(Exp memory exp) pure internal returns (uint) {
return exp.mantissa / expScale;
}
function mul_ScalarTruncate(Exp memory a, uint scalar) pure internal returns (uint) {
Exp memory product = mul_(a, scalar);
return truncate(product);
}
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);
}
function lessThanExp(Exp memory left, Exp memory right) pure internal returns (bool) {
return left.mantissa < right.mantissa;
}
function lessThanOrEqualExp(Exp memory left, Exp memory right) pure internal returns (bool) {
return left.mantissa <= right.mantissa;
}
function greaterThanExp(Exp memory left, Exp memory right) pure internal returns (bool) {
return left.mantissa > right.mantissa;
}
function isZeroExp(Exp memory value) pure internal returns (bool) {
return value.mantissa == 0;
}
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;
contract CarefulMath {
enum MathError {
NO_ERROR,
DIVISION_BY_ZERO,
INTEGER_OVERFLOW,
INTEGER_UNDERFLOW
}
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);
}
}
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);
}
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);
}
}
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);
}
}
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;
interface EIP20NonStandardInterface {
function totalSupply() external view returns (uint256);
function balanceOf(address owner) external view returns (uint256 balance);
function transfer(address dst, uint256 amount) external;
function transferFrom(address src, address dst, uint256 amount) external;
function approve(address spender, uint256 amount) external returns (bool success);
function allowance(address owner, address spender) external view returns (uint256 remaining);
event Transfer(address indexed from, address indexed to, uint256 amount);
event Approval(address indexed owner, address indexed spender, uint256 amount);
}
pragma solidity ^0.5.16;
contract InterestRateModel {
bool public constant isInterestRateModel = true;
function getBorrowRate(uint cash, uint borrows, uint reserves) external view returns (uint);
function getSupplyRate(uint cash, uint borrows, uint reserves, uint reserveFactorMantissa) external view returns (uint);
}
pragma solidity ^0.5.16;
contract ComptrollerInterface {
bool public constant isComptroller = true;
function enterMarkets(address[] calldata cTokens) external returns (uint[] memory);
function exitMarket(address cToken) external returns (uint);
function mintAllowed(address cToken, address minter, 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 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;
function liquidateCalculateSeizeTokens(
address cTokenBorrowed,
address cTokenCollateral,
uint repayAmount) external view returns (uint, uint);
}
pragma solidity ^0.5.16;
interface EIP20Interface {
function name() external view returns (string memory);
function symbol() external view returns (string memory);
function decimals() external view returns (uint8);
function totalSupply() external view returns (uint256);
function balanceOf(address owner) external view returns (uint256 balance);
function transfer(address dst, uint256 amount) external returns (bool success);
function transferFrom(address src, address dst, uint256 amount) external returns (bool success);
function approve(address spender, uint256 amount) external returns (bool success);
function allowance(address owner, address spender) external view returns (uint256 remaining);
event Transfer(address indexed from, address indexed to, uint256 amount);
event Approval(address indexed owner, address indexed spender, uint256 amount);
}
pragma solidity ^0.5.16;
contract Exponential is CarefulMath, ExponentialNoError {
function getExp(uint num, uint denom) pure internal returns (MathError, Exp memory) {
(MathError err0, uint scaledNumerator) = mulUInt(num, expScale);
if (err0 != MathError.NO_ERROR) {
return (err0, Exp({mantissa: 0}));
}
(MathError err1, uint rational) = divUInt(scaledNumerator, denom);
if (err1 != MathError.NO_ERROR) {
return (err1, Exp({mantissa: 0}));
}
return (MathError.NO_ERROR, Exp({mantissa: rational}));
}
function addExp(Exp memory a, Exp memory b) pure internal returns (MathError, Exp memory) {
(MathError error, uint result) = addUInt(a.mantissa, b.mantissa);
return (error, Exp({mantissa: result}));
}
function subExp(Exp memory a, Exp memory b) pure internal returns (MathError, Exp memory) {
(MathError error, uint result) = subUInt(a.mantissa, b.mantissa);
return (error, Exp({mantissa: result}));
}
function mulScalar(Exp memory a, uint scalar) pure internal returns (MathError, Exp memory) {
(MathError err0, uint scaledMantissa) = mulUInt(a.mantissa, scalar);
if (err0 != MathError.NO_ERROR) {
return (err0, Exp({mantissa: 0}));
}
return (MathError.NO_ERROR, Exp({mantissa: scaledMantissa}));
}
function mulScalarTruncate(Exp memory a, uint scalar) pure internal returns (MathError, uint) {
(MathError err, Exp memory product) = mulScalar(a, scalar);
if (err != MathError.NO_ERROR) {
return (err, 0);
}
return (MathError.NO_ERROR, truncate(product));
}
function mulScalarTruncateAddUInt(Exp memory a, uint scalar, uint addend) pure internal returns (MathError, uint) {
(MathError err, Exp memory product) = mulScalar(a, scalar);
if (err != MathError.NO_ERROR) {
return (err, 0);
}
return addUInt(truncate(product), addend);
}
function divScalar(Exp memory a, uint scalar) pure internal returns (MathError, Exp memory) {
(MathError err0, uint descaledMantissa) = divUInt(a.mantissa, scalar);
if (err0 != MathError.NO_ERROR) {
return (err0, Exp({mantissa: 0}));
}
return (MathError.NO_ERROR, Exp({mantissa: descaledMantissa}));
}
function divScalarByExp(uint scalar, Exp memory divisor) pure internal returns (MathError, Exp memory) {
(MathError err0, uint numerator) = mulUInt(expScale, scalar);
if (err0 != MathError.NO_ERROR) {
return (err0, Exp({mantissa: 0}));
}
return getExp(numerator, divisor.mantissa);
}
function divScalarByExpTruncate(uint scalar, Exp memory divisor) pure internal returns (MathError, uint) {
(MathError err, Exp memory fraction) = divScalarByExp(scalar, divisor);
if (err != MathError.NO_ERROR) {
return (err, 0);
}
return (MathError.NO_ERROR, truncate(fraction));
}
function mulExp(Exp memory a, Exp memory b) pure internal returns (MathError, Exp memory) {
(MathError err0, uint doubleScaledProduct) = mulUInt(a.mantissa, b.mantissa);
if (err0 != MathError.NO_ERROR) {
return (err0, Exp({mantissa: 0}));
}
(MathError err1, uint doubleScaledProductWithHalfScale) = addUInt(halfExpScale, doubleScaledProduct);
if (err1 != MathError.NO_ERROR) {
return (err1, Exp({mantissa: 0}));
}
(MathError err2, uint product) = divUInt(doubleScaledProductWithHalfScale, expScale);
assert(err2 == MathError.NO_ERROR);
return (MathError.NO_ERROR, Exp({mantissa: product}));
}
function mulExp(uint a, uint b) pure internal returns (MathError, Exp memory) {
return mulExp(Exp({mantissa: a}), Exp({mantissa: b}));
}
function mulExp3(Exp memory a, Exp memory b, Exp memory c) pure internal returns (MathError, Exp memory) {
(MathError err, Exp memory ab) = mulExp(a, b);
if (err != MathError.NO_ERROR) {
return (err, ab);
}
return mulExp(ab, c);
}
function divExp(Exp memory a, Exp memory b) pure internal returns (MathError, Exp memory) {
return getExp(a.mantissa, b.mantissa);
}
}
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,
MARKET_NOT_LISTED,
MARKET_ALREADY_LISTED,
MATH_ERROR,
NONZERO_BORROW_BALANCE,
PRICE_ERROR,
REJECTION,
SNAPSHOT_ERROR,
TOO_MANY_ASSETS,
TOO_MUCH_REPAY
}
enum FailureInfo {
ACCEPT_ADMIN_PENDING_ADMIN_CHECK,
ACCEPT_PENDING_IMPLEMENTATION_ADDRESS_CHECK,
EXIT_MARKET_BALANCE_OWED,
EXIT_MARKET_REJECTION,
SET_CLOSE_FACTOR_OWNER_CHECK,
SET_CLOSE_FACTOR_VALIDATION,
SET_COLLATERAL_FACTOR_OWNER_CHECK,
SET_COLLATERAL_FACTOR_NO_EXISTS,
SET_COLLATERAL_FACTOR_VALIDATION,
SET_COLLATERAL_FACTOR_WITHOUT_PRICE,
SET_IMPLEMENTATION_OWNER_CHECK,
SET_LIQUIDATION_INCENTIVE_OWNER_CHECK,
SET_LIQUIDATION_INCENTIVE_VALIDATION,
SET_MAX_ASSETS_OWNER_CHECK,
SET_PENDING_ADMIN_OWNER_CHECK,
SET_PENDING_IMPLEMENTATION_OWNER_CHECK,
SET_PRICE_ORACLE_OWNER_CHECK,
SUPPORT_MARKET_EXISTS,
SUPPORT_MARKET_OWNER_CHECK,
SET_PAUSE_GUARDIAN_OWNER_CHECK
}
event Failure(uint error, uint info, uint detail);
function fail(Error err, FailureInfo info) internal returns (uint) {
emit Failure(uint(err), uint(info), 0);
return uint(err);
}
function failOpaque(Error err, FailureInfo info, uint opaqueError) internal returns (uint) {
emit Failure(uint(err), uint(info), opaqueError);
return uint(err);
}
}
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
}
enum FailureInfo {
ACCEPT_ADMIN_PENDING_ADMIN_CHECK,
ACCRUE_INTEREST_ACCUMULATED_INTEREST_CALCULATION_FAILED,
ACCRUE_INTEREST_BORROW_RATE_CALCULATION_FAILED,
ACCRUE_INTEREST_NEW_BORROW_INDEX_CALCULATION_FAILED,
ACCRUE_INTEREST_NEW_TOTAL_BORROWS_CALCULATION_FAILED,
ACCRUE_INTEREST_NEW_TOTAL_RESERVES_CALCULATION_FAILED,
ACCRUE_INTEREST_SIMPLE_INTEREST_FACTOR_CALCULATION_FAILED,
BORROW_ACCUMULATED_BALANCE_CALCULATION_FAILED,
BORROW_ACCRUE_INTEREST_FAILED,
BORROW_CASH_NOT_AVAILABLE,
BORROW_FRESHNESS_CHECK,
BORROW_NEW_TOTAL_BALANCE_CALCULATION_FAILED,
BORROW_NEW_ACCOUNT_BORROW_BALANCE_CALCULATION_FAILED,
BORROW_MARKET_NOT_LISTED,
BORROW_COMPTROLLER_REJECTION,
LIQUIDATE_ACCRUE_BORROW_INTEREST_FAILED,
LIQUIDATE_ACCRUE_COLLATERAL_INTEREST_FAILED,
LIQUIDATE_COLLATERAL_FRESHNESS_CHECK,
LIQUIDATE_COMPTROLLER_REJECTION,
LIQUIDATE_COMPTROLLER_CALCULATE_AMOUNT_SEIZE_FAILED,
LIQUIDATE_CLOSE_AMOUNT_IS_UINT_MAX,
LIQUIDATE_CLOSE_AMOUNT_IS_ZERO,
LIQUIDATE_FRESHNESS_CHECK,
LIQUIDATE_LIQUIDATOR_IS_BORROWER,
LIQUIDATE_REPAY_BORROW_FRESH_FAILED,
LIQUIDATE_SEIZE_BALANCE_INCREMENT_FAILED,
LIQUIDATE_SEIZE_BALANCE_DECREMENT_FAILED,
LIQUIDATE_SEIZE_COMPTROLLER_REJECTION,
LIQUIDATE_SEIZE_LIQUIDATOR_IS_BORROWER,
LIQUIDATE_SEIZE_TOO_MUCH,
MINT_ACCRUE_INTEREST_FAILED,
MINT_COMPTROLLER_REJECTION,
MINT_EXCHANGE_CALCULATION_FAILED,
MINT_EXCHANGE_RATE_READ_FAILED,
MINT_FRESHNESS_CHECK,
MINT_NEW_ACCOUNT_BALANCE_CALCULATION_FAILED,
MINT_NEW_TOTAL_SUPPLY_CALCULATION_FAILED,
MINT_TRANSFER_IN_FAILED,
MINT_TRANSFER_IN_NOT_POSSIBLE,
REDEEM_ACCRUE_INTEREST_FAILED,
REDEEM_COMPTROLLER_REJECTION,
REDEEM_EXCHANGE_TOKENS_CALCULATION_FAILED,
REDEEM_EXCHANGE_AMOUNT_CALCULATION_FAILED,
REDEEM_EXCHANGE_RATE_READ_FAILED,
REDEEM_FRESHNESS_CHECK,
REDEEM_NEW_ACCOUNT_BALANCE_CALCULATION_FAILED,
REDEEM_NEW_TOTAL_SUPPLY_CALCULATION_FAILED,
REDEEM_TRANSFER_OUT_NOT_POSSIBLE,
REDUCE_RESERVES_ACCRUE_INTEREST_FAILED,
REDUCE_RESERVES_ADMIN_CHECK,
REDUCE_RESERVES_CASH_NOT_AVAILABLE,
REDUCE_RESERVES_FRESH_CHECK,
REDUCE_RESERVES_VALIDATION,
REPAY_BEHALF_ACCRUE_INTEREST_FAILED,
REPAY_BORROW_ACCRUE_INTEREST_FAILED,
REPAY_BORROW_ACCUMULATED_BALANCE_CALCULATION_FAILED,
REPAY_BORROW_COMPTROLLER_REJECTION,
REPAY_BORROW_FRESHNESS_CHECK,
REPAY_BORROW_NEW_ACCOUNT_BORROW_BALANCE_CALCULATION_FAILED,
REPAY_BORROW_NEW_TOTAL_BALANCE_CALCULATION_FAILED,
REPAY_BORROW_TRANSFER_IN_NOT_POSSIBLE,
SET_COLLATERAL_FACTOR_OWNER_CHECK,
SET_COLLATERAL_FACTOR_VALIDATION,
SET_COMPTROLLER_OWNER_CHECK,
SET_INTEREST_RATE_MODEL_ACCRUE_INTEREST_FAILED,
SET_INTEREST_RATE_MODEL_FRESH_CHECK,
SET_INTEREST_RATE_MODEL_OWNER_CHECK,
SET_MAX_ASSETS_OWNER_CHECK,
SET_ORACLE_MARKET_NOT_LISTED,
SET_PENDING_ADMIN_OWNER_CHECK,
SET_RESERVE_FACTOR_ACCRUE_INTEREST_FAILED,
SET_RESERVE_FACTOR_ADMIN_CHECK,
SET_RESERVE_FACTOR_FRESH_CHECK,
SET_RESERVE_FACTOR_BOUNDS_CHECK,
TRANSFER_COMPTROLLER_REJECTION,
TRANSFER_NOT_ALLOWED,
TRANSFER_NOT_ENOUGH,
TRANSFER_TOO_MUCH,
ADD_RESERVES_ACCRUE_INTEREST_FAILED,
ADD_RESERVES_FRESH_CHECK,
ADD_RESERVES_TRANSFER_IN_NOT_POSSIBLE
}
event Failure(uint error, uint info, uint detail);
function fail(Error err, FailureInfo info) internal returns (uint) {
emit Failure(uint(err), uint(info), 0);
return uint(err);
}
function failOpaque(Error err, FailureInfo info, uint opaqueError) internal returns (uint) {
emit Failure(uint(err), uint(info), opaqueError);
return uint(err);
}
}
pragma solidity ^0.5.16;
contract CTokenStorage {
bool internal _notEntered;
string public name;
string public symbol;
uint8 public decimals;
uint internal constant borrowRateMaxMantissa = 0.0001e16;
uint internal constant reserveFactorMaxMantissa = 1e18;
address payable public admin;
address payable public pendingAdmin;
ComptrollerInterface public comptroller;
InterestRateModel public interestRateModel;
uint internal initialExchangeRateMantissa;
uint public reserveFactorMantissa;
uint public accrualBlockTimestamp;
uint public borrowIndex;
uint public totalBorrows;
uint public totalReserves;
uint public totalSupply;
mapping (address => uint) internal accountTokens;
mapping (address => mapping (address => uint)) internal transferAllowances;
struct BorrowSnapshot {
uint principal;
uint interestIndex;
}
mapping(address => BorrowSnapshot) internal accountBorrows;
uint public constant protocolSeizeShareMantissa = 2.8e16;
}
contract CTokenInterface is CTokenStorage {
bool public constant isCToken = true;
event AccrueInterest(uint cashPrior, uint interestAccumulated, uint borrowIndex, uint totalBorrows);
event Mint(address minter, uint mintAmount, uint mintTokens);
event Redeem(address redeemer, uint redeemAmount, uint redeemTokens);
event Borrow(address borrower, uint borrowAmount, uint accountBorrows, uint totalBorrows);
event RepayBorrow(address payer, address borrower, uint repayAmount, uint accountBorrows, uint totalBorrows);
event LiquidateBorrow(address liquidator, address borrower, uint repayAmount, address cTokenCollateral, uint seizeTokens);
event NewPendingAdmin(address oldPendingAdmin, address newPendingAdmin);
event NewAdmin(address oldAdmin, address newAdmin);
event NewComptroller(ComptrollerInterface oldComptroller, ComptrollerInterface newComptroller);
event NewMarketInterestRateModel(InterestRateModel oldInterestRateModel, InterestRateModel newInterestRateModel);
event NewReserveFactor(uint oldReserveFactorMantissa, uint newReserveFactorMantissa);
event ReservesAdded(address benefactor, uint addAmount, uint newTotalReserves);
event ReservesReduced(address admin, uint reduceAmount, uint newTotalReserves);
event Transfer(address indexed from, address indexed to, uint amount);
event Approval(address indexed owner, address indexed spender, uint amount);
event Failure(uint error, uint info, uint detail);
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);
function _setPendingAdmin(address payable newPendingAdmin) external returns (uint);
function _acceptAdmin() external returns (uint);
function _setComptroller(ComptrollerInterface newComptroller) public returns (uint);
function _setReserveFactor(uint newReserveFactorMantissa) external returns (uint);
function _reduceReserves(uint reduceAmount) external returns (uint);
function _setInterestRateModel(InterestRateModel newInterestRateModel) public returns (uint);
}
contract CErc20Storage {
address public underlying;
}
contract CErc20Interface is CErc20Storage {
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);
function sweepToken(EIP20NonStandardInterface token) external;
function _addReserves(uint addAmount) external returns (uint);
}
contract CDelegationStorage {
address public implementation;
}
contract CDelegatorInterface is CDelegationStorage {
event NewImplementation(address oldImplementation, address newImplementation);
function _setImplementation(address implementation_, bool allowResign, bytes memory becomeImplementationData) public;
}
contract CDelegateInterface is CDelegationStorage {
function _becomeImplementation(bytes memory data) public;
function _resignImplementation() public;
}
pragma solidity ^0.5.16;
contract CToken is CTokenInterface, Exponential, TokenErrorReporter {
function initialize(ComptrollerInterface comptroller_,
InterestRateModel interestRateModel_,
uint initialExchangeRateMantissa_,
string memory name_,
string memory symbol_,
uint8 decimals_) public {
require(msg.sender == admin, "only admin may initialize the market");
require(accrualBlockTimestamp == 0 && borrowIndex == 0, "market may only be initialized once");
initialExchangeRateMantissa = initialExchangeRateMantissa_;
require(initialExchangeRateMantissa > 0, "initial exchange rate must be greater than zero.");
uint err = _setComptroller(comptroller_);
require(err == uint(Error.NO_ERROR), "setting comptroller failed");
accrualBlockTimestamp = getBlockTimestamp();
borrowIndex = mantissaOne;
err = _setInterestRateModelFresh(interestRateModel_);
require(err == uint(Error.NO_ERROR), "setting interest rate model failed");
name = name_;
symbol = symbol_;
decimals = decimals_;
_notEntered = true;
}
function transferTokens(address spender, address src, address dst, uint tokens) internal returns (uint) {
uint allowed = comptroller.transferAllowed(address(this), src, dst, tokens);
if (allowed != 0) {
return failOpaque(Error.COMPTROLLER_REJECTION, FailureInfo.TRANSFER_COMPTROLLER_REJECTION, allowed);
}
if (src == dst) {
return fail(Error.BAD_INPUT, FailureInfo.TRANSFER_NOT_ALLOWED);
}
uint startingAllowance = 0;
if (spender == src) {
startingAllowance = uint(-1);
} else {
startingAllowance = transferAllowances[src][spender];
}
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);
}
accountTokens[src] = srcTokensNew;
accountTokens[dst] = dstTokensNew;
if (startingAllowance != uint(-1)) {
transferAllowances[src][spender] = allowanceNew;
}
emit Transfer(src, dst, tokens);
return uint(Error.NO_ERROR);
}
function transfer(address dst, uint256 amount) external nonReentrant returns (bool) {
bool allowed = transferTokens(msg.sender, msg.sender, dst, amount) == uint(Error.NO_ERROR);
require(allowed,"transfer not allowed");
return true;
}
function transferFrom(address src, address dst, uint256 amount) external nonReentrant returns (bool) {
bool allowed = transferTokens(msg.sender, src, dst, amount) == uint(Error.NO_ERROR);
require(allowed,"transferFrom not allowed");
return true;
}
function approve(address spender, uint256 amount) external returns (bool) {
address src = msg.sender;
transferAllowances[src][spender] = amount;
emit Approval(src, spender, amount);
return true;
}
function allowance(address owner, address spender) external view returns (uint256) {
return transferAllowances[owner][spender];
}
function balanceOf(address owner) external view returns (uint256) {
return accountTokens[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;
}
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);
}
function getBlockTimestamp() internal view returns (uint) {
return block.timestamp;
}
function borrowRatePerBlock() external view returns (uint) {
return interestRateModel.getBorrowRate(getCashPrior(), totalBorrows, totalReserves);
}
function supplyRatePerBlock() external view returns (uint) {
return interestRateModel.getSupplyRate(getCashPrior(), totalBorrows, totalReserves, reserveFactorMantissa);
}
function totalBorrowsCurrent() external nonReentrant returns (uint) {
require(accrueInterest() == uint(Error.NO_ERROR), "accrue interest failed");
return totalBorrows;
}
function borrowBalanceCurrent(address account) external nonReentrant returns (uint) {
require(accrueInterest() == uint(Error.NO_ERROR), "accrue interest failed");
return borrowBalanceStored(account);
}
function borrowBalanceStored(address account) public view returns (uint) {
(MathError err, uint result) = borrowBalanceStoredInternal(account);
require(err == MathError.NO_ERROR, "borrowBalanceStored: borrowBalanceStoredInternal failed");
return result;
}
function borrowBalanceStoredInternal(address account) internal view returns (MathError, uint) {
MathError mathErr;
uint principalTimesIndex;
uint result;
BorrowSnapshot storage borrowSnapshot = accountBorrows[account];
if (borrowSnapshot.principal == 0) {
return (MathError.NO_ERROR, 0);
}
(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);
}
function exchangeRateCurrent() public nonReentrant returns (uint) {
require(accrueInterest() == uint(Error.NO_ERROR), "accrue interest failed");
return exchangeRateStored();
}
function exchangeRateStored() public view returns (uint) {
(MathError err, uint result) = exchangeRateStoredInternal();
require(err == MathError.NO_ERROR, "exchangeRateStored: exchangeRateStoredInternal failed");
return result;
}
function exchangeRateStoredInternal() internal view returns (MathError, uint) {
uint _totalSupply = totalSupply;
if (_totalSupply == 0) {
return (MathError.NO_ERROR, initialExchangeRateMantissa);
} else {
uint totalCash = getCashPrior();
uint cashPlusBorrowsMinusReserves;
Exp memory exchangeRate;
MathError mathErr;
(mathErr, cashPlusBorrowsMinusReserves) = addThenSubUInt(totalCash, totalBorrows, totalReserves);
if (mathErr != MathError.NO_ERROR) {
return (mathErr, 0);
}
(mathErr, exchangeRate) = getExp(cashPlusBorrowsMinusReserves, _totalSupply);
if (mathErr != MathError.NO_ERROR) {
return (mathErr, 0);
}
return (MathError.NO_ERROR, exchangeRate.mantissa);
}
}
function getCash() external view returns (uint) {
return getCashPrior();
}
function accrueInterest() public returns (uint) {
uint currentBlockTimestamp = getBlockTimestamp();
uint accrualBlockTimestampPrior = accrualBlockTimestamp;
if (accrualBlockTimestampPrior == currentBlockTimestamp) {
return uint(Error.NO_ERROR);
}
uint cashPrior = getCashPrior();
uint borrowsPrior = totalBorrows;
uint reservesPrior = totalReserves;
uint borrowIndexPrior = borrowIndex;
uint borrowRateMantissa = interestRateModel.getBorrowRate(cashPrior, borrowsPrior, reservesPrior);
require(borrowRateMantissa <= borrowRateMaxMantissa, "borrow rate is absurdly high");
(MathError mathErr, uint blockDelta) = subUInt(currentBlockTimestamp, accrualBlockTimestampPrior);
require(mathErr == MathError.NO_ERROR, "could not calculate block delta");
Exp memory simpleInterestFactor;
uint interestAccumulated;
uint totalBorrowsNew;
uint totalReservesNew;
uint borrowIndexNew;
(mathErr, simpleInterestFactor) = mulScalar(Exp({mantissa: borrowRateMantissa}), blockDelta);
if (mathErr != MathError.NO_ERROR) {
return failOpaque(Error.MATH_ERROR, FailureInfo.ACCRUE_INTEREST_SIMPLE_INTEREST_FACTOR_CALCULATION_FAILED, uint(mathErr));
}
(mathErr, interestAccumulated) = mulScalarTruncate(simpleInterestFactor, borrowsPrior);
if (mathErr != MathError.NO_ERROR) {
return failOpaque(Error.MATH_ERROR, FailureInfo.ACCRUE_INTEREST_ACCUMULATED_INTEREST_CALCULATION_FAILED, uint(mathErr));
}
(mathErr, totalBorrowsNew) = addUInt(interestAccumulated, borrowsPrior);
if (mathErr != MathError.NO_ERROR) {
return failOpaque(Error.MATH_ERROR, FailureInfo.ACCRUE_INTEREST_NEW_TOTAL_BORROWS_CALCULATION_FAILED, uint(mathErr));
}
(mathErr, totalReservesNew) = mulScalarTruncateAddUInt(Exp({mantissa: reserveFactorMantissa}), interestAccumulated, reservesPrior);
if (mathErr != MathError.NO_ERROR) {
return failOpaque(Error.MATH_ERROR, FailureInfo.ACCRUE_INTEREST_NEW_TOTAL_RESERVES_CALCULATION_FAILED, uint(mathErr));
}
(mathErr, borrowIndexNew) = mulScalarTruncateAddUInt(simpleInterestFactor, borrowIndexPrior, borrowIndexPrior);
if (mathErr != MathError.NO_ERROR) {
return failOpaque(Error.MATH_ERROR, FailureInfo.ACCRUE_INTEREST_NEW_BORROW_INDEX_CALCULATION_FAILED, uint(mathErr));
}
accrualBlockTimestamp = currentBlockTimestamp;
borrowIndex = borrowIndexNew;
totalBorrows = totalBorrowsNew;
totalReserves = totalReservesNew;
emit AccrueInterest(cashPrior, interestAccumulated, borrowIndexNew, totalBorrowsNew);
return uint(Error.NO_ERROR);
}
function mintInternal(uint mintAmount) internal nonReentrant returns (uint, uint) {
uint error = accrueInterest();
if (error != uint(Error.NO_ERROR)) {
return (fail(Error(error), FailureInfo.MINT_ACCRUE_INTEREST_FAILED), 0);
}
return mintFresh(msg.sender, mintAmount);
}
struct MintLocalVars {
Error err;
MathError mathErr;
uint exchangeRateMantissa;
uint mintTokens;
uint totalSupplyNew;
uint accountTokensNew;
uint actualMintAmount;
}
function mintFresh(address minter, uint mintAmount) internal returns (uint, uint) {
uint allowed = comptroller.mintAllowed(address(this), minter, mintAmount);
if (allowed != 0) {
return (failOpaque(Error.COMPTROLLER_REJECTION, FailureInfo.MINT_COMPTROLLER_REJECTION, allowed), 0);
}
if (accrualBlockTimestamp != getBlockTimestamp()) {
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);
}
vars.actualMintAmount = doTransferIn(minter, mintAmount);
(vars.mathErr, vars.mintTokens) = divScalarByExpTruncate(vars.actualMintAmount, Exp({mantissa: vars.exchangeRateMantissa}));
require(vars.mathErr == MathError.NO_ERROR, "MINT_EXCHANGE_CALCULATION_FAILED");
(vars.mathErr, vars.totalSupplyNew) = addUInt(totalSupply, vars.mintTokens);
require(vars.mathErr == MathError.NO_ERROR, "MINT_NEW_TOTAL_SUPPLY_CALCULATION_FAILED");
(vars.mathErr, vars.accountTokensNew) = addUInt(accountTokens[minter], vars.mintTokens);
require(vars.mathErr == MathError.NO_ERROR, "MINT_NEW_ACCOUNT_BALANCE_CALCULATION_FAILED");
totalSupply = vars.totalSupplyNew;
accountTokens[minter] = vars.accountTokensNew;
emit Mint(minter, vars.actualMintAmount, vars.mintTokens);
emit Transfer(address(0), minter, vars.mintTokens);
return (uint(Error.NO_ERROR), vars.actualMintAmount);
}
function redeemInternal(uint redeemTokens) internal nonReentrant returns (uint) {
uint error = accrueInterest();
if (error != uint(Error.NO_ERROR)) {
return fail(Error(error), FailureInfo.REDEEM_ACCRUE_INTEREST_FAILED);
}
return redeemFresh(msg.sender, redeemTokens, 0);
}
function redeemUnderlyingInternal(uint redeemAmount) internal nonReentrant returns (uint) {
uint error = accrueInterest();
if (error != uint(Error.NO_ERROR)) {
return fail(Error(error), FailureInfo.REDEEM_ACCRUE_INTEREST_FAILED);
}
return redeemFresh(msg.sender, 0, redeemAmount);
}
struct RedeemLocalVars {
Error err;
MathError mathErr;
uint exchangeRateMantissa;
uint redeemTokens;
uint redeemAmount;
uint totalSupplyNew;
uint accountTokensNew;
}
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;
(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) {
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 {
(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;
}
uint allowed = comptroller.redeemAllowed(address(this), redeemer, vars.redeemTokens);
if (allowed != 0) {
return failOpaque(Error.COMPTROLLER_REJECTION, FailureInfo.REDEEM_COMPTROLLER_REJECTION, allowed);
}
if (accrualBlockTimestamp != getBlockTimestamp()) {
return fail(Error.MARKET_NOT_FRESH, FailureInfo.REDEEM_FRESHNESS_CHECK);
}
(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));
}
if (getCashPrior() < vars.redeemAmount) {
return fail(Error.TOKEN_INSUFFICIENT_CASH, FailureInfo.REDEEM_TRANSFER_OUT_NOT_POSSIBLE);
}
totalSupply = vars.totalSupplyNew;
accountTokens[redeemer] = vars.accountTokensNew;
doTransferOut(redeemer, vars.redeemAmount);
emit Transfer(redeemer, address(this), vars.redeemTokens);
emit Redeem(redeemer, vars.redeemAmount, vars.redeemTokens);
comptroller.redeemVerify(address(this), redeemer, vars.redeemAmount, vars.redeemTokens);
return uint(Error.NO_ERROR);
}
function borrowInternal(uint borrowAmount) internal nonReentrant returns (uint) {
uint error = accrueInterest();
if (error != uint(Error.NO_ERROR)) {
return fail(Error(error), FailureInfo.BORROW_ACCRUE_INTEREST_FAILED);
}
return borrowFresh(msg.sender, borrowAmount);
}
struct BorrowLocalVars {
MathError mathErr;
uint accountBorrows;
uint accountBorrowsNew;
uint totalBorrowsNew;
}
function borrowFresh(address payable borrower, uint borrowAmount) internal returns (uint) {
uint allowed = comptroller.borrowAllowed(address(this), borrower, borrowAmount);
if (allowed != 0) {
return failOpaque(Error.COMPTROLLER_REJECTION, FailureInfo.BORROW_COMPTROLLER_REJECTION, allowed);
}
if (accrualBlockTimestamp != getBlockTimestamp()) {
return fail(Error.MARKET_NOT_FRESH, FailureInfo.BORROW_FRESHNESS_CHECK);
}
if (getCashPrior() < borrowAmount) {
return fail(Error.TOKEN_INSUFFICIENT_CASH, FailureInfo.BORROW_CASH_NOT_AVAILABLE);
}
BorrowLocalVars memory vars;
(vars.mathErr, vars.accountBorrows) = borrowBalanceStoredInternal(borrower);
if (vars.mathErr != MathError.NO_ERROR) {
return failOpaque(Error.MATH_ERROR, FailureInfo.BORROW_ACCUMULATED_BALANCE_CALCULATION_FAILED, uint(vars.mathErr));
}
(vars.mathErr, vars.accountBorrowsNew) = addUInt(vars.accountBorrows, borrowAmount);
if (vars.mathErr != MathError.NO_ERROR) {
return failOpaque(Error.MATH_ERROR, FailureInfo.BORROW_NEW_ACCOUNT_BORROW_BALANCE_CALCULATION_FAILED, uint(vars.mathErr));
}
(vars.mathErr, vars.totalBorrowsNew) = addUInt(totalBorrows, borrowAmount);
if (vars.mathErr != MathError.NO_ERROR) {
return failOpaque(Error.MATH_ERROR, FailureInfo.BORROW_NEW_TOTAL_BALANCE_CALCULATION_FAILED, uint(vars.mathErr));
}
accountBorrows[borrower].principal = vars.accountBorrowsNew;
accountBorrows[borrower].interestIndex = borrowIndex;
totalBorrows = vars.totalBorrowsNew;
doTransferOut(borrower, borrowAmount);
emit Borrow(borrower, borrowAmount, vars.accountBorrowsNew, vars.totalBorrowsNew);
return uint(Error.NO_ERROR);
}
function repayBorrowInternal(uint repayAmount) internal nonReentrant returns (uint, uint) {
uint error = accrueInterest();
if (error != uint(Error.NO_ERROR)) {
return (fail(Error(error), FailureInfo.REPAY_BORROW_ACCRUE_INTEREST_FAILED), 0);
}
return repayBorrowFresh(msg.sender, msg.sender, repayAmount);
}
function repayBorrowBehalfInternal(address borrower, uint repayAmount) internal nonReentrant returns (uint, uint) {
uint error = accrueInterest();
if (error != uint(Error.NO_ERROR)) {
return (fail(Error(error), FailureInfo.REPAY_BEHALF_ACCRUE_INTEREST_FAILED), 0);
}
return repayBorrowFresh(msg.sender, borrower, repayAmount);
}
struct RepayBorrowLocalVars {
Error err;
MathError mathErr;
uint repayAmount;
uint borrowerIndex;
uint accountBorrows;
uint accountBorrowsNew;
uint totalBorrowsNew;
uint actualRepayAmount;
}
function repayBorrowFresh(address payer, address borrower, uint repayAmount) internal returns (uint, uint) {
uint allowed = comptroller.repayBorrowAllowed(address(this), payer, borrower, repayAmount);
if (allowed != 0) {
return (failOpaque(Error.COMPTROLLER_REJECTION, FailureInfo.REPAY_BORROW_COMPTROLLER_REJECTION, allowed), 0);
}
if (accrualBlockTimestamp != getBlockTimestamp()) {
return (fail(Error.MARKET_NOT_FRESH, FailureInfo.REPAY_BORROW_FRESHNESS_CHECK), 0);
}
RepayBorrowLocalVars memory vars;
vars.borrowerIndex = accountBorrows[borrower].interestIndex;
(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 == uint(-1) && payer == borrower) {
vars.repayAmount = vars.accountBorrows;
} else {
vars.repayAmount = repayAmount;
}
vars.actualRepayAmount = doTransferIn(payer, vars.repayAmount);
(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");
accountBorrows[borrower].principal = vars.accountBorrowsNew;
accountBorrows[borrower].interestIndex = borrowIndex;
totalBorrows = vars.totalBorrowsNew;
emit RepayBorrow(payer, borrower, vars.actualRepayAmount, vars.accountBorrowsNew, vars.totalBorrowsNew);
return (uint(Error.NO_ERROR), vars.actualRepayAmount);
}
function liquidateBorrowInternal(address borrower, uint repayAmount, CTokenInterface cTokenCollateral) internal nonReentrant returns (uint, uint) {
uint error = accrueInterest();
if (error != uint(Error.NO_ERROR)) {
return (fail(Error(error), FailureInfo.LIQUIDATE_ACCRUE_BORROW_INTEREST_FAILED), 0);
}
error = cTokenCollateral.accrueInterest();
if (error != uint(Error.NO_ERROR)) {
return (fail(Error(error), FailureInfo.LIQUIDATE_ACCRUE_COLLATERAL_INTEREST_FAILED), 0);
}
return liquidateBorrowFresh(msg.sender, borrower, repayAmount, cTokenCollateral);
}
function liquidateBorrowFresh(address liquidator, address borrower, uint repayAmount, CTokenInterface cTokenCollateral) internal returns (uint, uint) {
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);
}
if (accrualBlockTimestamp != getBlockTimestamp()) {
return (fail(Error.MARKET_NOT_FRESH, FailureInfo.LIQUIDATE_FRESHNESS_CHECK), 0);
}
if (cTokenCollateral.accrualBlockTimestamp() != getBlockTimestamp()) {
return (fail(Error.MARKET_NOT_FRESH, FailureInfo.LIQUIDATE_COLLATERAL_FRESHNESS_CHECK), 0);
}
if (borrower == liquidator) {
return (fail(Error.INVALID_ACCOUNT_PAIR, FailureInfo.LIQUIDATE_LIQUIDATOR_IS_BORROWER), 0);
}
if (repayAmount == 0) {
return (fail(Error.INVALID_CLOSE_AMOUNT_REQUESTED, FailureInfo.LIQUIDATE_CLOSE_AMOUNT_IS_ZERO), 0);
}
if (repayAmount == uint(-1)) {
return (fail(Error.INVALID_CLOSE_AMOUNT_REQUESTED, FailureInfo.LIQUIDATE_CLOSE_AMOUNT_IS_UINT_MAX), 0);
}
(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);
}
(uint amountSeizeError, uint seizeTokens) = comptroller.liquidateCalculateSeizeTokens(address(this), address(cTokenCollateral), actualRepayAmount);
require(amountSeizeError == uint(Error.NO_ERROR), "LIQUIDATE_COMPTROLLER_CALCULATE_AMOUNT_SEIZE_FAILED");
require(cTokenCollateral.balanceOf(borrower) >= seizeTokens, "LIQUIDATE_SEIZE_TOO_MUCH");
uint seizeError;
if (address(cTokenCollateral) == address(this)) {
seizeError = seizeInternal(address(this), liquidator, borrower, seizeTokens);
} else {
seizeError = cTokenCollateral.seize(liquidator, borrower, seizeTokens);
}
require(seizeError == uint(Error.NO_ERROR), "token seizure failed");
emit LiquidateBorrow(liquidator, borrower, actualRepayAmount, address(cTokenCollateral), seizeTokens);
return (uint(Error.NO_ERROR), actualRepayAmount);
}
function seize(address liquidator, address borrower, uint seizeTokens) external nonReentrant returns (uint) {
return seizeInternal(msg.sender, liquidator, borrower, seizeTokens);
}
struct SeizeInternalLocalVars {
MathError mathErr;
uint borrowerTokensNew;
uint liquidatorTokensNew;
uint liquidatorSeizeTokens;
uint protocolSeizeTokens;
uint protocolSeizeAmount;
uint exchangeRateMantissa;
uint totalReservesNew;
uint totalSupplyNew;
}
function seizeInternal(address seizerToken, address liquidator, address borrower, uint seizeTokens) internal returns (uint) {
uint allowed = comptroller.seizeAllowed(address(this), seizerToken, liquidator, borrower, seizeTokens);
if (allowed != 0) {
return failOpaque(Error.COMPTROLLER_REJECTION, FailureInfo.LIQUIDATE_SEIZE_COMPTROLLER_REJECTION, allowed);
}
if (borrower == liquidator) {
return fail(Error.INVALID_ACCOUNT_PAIR, FailureInfo.LIQUIDATE_SEIZE_LIQUIDATOR_IS_BORROWER);
}
SeizeInternalLocalVars memory vars;
(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));
}
totalReserves = vars.totalReservesNew;
totalSupply = vars.totalSupplyNew;
accountTokens[borrower] = vars.borrowerTokensNew;
accountTokens[liquidator] = vars.liquidatorTokensNew;
emit Transfer(borrower, liquidator, vars.liquidatorSeizeTokens);
emit Transfer(borrower, address(this), vars.protocolSeizeTokens);
emit ReservesAdded(address(this), vars.protocolSeizeAmount, vars.totalReservesNew);
return uint(Error.NO_ERROR);
}
function _setPendingAdmin(address payable newPendingAdmin) external returns (uint) {
if (msg.sender != admin) {
return fail(Error.UNAUTHORIZED, FailureInfo.SET_PENDING_ADMIN_OWNER_CHECK);
}
address oldPendingAdmin = pendingAdmin;
pendingAdmin = newPendingAdmin;
emit NewPendingAdmin(oldPendingAdmin, newPendingAdmin);
return uint(Error.NO_ERROR);
}
function _acceptAdmin() external returns (uint) {
if (msg.sender != pendingAdmin || msg.sender == address(0)) {
return fail(Error.UNAUTHORIZED, FailureInfo.ACCEPT_ADMIN_PENDING_ADMIN_CHECK);
}
address oldAdmin = admin;
address oldPendingAdmin = pendingAdmin;
admin = pendingAdmin;
pendingAdmin = address(0);
emit NewAdmin(oldAdmin, admin);
emit NewPendingAdmin(oldPendingAdmin, pendingAdmin);
return uint(Error.NO_ERROR);
}
function _setComptroller(ComptrollerInterface newComptroller) public returns (uint) {
if (msg.sender != admin) {
return fail(Error.UNAUTHORIZED, FailureInfo.SET_COMPTROLLER_OWNER_CHECK);
}
ComptrollerInterface oldComptroller = comptroller;
require(newComptroller.isComptroller(), "marker method returned false");
comptroller = newComptroller;
emit NewComptroller(oldComptroller, newComptroller);
return uint(Error.NO_ERROR);
}
function _setReserveFactor(uint newReserveFactorMantissa) external nonReentrant returns (uint) {
uint error = accrueInterest();
if (error != uint(Error.NO_ERROR)) {
return fail(Error(error), FailureInfo.SET_RESERVE_FACTOR_ACCRUE_INTEREST_FAILED);
}
return _setReserveFactorFresh(newReserveFactorMantissa);
}
function _setReserveFactorFresh(uint newReserveFactorMantissa) internal returns (uint) {
if (msg.sender != admin) {
return fail(Error.UNAUTHORIZED, FailureInfo.SET_RESERVE_FACTOR_ADMIN_CHECK);
}
if (accrualBlockTimestamp != getBlockTimestamp()) {
return fail(Error.MARKET_NOT_FRESH, FailureInfo.SET_RESERVE_FACTOR_FRESH_CHECK);
}
if (newReserveFactorMantissa > reserveFactorMaxMantissa) {
return fail(Error.BAD_INPUT, FailureInfo.SET_RESERVE_FACTOR_BOUNDS_CHECK);
}
uint oldReserveFactorMantissa = reserveFactorMantissa;
reserveFactorMantissa = newReserveFactorMantissa;
emit NewReserveFactor(oldReserveFactorMantissa, newReserveFactorMantissa);
return uint(Error.NO_ERROR);
}
function _addReservesInternal(uint addAmount) internal nonReentrant returns (uint) {
uint error = accrueInterest();
if (error != uint(Error.NO_ERROR)) {
return fail(Error(error), FailureInfo.ADD_RESERVES_ACCRUE_INTEREST_FAILED);
}
(error, ) = _addReservesFresh(addAmount);
return error;
}
function _addReservesFresh(uint addAmount) internal returns (uint, uint) {
uint totalReservesNew;
uint actualAddAmount;
if (accrualBlockTimestamp != getBlockTimestamp()) {
return (fail(Error.MARKET_NOT_FRESH, FailureInfo.ADD_RESERVES_FRESH_CHECK), actualAddAmount);
}
actualAddAmount = doTransferIn(msg.sender, addAmount);
totalReservesNew = totalReserves + actualAddAmount;
require(totalReservesNew >= totalReserves, "add reserves unexpected overflow");
totalReserves = totalReservesNew;
emit ReservesAdded(msg.sender, actualAddAmount, totalReservesNew);
return (uint(Error.NO_ERROR), actualAddAmount);
}
function _reduceReserves(uint reduceAmount) external nonReentrant returns (uint) {
uint error = accrueInterest();
if (error != uint(Error.NO_ERROR)) {
return fail(Error(error), FailureInfo.REDUCE_RESERVES_ACCRUE_INTEREST_FAILED);
}
return _reduceReservesFresh(reduceAmount);
}
function _reduceReservesFresh(uint reduceAmount) internal returns (uint) {
uint totalReservesNew;
if (msg.sender != admin) {
return fail(Error.UNAUTHORIZED, FailureInfo.REDUCE_RESERVES_ADMIN_CHECK);
}
if (accrualBlockTimestamp != getBlockTimestamp()) {
return fail(Error.MARKET_NOT_FRESH, FailureInfo.REDUCE_RESERVES_FRESH_CHECK);
}
if (getCashPrior() < reduceAmount) {
return fail(Error.TOKEN_INSUFFICIENT_CASH, FailureInfo.REDUCE_RESERVES_CASH_NOT_AVAILABLE);
}
if (reduceAmount > totalReserves) {
return fail(Error.BAD_INPUT, FailureInfo.REDUCE_RESERVES_VALIDATION);
}
totalReservesNew = totalReserves - reduceAmount;
require(totalReservesNew <= totalReserves, "reduce reserves unexpected underflow");
totalReserves = totalReservesNew;
doTransferOut(admin, reduceAmount);
emit ReservesReduced(admin, reduceAmount, totalReservesNew);
return uint(Error.NO_ERROR);
}
function _setInterestRateModel(InterestRateModel newInterestRateModel) public returns (uint) {
uint error = accrueInterest();
if (error != uint(Error.NO_ERROR)) {
return fail(Error(error), FailureInfo.SET_INTEREST_RATE_MODEL_ACCRUE_INTEREST_FAILED);
}
return _setInterestRateModelFresh(newInterestRateModel);
}
function _setInterestRateModelFresh(InterestRateModel newInterestRateModel) internal returns (uint) {
InterestRateModel oldInterestRateModel;
if (msg.sender != admin) {
return fail(Error.UNAUTHORIZED, FailureInfo.SET_INTEREST_RATE_MODEL_OWNER_CHECK);
}
if (accrualBlockTimestamp != getBlockTimestamp()) {
return fail(Error.MARKET_NOT_FRESH, FailureInfo.SET_INTEREST_RATE_MODEL_FRESH_CHECK);
}
oldInterestRateModel = interestRateModel;
require(newInterestRateModel.isInterestRateModel(), "marker method returned false");
interestRateModel = newInterestRateModel;
emit NewMarketInterestRateModel(oldInterestRateModel, newInterestRateModel);
return uint(Error.NO_ERROR);
}
function getCashPrior() internal view returns (uint);
function doTransferIn(address from, uint amount) internal returns (uint);
function doTransferOut(address payable to, uint amount) internal;
modifier nonReentrant() {
require(_notEntered, "re-entered");
_notEntered = false;
_;
_notEntered = true;
}
}
pragma solidity ^0.5.16;
interface CompLike {
function delegate(address delegatee) external;
}
contract CErc20 is CToken, CErc20Interface {
function initialize(address underlying_,
ComptrollerInterface comptroller_,
InterestRateModel interestRateModel_,
uint initialExchangeRateMantissa_,
string memory name_,
string memory symbol_,
uint8 decimals_) public {
super.initialize(comptroller_, interestRateModel_, initialExchangeRateMantissa_, name_, symbol_, decimals_);
underlying = underlying_;
EIP20Interface(underlying).totalSupply();
}
function mint(uint mintAmount) external returns (uint) {
(uint err,) = mintInternal(mintAmount);
return err;
}
function redeem(uint redeemTokens) external returns (uint) {
return redeemInternal(redeemTokens);
}
function redeemUnderlying(uint redeemAmount) external returns (uint) {
return redeemUnderlyingInternal(redeemAmount);
}
function borrow(uint borrowAmount) external returns (uint) {
return borrowInternal(borrowAmount);
}
function repayBorrow(uint repayAmount) external returns (uint) {
(uint err,) = repayBorrowInternal(repayAmount);
return err;
}
function repayBorrowBehalf(address borrower, uint repayAmount) external returns (uint) {
(uint err,) = repayBorrowBehalfInternal(borrower, repayAmount);
return err;
}
function liquidateBorrow(address borrower, uint repayAmount, CTokenInterface cTokenCollateral) external returns (uint) {
(uint err,) = liquidateBorrowInternal(borrower, repayAmount, cTokenCollateral);
return err;
}
function sweepToken(EIP20NonStandardInterface token) external {
require(address(token) != underlying, "CErc20::sweepToken: can not sweep underlying token");
uint256 balance = token.balanceOf(address(this));
token.transfer(admin, balance);
}
function _addReserves(uint addAmount) external returns (uint) {
return _addReservesInternal(addAmount);
}
function getCashPrior() internal view returns (uint) {
EIP20Interface token = EIP20Interface(underlying);
return token.balanceOf(address(this));
}
function doTransferIn(address from, uint amount) internal returns (uint) {
EIP20NonStandardInterface token = EIP20NonStandardInterface(underlying);
uint balanceBefore = EIP20Interface(underlying).balanceOf(address(this));
token.transferFrom(from, address(this), amount);
bool success;
assembly {
switch returndatasize()
case 0 {
success := not(0)
}
case 32 {
returndatacopy(0, 0, 32)
success := mload(0)
}
default {
revert(0, 0)
}
}
require(success, "TOKEN_TRANSFER_IN_FAILED");
uint balanceAfter = EIP20Interface(underlying).balanceOf(address(this));
require(balanceAfter >= balanceBefore, "TOKEN_TRANSFER_IN_OVERFLOW");
return balanceAfter - balanceBefore;
}
function doTransferOut(address payable to, uint amount) internal {
EIP20NonStandardInterface token = EIP20NonStandardInterface(underlying);
token.transfer(to, amount);
bool success;
assembly {
switch returndatasize()
case 0 {
success := not(0)
}
case 32 {
returndatacopy(0, 0, 32)
success := mload(0)
}
default {
revert(0, 0)
}
}
require(success, "TOKEN_TRANSFER_OUT_FAILED");
}
function _delegateCompLikeTo(address compLikeDelegatee) external {
require(msg.sender == admin, "only the admin may set the comp-like delegate");
CompLike(underlying).delegate(compLikeDelegatee);
}
}
pragma solidity ^0.5.16;
contract CErc20Immutable is CErc20 {
constructor(address underlying_,
ComptrollerInterface comptroller_,
InterestRateModel interestRateModel_,
uint initialExchangeRateMantissa_,
string memory name_,
string memory symbol_,
uint8 decimals_,
address payable admin_) public {
admin = msg.sender;
initialize(underlying_, comptroller_, interestRateModel_, initialExchangeRateMantissa_, name_, symbol_, decimals_);
admin = admin_;
}
}

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","payable":false,"inputs":[{"type":"address","name":"underlying_","internalType":"address"},{"type":"address","name":"comptroller_","internalType":"contract ComptrollerInterface"},{"type":"address","name":"interestRateModel_","internalType":"contract InterestRateModel"},{"type":"uint256","name":"initialExchangeRateMantissa_","internalType":"uint256"},{"type":"string","name":"name_","internalType":"string"},{"type":"string","name":"symbol_","internalType":"string"},{"type":"uint8","name":"decimals_","internalType":"uint8"},{"type":"address","name":"admin_","internalType":"address payable"}]},{"type":"event","name":"AccrueInterest","inputs":[{"type":"uint256","name":"cashPrior","internalType":"uint256","indexed":false},{"type":"uint256","name":"interestAccumulated","internalType":"uint256","indexed":false},{"type":"uint256","name":"borrowIndex","internalType":"uint256","indexed":false},{"type":"uint256","name":"totalBorrows","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"spender","internalType":"address","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Borrow","inputs":[{"type":"address","name":"borrower","internalType":"address","indexed":false},{"type":"uint256","name":"borrowAmount","internalType":"uint256","indexed":false},{"type":"uint256","name":"accountBorrows","internalType":"uint256","indexed":false},{"type":"uint256","name":"totalBorrows","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Failure","inputs":[{"type":"uint256","name":"error","internalType":"uint256","indexed":false},{"type":"uint256","name":"info","internalType":"uint256","indexed":false},{"type":"uint256","name":"detail","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"LiquidateBorrow","inputs":[{"type":"address","name":"liquidator","internalType":"address","indexed":false},{"type":"address","name":"borrower","internalType":"address","indexed":false},{"type":"uint256","name":"repayAmount","internalType":"uint256","indexed":false},{"type":"address","name":"cTokenCollateral","internalType":"address","indexed":false},{"type":"uint256","name":"seizeTokens","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Mint","inputs":[{"type":"address","name":"minter","internalType":"address","indexed":false},{"type":"uint256","name":"mintAmount","internalType":"uint256","indexed":false},{"type":"uint256","name":"mintTokens","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"NewAdmin","inputs":[{"type":"address","name":"oldAdmin","internalType":"address","indexed":false},{"type":"address","name":"newAdmin","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"NewComptroller","inputs":[{"type":"address","name":"oldComptroller","internalType":"contract ComptrollerInterface","indexed":false},{"type":"address","name":"newComptroller","internalType":"contract ComptrollerInterface","indexed":false}],"anonymous":false},{"type":"event","name":"NewMarketInterestRateModel","inputs":[{"type":"address","name":"oldInterestRateModel","internalType":"contract InterestRateModel","indexed":false},{"type":"address","name":"newInterestRateModel","internalType":"contract InterestRateModel","indexed":false}],"anonymous":false},{"type":"event","name":"NewPendingAdmin","inputs":[{"type":"address","name":"oldPendingAdmin","internalType":"address","indexed":false},{"type":"address","name":"newPendingAdmin","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"NewReserveFactor","inputs":[{"type":"uint256","name":"oldReserveFactorMantissa","internalType":"uint256","indexed":false},{"type":"uint256","name":"newReserveFactorMantissa","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Redeem","inputs":[{"type":"address","name":"redeemer","internalType":"address","indexed":false},{"type":"uint256","name":"redeemAmount","internalType":"uint256","indexed":false},{"type":"uint256","name":"redeemTokens","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"RepayBorrow","inputs":[{"type":"address","name":"payer","internalType":"address","indexed":false},{"type":"address","name":"borrower","internalType":"address","indexed":false},{"type":"uint256","name":"repayAmount","internalType":"uint256","indexed":false},{"type":"uint256","name":"accountBorrows","internalType":"uint256","indexed":false},{"type":"uint256","name":"totalBorrows","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"ReservesAdded","inputs":[{"type":"address","name":"benefactor","internalType":"address","indexed":false},{"type":"uint256","name":"addAmount","internalType":"uint256","indexed":false},{"type":"uint256","name":"newTotalReserves","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"ReservesReduced","inputs":[{"type":"address","name":"admin","internalType":"address","indexed":false},{"type":"uint256","name":"reduceAmount","internalType":"uint256","indexed":false},{"type":"uint256","name":"newTotalReserves","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"_acceptAdmin","inputs":[],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"_addReserves","inputs":[{"type":"uint256","name":"addAmount","internalType":"uint256"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"_delegateCompLikeTo","inputs":[{"type":"address","name":"compLikeDelegatee","internalType":"address"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"_reduceReserves","inputs":[{"type":"uint256","name":"reduceAmount","internalType":"uint256"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"_setComptroller","inputs":[{"type":"address","name":"newComptroller","internalType":"contract ComptrollerInterface"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"_setInterestRateModel","inputs":[{"type":"address","name":"newInterestRateModel","internalType":"contract InterestRateModel"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"_setPendingAdmin","inputs":[{"type":"address","name":"newPendingAdmin","internalType":"address payable"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"_setReserveFactor","inputs":[{"type":"uint256","name":"newReserveFactorMantissa","internalType":"uint256"}],"constant":false},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"accrualBlockTimestamp","inputs":[],"constant":true},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"accrueInterest","inputs":[],"constant":false},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"address","name":"","internalType":"address payable"}],"name":"admin","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"allowance","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"spender","internalType":"address"}],"constant":true},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"approve","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}],"constant":false},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"owner","internalType":"address"}],"constant":true},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOfUnderlying","inputs":[{"type":"address","name":"owner","internalType":"address"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"borrow","inputs":[{"type":"uint256","name":"borrowAmount","internalType":"uint256"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"borrowBalanceCurrent","inputs":[{"type":"address","name":"account","internalType":"address"}],"constant":false},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"borrowBalanceStored","inputs":[{"type":"address","name":"account","internalType":"address"}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"borrowIndex","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"borrowRatePerBlock","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"address","name":"","internalType":"contract ComptrollerInterface"}],"name":"comptroller","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint8","name":"","internalType":"uint8"}],"name":"decimals","inputs":[],"constant":true},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"exchangeRateCurrent","inputs":[],"constant":false},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"exchangeRateStored","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"}],"name":"getAccountSnapshot","inputs":[{"type":"address","name":"account","internalType":"address"}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getCash","inputs":[],"constant":true},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"initialize","inputs":[{"type":"address","name":"underlying_","internalType":"address"},{"type":"address","name":"comptroller_","internalType":"contract ComptrollerInterface"},{"type":"address","name":"interestRateModel_","internalType":"contract InterestRateModel"},{"type":"uint256","name":"initialExchangeRateMantissa_","internalType":"uint256"},{"type":"string","name":"name_","internalType":"string"},{"type":"string","name":"symbol_","internalType":"string"},{"type":"uint8","name":"decimals_","internalType":"uint8"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"initialize","inputs":[{"type":"address","name":"comptroller_","internalType":"contract ComptrollerInterface"},{"type":"address","name":"interestRateModel_","internalType":"contract InterestRateModel"},{"type":"uint256","name":"initialExchangeRateMantissa_","internalType":"uint256"},{"type":"string","name":"name_","internalType":"string"},{"type":"string","name":"symbol_","internalType":"string"},{"type":"uint8","name":"decimals_","internalType":"uint8"}],"constant":false},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"address","name":"","internalType":"contract InterestRateModel"}],"name":"interestRateModel","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isCToken","inputs":[],"constant":true},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"liquidateBorrow","inputs":[{"type":"address","name":"borrower","internalType":"address"},{"type":"uint256","name":"repayAmount","internalType":"uint256"},{"type":"address","name":"cTokenCollateral","internalType":"contract CTokenInterface"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"mint","inputs":[{"type":"uint256","name":"mintAmount","internalType":"uint256"}],"constant":false},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"address","name":"","internalType":"address payable"}],"name":"pendingAdmin","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"protocolSeizeShareMantissa","inputs":[],"constant":true},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"redeem","inputs":[{"type":"uint256","name":"redeemTokens","internalType":"uint256"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"redeemUnderlying","inputs":[{"type":"uint256","name":"redeemAmount","internalType":"uint256"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"repayBorrow","inputs":[{"type":"uint256","name":"repayAmount","internalType":"uint256"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"repayBorrowBehalf","inputs":[{"type":"address","name":"borrower","internalType":"address"},{"type":"uint256","name":"repayAmount","internalType":"uint256"}],"constant":false},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"reserveFactorMantissa","inputs":[],"constant":true},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"seize","inputs":[{"type":"address","name":"liquidator","internalType":"address"},{"type":"address","name":"borrower","internalType":"address"},{"type":"uint256","name":"seizeTokens","internalType":"uint256"}],"constant":false},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"supplyRatePerBlock","inputs":[],"constant":true},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"sweepToken","inputs":[{"type":"address","name":"token","internalType":"contract EIP20NonStandardInterface"}],"constant":false},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalBorrows","inputs":[],"constant":true},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalBorrowsCurrent","inputs":[],"constant":false},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalReserves","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[],"constant":true},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transfer","inputs":[{"type":"address","name":"dst","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}],"constant":false},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transferFrom","inputs":[{"type":"address","name":"src","internalType":"address"},{"type":"address","name":"dst","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}],"constant":false},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"address","name":"","internalType":"address"}],"name":"underlying","inputs":[],"constant":true}]
            

Contract Creation Code

0x60806040523480156200001157600080fd5b5060405162005e5a38038062005e5a83398181016040526101008110156200003857600080fd5b81516020830151604080850151606086015160808701805193519597949692959194919392820192846401000000008211156200007457600080fd5b9083019060208201858111156200008a57600080fd5b8251640100000000811182820188101715620000a557600080fd5b82525081516020918201929091019080838360005b83811015620000d4578181015183820152602001620000ba565b50505050905090810190601f168015620001025780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200012657600080fd5b9083019060208201858111156200013c57600080fd5b82516401000000008111828201881017156200015757600080fd5b82525081516020918201929091019080838360005b83811015620001865781810151838201526020016200016c565b50505050905090810190601f168015620001b45780820380516001836020036101000a031916815260200191505b506040908152602082015191015160038054610100600160a81b03191633610100021790559092509050620001ef8888888888888862000223565b600380546001600160a01b0390921661010002610100600160a81b0319909216919091179055506200090d95505050505050565b6200023e868686868686620002d260201b620015561760201c565b601180546001600160a01b0319166001600160a01b038981169190911791829055604080516318160ddd60e01b8152905192909116916318160ddd91600480820192602092909190829003018186803b1580156200029b57600080fd5b505afa158015620002b0573d6000803e3d6000fd5b505050506040513d6020811015620002c757600080fd5b505050505050505050565b60035461010090046001600160a01b03163314620003225760405162461bcd60e51b815260040180806020018281038252602481526020018062005dc16024913960400191505060405180910390fd5b600954158015620003335750600a54155b620003705760405162461bcd60e51b815260040180806020018281038252602381526020018062005de56023913960400191505060405180910390fd5b600784905583620003b35760405162461bcd60e51b815260040180806020018281038252603081526020018062005e086030913960400191505060405180910390fd5b6000620003c9876001600160e01b03620004e816565b905080156200041f576040805162461bcd60e51b815260206004820152601a60248201527f73657474696e6720636f6d7074726f6c6c6572206661696c6564000000000000604482015290519081900360640190fd5b620004326001600160e01b036200065016565b600955670de0b6b3a7640000600a5562000455866001600160e01b036200065516565b90508015620004965760405162461bcd60e51b815260040180806020018281038252602281526020018062005e386022913960400191505060405180910390fd5b8351620004ab9060019060208701906200086b565b508251620004c19060029060208601906200086b565b50506003805460ff90921660ff199283161790556000805490911660011790555050505050565b60035460009061010090046001600160a01b0316331462000522576200051a6001603f6001600160e01b03620007fb16565b90506200064b565b60055460408051623f1ee960e11b815290516001600160a01b0392831692851691627e3dd2916004808301926020929190829003018186803b1580156200056857600080fd5b505afa1580156200057d573d6000803e3d6000fd5b505050506040513d60208110156200059457600080fd5b5051620005e8576040805162461bcd60e51b815260206004820152601c60248201527f6d61726b6572206d6574686f642072657475726e65642066616c736500000000604482015290519081900360640190fd5b600580546001600160a01b0319166001600160a01b03858116918217909255604080519284168352602083019190915280517f7ac369dbd14fa5ea3f473ed67cc9d598964a77501540ba6751eb0b3decf5870d9281900390910190a160005b9150505b919050565b425b90565b600354600090819061010090046001600160a01b03163314620006925762000689600160426001600160e01b03620007fb16565b9150506200064b565b620006a56001600160e01b036200065016565b60095414620006c55762000689600a60416001600160e01b03620007fb16565b600660009054906101000a90046001600160a01b03169050826001600160a01b0316632191f92a6040518163ffffffff1660e01b815260040160206040518083038186803b1580156200071757600080fd5b505afa1580156200072c573d6000803e3d6000fd5b505050506040513d60208110156200074357600080fd5b505162000797576040805162461bcd60e51b815260206004820152601c60248201527f6d61726b6572206d6574686f642072657475726e65642066616c736500000000604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b03858116918217909255604080519284168352602083019190915280517fedffc32e068c7c95dfd4bdfd5c4d939a084d6b11c4199eac8436ed234d72f9269281900390910190a1600062000647565b60007f45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa08360108111156200082b57fe5b8360508111156200083857fe5b604080519283526020830191909152600082820152519081900360600190a18260108111156200086457fe5b9392505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620008ae57805160ff1916838001178555620008de565b82800160010185558215620008de579182015b82811115620008de578251825591602001919060010190620008c1565b50620008ec929150620008f0565b5090565b6200065291905b80821115620008ec5760008155600101620008f7565b6154a4806200091d6000396000f3fe608060405234801561001057600080fd5b50600436106102f15760003560e01c8063852a12e31161019d578063c37f68e2116100e9578063f2b3abbd116100a2578063f851a4401161007c578063f851a44014610ad2578063f8f9da2814610ada578063fca7820b14610ae2578063fe9c44ae14610aff576102f1565b8063f2b3abbd14610a6e578063f3fdb15a14610a94578063f5e3c46214610a9c576102f1565b8063c37f68e2146109aa578063c5ebeaec146109f6578063cfa9920114610a13578063db006a7514610a1b578063dd62ed3e14610a38578063e9c714f214610a66576102f1565b8063a6afed9511610156578063ae9d70b011610130578063ae9d70b01461093e578063b2a02ff114610946578063b71d1a0c1461097c578063bd6d894d146109a2576102f1565b8063a6afed9514610902578063a9059cbb1461090a578063aa5af0fd14610936576102f1565b8063852a12e3146107445780638f840ddd1461076157806395d89b411461076957806395dd91931461077157806399d8c1b414610797578063a0712d68146108e5576102f1565b8063313ce5671161025c5780635fe3b567116102155780636f307dc3116101ef5780636f307dc3146106e857806370a08231146106f057806373acee98146107165780637f1e06be1461071e576102f1565b80635fe3b567146106bb578063601a0bf1146106c35780636752e702146106e0576102f1565b8063313ce567146106245780633af9e669146106425780633b1d21a2146106685780633e941010146106705780634576b5db1461068d57806347bd3718146106b3576102f1565b8063182df0f5116102ae578063182df0f5146104185780631a31d465146104205780631be195601461057857806323b872dd1461059e5780632608f818146105d45780632678224714610600576102f1565b806306fdde03146102f6578063095ea7b3146103735780630e752702146103b3578063173b9904146103e257806317bfdfbc146103ea57806318160ddd14610410575b600080fd5b6102fe610b07565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610338578181015183820152602001610320565b50505050905090810190601f1680156103655780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61039f6004803603604081101561038957600080fd5b506001600160a01b038135169060200135610b94565b604080519115158252519081900360200190f35b6103d0600480360360208110156103c957600080fd5b5035610c01565b60408051918252519081900360200190f35b6103d0610c17565b6103d06004803603602081101561040057600080fd5b50356001600160a01b0316610c1d565b6103d0610cdd565b6103d0610ce3565b610576600480360360e081101561043657600080fd5b6001600160a01b03823581169260208101358216926040820135909216916060820135919081019060a081016080820135600160201b81111561047857600080fd5b82018360208201111561048a57600080fd5b803590602001918460018302840111600160201b831117156104ab57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b8111156104fd57600080fd5b82018360208201111561050f57600080fd5b803590602001918460018302840111600160201b8311171561053057600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505050903560ff169150610d469050565b005b6105766004803603602081101561058e57600080fd5b50356001600160a01b0316610de5565b61039f600480360360608110156105b457600080fd5b506001600160a01b03813581169160208101359091169060400135610f21565b6103d0600480360360408110156105ea57600080fd5b506001600160a01b038135169060200135610feb565b610608611001565b604080516001600160a01b039092168252519081900360200190f35b61062c611010565b6040805160ff9092168252519081900360200190f35b6103d06004803603602081101561065857600080fd5b50356001600160a01b0316611019565b6103d06110cf565b6103d06004803603602081101561068657600080fd5b50356110de565b6103d0600480360360208110156106a357600080fd5b50356001600160a01b03166110e9565b6103d061123e565b610608611244565b6103d0600480360360208110156106d957600080fd5b5035611253565b6103d06112ee565b6106086112f9565b6103d06004803603602081101561070657600080fd5b50356001600160a01b0316611308565b6103d0611323565b6105766004803603602081101561073457600080fd5b50356001600160a01b03166113d9565b6103d06004803603602081101561075a57600080fd5b5035611490565b6103d061149b565b6102fe6114a1565b6103d06004803603602081101561078757600080fd5b50356001600160a01b03166114f9565b610576600480360360c08110156107ad57600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b8111156107e757600080fd5b8201836020820111156107f957600080fd5b803590602001918460018302840111600160201b8311171561081a57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561086c57600080fd5b82018360208201111561087e57600080fd5b803590602001918460018302840111600160201b8311171561089f57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505050903560ff1691506115569050565b6103d0600480360360208110156108fb57600080fd5b503561173d565b6103d0611749565b61039f6004803603604081101561092057600080fd5b506001600160a01b038135169060200135611aa0565b6103d0611b60565b6103d0611b66565b6103d06004803603606081101561095c57600080fd5b506001600160a01b03813581169160208101359091169060400135611c05565b6103d06004803603602081101561099257600080fd5b50356001600160a01b0316611c76565b6103d0611d02565b6109d0600480360360208110156109c057600080fd5b50356001600160a01b0316611dbe565b604080519485526020850193909352838301919091526060830152519081900360800190f35b6103d060048036036020811015610a0c57600080fd5b5035611e53565b6103d0611e5e565b6103d060048036036020811015610a3157600080fd5b5035611e64565b6103d060048036036040811015610a4e57600080fd5b506001600160a01b0381358116916020013516611e6f565b6103d0611e9a565b6103d060048036036020811015610a8457600080fd5b50356001600160a01b0316611f9d565b610608611fd7565b6103d060048036036060811015610ab257600080fd5b506001600160a01b03813581169160208101359160409091013516611fe6565b610608611ffe565b6103d0612012565b6103d060048036036020811015610af857600080fd5b5035612076565b61039f6120f4565b60018054604080516020600284861615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610b8c5780601f10610b6157610100808354040283529160200191610b8c565b820191906000526020600020905b815481529060010190602001808311610b6f57829003601f168201915b505050505081565b336000818152600f602090815260408083206001600160a01b03871680855290835281842086905581518681529151939493909284927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929081900390910190a360019150505b92915050565b600080610c0d836120f9565b509150505b919050565b60085481565b6000805460ff16610c62576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155610c74611749565b14610cbf576040805162461bcd60e51b81526020600482015260166024820152751858d8dc9d59481a5b9d195c995cdd0819985a5b195960521b604482015290519081900360640190fd5b610cc8826114f9565b90505b6000805460ff19166001179055919050565b600d5481565b6000806000610cf06121a2565b90925090506000826003811115610d0357fe5b14610d3f5760405162461bcd60e51b81526004018080602001828103825260358152602001806153bb6035913960400191505060405180910390fd5b9150505b90565b610d54868686868686611556565b601180546001600160a01b0319166001600160a01b038981169190911791829055604080516318160ddd60e01b8152905192909116916318160ddd91600480820192602092909190829003018186803b158015610db057600080fd5b505afa158015610dc4573d6000803e3d6000fd5b505050506040513d6020811015610dda57600080fd5b505050505050505050565b6011546001600160a01b0382811691161415610e325760405162461bcd60e51b81526004018080602001828103825260328152602001806151ea6032913960400191505060405180910390fd5b604080516370a0823160e01b815230600482015290516000916001600160a01b038416916370a0823191602480820192602092909190829003018186803b158015610e7c57600080fd5b505afa158015610e90573d6000803e3d6000fd5b505050506040513d6020811015610ea657600080fd5b50516003546040805163a9059cbb60e01b81526101009092046001600160a01b03908116600484015260248301849052905192935084169163a9059cbb9160448082019260009290919082900301818387803b158015610f0557600080fd5b505af1158015610f19573d6000803e3d6000fd5b505050505050565b6000805460ff16610f66576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff1916815580610f7d33878787612251565b14905080610fd2576040805162461bcd60e51b815260206004820152601860248201527f7472616e7366657246726f6d206e6f7420616c6c6f7765640000000000000000604482015290519081900360640190fd5b60019150506000805460ff191660011790559392505050565b600080610ff884846124dd565b50949350505050565b6004546001600160a01b031681565b60035460ff1681565b6000611023614ffd565b6040518060200160405280611036611d02565b90526001600160a01b0384166000908152600e6020526040812054919250908190611062908490612588565b9092509050600082600381111561107557fe5b146110c7576040805162461bcd60e51b815260206004820152601f60248201527f62616c616e636520636f756c64206e6f742062652063616c63756c6174656400604482015290519081900360640190fd5b949350505050565b60006110d96125dc565b905090565b6000610bfb8261265c565b60035460009061010090046001600160a01b031633146111165761110f6001603f6126f0565b9050610c12565b60055460408051623f1ee960e11b815290516001600160a01b0392831692851691627e3dd2916004808301926020929190829003018186803b15801561115b57600080fd5b505afa15801561116f573d6000803e3d6000fd5b505050506040513d602081101561118557600080fd5b50516111d8576040805162461bcd60e51b815260206004820152601c60248201527f6d61726b6572206d6574686f642072657475726e65642066616c736500000000604482015290519081900360640190fd5b600580546001600160a01b0319166001600160a01b03858116918217909255604080519284168352602083019190915280517f7ac369dbd14fa5ea3f473ed67cc9d598964a77501540ba6751eb0b3decf5870d9281900390910190a160005b9392505050565b600b5481565b6005546001600160a01b031681565b6000805460ff16611298576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556112aa611749565b905080156112d0576112c88160108111156112c157fe5b60306126f0565b915050610ccb565b6112d983612756565b9150506000805460ff19166001179055919050565b666379da05b6000081565b6011546001600160a01b031681565b6001600160a01b03166000908152600e602052604090205490565b6000805460ff16611368576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff1916815561137a611749565b146113c5576040805162461bcd60e51b81526020600482015260166024820152751858d8dc9d59481a5b9d195c995cdd0819985a5b195960521b604482015290519081900360640190fd5b50600b546000805460ff1916600117905590565b60035461010090046001600160a01b031633146114275760405162461bcd60e51b815260040180806020018281038252602d81526020018061524c602d913960400191505060405180910390fd5b601154604080516317066a5760e21b81526001600160a01b03848116600483015291519190921691635c19a95c91602480830192600092919082900301818387803b15801561147557600080fd5b505af1158015611489573d6000803e3d6000fd5b5050505050565b6000610bfb82612889565b600c5481565b6002805460408051602060018416156101000260001901909316849004601f81018490048402820184019092528181529291830182828015610b8c5780601f10610b6157610100808354040283529160200191610b8c565b60008060006115078461290a565b9092509050600082600381111561151a57fe5b146112375760405162461bcd60e51b81526004018080602001828103825260378152602001806152c66037913960400191505060405180910390fd5b60035461010090046001600160a01b031633146115a45760405162461bcd60e51b81526004018080602001828103825260248152602001806151a36024913960400191505060405180910390fd5b6009541580156115b45750600a54155b6115ef5760405162461bcd60e51b81526004018080602001828103825260238152602001806151c76023913960400191505060405180910390fd5b6007849055836116305760405162461bcd60e51b815260040180806020018281038252603081526020018061521c6030913960400191505060405180910390fd5b600061163b876110e9565b90508015611690576040805162461bcd60e51b815260206004820152601a60248201527f73657474696e6720636f6d7074726f6c6c6572206661696c6564000000000000604482015290519081900360640190fd5b6116986129be565b600955670de0b6b3a7640000600a556116b0866129c2565b905080156116ef5760405162461bcd60e51b81526004018080602001828103825260228152602001806152796022913960400191505060405180910390fd5b8351611702906001906020870190615010565b508251611716906002906020860190615010565b50506003805460ff90921660ff199283161790556000805490911660011790555050505050565b600080610c0d83612b37565b6000806117546129be565b6009549091508082141561176d57600092505050610d43565b60006117776125dc565b600b54600c54600a54600654604080516315f2405360e01b815260048101879052602481018690526044810185905290519596509394929391926000926001600160a01b03909216916315f24053916064808301926020929190829003018186803b1580156117e557600080fd5b505afa1580156117f9573d6000803e3d6000fd5b505050506040513d602081101561180f57600080fd5b5051905064e8d4a5100081111561186d576040805162461bcd60e51b815260206004820152601c60248201527f626f72726f772072617465206973206162737572646c79206869676800000000604482015290519081900360640190fd5b60008061187a8989612bb8565b9092509050600082600381111561188d57fe5b146118df576040805162461bcd60e51b815260206004820152601f60248201527f636f756c64206e6f742063616c63756c61746520626c6f636b2064656c746100604482015290519081900360640190fd5b6118e7614ffd565b60008060008061190560405180602001604052808a81525087612bdb565b9097509450600087600381111561191857fe5b1461194a576119356009600689600381111561193057fe5b612c43565b9e505050505050505050505050505050610d43565b611954858c612588565b9097509350600087600381111561196757fe5b1461197f576119356009600189600381111561193057fe5b611989848c612ca9565b9097509250600087600381111561199c57fe5b146119b4576119356009600489600381111561193057fe5b6119cf6040518060200160405280600854815250858c612ccf565b909750915060008760038111156119e257fe5b146119fa576119356009600589600381111561193057fe5b611a05858a8b612ccf565b90975090506000876003811115611a1857fe5b14611a30576119356009600389600381111561193057fe5b60098e9055600a819055600b839055600c829055604080518d8152602081018690528082018390526060810185905290517f4dec04e750ca11537cabcd8a9eab06494de08da3735bc8871cd41250e190bc049181900360800190a160009e50505050505050505050505050505090565b6000805460ff16611ae5576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff1916815580611afc33338787612251565b14905080611b48576040805162461bcd60e51b81526020600482015260146024820152731d1c985b9cd9995c881b9bdd08185b1b1bddd95960621b604482015290519081900360640190fd5b60019150506000805460ff1916600117905592915050565b600a5481565b6006546000906001600160a01b031663b8168816611b826125dc565b600b54600c546008546040518563ffffffff1660e01b81526004018085815260200184815260200183815260200182815260200194505050505060206040518083038186803b158015611bd457600080fd5b505afa158015611be8573d6000803e3d6000fd5b505050506040513d6020811015611bfe57600080fd5b5051905090565b6000805460ff16611c4a576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19169055611c6033858585612d2b565b90506000805460ff191660011790559392505050565b60035460009061010090046001600160a01b03163314611c9c5761110f600160456126f0565b600480546001600160a01b038481166001600160a01b0319831681179093556040805191909216808252602082019390935281517fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a9929181900390910190a16000611237565b6000805460ff16611d47576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155611d59611749565b14611da4576040805162461bcd60e51b81526020600482015260166024820152751858d8dc9d59481a5b9d195c995cdd0819985a5b195960521b604482015290519081900360640190fd5b611dac610ce3565b90506000805460ff1916600117905590565b6001600160a01b0381166000908152600e6020526040812054819081908190818080611de98961290a565b935090506000816003811115611dfb57fe5b14611e195760095b975060009650869550859450611e4c9350505050565b611e216121a2565b925090506000816003811115611e3357fe5b14611e3f576009611e03565b5060009650919450925090505b9193509193565b6000610bfb82613105565b60095481565b6000610bfb82613184565b6001600160a01b039182166000908152600f6020908152604080832093909416825291909152205490565b6004546000906001600160a01b031633141580611eb5575033155b15611ecd57611ec6600160006126f0565b9050610d43565b60038054600480546001600160a01b03818116610100818102610100600160a81b0319871617968790556001600160a01b031990931690935560408051948390048216808652929095041660208401528351909391927ff9ffabca9c8276e99321725bcb43fb076a6c66a54b7f21c4e8146d8519b417dc92908290030190a1600454604080516001600160a01b038085168252909216602083015280517fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a99281900390910190a160009250505090565b600080611fa8611749565b90508015611fce57611fc6816010811115611fbf57fe5b60406126f0565b915050610c12565b611237836129c2565b6006546001600160a01b031681565b600080611ff48585856131fe565b5095945050505050565b60035461010090046001600160a01b031681565b6006546000906001600160a01b03166315f2405361202e6125dc565b600b54600c546040518463ffffffff1660e01b815260040180848152602001838152602001828152602001935050505060206040518083038186803b158015611bd457600080fd5b6000805460ff166120bb576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556120cd611749565b905080156120eb576112c88160108111156120e457fe5b60466126f0565b6112d983613330565b600181565b60008054819060ff16612140576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155612152611749565b9050801561217d5761217081601081111561216957fe5b60366126f0565b92506000915061218e9050565b6121883333866133d8565b92509250505b6000805460ff191660011790559092909150565b600d546000908190806121bd5750506007546000915061224d565b60006121c76125dc565b905060006121d3614ffd565b60006121e484600b54600c54613743565b9350905060008160038111156121f657fe5b1461220b5795506000945061224d9350505050565b6122158386613781565b92509050600081600381111561222757fe5b1461223c5795506000945061224d9350505050565b505160009550935061224d92505050565b9091565b600554604080516317b9b84b60e31b81523060048201526001600160a01b03868116602483015285811660448301526064820185905291516000938493169163bdcdc25891608480830192602092919082900301818787803b1580156122b657600080fd5b505af11580156122ca573d6000803e3d6000fd5b505050506040513d60208110156122e057600080fd5b5051905080156122ff576122f76003604a83612c43565b9150506110c7565b836001600160a01b0316856001600160a01b03161415612325576122f76002604b6126f0565b60006001600160a01b038781169087161415612344575060001961236c565b506001600160a01b038086166000908152600f60209081526040808320938a16835292905220545b60008060008061237c8589612bb8565b9094509250600084600381111561238f57fe5b146123ad576123a06009604b6126f0565b96505050505050506110c7565b6001600160a01b038a166000908152600e60205260409020546123d09089612bb8565b909450915060008460038111156123e357fe5b146123f4576123a06009604c6126f0565b6001600160a01b0389166000908152600e60205260409020546124179089612ca9565b9094509050600084600381111561242a57fe5b1461243b576123a06009604d6126f0565b6001600160a01b03808b166000908152600e6020526040808220859055918b168152208190556000198514612493576001600160a01b03808b166000908152600f60209081526040808320938f168352929052208390555b886001600160a01b03168a6001600160a01b03166000805160206153378339815191528a6040518082815260200191505060405180910390a35060009a9950505050505050505050565b60008054819060ff16612524576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155612536611749565b905080156125615761255481601081111561254d57fe5b60356126f0565b9250600091506125729050565b61256c3386866133d8565b92509250505b6000805460ff1916600117905590939092509050565b6000806000612595614ffd565b61259f8686612bdb565b909250905060008260038111156125b257fe5b146125c357509150600090506125d5565b60006125ce82613831565b9350935050505b9250929050565b601154604080516370a0823160e01b815230600482015290516000926001600160a01b03169182916370a0823191602480820192602092909190829003018186803b15801561262a57600080fd5b505afa15801561263e573d6000803e3d6000fd5b505050506040513d602081101561265457600080fd5b505191505090565b6000805460ff166126a1576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556126b3611749565b905080156126d1576112c88160108111156126ca57fe5b604e6126f0565b6126da83613840565b509150506000805460ff19166001179055919050565b60007f45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa083601081111561271f57fe5b83605081111561272b57fe5b604080519283526020830191909152600082820152519081900360600190a182601081111561123757fe5b600354600090819061010090046001600160a01b0316331461277e57611fc6600160316126f0565b6127866129be565b6009541461279a57611fc6600a60336126f0565b826127a36125dc565b10156127b557611fc6600e60326126f0565b600c548311156127cb57611fc6600260346126f0565b50600c54828103908111156128115760405162461bcd60e51b815260040180806020018281038252602481526020018061544c6024913960400191505060405180910390fd5b600c8190556003546128319061010090046001600160a01b031684613928565b600354604080516101009092046001600160a01b0316825260208201859052818101839052517f3bad0c59cf2f06e7314077049f48a93578cd16f5ef92329f1dab1420a99c177e916060908290030190a16000611237565b6000805460ff166128ce576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556128e0611749565b905080156128fe576112c88160108111156128f757fe5b60276126f0565b6112d933600085613a1f565b6001600160a01b0381166000908152601060205260408120805482918291829182916129415750600094508493506129b992505050565b6129518160000154600a54613eef565b9094509250600084600381111561296457fe5b146129795750919350600092506129b9915050565b612987838260010154613f2e565b9094509150600084600381111561299a57fe5b146129af5750919350600092506129b9915050565b5060009450925050505b915091565b4290565b600354600090819061010090046001600160a01b031633146129ea57611fc6600160426126f0565b6129f26129be565b60095414612a0657611fc6600a60416126f0565b600660009054906101000a90046001600160a01b03169050826001600160a01b0316632191f92a6040518163ffffffff1660e01b815260040160206040518083038186803b158015612a5757600080fd5b505afa158015612a6b573d6000803e3d6000fd5b505050506040513d6020811015612a8157600080fd5b5051612ad4576040805162461bcd60e51b815260206004820152601c60248201527f6d61726b6572206d6574686f642072657475726e65642066616c736500000000604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b03858116918217909255604080519284168352602083019190915280517fedffc32e068c7c95dfd4bdfd5c4d939a084d6b11c4199eac8436ed234d72f9269281900390910190a16000611237565b60008054819060ff16612b7e576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155612b90611749565b90508015612bae57612170816010811115612ba757fe5b601e6126f0565b6121883385613f59565b600080838311612bcf5750600090508183036125d5565b506003905060006125d5565b6000612be5614ffd565b600080612bf6866000015186613eef565b90925090506000826003811115612c0957fe5b14612c28575060408051602081019091526000815290925090506125d5565b60408051602081019091529081526000969095509350505050565b60007f45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa0846010811115612c7257fe5b846050811115612c7e57fe5b604080519283526020830191909152818101859052519081900360600190a18360108111156110c757fe5b600080838301848110612cc1576000925090506125d5565b5060029150600090506125d5565b6000806000612cdc614ffd565b612ce68787612bdb565b90925090506000826003811115612cf957fe5b14612d0a5750915060009050612d23565b612d1c612d1682613831565b86612ca9565b9350935050505b935093915050565b6005546040805163d02f735160e01b81523060048201526001600160a01b038781166024830152868116604483015285811660648301526084820185905291516000938493169163d02f73519160a480830192602092919082900301818787803b158015612d9857600080fd5b505af1158015612dac573d6000803e3d6000fd5b505050506040513d6020811015612dc257600080fd5b505190508015612dd9576122f76003601b83612c43565b846001600160a01b0316846001600160a01b03161415612dff576122f76006601c6126f0565b612e0761508e565b6001600160a01b0385166000908152600e6020526040902054612e2a9085612bb8565b6020830181905282826003811115612e3e57fe5b6003811115612e4957fe5b9052506000905081516003811115612e5d57fe5b14612e8257612e796009601a8360000151600381111561193057fe5b925050506110c7565b612ea1846040518060200160405280666379da05b6000081525061432a565b60808201819052612eb3908590614352565b6060820152612ec06121a2565b60c0830181905282826003811115612ed457fe5b6003811115612edf57fe5b9052506000905081516003811115612ef357fe5b14612f45576040805162461bcd60e51b815260206004820152601860248201527f65786368616e67652072617465206d617468206572726f720000000000000000604482015290519081900360640190fd5b612f6560405180602001604052808360c00151815250826080015161438c565b60a08201819052600c54612f78916143ab565b60e0820152600d546080820151612f8f9190614352565b6101008201526001600160a01b0386166000908152600e60205260409020546060820151612fbd9190612ca9565b6040830181905282826003811115612fd157fe5b6003811115612fdc57fe5b9052506000905081516003811115612ff057fe5b1461300c57612e79600960198360000151600381111561193057fe5b60e0810151600c55610100810151600d556020808201516001600160a01b038088166000818152600e855260408082209490945583860151928b16808252908490209290925560608501518351908152925191939092600080516020615337833981519152929081900390910190a36080810151604080519182525130916001600160a01b038816916000805160206153378339815191529181900360200190a360a081015160e082015160408051308152602081019390935282810191909152517fa91e67c5ea634cd43a12c5a482724b03de01e85ca68702a53d0c2f45cb7c1dc59181900360600190a16000979650505050505050565b6000805460ff1661314a576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff1916815561315c611749565b9050801561317a576112c881601081111561317357fe5b60086126f0565b6112d933846143e1565b6000805460ff166131c9576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556131db611749565b905080156131f2576112c88160108111156128f757fe5b6112d933846000613a1f565b60008054819060ff16613245576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155613257611749565b905080156132825761327581601081111561326e57fe5b600f6126f0565b9250600091506133199050565b836001600160a01b031663a6afed956040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156132bd57600080fd5b505af11580156132d1573d6000803e3d6000fd5b505050506040513d60208110156132e757600080fd5b5051905080156133075761327581601081111561330057fe5b60106126f0565b6133133387878761467d565b92509250505b6000805460ff191660011790559094909350915050565b60035460009061010090046001600160a01b031633146133565761110f600160476126f0565b61335e6129be565b600954146133725761110f600a60486126f0565b670de0b6b3a764000082111561338e5761110f600260496126f0565b6008805490839055604080518281526020810185905281517faaa68312e2ea9d50e16af5068410ab56e1a1fd06037b1a35664812c30f821460929181900390910190a16000611237565b60055460408051631200453160e11b81523060048201526001600160a01b0386811660248301528581166044830152606482018590529151600093849384939116916324008a629160848082019260209290919082900301818787803b15801561344157600080fd5b505af1158015613455573d6000803e3d6000fd5b505050506040513d602081101561346b57600080fd5b50519050801561348f576134826003603883612c43565b925060009150612d239050565b6134976129be565b600954146134ab57613482600a60396126f0565b6134b36150db565b6001600160a01b03861660009081526010602052604090206001015460608201526134dd8661290a565b60808301819052602083018260038111156134f457fe5b60038111156134ff57fe5b905250600090508160200151600381111561351657fe5b1461354057613532600960378360200151600381111561193057fe5b935060009250612d23915050565b600019851480156135625750856001600160a01b0316876001600160a01b0316145b15613576576080810151604082015261357e565b604081018590525b61358c878260400151614b6f565b60e0820181905260808201516135a191612bb8565b60a08301819052602083018260038111156135b857fe5b60038111156135c357fe5b90525060009050816020015160038111156135da57fe5b146136165760405162461bcd60e51b815260040180806020018281038252603a8152602001806152fd603a913960400191505060405180910390fd5b613626600b548260e00151612bb8565b60c083018190526020830182600381111561363d57fe5b600381111561364857fe5b905250600090508160200151600381111561365f57fe5b1461369b5760405162461bcd60e51b81526004018080602001828103825260318152602001806153576031913960400191505060405180910390fd5b60a080820180516001600160a01b03808a16600081815260106020908152604091829020948555600a5460019095019490945560c0870151600b81905560e088015195518251948f16855294840192909252828101949094526060820192909252608081019190915290517f1a2a22cb034d26d1854bdc6666a5b91fe25efbbb5dcad3b0355478d6f5c362a1929181900390910190a160e00151600097909650945050505050565b6000806000806137538787612ca9565b9092509050600082600381111561376657fe5b146137775750915060009050612d23565b612d1c8186612bb8565b600061378b614ffd565b6000806137a086670de0b6b3a7640000613eef565b909250905060008260038111156137b357fe5b146137d2575060408051602081019091526000815290925090506125d5565b6000806137df8388613f2e565b909250905060008260038111156137f257fe5b14613814575060408051602081019091526000815290945092506125d5915050565b604080516020810190915290815260009890975095505050505050565b51670de0b6b3a7640000900490565b60008060008061384e6129be565b6009541461386d57613862600a604f6126f0565b935091506129b99050565b6138773386614b6f565b905080600c54019150600c548210156138d7576040805162461bcd60e51b815260206004820181905260248201527f61646420726573657276657320756e6578706563746564206f766572666c6f77604482015290519081900360640190fd5b600c829055604080513381526020810183905280820184905290517fa91e67c5ea634cd43a12c5a482724b03de01e85ca68702a53d0c2f45cb7c1dc59181900360600190a160009350915050915091565b6011546040805163a9059cbb60e01b81526001600160a01b0385811660048301526024820185905291519190921691829163a9059cbb9160448082019260009290919082900301818387803b15801561398057600080fd5b505af1158015613994573d6000803e3d6000fd5b5050505060003d600081146139b057602081146139ba57600080fd5b60001991506139c6565b60206000803e60005191505b5080613a19576040805162461bcd60e51b815260206004820152601960248201527f544f4b454e5f5452414e534645525f4f55545f4641494c454400000000000000604482015290519081900360640190fd5b50505050565b6000821580613a2c575081155b613a675760405162461bcd60e51b81526004018080602001828103825260348152602001806154186034913960400191505060405180910390fd5b613a6f615121565b613a776121a2565b6040830181905260208301826003811115613a8e57fe5b6003811115613a9957fe5b9052506000905081602001516003811115613ab057fe5b14613ad457613acc6009602b8360200151600381111561193057fe5b915050611237565b8315613b55576060810184905260408051602081018252908201518152613afb9085612588565b6080830181905260208301826003811115613b1257fe5b6003811115613b1d57fe5b9052506000905081602001516003811115613b3457fe5b14613b5057613acc600960298360200151600381111561193057fe5b613bce565b613b718360405180602001604052808460400151815250614db9565b6060830181905260208301826003811115613b8857fe5b6003811115613b9357fe5b9052506000905081602001516003811115613baa57fe5b14613bc657613acc6009602a8360200151600381111561193057fe5b608081018390525b60055460608201516040805163eabe7d9160e01b81523060048201526001600160a01b03898116602483015260448201939093529051600093929092169163eabe7d919160648082019260209290919082900301818787803b158015613c3357600080fd5b505af1158015613c47573d6000803e3d6000fd5b505050506040513d6020811015613c5d57600080fd5b505190508015613c7d57613c746003602883612c43565b92505050611237565b613c856129be565b60095414613c9957613c74600a602c6126f0565b613ca9600d548360600151612bb8565b60a0840181905260208401826003811115613cc057fe5b6003811115613ccb57fe5b9052506000905082602001516003811115613ce257fe5b14613cfe57613c746009602e8460200151600381111561193057fe5b6001600160a01b0386166000908152600e60205260409020546060830151613d269190612bb8565b60c0840181905260208401826003811115613d3d57fe5b6003811115613d4857fe5b9052506000905082602001516003811115613d5f57fe5b14613d7b57613c746009602d8460200151600381111561193057fe5b8160800151613d886125dc565b1015613d9a57613c74600e602f6126f0565b60a0820151600d5560c08201516001600160a01b0387166000908152600e60205260409020556080820151613dd0908790613928565b6060820151604080519182525130916001600160a01b038916916000805160206153378339815191529181900360200190a36080820151606080840151604080516001600160a01b038b168152602081019490945283810191909152517fe5b754fb1abb7f01b499791d0b820ae3b6af3424ac1c59768edb53f4ec31a9299281900390910190a160055460808301516060840151604080516351dff98960e01b81523060048201526001600160a01b038b81166024830152604482019490945260648101929092525191909216916351dff98991608480830192600092919082900301818387803b158015613ec457600080fd5b505af1158015613ed8573d6000803e3d6000fd5b5060009250613ee5915050565b9695505050505050565b60008083613f02575060009050806125d5565b83830283858281613f0f57fe5b0414613f23575060029150600090506125d5565b6000925090506125d5565b60008082613f4257506001905060006125d5565b6000838581613f4d57fe5b04915091509250929050565b60055460408051634ef4c3e160e01b81523060048201526001600160a01b03858116602483015260448201859052915160009384938493911691634ef4c3e19160648082019260209290919082900301818787803b158015613fba57600080fd5b505af1158015613fce573d6000803e3d6000fd5b505050506040513d6020811015613fe457600080fd5b50519050801561400857613ffb6003601f83612c43565b9250600091506125d59050565b6140106129be565b6009541461402457613ffb600a60226126f0565b61402c615121565b6140346121a2565b604083018190526020830182600381111561404b57fe5b600381111561405657fe5b905250600090508160200151600381111561406d57fe5b1461409757614089600960218360200151600381111561193057fe5b9350600092506125d5915050565b6140a18686614b6f565b60c08201819052604080516020810182529083015181526140c29190614db9565b60608301819052602083018260038111156140d957fe5b60038111156140e457fe5b90525060009050816020015160038111156140fb57fe5b1461414d576040805162461bcd60e51b815260206004820181905260248201527f4d494e545f45584348414e47455f43414c43554c4154494f4e5f4641494c4544604482015290519081900360640190fd5b61415d600d548260600151612ca9565b608083018190526020830182600381111561417457fe5b600381111561417f57fe5b905250600090508160200151600381111561419657fe5b146141d25760405162461bcd60e51b81526004018080602001828103825260288152602001806153f06028913960400191505060405180910390fd5b6001600160a01b0386166000908152600e602052604090205460608201516141fa9190612ca9565b60a083018190526020830182600381111561421157fe5b600381111561421c57fe5b905250600090508160200151600381111561423357fe5b1461426f5760405162461bcd60e51b815260040180806020018281038252602b81526020018061529b602b913960400191505060405180910390fd5b6080810151600d5560a08101516001600160a01b0387166000818152600e60209081526040918290209390935560c084015160608086015183519485529484019190915282820193909352517f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f929181900390910190a1606081015160408051918252516001600160a01b038816916000916000805160206153378339815191529181900360200190a360c001516000969095509350505050565b6000670de0b6b3a7640000614343848460000151614dd0565b8161434a57fe5b049392505050565b60006112378383604051806040016040528060158152602001747375627472616374696f6e20756e646572666c6f7760581b815250614e12565b6000614396614ffd565b6143a08484614ea9565b90506110c781613831565b60006112378383604051806040016040528060118152602001706164646974696f6e206f766572666c6f7760781b815250614ed3565b6005546040805163368f515360e21b81523060048201526001600160a01b0385811660248301526044820185905291516000938493169163da3d454c91606480830192602092919082900301818787803b15801561443e57600080fd5b505af1158015614452573d6000803e3d6000fd5b505050506040513d602081101561446857600080fd5b5051905080156144875761447f6003600e83612c43565b915050610bfb565b61448f6129be565b600954146144a25761447f600a806126f0565b826144ab6125dc565b10156144bd5761447f600e60096126f0565b6144c561515f565b6144ce8561290a565b60208301819052828260038111156144e257fe5b60038111156144ed57fe5b905250600090508151600381111561450157fe5b146145265761451d600960078360000151600381111561193057fe5b92505050610bfb565b614534816020015185612ca9565b604083018190528282600381111561454857fe5b600381111561455357fe5b905250600090508151600381111561456757fe5b146145835761451d6009600c8360000151600381111561193057fe5b61458f600b5485612ca9565b60608301819052828260038111156145a357fe5b60038111156145ae57fe5b90525060009050815160038111156145c257fe5b146145de5761451d6009600b8360000151600381111561193057fe5b6040808201516001600160a01b0387166000908152601060205291909120908155600a546001909101556060810151600b5561461a8585613928565b60408082015160608084015183516001600160a01b038a16815260208101899052808501939093529082015290517f13ed6866d4e1ee6da46f845c46d7e54120883d75c5ea9a2dacc1c4ca8984ab809181900360800190a1600095945050505050565b60055460408051632fe3f38f60e11b81523060048201526001600160a01b0384811660248301528781166044830152868116606483015260848201869052915160009384938493911691635fc7e71e9160a48082019260209290919082900301818787803b1580156146ee57600080fd5b505af1158015614702573d6000803e3d6000fd5b505050506040513d602081101561471857600080fd5b50519050801561473c5761472f6003601283612c43565b925060009150614b669050565b6147446129be565b600954146147585761472f600a60166126f0565b6147606129be565b846001600160a01b031663cfa992016040518163ffffffff1660e01b815260040160206040518083038186803b15801561479957600080fd5b505afa1580156147ad573d6000803e3d6000fd5b505050506040513d60208110156147c357600080fd5b5051146147d65761472f600a60116126f0565b866001600160a01b0316866001600160a01b031614156147fc5761472f600660176126f0565b8461480d5761472f600760156126f0565b6000198514156148235761472f600760146126f0565b6000806148318989896133d8565b909250905081156148615761485282601081111561484b57fe5b60186126f0565b945060009350614b6692505050565b6005546040805163c488847b60e01b81523060048201526001600160a01b038981166024830152604482018590528251600094859492169263c488847b926064808301939192829003018186803b1580156148bb57600080fd5b505afa1580156148cf573d6000803e3d6000fd5b505050506040513d60408110156148e557600080fd5b508051602090910151909250905081156149305760405162461bcd60e51b81526004018080602001828103825260338152602001806153886033913960400191505060405180910390fd5b80886001600160a01b03166370a082318c6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561498757600080fd5b505afa15801561499b573d6000803e3d6000fd5b505050506040513d60208110156149b157600080fd5b50511015614a06576040805162461bcd60e51b815260206004820152601860248201527f4c49515549444154455f5345495a455f544f4f5f4d5543480000000000000000604482015290519081900360640190fd5b60006001600160a01b038916301415614a2c57614a25308d8d85612d2b565b9050614ab6565b6040805163b2a02ff160e01b81526001600160a01b038e811660048301528d81166024830152604482018590529151918b169163b2a02ff1916064808201926020929091908290030181600087803b158015614a8757600080fd5b505af1158015614a9b573d6000803e3d6000fd5b505050506040513d6020811015614ab157600080fd5b505190505b8015614b00576040805162461bcd60e51b81526020600482015260146024820152731d1bdad95b881cd95a5e9d5c994819985a5b195960621b604482015290519081900360640190fd5b604080516001600160a01b03808f168252808e1660208301528183018790528b1660608201526080810184905290517f298637f684da70674f26509b10f07ec2fbc77a335ab1e7d6215a4b2484d8bb529181900360a00190a16000975092955050505050505b94509492505050565b601154604080516370a0823160e01b815230600482015290516000926001600160a01b031691839183916370a08231916024808301926020929190829003018186803b158015614bbe57600080fd5b505afa158015614bd2573d6000803e3d6000fd5b505050506040513d6020811015614be857600080fd5b5051604080516323b872dd60e01b81526001600160a01b038881166004830152306024830152604482018890529151929350908416916323b872dd9160648082019260009290919082900301818387803b158015614c4557600080fd5b505af1158015614c59573d6000803e3d6000fd5b5050505060003d60008114614c755760208114614c7f57600080fd5b6000199150614c8b565b60206000803e60005191505b5080614cde576040805162461bcd60e51b815260206004820152601860248201527f544f4b454e5f5452414e534645525f494e5f4641494c45440000000000000000604482015290519081900360640190fd5b601154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015614d2957600080fd5b505afa158015614d3d573d6000803e3d6000fd5b505050506040513d6020811015614d5357600080fd5b5051905082811015614dac576040805162461bcd60e51b815260206004820152601a60248201527f544f4b454e5f5452414e534645525f494e5f4f564552464c4f57000000000000604482015290519081900360640190fd5b9190910395945050505050565b6000806000614dc6614ffd565b61259f8686614f28565b600061123783836040518060400160405280601781526020017f6d756c7469706c69636174696f6e206f766572666c6f77000000000000000000815250614f87565b60008184841115614ea15760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015614e66578181015183820152602001614e4e565b50505050905090810190601f168015614e935780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b614eb1614ffd565b6040518060200160405280614eca856000015185614dd0565b90529392505050565b60008383018285821015610ff85760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315614e66578181015183820152602001614e4e565b6000614f32614ffd565b600080614f47670de0b6b3a764000087613eef565b90925090506000826003811115614f5a57fe5b14614f79575060408051602081019091526000815290925090506125d5565b6125ce818660000151613781565b6000831580614f94575082155b15614fa157506000611237565b83830283858281614fae57fe5b04148390610ff85760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315614e66578181015183820152602001614e4e565b6040518060200160405280600081525090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061505157805160ff191683800117855561507e565b8280016001018555821561507e579182015b8281111561507e578251825591602001919060010190615063565b5061508a929150615188565b5090565b604080516101208101909152806000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6040805161010081019091528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6040805160e0810190915280600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b604080516080810190915280600081526020016000815260200160008152602001600081525090565b610d4391905b8082111561508a576000815560010161518e56fe6f6e6c792061646d696e206d617920696e697469616c697a6520746865206d61726b65746d61726b6574206d6179206f6e6c7920626520696e697469616c697a6564206f6e63654345726332303a3a7377656570546f6b656e3a2063616e206e6f7420737765657020756e6465726c79696e6720746f6b656e696e697469616c2065786368616e67652072617465206d7573742062652067726561746572207468616e207a65726f2e6f6e6c79207468652061646d696e206d6179207365742074686520636f6d702d6c696b652064656c656761746573657474696e6720696e7465726573742072617465206d6f64656c206661696c65644d494e545f4e45575f4143434f554e545f42414c414e43455f43414c43554c4154494f4e5f4641494c4544626f72726f7742616c616e636553746f7265643a20626f72726f7742616c616e636553746f726564496e7465726e616c206661696c656452455041595f424f52524f575f4e45575f4143434f554e545f424f52524f575f42414c414e43455f43414c43554c4154494f4e5f4641494c4544ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef52455041595f424f52524f575f4e45575f544f54414c5f42414c414e43455f43414c43554c4154494f4e5f4641494c45444c49515549444154455f434f4d5054524f4c4c45525f43414c43554c4154455f414d4f554e545f5345495a455f4641494c454465786368616e67655261746553746f7265643a2065786368616e67655261746553746f726564496e7465726e616c206661696c65644d494e545f4e45575f544f54414c5f535550504c595f43414c43554c4154494f4e5f4641494c45446f6e65206f662072656465656d546f6b656e73496e206f722072656465656d416d6f756e74496e206d757374206265207a65726f72656475636520726573657276657320756e657870656374656420756e646572666c6f77a265627a7a723158207ae9bf0e670cbb5b8888a69c99ee7a3136b72904b52eb546386d6922121404a464736f6c634300051000326f6e6c792061646d696e206d617920696e697469616c697a6520746865206d61726b65746d61726b6574206d6179206f6e6c7920626520696e697469616c697a6564206f6e6365696e697469616c2065786368616e67652072617465206d7573742062652067726561746572207468616e207a65726f2e73657474696e6720696e7465726573742072617465206d6f64656c206661696c656400000000000000000000000060bf7989a447c45aaa0aeb86873b50b5a3709b100000000000000000000000007c4d0c834701c6e7f57b8c1424d30adc46ea0840000000000000000000000000ba3cbebede0c4e17510664d3f3fb6d7305f720220000000000000000000000000000000000000000204fce5e3e250261100000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000080000000000000000000000004ce41518591272a42406b4829f6c4f66907891e9000000000000000000000000000000000000000000000000000000000000000d59555a55204c5020546f6b656e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001166555344435f63656c65725f57524f5345000000000000000000000000000000

Deployed ByteCode

0x608060405234801561001057600080fd5b50600436106102f15760003560e01c8063852a12e31161019d578063c37f68e2116100e9578063f2b3abbd116100a2578063f851a4401161007c578063f851a44014610ad2578063f8f9da2814610ada578063fca7820b14610ae2578063fe9c44ae14610aff576102f1565b8063f2b3abbd14610a6e578063f3fdb15a14610a94578063f5e3c46214610a9c576102f1565b8063c37f68e2146109aa578063c5ebeaec146109f6578063cfa9920114610a13578063db006a7514610a1b578063dd62ed3e14610a38578063e9c714f214610a66576102f1565b8063a6afed9511610156578063ae9d70b011610130578063ae9d70b01461093e578063b2a02ff114610946578063b71d1a0c1461097c578063bd6d894d146109a2576102f1565b8063a6afed9514610902578063a9059cbb1461090a578063aa5af0fd14610936576102f1565b8063852a12e3146107445780638f840ddd1461076157806395d89b411461076957806395dd91931461077157806399d8c1b414610797578063a0712d68146108e5576102f1565b8063313ce5671161025c5780635fe3b567116102155780636f307dc3116101ef5780636f307dc3146106e857806370a08231146106f057806373acee98146107165780637f1e06be1461071e576102f1565b80635fe3b567146106bb578063601a0bf1146106c35780636752e702146106e0576102f1565b8063313ce567146106245780633af9e669146106425780633b1d21a2146106685780633e941010146106705780634576b5db1461068d57806347bd3718146106b3576102f1565b8063182df0f5116102ae578063182df0f5146104185780631a31d465146104205780631be195601461057857806323b872dd1461059e5780632608f818146105d45780632678224714610600576102f1565b806306fdde03146102f6578063095ea7b3146103735780630e752702146103b3578063173b9904146103e257806317bfdfbc146103ea57806318160ddd14610410575b600080fd5b6102fe610b07565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610338578181015183820152602001610320565b50505050905090810190601f1680156103655780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61039f6004803603604081101561038957600080fd5b506001600160a01b038135169060200135610b94565b604080519115158252519081900360200190f35b6103d0600480360360208110156103c957600080fd5b5035610c01565b60408051918252519081900360200190f35b6103d0610c17565b6103d06004803603602081101561040057600080fd5b50356001600160a01b0316610c1d565b6103d0610cdd565b6103d0610ce3565b610576600480360360e081101561043657600080fd5b6001600160a01b03823581169260208101358216926040820135909216916060820135919081019060a081016080820135600160201b81111561047857600080fd5b82018360208201111561048a57600080fd5b803590602001918460018302840111600160201b831117156104ab57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b8111156104fd57600080fd5b82018360208201111561050f57600080fd5b803590602001918460018302840111600160201b8311171561053057600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505050903560ff169150610d469050565b005b6105766004803603602081101561058e57600080fd5b50356001600160a01b0316610de5565b61039f600480360360608110156105b457600080fd5b506001600160a01b03813581169160208101359091169060400135610f21565b6103d0600480360360408110156105ea57600080fd5b506001600160a01b038135169060200135610feb565b610608611001565b604080516001600160a01b039092168252519081900360200190f35b61062c611010565b6040805160ff9092168252519081900360200190f35b6103d06004803603602081101561065857600080fd5b50356001600160a01b0316611019565b6103d06110cf565b6103d06004803603602081101561068657600080fd5b50356110de565b6103d0600480360360208110156106a357600080fd5b50356001600160a01b03166110e9565b6103d061123e565b610608611244565b6103d0600480360360208110156106d957600080fd5b5035611253565b6103d06112ee565b6106086112f9565b6103d06004803603602081101561070657600080fd5b50356001600160a01b0316611308565b6103d0611323565b6105766004803603602081101561073457600080fd5b50356001600160a01b03166113d9565b6103d06004803603602081101561075a57600080fd5b5035611490565b6103d061149b565b6102fe6114a1565b6103d06004803603602081101561078757600080fd5b50356001600160a01b03166114f9565b610576600480360360c08110156107ad57600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b8111156107e757600080fd5b8201836020820111156107f957600080fd5b803590602001918460018302840111600160201b8311171561081a57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561086c57600080fd5b82018360208201111561087e57600080fd5b803590602001918460018302840111600160201b8311171561089f57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505050903560ff1691506115569050565b6103d0600480360360208110156108fb57600080fd5b503561173d565b6103d0611749565b61039f6004803603604081101561092057600080fd5b506001600160a01b038135169060200135611aa0565b6103d0611b60565b6103d0611b66565b6103d06004803603606081101561095c57600080fd5b506001600160a01b03813581169160208101359091169060400135611c05565b6103d06004803603602081101561099257600080fd5b50356001600160a01b0316611c76565b6103d0611d02565b6109d0600480360360208110156109c057600080fd5b50356001600160a01b0316611dbe565b604080519485526020850193909352838301919091526060830152519081900360800190f35b6103d060048036036020811015610a0c57600080fd5b5035611e53565b6103d0611e5e565b6103d060048036036020811015610a3157600080fd5b5035611e64565b6103d060048036036040811015610a4e57600080fd5b506001600160a01b0381358116916020013516611e6f565b6103d0611e9a565b6103d060048036036020811015610a8457600080fd5b50356001600160a01b0316611f9d565b610608611fd7565b6103d060048036036060811015610ab257600080fd5b506001600160a01b03813581169160208101359160409091013516611fe6565b610608611ffe565b6103d0612012565b6103d060048036036020811015610af857600080fd5b5035612076565b61039f6120f4565b60018054604080516020600284861615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610b8c5780601f10610b6157610100808354040283529160200191610b8c565b820191906000526020600020905b815481529060010190602001808311610b6f57829003601f168201915b505050505081565b336000818152600f602090815260408083206001600160a01b03871680855290835281842086905581518681529151939493909284927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929081900390910190a360019150505b92915050565b600080610c0d836120f9565b509150505b919050565b60085481565b6000805460ff16610c62576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155610c74611749565b14610cbf576040805162461bcd60e51b81526020600482015260166024820152751858d8dc9d59481a5b9d195c995cdd0819985a5b195960521b604482015290519081900360640190fd5b610cc8826114f9565b90505b6000805460ff19166001179055919050565b600d5481565b6000806000610cf06121a2565b90925090506000826003811115610d0357fe5b14610d3f5760405162461bcd60e51b81526004018080602001828103825260358152602001806153bb6035913960400191505060405180910390fd5b9150505b90565b610d54868686868686611556565b601180546001600160a01b0319166001600160a01b038981169190911791829055604080516318160ddd60e01b8152905192909116916318160ddd91600480820192602092909190829003018186803b158015610db057600080fd5b505afa158015610dc4573d6000803e3d6000fd5b505050506040513d6020811015610dda57600080fd5b505050505050505050565b6011546001600160a01b0382811691161415610e325760405162461bcd60e51b81526004018080602001828103825260328152602001806151ea6032913960400191505060405180910390fd5b604080516370a0823160e01b815230600482015290516000916001600160a01b038416916370a0823191602480820192602092909190829003018186803b158015610e7c57600080fd5b505afa158015610e90573d6000803e3d6000fd5b505050506040513d6020811015610ea657600080fd5b50516003546040805163a9059cbb60e01b81526101009092046001600160a01b03908116600484015260248301849052905192935084169163a9059cbb9160448082019260009290919082900301818387803b158015610f0557600080fd5b505af1158015610f19573d6000803e3d6000fd5b505050505050565b6000805460ff16610f66576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff1916815580610f7d33878787612251565b14905080610fd2576040805162461bcd60e51b815260206004820152601860248201527f7472616e7366657246726f6d206e6f7420616c6c6f7765640000000000000000604482015290519081900360640190fd5b60019150506000805460ff191660011790559392505050565b600080610ff884846124dd565b50949350505050565b6004546001600160a01b031681565b60035460ff1681565b6000611023614ffd565b6040518060200160405280611036611d02565b90526001600160a01b0384166000908152600e6020526040812054919250908190611062908490612588565b9092509050600082600381111561107557fe5b146110c7576040805162461bcd60e51b815260206004820152601f60248201527f62616c616e636520636f756c64206e6f742062652063616c63756c6174656400604482015290519081900360640190fd5b949350505050565b60006110d96125dc565b905090565b6000610bfb8261265c565b60035460009061010090046001600160a01b031633146111165761110f6001603f6126f0565b9050610c12565b60055460408051623f1ee960e11b815290516001600160a01b0392831692851691627e3dd2916004808301926020929190829003018186803b15801561115b57600080fd5b505afa15801561116f573d6000803e3d6000fd5b505050506040513d602081101561118557600080fd5b50516111d8576040805162461bcd60e51b815260206004820152601c60248201527f6d61726b6572206d6574686f642072657475726e65642066616c736500000000604482015290519081900360640190fd5b600580546001600160a01b0319166001600160a01b03858116918217909255604080519284168352602083019190915280517f7ac369dbd14fa5ea3f473ed67cc9d598964a77501540ba6751eb0b3decf5870d9281900390910190a160005b9392505050565b600b5481565b6005546001600160a01b031681565b6000805460ff16611298576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556112aa611749565b905080156112d0576112c88160108111156112c157fe5b60306126f0565b915050610ccb565b6112d983612756565b9150506000805460ff19166001179055919050565b666379da05b6000081565b6011546001600160a01b031681565b6001600160a01b03166000908152600e602052604090205490565b6000805460ff16611368576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff1916815561137a611749565b146113c5576040805162461bcd60e51b81526020600482015260166024820152751858d8dc9d59481a5b9d195c995cdd0819985a5b195960521b604482015290519081900360640190fd5b50600b546000805460ff1916600117905590565b60035461010090046001600160a01b031633146114275760405162461bcd60e51b815260040180806020018281038252602d81526020018061524c602d913960400191505060405180910390fd5b601154604080516317066a5760e21b81526001600160a01b03848116600483015291519190921691635c19a95c91602480830192600092919082900301818387803b15801561147557600080fd5b505af1158015611489573d6000803e3d6000fd5b5050505050565b6000610bfb82612889565b600c5481565b6002805460408051602060018416156101000260001901909316849004601f81018490048402820184019092528181529291830182828015610b8c5780601f10610b6157610100808354040283529160200191610b8c565b60008060006115078461290a565b9092509050600082600381111561151a57fe5b146112375760405162461bcd60e51b81526004018080602001828103825260378152602001806152c66037913960400191505060405180910390fd5b60035461010090046001600160a01b031633146115a45760405162461bcd60e51b81526004018080602001828103825260248152602001806151a36024913960400191505060405180910390fd5b6009541580156115b45750600a54155b6115ef5760405162461bcd60e51b81526004018080602001828103825260238152602001806151c76023913960400191505060405180910390fd5b6007849055836116305760405162461bcd60e51b815260040180806020018281038252603081526020018061521c6030913960400191505060405180910390fd5b600061163b876110e9565b90508015611690576040805162461bcd60e51b815260206004820152601a60248201527f73657474696e6720636f6d7074726f6c6c6572206661696c6564000000000000604482015290519081900360640190fd5b6116986129be565b600955670de0b6b3a7640000600a556116b0866129c2565b905080156116ef5760405162461bcd60e51b81526004018080602001828103825260228152602001806152796022913960400191505060405180910390fd5b8351611702906001906020870190615010565b508251611716906002906020860190615010565b50506003805460ff90921660ff199283161790556000805490911660011790555050505050565b600080610c0d83612b37565b6000806117546129be565b6009549091508082141561176d57600092505050610d43565b60006117776125dc565b600b54600c54600a54600654604080516315f2405360e01b815260048101879052602481018690526044810185905290519596509394929391926000926001600160a01b03909216916315f24053916064808301926020929190829003018186803b1580156117e557600080fd5b505afa1580156117f9573d6000803e3d6000fd5b505050506040513d602081101561180f57600080fd5b5051905064e8d4a5100081111561186d576040805162461bcd60e51b815260206004820152601c60248201527f626f72726f772072617465206973206162737572646c79206869676800000000604482015290519081900360640190fd5b60008061187a8989612bb8565b9092509050600082600381111561188d57fe5b146118df576040805162461bcd60e51b815260206004820152601f60248201527f636f756c64206e6f742063616c63756c61746520626c6f636b2064656c746100604482015290519081900360640190fd5b6118e7614ffd565b60008060008061190560405180602001604052808a81525087612bdb565b9097509450600087600381111561191857fe5b1461194a576119356009600689600381111561193057fe5b612c43565b9e505050505050505050505050505050610d43565b611954858c612588565b9097509350600087600381111561196757fe5b1461197f576119356009600189600381111561193057fe5b611989848c612ca9565b9097509250600087600381111561199c57fe5b146119b4576119356009600489600381111561193057fe5b6119cf6040518060200160405280600854815250858c612ccf565b909750915060008760038111156119e257fe5b146119fa576119356009600589600381111561193057fe5b611a05858a8b612ccf565b90975090506000876003811115611a1857fe5b14611a30576119356009600389600381111561193057fe5b60098e9055600a819055600b839055600c829055604080518d8152602081018690528082018390526060810185905290517f4dec04e750ca11537cabcd8a9eab06494de08da3735bc8871cd41250e190bc049181900360800190a160009e50505050505050505050505050505090565b6000805460ff16611ae5576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff1916815580611afc33338787612251565b14905080611b48576040805162461bcd60e51b81526020600482015260146024820152731d1c985b9cd9995c881b9bdd08185b1b1bddd95960621b604482015290519081900360640190fd5b60019150506000805460ff1916600117905592915050565b600a5481565b6006546000906001600160a01b031663b8168816611b826125dc565b600b54600c546008546040518563ffffffff1660e01b81526004018085815260200184815260200183815260200182815260200194505050505060206040518083038186803b158015611bd457600080fd5b505afa158015611be8573d6000803e3d6000fd5b505050506040513d6020811015611bfe57600080fd5b5051905090565b6000805460ff16611c4a576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19169055611c6033858585612d2b565b90506000805460ff191660011790559392505050565b60035460009061010090046001600160a01b03163314611c9c5761110f600160456126f0565b600480546001600160a01b038481166001600160a01b0319831681179093556040805191909216808252602082019390935281517fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a9929181900390910190a16000611237565b6000805460ff16611d47576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155611d59611749565b14611da4576040805162461bcd60e51b81526020600482015260166024820152751858d8dc9d59481a5b9d195c995cdd0819985a5b195960521b604482015290519081900360640190fd5b611dac610ce3565b90506000805460ff1916600117905590565b6001600160a01b0381166000908152600e6020526040812054819081908190818080611de98961290a565b935090506000816003811115611dfb57fe5b14611e195760095b975060009650869550859450611e4c9350505050565b611e216121a2565b925090506000816003811115611e3357fe5b14611e3f576009611e03565b5060009650919450925090505b9193509193565b6000610bfb82613105565b60095481565b6000610bfb82613184565b6001600160a01b039182166000908152600f6020908152604080832093909416825291909152205490565b6004546000906001600160a01b031633141580611eb5575033155b15611ecd57611ec6600160006126f0565b9050610d43565b60038054600480546001600160a01b03818116610100818102610100600160a81b0319871617968790556001600160a01b031990931690935560408051948390048216808652929095041660208401528351909391927ff9ffabca9c8276e99321725bcb43fb076a6c66a54b7f21c4e8146d8519b417dc92908290030190a1600454604080516001600160a01b038085168252909216602083015280517fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a99281900390910190a160009250505090565b600080611fa8611749565b90508015611fce57611fc6816010811115611fbf57fe5b60406126f0565b915050610c12565b611237836129c2565b6006546001600160a01b031681565b600080611ff48585856131fe565b5095945050505050565b60035461010090046001600160a01b031681565b6006546000906001600160a01b03166315f2405361202e6125dc565b600b54600c546040518463ffffffff1660e01b815260040180848152602001838152602001828152602001935050505060206040518083038186803b158015611bd457600080fd5b6000805460ff166120bb576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556120cd611749565b905080156120eb576112c88160108111156120e457fe5b60466126f0565b6112d983613330565b600181565b60008054819060ff16612140576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155612152611749565b9050801561217d5761217081601081111561216957fe5b60366126f0565b92506000915061218e9050565b6121883333866133d8565b92509250505b6000805460ff191660011790559092909150565b600d546000908190806121bd5750506007546000915061224d565b60006121c76125dc565b905060006121d3614ffd565b60006121e484600b54600c54613743565b9350905060008160038111156121f657fe5b1461220b5795506000945061224d9350505050565b6122158386613781565b92509050600081600381111561222757fe5b1461223c5795506000945061224d9350505050565b505160009550935061224d92505050565b9091565b600554604080516317b9b84b60e31b81523060048201526001600160a01b03868116602483015285811660448301526064820185905291516000938493169163bdcdc25891608480830192602092919082900301818787803b1580156122b657600080fd5b505af11580156122ca573d6000803e3d6000fd5b505050506040513d60208110156122e057600080fd5b5051905080156122ff576122f76003604a83612c43565b9150506110c7565b836001600160a01b0316856001600160a01b03161415612325576122f76002604b6126f0565b60006001600160a01b038781169087161415612344575060001961236c565b506001600160a01b038086166000908152600f60209081526040808320938a16835292905220545b60008060008061237c8589612bb8565b9094509250600084600381111561238f57fe5b146123ad576123a06009604b6126f0565b96505050505050506110c7565b6001600160a01b038a166000908152600e60205260409020546123d09089612bb8565b909450915060008460038111156123e357fe5b146123f4576123a06009604c6126f0565b6001600160a01b0389166000908152600e60205260409020546124179089612ca9565b9094509050600084600381111561242a57fe5b1461243b576123a06009604d6126f0565b6001600160a01b03808b166000908152600e6020526040808220859055918b168152208190556000198514612493576001600160a01b03808b166000908152600f60209081526040808320938f168352929052208390555b886001600160a01b03168a6001600160a01b03166000805160206153378339815191528a6040518082815260200191505060405180910390a35060009a9950505050505050505050565b60008054819060ff16612524576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155612536611749565b905080156125615761255481601081111561254d57fe5b60356126f0565b9250600091506125729050565b61256c3386866133d8565b92509250505b6000805460ff1916600117905590939092509050565b6000806000612595614ffd565b61259f8686612bdb565b909250905060008260038111156125b257fe5b146125c357509150600090506125d5565b60006125ce82613831565b9350935050505b9250929050565b601154604080516370a0823160e01b815230600482015290516000926001600160a01b03169182916370a0823191602480820192602092909190829003018186803b15801561262a57600080fd5b505afa15801561263e573d6000803e3d6000fd5b505050506040513d602081101561265457600080fd5b505191505090565b6000805460ff166126a1576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556126b3611749565b905080156126d1576112c88160108111156126ca57fe5b604e6126f0565b6126da83613840565b509150506000805460ff19166001179055919050565b60007f45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa083601081111561271f57fe5b83605081111561272b57fe5b604080519283526020830191909152600082820152519081900360600190a182601081111561123757fe5b600354600090819061010090046001600160a01b0316331461277e57611fc6600160316126f0565b6127866129be565b6009541461279a57611fc6600a60336126f0565b826127a36125dc565b10156127b557611fc6600e60326126f0565b600c548311156127cb57611fc6600260346126f0565b50600c54828103908111156128115760405162461bcd60e51b815260040180806020018281038252602481526020018061544c6024913960400191505060405180910390fd5b600c8190556003546128319061010090046001600160a01b031684613928565b600354604080516101009092046001600160a01b0316825260208201859052818101839052517f3bad0c59cf2f06e7314077049f48a93578cd16f5ef92329f1dab1420a99c177e916060908290030190a16000611237565b6000805460ff166128ce576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556128e0611749565b905080156128fe576112c88160108111156128f757fe5b60276126f0565b6112d933600085613a1f565b6001600160a01b0381166000908152601060205260408120805482918291829182916129415750600094508493506129b992505050565b6129518160000154600a54613eef565b9094509250600084600381111561296457fe5b146129795750919350600092506129b9915050565b612987838260010154613f2e565b9094509150600084600381111561299a57fe5b146129af5750919350600092506129b9915050565b5060009450925050505b915091565b4290565b600354600090819061010090046001600160a01b031633146129ea57611fc6600160426126f0565b6129f26129be565b60095414612a0657611fc6600a60416126f0565b600660009054906101000a90046001600160a01b03169050826001600160a01b0316632191f92a6040518163ffffffff1660e01b815260040160206040518083038186803b158015612a5757600080fd5b505afa158015612a6b573d6000803e3d6000fd5b505050506040513d6020811015612a8157600080fd5b5051612ad4576040805162461bcd60e51b815260206004820152601c60248201527f6d61726b6572206d6574686f642072657475726e65642066616c736500000000604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b03858116918217909255604080519284168352602083019190915280517fedffc32e068c7c95dfd4bdfd5c4d939a084d6b11c4199eac8436ed234d72f9269281900390910190a16000611237565b60008054819060ff16612b7e576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155612b90611749565b90508015612bae57612170816010811115612ba757fe5b601e6126f0565b6121883385613f59565b600080838311612bcf5750600090508183036125d5565b506003905060006125d5565b6000612be5614ffd565b600080612bf6866000015186613eef565b90925090506000826003811115612c0957fe5b14612c28575060408051602081019091526000815290925090506125d5565b60408051602081019091529081526000969095509350505050565b60007f45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa0846010811115612c7257fe5b846050811115612c7e57fe5b604080519283526020830191909152818101859052519081900360600190a18360108111156110c757fe5b600080838301848110612cc1576000925090506125d5565b5060029150600090506125d5565b6000806000612cdc614ffd565b612ce68787612bdb565b90925090506000826003811115612cf957fe5b14612d0a5750915060009050612d23565b612d1c612d1682613831565b86612ca9565b9350935050505b935093915050565b6005546040805163d02f735160e01b81523060048201526001600160a01b038781166024830152868116604483015285811660648301526084820185905291516000938493169163d02f73519160a480830192602092919082900301818787803b158015612d9857600080fd5b505af1158015612dac573d6000803e3d6000fd5b505050506040513d6020811015612dc257600080fd5b505190508015612dd9576122f76003601b83612c43565b846001600160a01b0316846001600160a01b03161415612dff576122f76006601c6126f0565b612e0761508e565b6001600160a01b0385166000908152600e6020526040902054612e2a9085612bb8565b6020830181905282826003811115612e3e57fe5b6003811115612e4957fe5b9052506000905081516003811115612e5d57fe5b14612e8257612e796009601a8360000151600381111561193057fe5b925050506110c7565b612ea1846040518060200160405280666379da05b6000081525061432a565b60808201819052612eb3908590614352565b6060820152612ec06121a2565b60c0830181905282826003811115612ed457fe5b6003811115612edf57fe5b9052506000905081516003811115612ef357fe5b14612f45576040805162461bcd60e51b815260206004820152601860248201527f65786368616e67652072617465206d617468206572726f720000000000000000604482015290519081900360640190fd5b612f6560405180602001604052808360c00151815250826080015161438c565b60a08201819052600c54612f78916143ab565b60e0820152600d546080820151612f8f9190614352565b6101008201526001600160a01b0386166000908152600e60205260409020546060820151612fbd9190612ca9565b6040830181905282826003811115612fd157fe5b6003811115612fdc57fe5b9052506000905081516003811115612ff057fe5b1461300c57612e79600960198360000151600381111561193057fe5b60e0810151600c55610100810151600d556020808201516001600160a01b038088166000818152600e855260408082209490945583860151928b16808252908490209290925560608501518351908152925191939092600080516020615337833981519152929081900390910190a36080810151604080519182525130916001600160a01b038816916000805160206153378339815191529181900360200190a360a081015160e082015160408051308152602081019390935282810191909152517fa91e67c5ea634cd43a12c5a482724b03de01e85ca68702a53d0c2f45cb7c1dc59181900360600190a16000979650505050505050565b6000805460ff1661314a576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff1916815561315c611749565b9050801561317a576112c881601081111561317357fe5b60086126f0565b6112d933846143e1565b6000805460ff166131c9576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff191681556131db611749565b905080156131f2576112c88160108111156128f757fe5b6112d933846000613a1f565b60008054819060ff16613245576040805162461bcd60e51b815260206004820152600a6024820152691c994b595b9d195c995960b21b604482015290519081900360640190fd5b6000805460ff19168155613257611749565b905080156132825761327581601081111561326e57fe5b600f6126f0565b9250600091506133199050565b836001600160a01b031663a6afed956040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156132bd57600080fd5b505af11580156132d1573d6000803e3d6000fd5b505050506040513d60208110156132e757600080fd5b5051905080156133075761327581601081111561330057fe5b60106126f0565b6133133387878761467d565b92509250505b6000805460ff191660011790559094909350915050565b60035460009061010090046001600160a01b031633146133565761110f600160476126f0565b61335e6129be565b600954146133725761110f600a60486126f0565b670de0b6b3a764000082111561338e5761110f600260496126f0565b6008805490839055604080518281526020810185905281517faaa68312e2ea9d50e16af5068410ab56e1a1fd06037b1a35664812c30f821460929181900390910190a16000611237565b60055460408051631200453160e11b81523060048201526001600160a01b0386811660248301528581166044830152606482018590529151600093849384939116916324008a629160848082019260209290919082900301818787803b15801561344157600080fd5b505af1158015613455573d6000803e3d6000fd5b505050506040513d602081101561346b57600080fd5b50519050801561348f576134826003603883612c43565b925060009150612d239050565b6134976129be565b600954146134ab57613482600a60396126f0565b6134b36150db565b6001600160a01b03861660009081526010602052604090206001015460608201526134dd8661290a565b60808301819052602083018260038111156134f457fe5b60038111156134ff57fe5b905250600090508160200151600381111561351657fe5b1461354057613532600960378360200151600381111561193057fe5b935060009250612d23915050565b600019851480156135625750856001600160a01b0316876001600160a01b0316145b15613576576080810151604082015261357e565b604081018590525b61358c878260400151614b6f565b60e0820181905260808201516135a191612bb8565b60a08301819052602083018260038111156135b857fe5b60038111156135c357fe5b90525060009050816020015160038111156135da57fe5b146136165760405162461bcd60e51b815260040180806020018281038252603a8152602001806152fd603a913960400191505060405180910390fd5b613626600b548260e00151612bb8565b60c083018190526020830182600381111561363d57fe5b600381111561364857fe5b905250600090508160200151600381111561365f57fe5b1461369b5760405162461bcd60e51b81526004018080602001828103825260318152602001806153576031913960400191505060405180910390fd5b60a080820180516001600160a01b03808a16600081815260106020908152604091829020948555600a5460019095019490945560c0870151600b81905560e088015195518251948f16855294840192909252828101949094526060820192909252608081019190915290517f1a2a22cb034d26d1854bdc6666a5b91fe25efbbb5dcad3b0355478d6f5c362a1929181900390910190a160e00151600097909650945050505050565b6000806000806137538787612ca9565b9092509050600082600381111561376657fe5b146137775750915060009050612d23565b612d1c8186612bb8565b600061378b614ffd565b6000806137a086670de0b6b3a7640000613eef565b909250905060008260038111156137b357fe5b146137d2575060408051602081019091526000815290925090506125d5565b6000806137df8388613f2e565b909250905060008260038111156137f257fe5b14613814575060408051602081019091526000815290945092506125d5915050565b604080516020810190915290815260009890975095505050505050565b51670de0b6b3a7640000900490565b60008060008061384e6129be565b6009541461386d57613862600a604f6126f0565b935091506129b99050565b6138773386614b6f565b905080600c54019150600c548210156138d7576040805162461bcd60e51b815260206004820181905260248201527f61646420726573657276657320756e6578706563746564206f766572666c6f77604482015290519081900360640190fd5b600c829055604080513381526020810183905280820184905290517fa91e67c5ea634cd43a12c5a482724b03de01e85ca68702a53d0c2f45cb7c1dc59181900360600190a160009350915050915091565b6011546040805163a9059cbb60e01b81526001600160a01b0385811660048301526024820185905291519190921691829163a9059cbb9160448082019260009290919082900301818387803b15801561398057600080fd5b505af1158015613994573d6000803e3d6000fd5b5050505060003d600081146139b057602081146139ba57600080fd5b60001991506139c6565b60206000803e60005191505b5080613a19576040805162461bcd60e51b815260206004820152601960248201527f544f4b454e5f5452414e534645525f4f55545f4641494c454400000000000000604482015290519081900360640190fd5b50505050565b6000821580613a2c575081155b613a675760405162461bcd60e51b81526004018080602001828103825260348152602001806154186034913960400191505060405180910390fd5b613a6f615121565b613a776121a2565b6040830181905260208301826003811115613a8e57fe5b6003811115613a9957fe5b9052506000905081602001516003811115613ab057fe5b14613ad457613acc6009602b8360200151600381111561193057fe5b915050611237565b8315613b55576060810184905260408051602081018252908201518152613afb9085612588565b6080830181905260208301826003811115613b1257fe5b6003811115613b1d57fe5b9052506000905081602001516003811115613b3457fe5b14613b5057613acc600960298360200151600381111561193057fe5b613bce565b613b718360405180602001604052808460400151815250614db9565b6060830181905260208301826003811115613b8857fe5b6003811115613b9357fe5b9052506000905081602001516003811115613baa57fe5b14613bc657613acc6009602a8360200151600381111561193057fe5b608081018390525b60055460608201516040805163eabe7d9160e01b81523060048201526001600160a01b03898116602483015260448201939093529051600093929092169163eabe7d919160648082019260209290919082900301818787803b158015613c3357600080fd5b505af1158015613c47573d6000803e3d6000fd5b505050506040513d6020811015613c5d57600080fd5b505190508015613c7d57613c746003602883612c43565b92505050611237565b613c856129be565b60095414613c9957613c74600a602c6126f0565b613ca9600d548360600151612bb8565b60a0840181905260208401826003811115613cc057fe5b6003811115613ccb57fe5b9052506000905082602001516003811115613ce257fe5b14613cfe57613c746009602e8460200151600381111561193057fe5b6001600160a01b0386166000908152600e60205260409020546060830151613d269190612bb8565b60c0840181905260208401826003811115613d3d57fe5b6003811115613d4857fe5b9052506000905082602001516003811115613d5f57fe5b14613d7b57613c746009602d8460200151600381111561193057fe5b8160800151613d886125dc565b1015613d9a57613c74600e602f6126f0565b60a0820151600d5560c08201516001600160a01b0387166000908152600e60205260409020556080820151613dd0908790613928565b6060820151604080519182525130916001600160a01b038916916000805160206153378339815191529181900360200190a36080820151606080840151604080516001600160a01b038b168152602081019490945283810191909152517fe5b754fb1abb7f01b499791d0b820ae3b6af3424ac1c59768edb53f4ec31a9299281900390910190a160055460808301516060840151604080516351dff98960e01b81523060048201526001600160a01b038b81166024830152604482019490945260648101929092525191909216916351dff98991608480830192600092919082900301818387803b158015613ec457600080fd5b505af1158015613ed8573d6000803e3d6000fd5b5060009250613ee5915050565b9695505050505050565b60008083613f02575060009050806125d5565b83830283858281613f0f57fe5b0414613f23575060029150600090506125d5565b6000925090506125d5565b60008082613f4257506001905060006125d5565b6000838581613f4d57fe5b04915091509250929050565b60055460408051634ef4c3e160e01b81523060048201526001600160a01b03858116602483015260448201859052915160009384938493911691634ef4c3e19160648082019260209290919082900301818787803b158015613fba57600080fd5b505af1158015613fce573d6000803e3d6000fd5b505050506040513d6020811015613fe457600080fd5b50519050801561400857613ffb6003601f83612c43565b9250600091506125d59050565b6140106129be565b6009541461402457613ffb600a60226126f0565b61402c615121565b6140346121a2565b604083018190526020830182600381111561404b57fe5b600381111561405657fe5b905250600090508160200151600381111561406d57fe5b1461409757614089600960218360200151600381111561193057fe5b9350600092506125d5915050565b6140a18686614b6f565b60c08201819052604080516020810182529083015181526140c29190614db9565b60608301819052602083018260038111156140d957fe5b60038111156140e457fe5b90525060009050816020015160038111156140fb57fe5b1461414d576040805162461bcd60e51b815260206004820181905260248201527f4d494e545f45584348414e47455f43414c43554c4154494f4e5f4641494c4544604482015290519081900360640190fd5b61415d600d548260600151612ca9565b608083018190526020830182600381111561417457fe5b600381111561417f57fe5b905250600090508160200151600381111561419657fe5b146141d25760405162461bcd60e51b81526004018080602001828103825260288152602001806153f06028913960400191505060405180910390fd5b6001600160a01b0386166000908152600e602052604090205460608201516141fa9190612ca9565b60a083018190526020830182600381111561421157fe5b600381111561421c57fe5b905250600090508160200151600381111561423357fe5b1461426f5760405162461bcd60e51b815260040180806020018281038252602b81526020018061529b602b913960400191505060405180910390fd5b6080810151600d5560a08101516001600160a01b0387166000818152600e60209081526040918290209390935560c084015160608086015183519485529484019190915282820193909352517f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f929181900390910190a1606081015160408051918252516001600160a01b038816916000916000805160206153378339815191529181900360200190a360c001516000969095509350505050565b6000670de0b6b3a7640000614343848460000151614dd0565b8161434a57fe5b049392505050565b60006112378383604051806040016040528060158152602001747375627472616374696f6e20756e646572666c6f7760581b815250614e12565b6000614396614ffd565b6143a08484614ea9565b90506110c781613831565b60006112378383604051806040016040528060118152602001706164646974696f6e206f766572666c6f7760781b815250614ed3565b6005546040805163368f515360e21b81523060048201526001600160a01b0385811660248301526044820185905291516000938493169163da3d454c91606480830192602092919082900301818787803b15801561443e57600080fd5b505af1158015614452573d6000803e3d6000fd5b505050506040513d602081101561446857600080fd5b5051905080156144875761447f6003600e83612c43565b915050610bfb565b61448f6129be565b600954146144a25761447f600a806126f0565b826144ab6125dc565b10156144bd5761447f600e60096126f0565b6144c561515f565b6144ce8561290a565b60208301819052828260038111156144e257fe5b60038111156144ed57fe5b905250600090508151600381111561450157fe5b146145265761451d600960078360000151600381111561193057fe5b92505050610bfb565b614534816020015185612ca9565b604083018190528282600381111561454857fe5b600381111561455357fe5b905250600090508151600381111561456757fe5b146145835761451d6009600c8360000151600381111561193057fe5b61458f600b5485612ca9565b60608301819052828260038111156145a357fe5b60038111156145ae57fe5b90525060009050815160038111156145c257fe5b146145de5761451d6009600b8360000151600381111561193057fe5b6040808201516001600160a01b0387166000908152601060205291909120908155600a546001909101556060810151600b5561461a8585613928565b60408082015160608084015183516001600160a01b038a16815260208101899052808501939093529082015290517f13ed6866d4e1ee6da46f845c46d7e54120883d75c5ea9a2dacc1c4ca8984ab809181900360800190a1600095945050505050565b60055460408051632fe3f38f60e11b81523060048201526001600160a01b0384811660248301528781166044830152868116606483015260848201869052915160009384938493911691635fc7e71e9160a48082019260209290919082900301818787803b1580156146ee57600080fd5b505af1158015614702573d6000803e3d6000fd5b505050506040513d602081101561471857600080fd5b50519050801561473c5761472f6003601283612c43565b925060009150614b669050565b6147446129be565b600954146147585761472f600a60166126f0565b6147606129be565b846001600160a01b031663cfa992016040518163ffffffff1660e01b815260040160206040518083038186803b15801561479957600080fd5b505afa1580156147ad573d6000803e3d6000fd5b505050506040513d60208110156147c357600080fd5b5051146147d65761472f600a60116126f0565b866001600160a01b0316866001600160a01b031614156147fc5761472f600660176126f0565b8461480d5761472f600760156126f0565b6000198514156148235761472f600760146126f0565b6000806148318989896133d8565b909250905081156148615761485282601081111561484b57fe5b60186126f0565b945060009350614b6692505050565b6005546040805163c488847b60e01b81523060048201526001600160a01b038981166024830152604482018590528251600094859492169263c488847b926064808301939192829003018186803b1580156148bb57600080fd5b505afa1580156148cf573d6000803e3d6000fd5b505050506040513d60408110156148e557600080fd5b508051602090910151909250905081156149305760405162461bcd60e51b81526004018080602001828103825260338152602001806153886033913960400191505060405180910390fd5b80886001600160a01b03166370a082318c6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561498757600080fd5b505afa15801561499b573d6000803e3d6000fd5b505050506040513d60208110156149b157600080fd5b50511015614a06576040805162461bcd60e51b815260206004820152601860248201527f4c49515549444154455f5345495a455f544f4f5f4d5543480000000000000000604482015290519081900360640190fd5b60006001600160a01b038916301415614a2c57614a25308d8d85612d2b565b9050614ab6565b6040805163b2a02ff160e01b81526001600160a01b038e811660048301528d81166024830152604482018590529151918b169163b2a02ff1916064808201926020929091908290030181600087803b158015614a8757600080fd5b505af1158015614a9b573d6000803e3d6000fd5b505050506040513d6020811015614ab157600080fd5b505190505b8015614b00576040805162461bcd60e51b81526020600482015260146024820152731d1bdad95b881cd95a5e9d5c994819985a5b195960621b604482015290519081900360640190fd5b604080516001600160a01b03808f168252808e1660208301528183018790528b1660608201526080810184905290517f298637f684da70674f26509b10f07ec2fbc77a335ab1e7d6215a4b2484d8bb529181900360a00190a16000975092955050505050505b94509492505050565b601154604080516370a0823160e01b815230600482015290516000926001600160a01b031691839183916370a08231916024808301926020929190829003018186803b158015614bbe57600080fd5b505afa158015614bd2573d6000803e3d6000fd5b505050506040513d6020811015614be857600080fd5b5051604080516323b872dd60e01b81526001600160a01b038881166004830152306024830152604482018890529151929350908416916323b872dd9160648082019260009290919082900301818387803b158015614c4557600080fd5b505af1158015614c59573d6000803e3d6000fd5b5050505060003d60008114614c755760208114614c7f57600080fd5b6000199150614c8b565b60206000803e60005191505b5080614cde576040805162461bcd60e51b815260206004820152601860248201527f544f4b454e5f5452414e534645525f494e5f4641494c45440000000000000000604482015290519081900360640190fd5b601154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015614d2957600080fd5b505afa158015614d3d573d6000803e3d6000fd5b505050506040513d6020811015614d5357600080fd5b5051905082811015614dac576040805162461bcd60e51b815260206004820152601a60248201527f544f4b454e5f5452414e534645525f494e5f4f564552464c4f57000000000000604482015290519081900360640190fd5b9190910395945050505050565b6000806000614dc6614ffd565b61259f8686614f28565b600061123783836040518060400160405280601781526020017f6d756c7469706c69636174696f6e206f766572666c6f77000000000000000000815250614f87565b60008184841115614ea15760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015614e66578181015183820152602001614e4e565b50505050905090810190601f168015614e935780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b614eb1614ffd565b6040518060200160405280614eca856000015185614dd0565b90529392505050565b60008383018285821015610ff85760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315614e66578181015183820152602001614e4e565b6000614f32614ffd565b600080614f47670de0b6b3a764000087613eef565b90925090506000826003811115614f5a57fe5b14614f79575060408051602081019091526000815290925090506125d5565b6125ce818660000151613781565b6000831580614f94575082155b15614fa157506000611237565b83830283858281614fae57fe5b04148390610ff85760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315614e66578181015183820152602001614e4e565b6040518060200160405280600081525090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061505157805160ff191683800117855561507e565b8280016001018555821561507e579182015b8281111561507e578251825591602001919060010190615063565b5061508a929150615188565b5090565b604080516101208101909152806000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6040805161010081019091528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6040805160e0810190915280600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b604080516080810190915280600081526020016000815260200160008152602001600081525090565b610d4391905b8082111561508a576000815560010161518e56fe6f6e6c792061646d696e206d617920696e697469616c697a6520746865206d61726b65746d61726b6574206d6179206f6e6c7920626520696e697469616c697a6564206f6e63654345726332303a3a7377656570546f6b656e3a2063616e206e6f7420737765657020756e6465726c79696e6720746f6b656e696e697469616c2065786368616e67652072617465206d7573742062652067726561746572207468616e207a65726f2e6f6e6c79207468652061646d696e206d6179207365742074686520636f6d702d6c696b652064656c656761746573657474696e6720696e7465726573742072617465206d6f64656c206661696c65644d494e545f4e45575f4143434f554e545f42414c414e43455f43414c43554c4154494f4e5f4641494c4544626f72726f7742616c616e636553746f7265643a20626f72726f7742616c616e636553746f726564496e7465726e616c206661696c656452455041595f424f52524f575f4e45575f4143434f554e545f424f52524f575f42414c414e43455f43414c43554c4154494f4e5f4641494c4544ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef52455041595f424f52524f575f4e45575f544f54414c5f42414c414e43455f43414c43554c4154494f4e5f4641494c45444c49515549444154455f434f4d5054524f4c4c45525f43414c43554c4154455f414d4f554e545f5345495a455f4641494c454465786368616e67655261746553746f7265643a2065786368616e67655261746553746f726564496e7465726e616c206661696c65644d494e545f4e45575f544f54414c5f535550504c595f43414c43554c4154494f4e5f4641494c45446f6e65206f662072656465656d546f6b656e73496e206f722072656465656d416d6f756e74496e206d757374206265207a65726f72656475636520726573657276657320756e657870656374656420756e646572666c6f77a265627a7a723158207ae9bf0e670cbb5b8888a69c99ee7a3136b72904b52eb546386d6922121404a464736f6c63430005100032