Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 39 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw All To ... | 13323907 | 1137 days ago | IN | 0 ETH | 0.27979144 | ||||
Set Liquidity Lo... | 13091203 | 1173 days ago | IN | 0 ETH | 0.0047244 | ||||
Settle Loan | 13091202 | 1173 days ago | IN | 0 ETH | 0.03599445 | ||||
Set Liquidity Lo... | 13043640 | 1180 days ago | IN | 0 ETH | 0.00200877 | ||||
Settle Loan | 13043624 | 1180 days ago | IN | 0 ETH | 0.01192885 | ||||
Set Liquidity Lo... | 12953723 | 1194 days ago | IN | 0 ETH | 0.0027578 | ||||
Settle Loan | 12953712 | 1194 days ago | IN | 0 ETH | 0.0163769 | ||||
Provide Loan | 12930683 | 1198 days ago | IN | 0 ETH | 0.11368165 | ||||
Set Liquidity Lo... | 12930683 | 1198 days ago | IN | 0 ETH | 0.00241733 | ||||
Settle Loan | 12930683 | 1198 days ago | IN | 0 ETH | 0.01435506 | ||||
Provide Loan | 12930631 | 1198 days ago | IN | 0 ETH | 0.11294211 | ||||
Set Liquidity Lo... | 12930631 | 1198 days ago | IN | 0 ETH | 0.00241733 | ||||
Settle Loan | 12930631 | 1198 days ago | IN | 0 ETH | 0.02148147 | ||||
Provide Loan | 12479935 | 1268 days ago | IN | 0 ETH | 0.53004442 | ||||
Set Liquidity Lo... | 12479928 | 1268 days ago | IN | 0 ETH | 0.01028219 | ||||
Settle Loan | 12479928 | 1268 days ago | IN | 0 ETH | 0.08913046 | ||||
Provide Loan | 11779214 | 1376 days ago | IN | 0 ETH | 0.71248893 | ||||
Settle Loan | 11779213 | 1376 days ago | IN | 0 ETH | 0.11171347 | ||||
Set Liquidity Lo... | 11779205 | 1376 days ago | IN | 0 ETH | 0.01058159 | ||||
Provide Loan | 11550639 | 1411 days ago | IN | 0 ETH | 0.34362108 | ||||
Set Liquidity Lo... | 11550636 | 1411 days ago | IN | 0 ETH | 0.00515718 | ||||
Provide Loan | 11547874 | 1412 days ago | IN | 0 ETH | 0.19889456 | ||||
Set Liquidity Lo... | 11547871 | 1412 days ago | IN | 0 ETH | 0.00286396 | ||||
Provide Loan | 11547834 | 1412 days ago | IN | 0 ETH | 0.1803137 | ||||
Set Liquidity Lo... | 11547833 | 1412 days ago | IN | 0 ETH | 0.00286396 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
13468476 | 1114 days ago | 0.01910092 ETH | ||||
13468476 | 1114 days ago | 0.01910092 ETH | ||||
13468470 | 1114 days ago | 0.01910092 ETH | ||||
13468470 | 1114 days ago | 0.01910092 ETH | ||||
13354221 | 1132 days ago | 2,524.54796027 ETH | ||||
13354221 | 1132 days ago | 2,524.54796027 ETH | ||||
13338332 | 1135 days ago | 2,524.53301773 ETH | ||||
13338332 | 1135 days ago | 2,524.53301773 ETH | ||||
13323907 | 1137 days ago | 2,656.93799664 ETH | ||||
13323907 | 1137 days ago | 2,656.93799664 ETH | ||||
13309282 | 1139 days ago | 2,656.92190431 ETH | ||||
13309282 | 1139 days ago | 2,656.92190431 ETH | ||||
13309282 | 1139 days ago | 2,668.59764089 ETH | ||||
13309282 | 1139 days ago | 2,668.59764089 ETH | ||||
13307836 | 1139 days ago | 2,668.59605472 ETH | ||||
13307836 | 1139 days ago | 2,668.59605472 ETH | ||||
13307836 | 1139 days ago | 2,672.0045296 ETH | ||||
13307836 | 1139 days ago | 2,672.0045296 ETH | ||||
13305994 | 1140 days ago | 2,672.00250697 ETH | ||||
13305994 | 1140 days ago | 2,672.00250697 ETH | ||||
13305994 | 1140 days ago | 2,674.00748594 ETH | ||||
13305994 | 1140 days ago | 2,674.00748594 ETH | ||||
13298389 | 1141 days ago | 2,673.99915294 ETH | ||||
13298389 | 1141 days ago | 2,673.99915294 ETH | ||||
13298389 | 1141 days ago | 2,695.50667975 ETH |
Loading...
Loading
Contract Name:
CompoundWETHFoldStrategyMainnet
Compiler Version
v0.5.16+commit.9c3226ce
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-11-27 */ // File: @openzeppelin/contracts/math/Math.sol pragma solidity ^0.5.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow, so we distribute return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2); } } // File: @openzeppelin/contracts/math/SafeMath.sol pragma solidity ^0.5.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. * * _Available since v2.4.0._ */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. * * _Available since v2.4.0._ */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. * * _Available since v2.4.0._ */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } // File: @openzeppelin/contracts/token/ERC20/IERC20.sol pragma solidity ^0.5.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. Does not include * the optional functions; to access them see {ERC20Detailed}. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File: @openzeppelin/contracts/token/ERC20/ERC20Detailed.sol pragma solidity ^0.5.0; /** * @dev Optional functions from the ERC20 standard. */ contract ERC20Detailed is IERC20 { string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for `name`, `symbol`, and `decimals`. All three of * these values are immutable: they can only be set once during * construction. */ constructor (string memory name, string memory symbol, uint8 decimals) public { _name = name; _symbol = symbol; _decimals = decimals; } /** * @dev Returns the name of the token. */ function name() public view returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view returns (uint8) { return _decimals; } } // File: @openzeppelin/contracts/utils/Address.sol pragma solidity ^0.5.5; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // solhint-disable-next-line no-inline-assembly assembly { codehash := extcodehash(account) } return (codehash != accountHash && codehash != 0x0); } /** * @dev Converts an `address` into `address payable`. Note that this is * simply a type cast: the actual underlying value is not changed. * * _Available since v2.4.0._ */ function toPayable(address account) internal pure returns (address payable) { return address(uint160(account)); } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. * * _Available since v2.4.0._ */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-call-value (bool success, ) = recipient.call.value(amount)(""); require(success, "Address: unable to send value, recipient may have reverted"); } } // File: @openzeppelin/contracts/token/ERC20/SafeERC20.sol pragma solidity ^0.5.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for ERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. // A Solidity high level call has three parts: // 1. The target address is checked to verify it contains contract code // 2. The call itself is made, and success asserted // 3. The return value is decoded, which in turn checks the size of the returned data. // solhint-disable-next-line max-line-length require(address(token).isContract(), "SafeERC20: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = address(token).call(data); require(success, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File: @openzeppelin/contracts/GSN/Context.sol pragma solidity ^0.5.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ contract Context { // Empty internal constructor, to prevent people from mistakenly deploying // an instance of this contract, which should be used via inheritance. constructor () internal { } // solhint-disable-previous-line no-empty-blocks function _msgSender() internal view returns (address payable) { return msg.sender; } function _msgData() internal view returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // File: @openzeppelin/contracts/ownership/Ownable.sol pragma solidity ^0.5.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(isOwner(), "Ownable: caller is not the owner"); _; } /** * @dev Returns true if the caller is the current owner. */ function isOwner() public view returns (bool) { return _msgSender() == _owner; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public onlyOwner { _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). */ function _transferOwnership(address newOwner) internal { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } // File: @openzeppelin/contracts/utils/ReentrancyGuard.sol pragma solidity ^0.5.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. * * _Since v2.5.0:_ this module is now much more gas efficient, given net gas * metering changes introduced in the Istanbul hardfork. */ contract ReentrancyGuard { bool private _notEntered; constructor () internal { // Storing an initial non-zero value makes deployment a bit more // expensive, but in exchange the refund on every call to nonReentrant // will be lower in amount. Since refunds are capped to a percetange of // the total transaction's gas, it is best to keep them low in cases // like this one, to increase the likelihood of the full refund coming // into effect. _notEntered = true; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_notEntered, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _notEntered = false; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _notEntered = true; } } // File: contracts/compound/ComptrollerInterface.sol pragma solidity ^0.5.16; contract ComptrollerInterface { // implemented, but missing from the interface function getAccountLiquidity(address account) external view returns (uint, uint, uint); function getHypotheticalAccountLiquidity( address account, address cTokenModify, uint redeemTokens, uint borrowAmount) external view returns (uint, uint, uint); function claimComp(address holder) external; /// @notice Indicator that this is a Comptroller contract (for inspection) bool public constant isComptroller = true; /*** Assets You Are In ***/ function enterMarkets(address[] calldata cTokens) external returns (uint[] memory); function exitMarket(address cToken) external returns (uint); /*** Policy Hooks ***/ function mintAllowed(address cToken, address minter, uint mintAmount) external returns (uint); function 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; /*** Liquidity/Liquidation Calculations ***/ function liquidateCalculateSeizeTokens( address cTokenBorrowed, address cTokenCollateral, uint repayAmount) external view returns (uint, uint); function markets(address cToken) external view returns (bool, uint); function compSpeeds(address cToken) external view returns (uint); } // File: contracts/compound/InterestRateModel.sol pragma solidity ^0.5.16; /** * @title Compound's InterestRateModel Interface * @author Compound */ contract InterestRateModel { /// @notice Indicator that this is an InterestRateModel contract (for inspection) bool public constant isInterestRateModel = true; /** * @notice Calculates the current borrow interest rate per block * @param cash The total amount of cash the market has * @param borrows The total amount of borrows the market has outstanding * @param reserves The total amnount of reserves the market has * @return The borrow rate per block (as a percentage, and scaled by 1e18) */ function getBorrowRate(uint cash, uint borrows, uint reserves) external view returns (uint); /** * @notice Calculates the current supply interest rate per block * @param cash The total amount of cash the market has * @param borrows The total amount of borrows the market has outstanding * @param reserves The total amnount of reserves the market has * @param reserveFactorMantissa The current reserve factor the market has * @return The supply rate per block (as a percentage, and scaled by 1e18) */ function getSupplyRate(uint cash, uint borrows, uint reserves, uint reserveFactorMantissa) external view returns (uint); } // File: contracts/compound/CTokenInterfaces.sol pragma solidity ^0.5.16; contract CTokenStorage { /** * @dev Guard variable for re-entrancy checks */ bool internal _notEntered; /** * @notice EIP-20 token name for this token */ string public name; /** * @notice EIP-20 token symbol for this token */ string public symbol; /** * @notice EIP-20 token decimals for this token */ uint8 public decimals; /** * @notice Maximum borrow rate that can ever be applied (.0005% / block) */ uint internal constant borrowRateMaxMantissa = 0.0005e16; /** * @notice Maximum fraction of interest that can be set aside for reserves */ uint internal constant reserveFactorMaxMantissa = 1e18; /** * @notice Administrator for this contract */ address payable public admin; /** * @notice Pending administrator for this contract */ address payable public pendingAdmin; /** * @notice Contract which oversees inter-cToken operations */ ComptrollerInterface public comptroller; /** * @notice Model which tells what the current interest rate should be */ InterestRateModel public interestRateModel; /** * @notice Initial exchange rate used when minting the first CTokens (used when totalSupply = 0) */ uint internal initialExchangeRateMantissa; /** * @notice Fraction of interest currently set aside for reserves */ uint public reserveFactorMantissa; /** * @notice Block number that interest was last accrued at */ uint public accrualBlockNumber; /** * @notice Accumulator of the total earned interest rate since the opening of the market */ uint public borrowIndex; /** * @notice Total amount of outstanding borrows of the underlying in this market */ uint public totalBorrows; /** * @notice Total amount of reserves of the underlying held in this market */ uint public totalReserves; /** * @notice Total number of tokens in circulation */ uint public totalSupply; /** * @notice Official record of token balances for each account */ mapping (address => uint) internal accountTokens; /** * @notice Approved token transfer amounts on behalf of others */ mapping (address => mapping (address => uint)) internal transferAllowances; /** * @notice Container for borrow balance information * @member principal Total balance (with accrued interest), after applying the most recent balance-changing action * @member interestIndex Global borrowIndex as of the most recent balance-changing action */ struct BorrowSnapshot { uint principal; uint interestIndex; } /** * @notice Mapping of account addresses to outstanding borrow balances */ mapping(address => BorrowSnapshot) internal accountBorrows; } contract CTokenInterface is CTokenStorage { /** * @notice Indicator that this is a CToken contract (for inspection) */ bool public constant isCToken = true; /*** Market Events ***/ /** * @notice Event emitted when interest is accrued */ event AccrueInterest(uint cashPrior, uint interestAccumulated, uint borrowIndex, uint totalBorrows); /** * @notice Event emitted when tokens are minted */ event Mint(address minter, uint mintAmount, uint mintTokens); /** * @notice Event emitted when tokens are redeemed */ event Redeem(address redeemer, uint redeemAmount, uint redeemTokens); /** * @notice Event emitted when underlying is borrowed */ event Borrow(address borrower, uint borrowAmount, uint accountBorrows, uint totalBorrows); /** * @notice Event emitted when a borrow is repaid */ event RepayBorrow(address payer, address borrower, uint repayAmount, uint accountBorrows, uint totalBorrows); /** * @notice Event emitted when a borrow is liquidated */ event LiquidateBorrow(address liquidator, address borrower, uint repayAmount, address cTokenCollateral, uint seizeTokens); /*** Admin Events ***/ /** * @notice Event emitted when pendingAdmin is changed */ event NewPendingAdmin(address oldPendingAdmin, address newPendingAdmin); /** * @notice Event emitted when pendingAdmin is accepted, which means admin is updated */ event NewAdmin(address oldAdmin, address newAdmin); /** * @notice Event emitted when comptroller is changed */ event NewComptroller(ComptrollerInterface oldComptroller, ComptrollerInterface newComptroller); /** * @notice Event emitted when interestRateModel is changed */ event NewMarketInterestRateModel(InterestRateModel oldInterestRateModel, InterestRateModel newInterestRateModel); /** * @notice Event emitted when the reserve factor is changed */ event NewReserveFactor(uint oldReserveFactorMantissa, uint newReserveFactorMantissa); /** * @notice Event emitted when the reserves are added */ event ReservesAdded(address benefactor, uint addAmount, uint newTotalReserves); /** * @notice Event emitted when the reserves are reduced */ event ReservesReduced(address admin, uint reduceAmount, uint newTotalReserves); /** * @notice EIP20 Transfer event */ event Transfer(address indexed from, address indexed to, uint amount); /** * @notice EIP20 Approval event */ event Approval(address indexed owner, address indexed spender, uint amount); /** * @notice Failure event */ event Failure(uint error, uint info, uint detail); /*** User Interface ***/ function transfer(address dst, uint amount) external returns (bool); function transferFrom(address src, address dst, uint amount) external returns (bool); function approve(address spender, uint amount) external returns (bool); function allowance(address owner, address spender) external view returns (uint); function balanceOf(address owner) external view returns (uint); function balanceOfUnderlying(address owner) external returns (uint); function getAccountSnapshot(address account) external view returns (uint, uint, uint, uint); function borrowRatePerBlock() external view returns (uint); function supplyRatePerBlock() external view returns (uint); function totalBorrowsCurrent() external returns (uint); function borrowBalanceCurrent(address account) external returns (uint); function borrowBalanceStored(address account) public view returns (uint); function exchangeRateCurrent() public returns (uint); function exchangeRateStored() public view returns (uint); function getCash() external view returns (uint); function accrueInterest() public returns (uint); function seize(address liquidator, address borrower, uint seizeTokens) external returns (uint); /*** Admin Functions ***/ function _setPendingAdmin(address payable newPendingAdmin) external returns (uint); function _acceptAdmin() external returns (uint); function _setComptroller(ComptrollerInterface newComptroller) public returns (uint); function _setReserveFactor(uint newReserveFactorMantissa) external returns (uint); function _reduceReserves(uint reduceAmount) external returns (uint); function _setInterestRateModel(InterestRateModel newInterestRateModel) public returns (uint); } contract CErc20Storage { /** * @notice Underlying asset for this CToken */ address public underlying; } contract CErc20Interface is CErc20Storage { /*** User Interface ***/ function mint(uint mintAmount) external returns (uint); function redeem(uint redeemTokens) external returns (uint); function redeemUnderlying(uint redeemAmount) external returns (uint); function borrow(uint borrowAmount) external returns (uint); function repayBorrow(uint repayAmount) external returns (uint); function repayBorrowBehalf(address borrower, uint repayAmount) external returns (uint); function liquidateBorrow(address borrower, uint repayAmount, CTokenInterface cTokenCollateral) external returns (uint); /*** Admin Functions ***/ function _addReserves(uint addAmount) external returns (uint); } contract CDelegationStorage { /** * @notice Implementation address for this contract */ address public implementation; } contract CDelegatorInterface is CDelegationStorage { /** * @notice Emitted when implementation is changed */ event NewImplementation(address oldImplementation, address newImplementation); /** * @notice Called by the admin to update the implementation of the delegator * @param implementation_ The address of the new implementation for delegation * @param allowResign Flag to indicate whether to call _resignImplementation on the old implementation * @param becomeImplementationData The encoded bytes data to be passed to _becomeImplementation */ function _setImplementation(address implementation_, bool allowResign, bytes memory becomeImplementationData) public; } contract CDelegateInterface is CDelegationStorage { /** * @notice Called by the delegator on a delegate to initialize it for duty * @dev Should revert if any issues arise which make it unfit for delegation * @param data The encoded bytes data for any initialization */ function _becomeImplementation(bytes memory data) public; /** * @notice Called by the delegator on a delegate to forfeit its responsibility */ function _resignImplementation() public; } // File: contracts/strategies/compound/CompleteCToken.sol pragma solidity 0.5.16; contract CompleteCToken is CErc20Interface, CTokenInterface {} // File: contracts/hardworkInterface/IStrategy.sol pragma solidity 0.5.16; interface IStrategy { function unsalvagableTokens(address tokens) external view returns (bool); function governance() external view returns (address); function controller() external view returns (address); function underlying() external view returns (address); function vault() external view returns (address); function withdrawAllToVault() external; function withdrawToVault(uint256 amount) external; function investedUnderlyingBalance() external view returns (uint256); // itsNotMuch() // should only be called by controller function salvage(address recipient, address token, uint256 amount) external; function doHardWork() external; function depositArbCheck() external view returns(bool); } // File: contracts/weth/WETH9.sol // based on https://etherscan.io/address/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2#code /** *Submitted for verification at Etherscan.io on 2017-12-12 */ // Copyright (C) 2015, 2016, 2017 Dapphub // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // You should have received a copy of the GNU General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. pragma solidity 0.5.16; contract WETH9 { function balanceOf(address target) public view returns (uint256); function deposit() public payable ; function withdraw(uint wad) public ; function totalSupply() public view returns (uint) ; function approve(address guy, uint wad) public returns (bool) ; function transfer(address dst, uint wad) public returns (bool) ; function transferFrom(address src, address dst, uint wad) public returns (bool); } /* GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. <one line to give the program's name and a brief idea of what it does.> Copyright (C) <year> <name of author> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: <program> Copyright (C) <year> <name of author> This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see <http://www.gnu.org/licenses/>. The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read <http://www.gnu.org/philosophy/why-not-lgpl.html>. */ // File: @studydefi/money-legos/compound/contracts/ICEther.sol pragma solidity ^0.5.0; contract ICEther { function mint() external payable; function borrow(uint borrowAmount) external returns (uint); function redeem(uint redeemTokens) external returns (uint); function redeemUnderlying(uint redeemAmount) external returns (uint); function repayBorrow() external payable; function repayBorrowBehalf(address borrower) external payable; function borrowBalanceCurrent(address account) external returns (uint); function borrowBalanceStored(address account) external view returns (uint256); function balanceOfUnderlying(address account) external returns (uint); function balanceOf(address owner) external view returns (uint256); function getAccountSnapshot(address account) external view returns (uint, uint, uint, uint); } // File: contracts/strategies/compound/CompoundInteractor.sol pragma solidity 0.5.16; contract CompoundInteractor is ReentrancyGuard { using SafeMath for uint256; using SafeERC20 for IERC20; IERC20 public underlying; IERC20 public _weth = IERC20(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2); CompleteCToken public ctoken; ComptrollerInterface public comptroller; constructor( address _underlying, address _ctoken, address _comptroller ) public { // Comptroller: comptroller = ComptrollerInterface(_comptroller); underlying = IERC20(_underlying); ctoken = CompleteCToken(_ctoken); // Enter the market address[] memory cTokens = new address[](1); cTokens[0] = _ctoken; comptroller.enterMarkets(cTokens); } /** * Supplies Ether to Compound * Unwraps WETH to Ether, then invoke the special mint for cEther * We ask to supply "amount", if the "amount" we asked to supply is * more than balance (what we really have), then only supply balance. * If we the "amount" we want to supply is less than balance, then * only supply that amount. */ function _supplyEtherInWETH(uint256 amountInWETH) internal nonReentrant { // underlying here is WETH uint256 balance = underlying.balanceOf(address(this)); // supply at most "balance" if (amountInWETH < balance) { balance = amountInWETH; // only supply the "amount" if its less than what we have } WETH9 weth = WETH9(address(_weth)); weth.withdraw(balance); // Unwrapping ICEther(address(ctoken)).mint.value(balance)(); } /** * Redeems Ether from Compound * receives Ether. Wrap all the ether that is in this contract. */ function _redeemEtherInCTokens(uint256 amountCTokens) internal nonReentrant { _redeemInCTokens(amountCTokens); WETH9 weth = WETH9(address(_weth)); weth.deposit.value(address(this).balance)(); } /** * Supplies to Compound */ function _supply(uint256 amount) internal returns(uint256) { uint256 balance = underlying.balanceOf(address(this)); if (amount < balance) { balance = amount; } underlying.safeApprove(address(ctoken), 0); underlying.safeApprove(address(ctoken), balance); uint256 mintResult = ctoken.mint(balance); require(mintResult == 0, "Supplying failed"); return balance; } /** * Borrows against the collateral */ function _borrow( uint256 amountUnderlying ) internal { // Borrow DAI, check the DAI balance for this contract's address uint256 result = ctoken.borrow(amountUnderlying); require(result == 0, "Borrow failed"); } /** * Borrows against the collateral */ function _borrowInWETH( uint256 amountUnderlying ) internal { // Borrow ETH, wraps into WETH uint256 result = ctoken.borrow(amountUnderlying); require(result == 0, "Borrow failed"); WETH9 weth = WETH9(address(_weth)); weth.deposit.value(address(this).balance)(); } /** * Repays a loan */ function _repay(uint256 amountUnderlying) internal { underlying.safeApprove(address(ctoken), 0); underlying.safeApprove(address(ctoken), amountUnderlying); ctoken.repayBorrow(amountUnderlying); underlying.safeApprove(address(ctoken), 0); } /** * Repays a loan in ETH */ function _repayInWETH(uint256 amountUnderlying) internal { WETH9 weth = WETH9(address(_weth)); weth.withdraw(amountUnderlying); // Unwrapping ICEther(address(ctoken)).repayBorrow.value(amountUnderlying)(); } /** * Redeem liquidity in cTokens */ function _redeemInCTokens(uint256 amountCTokens) internal { if(amountCTokens > 0){ ctoken.redeem(amountCTokens); } } /** * Redeem liquidity in underlying */ function _redeemUnderlying(uint256 amountUnderlying) internal { if (amountUnderlying > 0) { ctoken.redeemUnderlying(amountUnderlying); } } /** * Redeem liquidity in underlying */ function redeemUnderlyingInWeth(uint256 amountUnderlying) internal { if (amountUnderlying > 0) { _redeemUnderlying(amountUnderlying); WETH9 weth = WETH9(address(_weth)); weth.deposit.value(address(this).balance)(); } } /** * Get COMP */ function claimComp() public { comptroller.claimComp(address(this)); } /** * Redeem the minimum of the WETH we own, and the WETH that the cToken can * immediately retrieve. Ensures that `redeemMaximum` doesn't fail silently */ function redeemMaximumWeth() internal { // amount of WETH in contract uint256 available = ctoken.getCash(); // amount of WETH we own uint256 owned = ctoken.balanceOfUnderlying(address(this)); // redeem the most we can redeem redeemUnderlyingInWeth(available < owned ? available : owned); } function redeemMaximumWethWithLoan( uint256 collateralFactorNumerator, uint256 collateralFactorDenominator, uint256 borrowMinThreshold ) internal { // amount of liquidity in Compound uint256 available = ctoken.getCash(); // amount of WETH we supplied uint256 supplied = ctoken.balanceOfUnderlying(address(this)); // amount of WETH we borrowed uint256 borrowed = ctoken.borrowBalanceCurrent(address(this)); while (borrowed > borrowMinThreshold) { uint256 requiredCollateral = borrowed .mul(collateralFactorDenominator) .add(collateralFactorNumerator.div(2)) .div(collateralFactorNumerator); // redeem just as much as needed to repay the loan uint256 wantToRedeem = supplied.sub(requiredCollateral); redeemUnderlyingInWeth(Math.min(wantToRedeem, available)); // now we can repay our borrowed amount uint256 balance = underlying.balanceOf(address(this)); _repayInWETH(Math.min(borrowed, balance)); // update the parameters available = ctoken.getCash(); borrowed = ctoken.borrowBalanceCurrent(address(this)); supplied = ctoken.balanceOfUnderlying(address(this)); } // redeem the most we can redeem redeemUnderlyingInWeth(Math.min(available, supplied)); } function getLiquidity() external view returns(uint256) { return ctoken.getCash(); } function redeemMaximumToken() internal { // amount of tokens in ctoken uint256 available = ctoken.getCash(); // amount of tokens we own uint256 owned = ctoken.balanceOfUnderlying(address(this)); // redeem the most we can redeem _redeemUnderlying(available < owned ? available : owned); } function () external payable {} // this is needed for the WETH unwrapping } // File: contracts/Storage.sol pragma solidity 0.5.16; contract Storage { address public governance; address public controller; constructor() public { governance = msg.sender; } modifier onlyGovernance() { require(isGovernance(msg.sender), "Not governance"); _; } function setGovernance(address _governance) public onlyGovernance { require(_governance != address(0), "new governance shouldn't be empty"); governance = _governance; } function setController(address _controller) public onlyGovernance { require(_controller != address(0), "new controller shouldn't be empty"); controller = _controller; } function isGovernance(address account) public view returns (bool) { return account == governance; } function isController(address account) public view returns (bool) { return account == controller; } } // File: contracts/Governable.sol pragma solidity 0.5.16; contract Governable { Storage public store; constructor(address _store) public { require(_store != address(0), "new storage shouldn't be empty"); store = Storage(_store); } modifier onlyGovernance() { require(store.isGovernance(msg.sender), "Not governance"); _; } function setStorage(address _store) public onlyGovernance { require(_store != address(0), "new storage shouldn't be empty"); store = Storage(_store); } function governance() public view returns (address) { return store.governance(); } } // File: contracts/Controllable.sol pragma solidity 0.5.16; contract Controllable is Governable { constructor(address _storage) Governable(_storage) public { } modifier onlyController() { require(store.isController(msg.sender), "Not a controller"); _; } modifier onlyControllerOrGovernance(){ require((store.isController(msg.sender) || store.isGovernance(msg.sender)), "The caller must be controller or governance"); _; } function controller() public view returns (address) { return store.controller(); } } // File: contracts/uniswap/interfaces/IUniswapV2Router01.sol pragma solidity >=0.5.0; interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); } // File: contracts/uniswap/interfaces/IUniswapV2Router02.sol pragma solidity >=0.5.0; interface IUniswapV2Router02 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; } // File: contracts/strategies/LiquidityRecipient.sol pragma solidity 0.5.16; contract LiquidityRecipient is Controllable { using SafeMath for uint256; using SafeERC20 for IERC20; event LiquidityProvided(uint256 farmIn, uint256 wethIn, uint256 lpOut); event LiquidityRemoved(uint256 lpIn, uint256 wethOut, uint256 farmOut); modifier onlyStrategy() { require(msg.sender == wethStrategy, "only the weth strategy"); _; } modifier onlyStrategyOrGovernance() { require(msg.sender == wethStrategy || msg.sender == governance(), "only not the weth strategy or governance"); _; } // Address for WETH address public weth; // Address for FARM address public farm; // The WETH strategy this contract is hooked up to. The strategy cannot be changed. address public wethStrategy; // The treasury to provide FARM, and to receive FARM or overdraft weth address public treasury; // The address of the uniswap router address public uniswap; // The UNI V2 LP token matching the pool address public uniLp; // These tokens cannot be claimed by the controller mapping(address => bool) public unsalvagableTokens; constructor( address _storage, address _weth, address _farm, address _treasury, address _uniswap, address _uniLp, address _wethStrategy ) Controllable(_storage) public { weth = _weth; farm = _farm; require(_treasury != address(0), "treasury cannot be address(0)"); treasury = _treasury; uniswap = _uniswap; require(_uniLp != address(0), "uniLp cannot be address(0)"); uniLp = _uniLp; unsalvagableTokens[_weth] = true; unsalvagableTokens[_uniLp] = true; wethStrategy = _wethStrategy; } /** * Adds liquidity to Uniswap. */ function addLiquidity() internal { uint256 farmBalance = IERC20(farm).balanceOf(address(this)); uint256 wethBalance = IERC20(weth).balanceOf(address(this)); IERC20(farm).safeApprove(uniswap, 0); IERC20(farm).safeApprove(uniswap, farmBalance); IERC20(weth).safeApprove(uniswap, 0); IERC20(weth).safeApprove(uniswap, wethBalance); (uint256 amountFarm, uint256 amountWeth, uint256 liquidity) = IUniswapV2Router02(uniswap).addLiquidity(farm, weth, farmBalance, wethBalance, 0, 0, address(this), block.timestamp); emit LiquidityProvided(amountFarm, amountWeth, liquidity); } /** * Removes liquidity from Uniswap. */ function removeLiquidity() internal { uint256 lpBalance = IERC20(uniLp).balanceOf(address(this)); if (lpBalance > 0) { IERC20(uniLp).safeApprove(uniswap, 0); IERC20(uniLp).safeApprove(uniswap, lpBalance); (uint256 amountFarm, uint256 amountWeth) = IUniswapV2Router02(uniswap).removeLiquidity(farm, weth, lpBalance, 0, 0, address(this), block.timestamp ); emit LiquidityRemoved(lpBalance, amountWeth, amountFarm); } else { emit LiquidityRemoved(0, 0, 0); } } /** * Adds liquidity to Uniswap. There is no vault for this cannot be invoked via controller. It has * to be restricted for market manipulation reasons, so only governance can call this method. */ function doHardWork() public onlyGovernance { addLiquidity(); } /** * Borrows the set amount of WETH from the strategy, and will invest all available liquidity * to Uniswap. This assumes that an approval from the strategy exists. */ function takeLoan(uint256 amount) public onlyStrategy { IERC20(weth).safeTransferFrom(wethStrategy, address(this), amount); addLiquidity(); } /** * Prepares for settling the loan to the strategy by withdrawing all liquidity from Uniswap, * and providing approvals to the strategy (for WETH) and to treasury (for FARM). The strategy * will make the WETH withdrawal by the pull pattern, and so will the treasury. */ function settleLoan() public onlyStrategyOrGovernance { removeLiquidity(); IERC20(weth).safeApprove(wethStrategy, 0); IERC20(weth).safeApprove(wethStrategy, uint256(-1)); IERC20(farm).safeApprove(treasury, 0); IERC20(farm).safeApprove(treasury, uint256(-1)); } /** * If Uniswap returns less FARM and more WETH, the WETH excess will be present in this strategy. * The governance can send this WETH to the treasury by invoking this function through the * strategy. The strategy ensures that this function is not called unless the entire WETH loan * was settled. */ function wethOverdraft() external onlyStrategy { if (IERC20(weth).balanceOf(address(this)) > 0) { IERC20(weth).safeTransfer(treasury, IERC20(weth).balanceOf(address(this))); } } /** * Salvages a token. */ function salvage(address recipient, address token, uint256 amount) external onlyGovernance { // To make sure that governance cannot come in and take away the coins require(!unsalvagableTokens[token], "token is defined as not salvagable"); IERC20(token).safeTransfer(recipient, amount); } } // File: contracts/hardworkInterface/IController.sol pragma solidity 0.5.16; interface IController { // [Grey list] // An EOA can safely interact with the system no matter what. // If you're using Metamask, you're using an EOA. // Only smart contracts may be affected by this grey list. // // This contract will not be able to ban any EOA from the system // even if an EOA is being added to the greyList, he/she will still be able // to interact with the whole system as if nothing happened. // Only smart contracts will be affected by being added to the greyList. // This grey list is only used in Vault.sol, see the code there for reference function greyList(address _target) external view returns(bool); function addVaultAndStrategy(address _vault, address _strategy) external; function doHardWork(address _vault) external; function hasVault(address _vault) external returns(bool); function salvage(address _token, uint256 amount) external; function salvageStrategy(address _strategy, address _token, uint256 amount) external; function notifyFee(address _underlying, uint256 fee) external; function profitSharingNumerator() external view returns (uint256); function profitSharingDenominator() external view returns (uint256); } // File: contracts/strategies/RewardTokenProfitNotifier.sol pragma solidity 0.5.16; contract RewardTokenProfitNotifier is Controllable { using SafeMath for uint256; using SafeERC20 for IERC20; uint256 public profitSharingNumerator; uint256 public profitSharingDenominator; address public rewardToken; constructor( address _storage, address _rewardToken ) public Controllable(_storage){ rewardToken = _rewardToken; // persist in the state for immutability of the fee profitSharingNumerator = 30; //IController(controller()).profitSharingNumerator(); profitSharingDenominator = 100; //IController(controller()).profitSharingDenominator(); require(profitSharingNumerator < profitSharingDenominator, "invalid profit share"); } event ProfitLogInReward(uint256 profitAmount, uint256 feeAmount, uint256 timestamp); function notifyProfitInRewardToken(uint256 _rewardBalance) internal { if( _rewardBalance > 0 ){ uint256 feeAmount = _rewardBalance.mul(profitSharingNumerator).div(profitSharingDenominator); emit ProfitLogInReward(_rewardBalance, feeAmount, block.timestamp); IERC20(rewardToken).safeApprove(controller(), 0); IERC20(rewardToken).safeApprove(controller(), feeAmount); IController(controller()).notifyFee( rewardToken, feeAmount ); } else { emit ProfitLogInReward(0, 0, block.timestamp); } } } // File: contracts/hardworkInterface/IVault.sol pragma solidity 0.5.16; interface IVault { function underlyingBalanceInVault() external view returns (uint256); function underlyingBalanceWithInvestment() external view returns (uint256); // function store() external view returns (address); function governance() external view returns (address); function controller() external view returns (address); function underlying() external view returns (address); function strategy() external view returns (address); function setStrategy(address _strategy) external; function setVaultFractionToInvest(uint256 numerator, uint256 denominator) external; function deposit(uint256 amountWei) external; function depositFor(uint256 amountWei, address holder) external; function withdrawAll() external; function withdraw(uint256 numberOfShares) external; function getPricePerFullShare() external view returns (uint256); function underlyingBalanceWithInvestmentForHolder(address holder) view external returns (uint256); // hard work should be callable only by the controller (by the hard worker) or by governance function doHardWork() external; function rebalance() external; } // File: contracts/strategies/compound/CompoundWETHFoldStrategy.sol pragma solidity 0.5.16; contract CompoundWETHFoldStrategy is IStrategy, RewardTokenProfitNotifier, CompoundInteractor { using SafeMath for uint256; using SafeERC20 for IERC20; event ProfitNotClaimed(); event TooLowBalance(); ERC20Detailed public underlying; CompleteCToken public ctoken; ComptrollerInterface public comptroller; address public vault; ERC20Detailed public comp; // this will be Cream or Comp address public uniswapRouterV2; uint256 public suppliedInUnderlying; uint256 public borrowedInUnderlying; bool public liquidationAllowed = true; uint256 public sellFloor = 0; bool public allowEmergencyLiquidityShortage = false; uint256 public collateralFactorNumerator = 100; uint256 public collateralFactorDenominator = 1000; uint256 public folds = 0; // The strategy supplying liquidity to Uniswap address public liquidityRecipient; // The current loan uint256 public liquidityLoanCurrent; // The target loan uint256 public liquidityLoanTarget; uint256 public constant tenWeth = 10 * 1e18; uint256 public borrowMinThreshold = 0; // These tokens cannot be claimed by the controller mapping(address => bool) public unsalvagableTokens; modifier restricted() { require(msg.sender == vault || msg.sender == address(controller()) || msg.sender == address(governance()), "The sender has to be the controller or vault"); _; } event Liquidated( uint256 amount ); constructor( address _storage, address _underlying, address _ctoken, address _vault, address _comptroller, address _comp, address _uniswap ) RewardTokenProfitNotifier(_storage, _comp) CompoundInteractor(_underlying, _ctoken, _comptroller) public { require(IVault(_vault).underlying() == _underlying, "vault does not support underlying"); comptroller = ComptrollerInterface(_comptroller); comp = ERC20Detailed(_comp); underlying = ERC20Detailed(_underlying); ctoken = CompleteCToken(_ctoken); vault = _vault; uniswapRouterV2 = _uniswap; // set these tokens to be not salvagable unsalvagableTokens[_underlying] = true; unsalvagableTokens[_ctoken] = true; unsalvagableTokens[_comp] = true; } modifier updateSupplyInTheEnd() { _; suppliedInUnderlying = ctoken.balanceOfUnderlying(address(this)); borrowedInUnderlying = ctoken.borrowBalanceCurrent(address(this)); } function depositArbCheck() public view returns (bool) { // there's no arb here. return true; } /** * The strategy invests by supplying the underlying as a collateral. */ function investAllUnderlying() public restricted updateSupplyInTheEnd { uint256 balance = underlying.balanceOf(address(this)); _supplyEtherInWETH(balance); for (uint256 i = 0; i < folds; i++) { uint256 borrowAmount = balance.mul(collateralFactorNumerator).div(collateralFactorDenominator); _borrowInWETH(borrowAmount); balance = underlying.balanceOf(address(this)); _supplyEtherInWETH(balance); } } /** * Exits Compound and transfers everything to the vault. */ function withdrawAllToVault() external restricted updateSupplyInTheEnd { if (allowEmergencyLiquidityShortage) { withdrawMaximum(); } else { withdrawAllWeInvested(); } if (underlying.balanceOf(address(this)) > 0) { IERC20(address(underlying)).safeTransfer(vault, underlying.balanceOf(address(this))); } } function emergencyExit() external onlyGovernance updateSupplyInTheEnd { withdrawMaximum(); } function withdrawMaximum() internal updateSupplyInTheEnd { if (liquidationAllowed) { claimComp(); liquidateComp(); } else { emit ProfitNotClaimed(); } redeemMaximum(); } function withdrawAllWeInvested() internal updateSupplyInTheEnd { require(liquidityLoanCurrent == 0, "Liquidity loan must be settled first"); if (liquidationAllowed) { claimComp(); liquidateComp(); } else { emit ProfitNotClaimed(); } uint256 _currentSuppliedBalance = ctoken.balanceOfUnderlying(address(this)); uint256 _currentBorrowedBalance = ctoken.borrowBalanceCurrent(address(this)); mustRedeemPartial(_currentSuppliedBalance.sub(_currentBorrowedBalance)); } function withdrawToVault(uint256 amountUnderlying) external restricted updateSupplyInTheEnd { if (amountUnderlying <= underlying.balanceOf(address(this))) { IERC20(address(underlying)).safeTransfer(vault, amountUnderlying); return; } // get some of the underlying mustRedeemPartial(amountUnderlying); // transfer the amount requested (or the amount we have) back to vault IERC20(address(underlying)).safeTransfer(vault, amountUnderlying); // invest back to compound investAllUnderlying(); } /** * Withdraws all assets, liquidates COMP/CREAM, and invests again in the required ratio. */ function doHardWork() public restricted { if (liquidationAllowed) { claimComp(); liquidateComp(); } else { emit ProfitNotClaimed(); } investAllUnderlying(); } /** * Redeems maximum that can be redeemed from Compound. * Redeem the minimum of the underlying we own, and the underlying that the cToken can * immediately retrieve. Ensures that `redeemMaximum` doesn't fail silently. * * DOES NOT ensure that the strategy cUnderlying balance becomes 0. */ function redeemMaximum() internal { redeemMaximumWethWithLoan( collateralFactorNumerator, collateralFactorDenominator, borrowMinThreshold ); } /** * Redeems `amountUnderlying` or fails. */ function mustRedeemPartial(uint256 amountUnderlying) internal { require( ctoken.getCash() >= amountUnderlying, "market cash cannot cover liquidity" ); redeemMaximum(); require(underlying.balanceOf(address(this)) >= amountUnderlying, "Unable to withdraw the entire amountUnderlying"); } /** * Salvages a token. */ function salvage(address recipient, address token, uint256 amount) public onlyGovernance { // To make sure that governance cannot come in and take away the coins require(!unsalvagableTokens[token], "token is defined as not salvagable"); IERC20(token).safeTransfer(recipient, amount); } function liquidateComp() internal { uint256 balance = comp.balanceOf(address(this)); if (balance < sellFloor || balance == 0) { emit TooLowBalance(); return; } // give a profit share to fee forwarder, which re-distributes this to // the profit sharing pools notifyProfitInRewardToken(balance); balance = comp.balanceOf(address(this)); emit Liquidated(balance); // we can accept 1 as minimum as this will be called by trusted roles only uint256 amountOutMin = 1; IERC20(address(comp)).safeApprove(address(uniswapRouterV2), 0); IERC20(address(comp)).safeApprove(address(uniswapRouterV2), balance); address[] memory path = new address[](2); path[0] = address(comp); path[1] = address(underlying); uint256 wethBefore = underlying.balanceOf(address(this)); IUniswapV2Router02(uniswapRouterV2).swapExactTokensForTokens( balance, amountOutMin, path, address(this), block.timestamp ); } /** * Returns the current balance. Ignores COMP/CREAM that was not liquidated and invested. */ function investedUnderlyingBalance() public view returns (uint256) { // underlying in this strategy + underlying redeemable from Compound/Cream + loan return underlying.balanceOf(address(this)) .add(suppliedInUnderlying) .sub(borrowedInUnderlying) .add(liquidityLoanCurrent); } /** * Allows liquidation */ function setLiquidationAllowed( bool allowed ) external restricted { liquidationAllowed = allowed; } function setAllowLiquidityShortage( bool allowed ) external restricted { allowEmergencyLiquidityShortage = allowed; } function setSellFloor(uint256 value) external restricted { sellFloor = value; } /** * Provides a loan to the liquidity strategy. Sends in funds to fill out the loan target amount, * if they are available. */ function provideLoan() public onlyGovernance updateSupplyInTheEnd { withdrawMaximum(); if (liquidityLoanCurrent < liquidityLoanTarget && IERC20(underlying).balanceOf(address(this)) > 0 && liquidityRecipient != address(0) ) { uint256 diff = Math.min( liquidityLoanTarget.sub(liquidityLoanCurrent), IERC20(underlying).balanceOf(address(this)) ); IERC20(underlying).safeApprove(liquidityRecipient, 0); IERC20(underlying).safeApprove(liquidityRecipient, diff); // use the pull pattern so that this fails if the contract is not set properly LiquidityRecipient(liquidityRecipient).takeLoan(diff); liquidityLoanCurrent = liquidityLoanCurrent.add(diff); } investAllUnderlying(); } /** * Settles a loan amount by forcing withdrawal inside the liquidity strategy, and then transferring * the funds back to this strategy. This way, the loan can be settled partially, or completely. * The method can be invoked only by EOAs to avoid market manipulation, and only by the governance * unless there is not more than 10 WETH left in this strategy. */ function settleLoan(uint256 amount) public updateSupplyInTheEnd { require( // the only funds in are in the loan, other than 10 WETH investedUnderlyingBalance() <= liquidityLoanCurrent.add(tenWeth) // or the governance wants this to happen || msg.sender == governance(), "Buffer exists and the caller is not governance" ); // market manipulation prevention require(tx.origin == msg.sender, "no smart contracts"); if (liquidityLoanCurrent == 0) { return; } LiquidityRecipient(liquidityRecipient).settleLoan(); IERC20(underlying).safeTransferFrom(liquidityRecipient, address(this), amount); liquidityLoanCurrent = liquidityLoanCurrent.sub(amount); if (liquidityLoanCurrent == 0) { LiquidityRecipient(liquidityRecipient).wethOverdraft(); } } function setLiquidityRecipient(address recipient) public onlyGovernance { require(liquidityRecipient == address(0) || liquidityLoanCurrent == 0, "Liquidity recipient was already set, and has a loan"); liquidityRecipient = recipient; } function setBorrowMinThreshold(uint256 threshold) public onlyGovernance { borrowMinThreshold = threshold; } // updating collateral factor // note 1: one should settle the loan first before calling this // note 2: collateralFactorDenominator is 1000, therefore, for 20%, you need 200 function setCollateralFactorNumerator(uint256 numerator) public onlyGovernance { require(numerator <= 740, "Collateral factor cannot be this high"); collateralFactorNumerator = numerator; } function setLiquidityLoanTarget(uint256 target) public onlyGovernance { liquidityLoanTarget = target; } function setFolds(uint256 _folds) public onlyGovernance { folds = _folds; } } // File: contracts/strategies/compound/CompoundWETHFoldStrategyMainnet.sol pragma solidity 0.5.16; contract CompoundWETHFoldStrategyMainnet is CompoundWETHFoldStrategy { // token addresses address constant public __underlying = address(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2); address constant public __ctoken = address(0x4Ddc2D193948926D02f9B1fE9e1daa0718270ED5); address constant public __comptroller = address(0x3d9819210A31b4961b30EF54bE2aeD79B9c9Cd3B); address constant public __comp = address(0xc00e94Cb662C3520282E6f5717214004A7f26888); address constant public __uniswap = address(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); constructor( address _storage, address _vault ) CompoundWETHFoldStrategy( _storage, __underlying, __ctoken, _vault, __comptroller, __comp, __uniswap ) public { } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_storage","type":"address"},{"internalType":"address","name":"_vault","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Liquidated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"profitAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"feeAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"ProfitLogInReward","type":"event"},{"anonymous":false,"inputs":[],"name":"ProfitNotClaimed","type":"event"},{"anonymous":false,"inputs":[],"name":"TooLowBalance","type":"event"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"constant":true,"inputs":[],"name":"__comp","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"__comptroller","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"__ctoken","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"__underlying","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"__uniswap","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"_weth","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"allowEmergencyLiquidityShortage","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"borrowMinThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"borrowedInUnderlying","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"claimComp","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"collateralFactorDenominator","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"collateralFactorNumerator","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"comp","outputs":[{"internalType":"contract ERC20Detailed","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"comptroller","outputs":[{"internalType":"contract ComptrollerInterface","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"controller","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"ctoken","outputs":[{"internalType":"contract CompleteCToken","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"depositArbCheck","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"doHardWork","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"emergencyExit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"folds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getLiquidity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"governance","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"investAllUnderlying","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"investedUnderlyingBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"liquidationAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"liquidityLoanCurrent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"liquidityLoanTarget","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"liquidityRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"profitSharingDenominator","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"profitSharingNumerator","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"provideLoan","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"rewardToken","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"salvage","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"sellFloor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"bool","name":"allowed","type":"bool"}],"name":"setAllowLiquidityShortage","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"threshold","type":"uint256"}],"name":"setBorrowMinThreshold","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"numerator","type":"uint256"}],"name":"setCollateralFactorNumerator","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_folds","type":"uint256"}],"name":"setFolds","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"bool","name":"allowed","type":"bool"}],"name":"setLiquidationAllowed","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"target","type":"uint256"}],"name":"setLiquidityLoanTarget","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"recipient","type":"address"}],"name":"setLiquidityRecipient","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setSellFloor","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_store","type":"address"}],"name":"setStorage","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"settleLoan","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"store","outputs":[{"internalType":"contract Storage","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"suppliedInUnderlying","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"tenWeth","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"underlying","outputs":[{"internalType":"contract ERC20Detailed","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"uniswapRouterV2","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"unsalvagableTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"vault","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"withdrawAllToVault","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amountUnderlying","type":"uint256"}],"name":"withdrawToVault","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600580546001600160a01b03191673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc21790556010805460ff19908116600117909155600060118190556012805490921690915560646013556103e860145560158190556019553480156200006b57600080fd5b506040516200415938038062004159833981810160405260408110156200009157600080fd5b5080516020909101518173c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2734ddc2d193948926d02f9b1fe9e1daa0718270ed583733d9819210a31b4961b30ef54be2aed79b9c9cd3b73c00e94cb662c3520282e6f5717214004a7f26888737a250d5630b4cf539739df2c5dacb4c659f2488d858584898581806001600160a01b03811662000168576040805162461bcd60e51b815260206004820152601e60248201527f6e65772073746f726167652073686f756c646e277420626520656d7074790000604482015290519081900360640190fd5b600080546001600160a01b039283166001600160a01b03199182161790915560038054601e60019081556064600255600160a01b60ff60a01b19978616928516929092179690961617905560078054821687841617905560048054821689841617905560068054909116918716919091179055506040805182815280820190915260609250906020808301908038833901905050905082816000815181106200020d57fe5b6001600160a01b03928316602091820292909201810191909152600754604051631853304760e31b815260048101838152855160248301528551929094169363c299823893869391928392604490910191858101910280838360005b838110156200028357818101518382015260200162000269565b5050505090500192505050600060405180830381600087803b158015620002a957600080fd5b505af1158015620002be573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015620002e857600080fd5b81019080805160405193929190846401000000008211156200030957600080fd5b9083019060208201858111156200031f57600080fd5b82518660208202830111640100000000821117156200033d57600080fd5b82525081516020918201928201910280838360005b838110156200036c57818101518382015260200162000352565b505050509050016040525050505050505050856001600160a01b0316846001600160a01b0316636f307dc36040518163ffffffff1660e01b815260040160206040518083038186803b158015620003c257600080fd5b505afa158015620003d7573d6000803e3d6000fd5b505050506040513d6020811015620003ee57600080fd5b50516001600160a01b031614620004375760405162461bcd60e51b8152600401808060200182810382526021815260200180620041386021913960400191505060405180910390fd5b600a80546001600160a01b03199081166001600160a01b0395861617909155600c80548216938516938417905560088054821697851697881790556009805482169685169687179055600b8054821695851695909517909455600d80549094169216919091179091556000928352601a6020526040808420805460ff199081166001908117909255938552818520805485168217905591845283208054909216179055613c4a9350839250620004ee9150396000f3fe6080604052600436106102ca5760003560e01c8063627c96ca1161017b578063bbfb2007116100d7578063d47749d711610085578063d47749d714610808578063d610101b14610832578063d9cef72514610847578063f48d0c4a1461085c578063f77c479114610871578063f7c618c114610886578063fbfa77cf1461089b576102ca565b8063bbfb200714610736578063bde10bcb1461074b578063bfd131f114610775578063c2a2a07b1461078a578063c739d3e41461079f578063ccf3eb9f146107c9578063ce8c42e8146107de576102ca565b80639642a65f116101345780639642a65f1461068e578063975057e7146106a3578063a1764595146106b8578063a1dab23e146106cd578063b5d7a94f146106e2578063b60f151a146106f7578063ba09591e1461070c576102ca565b8063627c96ca146105dd5780636f307dc3146105f257806377be00f3146106075780637f09d3f31461061c5780639137c1a71461064657806392501f2914610679576102ca565b80634990f6dc1161022a578063588cfb84116101e3578063588cfb8414610533578063596fa9e3146105485780635976317f1461055d5780635aa6e675146105895780635dbeffe51461059e5780635fe3b567146105b357806362237749146105c8576102ca565b80634990f6dc146104975780634a8cfa69146104ac5780634fa5d854146104c157806350185946146104d657806355b9b4a8146105095780635641ec031461051e576102ca565b8063215677c211610287578063215677c2146103ba57806327e4d202146103cf5780632c040845146103f9578063373aff7f1461040e5780633b308579146104415780633fd8cd981461045657806345d01e4a14610482576102ca565b8063026a0dd0146102cc5780630910a510146102f357806309e5f66c14610308578063109d0af8146103315780631113ef52146103625780631bd85bdb146103a5575b005b3480156102d857600080fd5b506102e16108b0565b60408051918252519081900360200190f35b3480156102ff57600080fd5b506102e16108b6565b34801561031457600080fd5b5061031d61092c565b604080519115158252519081900360200190f35b34801561033d57600080fd5b50610346610935565b604080516001600160a01b039092168252519081900360200190f35b34801561036e57600080fd5b506102ca6004803603606081101561038557600080fd5b506001600160a01b03813581169160208101359091169060400135610944565b3480156103b157600080fd5b506102ca610a74565b3480156103c657600080fd5b506102e1610ada565b3480156103db57600080fd5b506102ca600480360360208110156103f257600080fd5b5035610ae6565b34801561040557600080fd5b506102e1610ba4565b34801561041a57600080fd5b506102ca6004803603602081101561043157600080fd5b50356001600160a01b0316610baa565b34801561044d57600080fd5b506102e1610cd8565b34801561046257600080fd5b506102ca6004803603602081101561047957600080fd5b50351515610cde565b34801561048e57600080fd5b506102e1610d80565b3480156104a357600080fd5b50610346610e3c565b3480156104b857600080fd5b506102ca610e54565b3480156104cd57600080fd5b506102ca61112d565b3480156104e257600080fd5b5061031d600480360360208110156104f957600080fd5b50356001600160a01b0316611210565b34801561051557600080fd5b506102e1611225565b34801561052a57600080fd5b506102ca61122b565b34801561053f57600080fd5b506102e1611339565b34801561055457600080fd5b5061034661133f565b34801561056957600080fd5b506102ca6004803603602081101561058057600080fd5b5035151561134e565b34801561059557600080fd5b506103466113f0565b3480156105aa57600080fd5b5061034661143f565b3480156105bf57600080fd5b50610346611457565b3480156105d457600080fd5b506102e1611466565b3480156105e957600080fd5b506102e161146c565b3480156105fe57600080fd5b50610346611472565b34801561061357600080fd5b50610346611481565b34801561062857600080fd5b506102ca6004803603602081101561063f57600080fd5b5035611499565b34801561065257600080fd5b506102ca6004803603602081101561066957600080fd5b50356001600160a01b031661177d565b34801561068557600080fd5b506103466118b3565b34801561069a57600080fd5b506103466118cb565b3480156106af57600080fd5b506103466118da565b3480156106c457600080fd5b506103466118e9565b3480156106d957600080fd5b506102e16118f8565b3480156106ee57600080fd5b506102e16118fe565b34801561070357600080fd5b506102e1611904565b34801561071857600080fd5b506102ca6004803603602081101561072f57600080fd5b503561190a565b34801561074257600080fd5b506102ca61199e565b34801561075757600080fd5b506102ca6004803603602081101561076e57600080fd5b5035611c69565b34801561078157600080fd5b506102ca611d27565b34801561079657600080fd5b5061031d611eeb565b3480156107ab57600080fd5b506102ca600480360360208110156107c257600080fd5b5035611ef0565b3480156107d557600080fd5b50610346611fef565b3480156107ea57600080fd5b506102ca6004803603602081101561080157600080fd5b5035611ffe565b34801561081457600080fd5b506102ca6004803603602081101561082b57600080fd5b5035612166565b34801561083e57600080fd5b506102e1612224565b34801561085357600080fd5b5061034661222a565b34801561086857600080fd5b5061031d612242565b34801561087d57600080fd5b5061034661224b565b34801561089257600080fd5b5061034661229a565b3480156108a757600080fd5b506103466122a9565b60025481565b60065460408051631d8e90d160e11b815290516000926001600160a01b031691633b1d21a2916004808301926020929190829003018186803b1580156108fb57600080fd5b505afa15801561090f573d6000803e3d6000fd5b505050506040513d602081101561092557600080fd5b5051905090565b60105460ff1681565b600c546001600160a01b031681565b600054604080516337b87c3960e21b815233600482015290516001600160a01b039092169163dee1f0e491602480820192602092909190829003018186803b15801561098f57600080fd5b505afa1580156109a3573d6000803e3d6000fd5b505050506040513d60208110156109b957600080fd5b50516109fd576040805162461bcd60e51b815260206004820152600e60248201526d4e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b6001600160a01b0382166000908152601a602052604090205460ff1615610a555760405162461bcd60e51b8152600401808060200182810382526022815260200180613a4d6022913960400191505060405180910390fd5b610a6f6001600160a01b038316848363ffffffff6122b816565b505050565b600754604080516374d7814960e11b815230600482015290516001600160a01b039092169163e9af02929160248082019260009290919082900301818387803b158015610ac057600080fd5b505af1158015610ad4573d6000803e3d6000fd5b50505050565b678ac7230489e8000081565b600054604080516337b87c3960e21b815233600482015290516001600160a01b039092169163dee1f0e491602480820192602092909190829003018186803b158015610b3157600080fd5b505afa158015610b45573d6000803e3d6000fd5b505050506040513d6020811015610b5b57600080fd5b5051610b9f576040805162461bcd60e51b815260206004820152600e60248201526d4e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b601855565b60195481565b600054604080516337b87c3960e21b815233600482015290516001600160a01b039092169163dee1f0e491602480820192602092909190829003018186803b158015610bf557600080fd5b505afa158015610c09573d6000803e3d6000fd5b505050506040513d6020811015610c1f57600080fd5b5051610c63576040805162461bcd60e51b815260206004820152600e60248201526d4e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b6016546001600160a01b03161580610c7b5750601754155b610cb65760405162461bcd60e51b8152600401808060200182810382526033815260200180613ac06033913960400191505060405180910390fd5b601680546001600160a01b0319166001600160a01b0392909216919091179055565b60175481565b600b546001600160a01b0316331480610d0f5750610cfa61224b565b6001600160a01b0316336001600160a01b0316145b80610d325750610d1d6113f0565b6001600160a01b0316336001600160a01b0316145b610d6d5760405162461bcd60e51b815260040180806020018281038252602c815260200180613a94602c913960400191505060405180910390fd5b6012805460ff1916911515919091179055565b601754600f54600e54600854604080516370a0823160e01b81523060048201529051600095610e37959094610e2b949193610e1f9391926001600160a01b0316916370a0823191602480820192602092909190829003018186803b158015610de757600080fd5b505afa158015610dfb573d6000803e3d6000fd5b505050506040513d6020811015610e1157600080fd5b50519063ffffffff61230a16565b9063ffffffff61236d16565b9063ffffffff61230a16565b905090565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b600b546001600160a01b0316331480610e855750610e7061224b565b6001600160a01b0316336001600160a01b0316145b80610ea85750610e936113f0565b6001600160a01b0316336001600160a01b0316145b610ee35760405162461bcd60e51b815260040180806020018281038252602c815260200180613a94602c913960400191505060405180910390fd5b600854604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610f2e57600080fd5b505afa158015610f42573d6000803e3d6000fd5b505050506040513d6020811015610f5857600080fd5b50519050610f65816123af565b60005b601554811015611031576000610f9b601454610f8f6013548661258990919063ffffffff16565b9063ffffffff6125e216565b9050610fa681612624565b600854604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015610ff157600080fd5b505afa158015611005573d6000803e3d6000fd5b505050506040513d602081101561101b57600080fd5b50519250611028836123af565b50600101610f68565b505060095460408051633af9e66960e01b815230600482015290516001600160a01b0390921691633af9e669916024808201926020929091908290030181600087803b15801561108057600080fd5b505af1158015611094573d6000803e3d6000fd5b505050506040513d60208110156110aa57600080fd5b5051600e55600954604080516305eff7ef60e21b815230600482015290516001600160a01b03909216916317bfdfbc916024808201926020929091908290030181600087803b1580156110fc57600080fd5b505af1158015611110573d6000803e3d6000fd5b505050506040513d602081101561112657600080fd5b5051600f55565b600b546001600160a01b031633148061115e575061114961224b565b6001600160a01b0316336001600160a01b0316145b80611181575061116c6113f0565b6001600160a01b0316336001600160a01b0316145b6111bc5760405162461bcd60e51b815260040180806020018281038252602c815260200180613a94602c913960400191505060405180910390fd5b60105460ff16156111dc576111cf610a74565b6111d761274a565b611206565b6040517f6e180aeefd7fd43a105253e3c10a794670b4c6ef64e8a4d8879de77cfb09d61290600090a15b61120e610e54565b565b601a6020526000908152604090205460ff1681565b60185481565b600054604080516337b87c3960e21b815233600482015290516001600160a01b039092169163dee1f0e491602480820192602092909190829003018186803b15801561127657600080fd5b505afa15801561128a573d6000803e3d6000fd5b505050506040513d60208110156112a057600080fd5b50516112e4576040805162461bcd60e51b815260206004820152600e60248201526d4e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b6112ec612b75565b60095460408051633af9e66960e01b815230600482015290516001600160a01b0390921691633af9e669916024808201926020929091908290030181600087803b15801561108057600080fd5b60155481565b600d546001600160a01b031681565b600b546001600160a01b031633148061137f575061136a61224b565b6001600160a01b0316336001600160a01b0316145b806113a2575061138d6113f0565b6001600160a01b0316336001600160a01b0316145b6113dd5760405162461bcd60e51b815260040180806020018281038252602c815260200180613a94602c913960400191505060405180910390fd5b6010805460ff1916911515919091179055565b60008060009054906101000a90046001600160a01b03166001600160a01b0316635aa6e6756040518163ffffffff1660e01b815260040160206040518083038186803b1580156108fb57600080fd5b73c00e94cb662c3520282e6f5717214004a7f2688881565b600a546001600160a01b031681565b60145481565b600f5481565b6008546001600160a01b031681565b737a250d5630b4cf539739df2c5dacb4c659f2488d81565b6017546114b490678ac7230489e8000063ffffffff61230a16565b6114bc610d80565b1115806114e157506114cc6113f0565b6001600160a01b0316336001600160a01b0316145b61151c5760405162461bcd60e51b815260040180806020018281038252602e815260200180613af3602e913960400191505060405180910390fd5b323314611565576040805162461bcd60e51b81526020600482015260126024820152716e6f20736d61727420636f6e74726163747360701b604482015290519081900360640190fd5b60175461157157611682565b601660009054906101000a90046001600160a01b03166001600160a01b0316636527ba5c6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156115c157600080fd5b505af11580156115d5573d6000803e3d6000fd5b50506016546008546115fd93506001600160a01b03908116925016308463ffffffff612bc716565b601754611610908263ffffffff61236d16565b601781905561168257601660009054906101000a90046001600160a01b03166001600160a01b031663cfc9b68c6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561166957600080fd5b505af115801561167d573d6000803e3d6000fd5b505050505b60095460408051633af9e66960e01b815230600482015290516001600160a01b0390921691633af9e669916024808201926020929091908290030181600087803b1580156116cf57600080fd5b505af11580156116e3573d6000803e3d6000fd5b505050506040513d60208110156116f957600080fd5b5051600e55600954604080516305eff7ef60e21b815230600482015290516001600160a01b03909216916317bfdfbc916024808201926020929091908290030181600087803b15801561174b57600080fd5b505af115801561175f573d6000803e3d6000fd5b505050506040513d602081101561177557600080fd5b5051600f5550565b600054604080516337b87c3960e21b815233600482015290516001600160a01b039092169163dee1f0e491602480820192602092909190829003018186803b1580156117c857600080fd5b505afa1580156117dc573d6000803e3d6000fd5b505050506040513d60208110156117f257600080fd5b5051611836576040805162461bcd60e51b815260206004820152600e60248201526d4e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b6001600160a01b038116611891576040805162461bcd60e51b815260206004820152601e60248201527f6e65772073746f726167652073686f756c646e277420626520656d7074790000604482015290519081900360640190fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b733d9819210a31b4961b30ef54be2aed79b9c9cd3b81565b6016546001600160a01b031681565b6000546001600160a01b031681565b6005546001600160a01b031681565b60115481565b60135481565b60015481565b600b546001600160a01b031633148061193b575061192661224b565b6001600160a01b0316336001600160a01b0316145b8061195e57506119496113f0565b6001600160a01b0316336001600160a01b0316145b6119995760405162461bcd60e51b815260040180806020018281038252602c815260200180613a94602c913960400191505060405180910390fd5b601155565b600054604080516337b87c3960e21b815233600482015290516001600160a01b039092169163dee1f0e491602480820192602092909190829003018186803b1580156119e957600080fd5b505afa1580156119fd573d6000803e3d6000fd5b505050506040513d6020811015611a1357600080fd5b5051611a57576040805162461bcd60e51b815260206004820152600e60248201526d4e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b611a5f612b75565b601854601754108015611ae65750600854604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015611ab857600080fd5b505afa158015611acc573d6000803e3d6000fd5b505050506040513d6020811015611ae257600080fd5b5051115b8015611afc57506016546001600160a01b031615155b15611c61576000611b99611b1d60175460185461236d90919063ffffffff16565b600854604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015611b6857600080fd5b505afa158015611b7c573d6000803e3d6000fd5b505050506040513d6020811015611b9257600080fd5b5051612c21565b601654600854919250611bc0916001600160a01b039081169116600063ffffffff612c3716565b601654600854611be3916001600160a01b0391821691168363ffffffff612c3716565b601654604080516346401fe160e11b81526004810184905290516001600160a01b0390921691638c803fc29160248082019260009290919082900301818387803b158015611c3057600080fd5b505af1158015611c44573d6000803e3d6000fd5b5050601754611c5c925090508263ffffffff61230a16565b601755505b6112ec610e54565b600054604080516337b87c3960e21b815233600482015290516001600160a01b039092169163dee1f0e491602480820192602092909190829003018186803b158015611cb457600080fd5b505afa158015611cc8573d6000803e3d6000fd5b505050506040513d6020811015611cde57600080fd5b5051611d22576040805162461bcd60e51b815260206004820152600e60248201526d4e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b601955565b600b546001600160a01b0316331480611d585750611d4361224b565b6001600160a01b0316336001600160a01b0316145b80611d7b5750611d666113f0565b6001600160a01b0316336001600160a01b0316145b611db65760405162461bcd60e51b815260040180806020018281038252602c815260200180613a94602c913960400191505060405180910390fd5b60125460ff1615611dce57611dc9612b75565b611dd6565b611dd6612d4a565b600854604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015611e2157600080fd5b505afa158015611e35573d6000803e3d6000fd5b505050506040513d6020811015611e4b57600080fd5b505111156112ec57600b54600854604080516370a0823160e01b815230600482015290516112ec936001600160a01b039081169316916370a08231916024808301926020929190829003018186803b158015611ea657600080fd5b505afa158015611eba573d6000803e3d6000fd5b505050506040513d6020811015611ed057600080fd5b50516008546001600160a01b0316919063ffffffff6122b816565b600190565b600054604080516337b87c3960e21b815233600482015290516001600160a01b039092169163dee1f0e491602480820192602092909190829003018186803b158015611f3b57600080fd5b505afa158015611f4f573d6000803e3d6000fd5b505050506040513d6020811015611f6557600080fd5b5051611fa9576040805162461bcd60e51b815260206004820152600e60248201526d4e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b6102e4811115611fea5760405162461bcd60e51b8152600401808060200182810382526025815260200180613a6f6025913960400191505060405180910390fd5b601355565b6009546001600160a01b031681565b600b546001600160a01b031633148061202f575061201a61224b565b6001600160a01b0316336001600160a01b0316145b80612052575061203d6113f0565b6001600160a01b0316336001600160a01b0316145b61208d5760405162461bcd60e51b815260040180806020018281038252602c815260200180613a94602c913960400191505060405180910390fd5b600854604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b1580156120d857600080fd5b505afa1580156120ec573d6000803e3d6000fd5b505050506040513d602081101561210257600080fd5b5051811161213257600b5460085461212d916001600160a01b0391821691168363ffffffff6122b816565b611682565b61213b81612ede565b600b5460085461215e916001600160a01b0391821691168363ffffffff6122b816565b611682610e54565b600054604080516337b87c3960e21b815233600482015290516001600160a01b039092169163dee1f0e491602480820192602092909190829003018186803b1580156121b157600080fd5b505afa1580156121c5573d6000803e3d6000fd5b505050506040513d60208110156121db57600080fd5b505161221f576040805162461bcd60e51b815260206004820152600e60248201526d4e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b601555565b600e5481565b734ddc2d193948926d02f9b1fe9e1daa0718270ed581565b60125460ff1681565b60008060009054906101000a90046001600160a01b03166001600160a01b031663f77c47916040518163ffffffff1660e01b815260040160206040518083038186803b1580156108fb57600080fd5b6003546001600160a01b031681565b600b546001600160a01b031681565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610a6f908490613049565b600082820183811015612364576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b600061236483836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250613201565b600354600160a01b900460ff1661240d576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6003805460ff60a01b1916905560048054604080516370a0823160e01b81523093810193909352516000926001600160a01b03909216916370a08231916024808301926020929190829003018186803b15801561246957600080fd5b505afa15801561247d573d6000803e3d6000fd5b505050506040513d602081101561249357600080fd5b50519050808210156124a25750805b60055460408051632e1a7d4d60e01b81526004810184905290516001600160a01b03909216918291632e1a7d4d91602480830192600092919082900301818387803b1580156124f057600080fd5b505af1158015612504573d6000803e3d6000fd5b50505050600660009054906101000a90046001600160a01b03166001600160a01b0316631249c58b836040518263ffffffff1660e01b81526004016000604051808303818588803b15801561255857600080fd5b505af115801561256c573d6000803e3d6000fd5b50506003805460ff60a01b1916600160a01b179055505050505050565b60008261259857506000612367565b828202828482816125a557fe5b04146123645760405162461bcd60e51b8152600401808060200182810382526021815260200180613b456021913960400191505060405180910390fd5b600061236483836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613298565b6006546040805163317afabb60e21b81526004810184905290516000926001600160a01b03169163c5ebeaec91602480830192602092919082900301818787803b15801561267157600080fd5b505af1158015612685573d6000803e3d6000fd5b505050506040513d602081101561269b57600080fd5b5051905080156126e2576040805162461bcd60e51b815260206004820152600d60248201526c109bdc9c9bddc819985a5b1959609a1b604482015290519081900360640190fd5b60055460408051630d0e30db60e41b815290516001600160a01b0390921691829163d0e30db091479160048082019260009290919082900301818588803b15801561272c57600080fd5b505af1158015612740573d6000803e3d6000fd5b5050505050505050565b600c54604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561279557600080fd5b505afa1580156127a9573d6000803e3d6000fd5b505050506040513d60208110156127bf57600080fd5b50516011549091508110806127d2575080155b15612806576040517fd26ff69ffdb9c21e34f9b534127733d71db1159e23eb2e5105a07b91fa2768ac90600090a15061120e565b61280f816132fd565b600c54604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561285a57600080fd5b505afa15801561286e573d6000803e3d6000fd5b505050506040513d602081101561288457600080fd5b50516040805182815290519192507fc9e9d7cf3944e82f1fe222573e1c9acf5a2f6cd29aa9639bc8078065f091bb6b919081900360200190a1600d54600c546001916128e4916001600160a01b039081169116600063ffffffff612c3716565b600d54600c54612907916001600160a01b0391821691168463ffffffff612c3716565b60408051600280825260608083018452926020830190803883395050600c5482519293506001600160a01b03169183915060009061294157fe5b6001600160a01b03928316602091820292909201015260085482519116908290600190811061296c57fe5b6001600160a01b03928316602091820292909201810191909152600854604080516370a0823160e01b8152306004820152905160009492909216926370a0823192602480840193829003018186803b1580156129c757600080fd5b505afa1580156129db573d6000803e3d6000fd5b505050506040513d60208110156129f157600080fd5b5051600d546040516338ed173960e01b815260048101878152602482018790523060648301819052426084840181905260a060448501908152885160a486015288519697506001600160a01b03909516956338ed1739958b958b958b95949390929160c401906020878101910280838360005b83811015612a7c578181015183820152602001612a64565b505050509050019650505050505050600060405180830381600087803b158015612aa557600080fd5b505af1158015612ab9573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015612ae257600080fd5b8101908080516040519392919084640100000000821115612b0257600080fd5b908301906020820185811115612b1757600080fd5b8251866020820283011164010000000082111715612b3457600080fd5b82525081516020918201928201910280838360005b83811015612b61578181015183820152602001612b49565b505050509050016040525050505050505050565b60105460ff1615612b9557612b88610a74565b612b9061274a565b612bbf565b6040517f6e180aeefd7fd43a105253e3c10a794670b4c6ef64e8a4d8879de77cfb09d61290600090a15b6112ec61346a565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610ad4908590613049565b6000818310612c305781612364565b5090919050565b801580612cbd575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015612c8f57600080fd5b505afa158015612ca3573d6000803e3d6000fd5b505050506040513d6020811015612cb957600080fd5b5051155b612cf85760405162461bcd60e51b8152600401808060200182810382526036815260200180613be06036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a6f908490613049565b60175415612d895760405162461bcd60e51b8152600401808060200182810382526024815260200180613b216024913960400191505060405180910390fd5b60105460ff1615612da957612d9c610a74565b612da461274a565b612dd3565b6040517f6e180aeefd7fd43a105253e3c10a794670b4c6ef64e8a4d8879de77cfb09d61290600090a15b60095460408051633af9e66960e01b815230600482015290516000926001600160a01b031691633af9e66991602480830192602092919082900301818787803b158015612e1f57600080fd5b505af1158015612e33573d6000803e3d6000fd5b505050506040513d6020811015612e4957600080fd5b5051600954604080516305eff7ef60e21b815230600482015290519293506000926001600160a01b03909216916317bfdfbc9160248082019260209290919082900301818787803b158015612e9d57600080fd5b505af1158015612eb1573d6000803e3d6000fd5b505050506040513d6020811015612ec757600080fd5b50519050611031612ede838363ffffffff61236d16565b60095460408051631d8e90d160e11b8152905183926001600160a01b031691633b1d21a2916004808301926020929190829003018186803b158015612f2257600080fd5b505afa158015612f36573d6000803e3d6000fd5b505050506040513d6020811015612f4c57600080fd5b50511015612f8b5760405162461bcd60e51b8152600401808060200182810382526022815260200180613bbe6022913960400191505060405180910390fd5b612f9361346a565b600854604080516370a0823160e01b8152306004820152905183926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015612fdd57600080fd5b505afa158015612ff1573d6000803e3d6000fd5b505050506040513d602081101561300757600080fd5b505110156130465760405162461bcd60e51b815260040180806020018281038252602e815260200180613b66602e913960400191505060405180910390fd5b50565b61305b826001600160a01b031661347b565b6130ac576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106130ea5780518252601f1990920191602091820191016130cb565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461314c576040519150601f19603f3d011682016040523d82523d6000602084013e613151565b606091505b5091509150816131a8576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115610ad4578080602001905160208110156131c457600080fd5b5051610ad45760405162461bcd60e51b815260040180806020018281038252602a815260200180613b94602a913960400191505060405180910390fd5b600081848411156132905760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561325557818101518382015260200161323d565b50505050905090810190601f1680156132825780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600081836132e75760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561325557818101518382015260200161323d565b5060008385816132f357fe5b0495945050505050565b8015613428576000613320600254610f8f6001548561258990919063ffffffff16565b6040805184815260208101839052428183015290519192507f33fd2845a0f10293482de360244dd4ad31ddbb4b8c4a1ded3875cf8ebfba184b919081900360600190a161338861336e61224b565b6003546001600160a01b031690600063ffffffff612c3716565b6133ac61339361224b565b6003546001600160a01b0316908363ffffffff612c3716565b6133b461224b565b60035460408051631ee0d7e560e31b81526001600160a01b039283166004820152602481018590529051929091169163f706bf289160448082019260009290919082900301818387803b15801561340a57600080fd5b505af115801561341e573d6000803e3d6000fd5b5050505050613046565b6040805160008082526020820152428183015290517f33fd2845a0f10293482de360244dd4ad31ddbb4b8c4a1ded3875cf8ebfba184b9181900360600190a150565b61120e6013546014546019546134b7565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906134af57508115155b949350505050565b60065460408051631d8e90d160e11b815290516000926001600160a01b031691633b1d21a2916004808301926020929190829003018186803b1580156134fc57600080fd5b505afa158015613510573d6000803e3d6000fd5b505050506040513d602081101561352657600080fd5b505160065460408051633af9e66960e01b815230600482015290519293506000926001600160a01b0390921691633af9e6699160248082019260209290919082900301818787803b15801561357a57600080fd5b505af115801561358e573d6000803e3d6000fd5b505050506040513d60208110156135a457600080fd5b5051600654604080516305eff7ef60e21b815230600482015290519293506000926001600160a01b03909216916317bfdfbc9160248082019260209290919082900301818787803b1580156135f857600080fd5b505af115801561360c573d6000803e3d6000fd5b505050506040513d602081101561362257600080fd5b505190505b8381111561388d57600061365987610f8f61364982600263ffffffff6125e216565b610e2b868b63ffffffff61258916565b9050600061366d848363ffffffff61236d16565b905061368161367c8287612c21565b6138a2565b60048054604080516370a0823160e01b81523093810193909352516000926001600160a01b03909216916370a08231916024808301926020929190829003018186803b1580156136d057600080fd5b505afa1580156136e4573d6000803e3d6000fd5b505050506040513d60208110156136fa57600080fd5b5051905061371061370b8583612c21565b613918565b600660009054906101000a90046001600160a01b03166001600160a01b0316633b1d21a26040518163ffffffff1660e01b815260040160206040518083038186803b15801561375e57600080fd5b505afa158015613772573d6000803e3d6000fd5b505050506040513d602081101561378857600080fd5b5051600654604080516305eff7ef60e21b815230600482015290519298506001600160a01b03909116916317bfdfbc916024808201926020929091908290030181600087803b1580156137da57600080fd5b505af11580156137ee573d6000803e3d6000fd5b505050506040513d602081101561380457600080fd5b505160065460408051633af9e66960e01b815230600482015290519296506001600160a01b0390911691633af9e669916024808201926020929091908290030181600087803b15801561385657600080fd5b505af115801561386a573d6000803e3d6000fd5b505050506040513d602081101561388057600080fd5b5051945061362792505050565b61389a61367c8484612c21565b505050505050565b8015613046576138b1816139ce565b60055460408051630d0e30db60e41b815290516001600160a01b0390921691829163d0e30db091479160048082019260009290919082900301818588803b1580156138fb57600080fd5b505af115801561390f573d6000803e3d6000fd5b50505050505050565b60055460408051632e1a7d4d60e01b81526004810184905290516001600160a01b03909216918291632e1a7d4d91602480830192600092919082900301818387803b15801561396657600080fd5b505af115801561397a573d6000803e3d6000fd5b50505050600660009054906101000a90046001600160a01b03166001600160a01b0316634e4d9fea836040518263ffffffff1660e01b81526004016000604051808303818588803b1580156138fb57600080fd5b8015613046576006546040805163852a12e360e01b81526004810184905290516001600160a01b039092169163852a12e3916024808201926020929091908290030181600087803b158015613a2257600080fd5b505af1158015613a36573d6000803e3d6000fd5b505050506040513d6020811015610a6f57600080fdfe746f6b656e20697320646566696e6564206173206e6f742073616c76616761626c65436f6c6c61746572616c20666163746f722063616e6e6f74206265207468697320686967685468652073656e6465722068617320746f2062652074686520636f6e74726f6c6c6572206f72207661756c744c697175696469747920726563697069656e742077617320616c7265616479207365742c20616e64206861732061206c6f616e4275666665722065786973747320616e64207468652063616c6c6572206973206e6f7420676f7665726e616e63654c6971756964697479206c6f616e206d75737420626520736574746c6564206669727374536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77556e61626c6520746f2077697468647261772074686520656e7469726520616d6f756e74556e6465726c79696e675361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565646d61726b657420636173682063616e6e6f7420636f766572206c69717569646974795361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a265627a7a7231582054baa74ab1a0cd22bbac6c26a1ea195f428957b01c05a4eff7a2c6124b24eb8464736f6c634300051000327661756c7420646f6573206e6f7420737570706f727420756e6465726c79696e67000000000000000000000000c95cbe4ca30055c787cb784be99d6a8494d0d197000000000000000000000000fe09e53a81fe2808bc493ea64319109b5baa573e
Deployed Bytecode
0x6080604052600436106102ca5760003560e01c8063627c96ca1161017b578063bbfb2007116100d7578063d47749d711610085578063d47749d714610808578063d610101b14610832578063d9cef72514610847578063f48d0c4a1461085c578063f77c479114610871578063f7c618c114610886578063fbfa77cf1461089b576102ca565b8063bbfb200714610736578063bde10bcb1461074b578063bfd131f114610775578063c2a2a07b1461078a578063c739d3e41461079f578063ccf3eb9f146107c9578063ce8c42e8146107de576102ca565b80639642a65f116101345780639642a65f1461068e578063975057e7146106a3578063a1764595146106b8578063a1dab23e146106cd578063b5d7a94f146106e2578063b60f151a146106f7578063ba09591e1461070c576102ca565b8063627c96ca146105dd5780636f307dc3146105f257806377be00f3146106075780637f09d3f31461061c5780639137c1a71461064657806392501f2914610679576102ca565b80634990f6dc1161022a578063588cfb84116101e3578063588cfb8414610533578063596fa9e3146105485780635976317f1461055d5780635aa6e675146105895780635dbeffe51461059e5780635fe3b567146105b357806362237749146105c8576102ca565b80634990f6dc146104975780634a8cfa69146104ac5780634fa5d854146104c157806350185946146104d657806355b9b4a8146105095780635641ec031461051e576102ca565b8063215677c211610287578063215677c2146103ba57806327e4d202146103cf5780632c040845146103f9578063373aff7f1461040e5780633b308579146104415780633fd8cd981461045657806345d01e4a14610482576102ca565b8063026a0dd0146102cc5780630910a510146102f357806309e5f66c14610308578063109d0af8146103315780631113ef52146103625780631bd85bdb146103a5575b005b3480156102d857600080fd5b506102e16108b0565b60408051918252519081900360200190f35b3480156102ff57600080fd5b506102e16108b6565b34801561031457600080fd5b5061031d61092c565b604080519115158252519081900360200190f35b34801561033d57600080fd5b50610346610935565b604080516001600160a01b039092168252519081900360200190f35b34801561036e57600080fd5b506102ca6004803603606081101561038557600080fd5b506001600160a01b03813581169160208101359091169060400135610944565b3480156103b157600080fd5b506102ca610a74565b3480156103c657600080fd5b506102e1610ada565b3480156103db57600080fd5b506102ca600480360360208110156103f257600080fd5b5035610ae6565b34801561040557600080fd5b506102e1610ba4565b34801561041a57600080fd5b506102ca6004803603602081101561043157600080fd5b50356001600160a01b0316610baa565b34801561044d57600080fd5b506102e1610cd8565b34801561046257600080fd5b506102ca6004803603602081101561047957600080fd5b50351515610cde565b34801561048e57600080fd5b506102e1610d80565b3480156104a357600080fd5b50610346610e3c565b3480156104b857600080fd5b506102ca610e54565b3480156104cd57600080fd5b506102ca61112d565b3480156104e257600080fd5b5061031d600480360360208110156104f957600080fd5b50356001600160a01b0316611210565b34801561051557600080fd5b506102e1611225565b34801561052a57600080fd5b506102ca61122b565b34801561053f57600080fd5b506102e1611339565b34801561055457600080fd5b5061034661133f565b34801561056957600080fd5b506102ca6004803603602081101561058057600080fd5b5035151561134e565b34801561059557600080fd5b506103466113f0565b3480156105aa57600080fd5b5061034661143f565b3480156105bf57600080fd5b50610346611457565b3480156105d457600080fd5b506102e1611466565b3480156105e957600080fd5b506102e161146c565b3480156105fe57600080fd5b50610346611472565b34801561061357600080fd5b50610346611481565b34801561062857600080fd5b506102ca6004803603602081101561063f57600080fd5b5035611499565b34801561065257600080fd5b506102ca6004803603602081101561066957600080fd5b50356001600160a01b031661177d565b34801561068557600080fd5b506103466118b3565b34801561069a57600080fd5b506103466118cb565b3480156106af57600080fd5b506103466118da565b3480156106c457600080fd5b506103466118e9565b3480156106d957600080fd5b506102e16118f8565b3480156106ee57600080fd5b506102e16118fe565b34801561070357600080fd5b506102e1611904565b34801561071857600080fd5b506102ca6004803603602081101561072f57600080fd5b503561190a565b34801561074257600080fd5b506102ca61199e565b34801561075757600080fd5b506102ca6004803603602081101561076e57600080fd5b5035611c69565b34801561078157600080fd5b506102ca611d27565b34801561079657600080fd5b5061031d611eeb565b3480156107ab57600080fd5b506102ca600480360360208110156107c257600080fd5b5035611ef0565b3480156107d557600080fd5b50610346611fef565b3480156107ea57600080fd5b506102ca6004803603602081101561080157600080fd5b5035611ffe565b34801561081457600080fd5b506102ca6004803603602081101561082b57600080fd5b5035612166565b34801561083e57600080fd5b506102e1612224565b34801561085357600080fd5b5061034661222a565b34801561086857600080fd5b5061031d612242565b34801561087d57600080fd5b5061034661224b565b34801561089257600080fd5b5061034661229a565b3480156108a757600080fd5b506103466122a9565b60025481565b60065460408051631d8e90d160e11b815290516000926001600160a01b031691633b1d21a2916004808301926020929190829003018186803b1580156108fb57600080fd5b505afa15801561090f573d6000803e3d6000fd5b505050506040513d602081101561092557600080fd5b5051905090565b60105460ff1681565b600c546001600160a01b031681565b600054604080516337b87c3960e21b815233600482015290516001600160a01b039092169163dee1f0e491602480820192602092909190829003018186803b15801561098f57600080fd5b505afa1580156109a3573d6000803e3d6000fd5b505050506040513d60208110156109b957600080fd5b50516109fd576040805162461bcd60e51b815260206004820152600e60248201526d4e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b6001600160a01b0382166000908152601a602052604090205460ff1615610a555760405162461bcd60e51b8152600401808060200182810382526022815260200180613a4d6022913960400191505060405180910390fd5b610a6f6001600160a01b038316848363ffffffff6122b816565b505050565b600754604080516374d7814960e11b815230600482015290516001600160a01b039092169163e9af02929160248082019260009290919082900301818387803b158015610ac057600080fd5b505af1158015610ad4573d6000803e3d6000fd5b50505050565b678ac7230489e8000081565b600054604080516337b87c3960e21b815233600482015290516001600160a01b039092169163dee1f0e491602480820192602092909190829003018186803b158015610b3157600080fd5b505afa158015610b45573d6000803e3d6000fd5b505050506040513d6020811015610b5b57600080fd5b5051610b9f576040805162461bcd60e51b815260206004820152600e60248201526d4e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b601855565b60195481565b600054604080516337b87c3960e21b815233600482015290516001600160a01b039092169163dee1f0e491602480820192602092909190829003018186803b158015610bf557600080fd5b505afa158015610c09573d6000803e3d6000fd5b505050506040513d6020811015610c1f57600080fd5b5051610c63576040805162461bcd60e51b815260206004820152600e60248201526d4e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b6016546001600160a01b03161580610c7b5750601754155b610cb65760405162461bcd60e51b8152600401808060200182810382526033815260200180613ac06033913960400191505060405180910390fd5b601680546001600160a01b0319166001600160a01b0392909216919091179055565b60175481565b600b546001600160a01b0316331480610d0f5750610cfa61224b565b6001600160a01b0316336001600160a01b0316145b80610d325750610d1d6113f0565b6001600160a01b0316336001600160a01b0316145b610d6d5760405162461bcd60e51b815260040180806020018281038252602c815260200180613a94602c913960400191505060405180910390fd5b6012805460ff1916911515919091179055565b601754600f54600e54600854604080516370a0823160e01b81523060048201529051600095610e37959094610e2b949193610e1f9391926001600160a01b0316916370a0823191602480820192602092909190829003018186803b158015610de757600080fd5b505afa158015610dfb573d6000803e3d6000fd5b505050506040513d6020811015610e1157600080fd5b50519063ffffffff61230a16565b9063ffffffff61236d16565b9063ffffffff61230a16565b905090565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b600b546001600160a01b0316331480610e855750610e7061224b565b6001600160a01b0316336001600160a01b0316145b80610ea85750610e936113f0565b6001600160a01b0316336001600160a01b0316145b610ee35760405162461bcd60e51b815260040180806020018281038252602c815260200180613a94602c913960400191505060405180910390fd5b600854604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610f2e57600080fd5b505afa158015610f42573d6000803e3d6000fd5b505050506040513d6020811015610f5857600080fd5b50519050610f65816123af565b60005b601554811015611031576000610f9b601454610f8f6013548661258990919063ffffffff16565b9063ffffffff6125e216565b9050610fa681612624565b600854604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015610ff157600080fd5b505afa158015611005573d6000803e3d6000fd5b505050506040513d602081101561101b57600080fd5b50519250611028836123af565b50600101610f68565b505060095460408051633af9e66960e01b815230600482015290516001600160a01b0390921691633af9e669916024808201926020929091908290030181600087803b15801561108057600080fd5b505af1158015611094573d6000803e3d6000fd5b505050506040513d60208110156110aa57600080fd5b5051600e55600954604080516305eff7ef60e21b815230600482015290516001600160a01b03909216916317bfdfbc916024808201926020929091908290030181600087803b1580156110fc57600080fd5b505af1158015611110573d6000803e3d6000fd5b505050506040513d602081101561112657600080fd5b5051600f55565b600b546001600160a01b031633148061115e575061114961224b565b6001600160a01b0316336001600160a01b0316145b80611181575061116c6113f0565b6001600160a01b0316336001600160a01b0316145b6111bc5760405162461bcd60e51b815260040180806020018281038252602c815260200180613a94602c913960400191505060405180910390fd5b60105460ff16156111dc576111cf610a74565b6111d761274a565b611206565b6040517f6e180aeefd7fd43a105253e3c10a794670b4c6ef64e8a4d8879de77cfb09d61290600090a15b61120e610e54565b565b601a6020526000908152604090205460ff1681565b60185481565b600054604080516337b87c3960e21b815233600482015290516001600160a01b039092169163dee1f0e491602480820192602092909190829003018186803b15801561127657600080fd5b505afa15801561128a573d6000803e3d6000fd5b505050506040513d60208110156112a057600080fd5b50516112e4576040805162461bcd60e51b815260206004820152600e60248201526d4e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b6112ec612b75565b60095460408051633af9e66960e01b815230600482015290516001600160a01b0390921691633af9e669916024808201926020929091908290030181600087803b15801561108057600080fd5b60155481565b600d546001600160a01b031681565b600b546001600160a01b031633148061137f575061136a61224b565b6001600160a01b0316336001600160a01b0316145b806113a2575061138d6113f0565b6001600160a01b0316336001600160a01b0316145b6113dd5760405162461bcd60e51b815260040180806020018281038252602c815260200180613a94602c913960400191505060405180910390fd5b6010805460ff1916911515919091179055565b60008060009054906101000a90046001600160a01b03166001600160a01b0316635aa6e6756040518163ffffffff1660e01b815260040160206040518083038186803b1580156108fb57600080fd5b73c00e94cb662c3520282e6f5717214004a7f2688881565b600a546001600160a01b031681565b60145481565b600f5481565b6008546001600160a01b031681565b737a250d5630b4cf539739df2c5dacb4c659f2488d81565b6017546114b490678ac7230489e8000063ffffffff61230a16565b6114bc610d80565b1115806114e157506114cc6113f0565b6001600160a01b0316336001600160a01b0316145b61151c5760405162461bcd60e51b815260040180806020018281038252602e815260200180613af3602e913960400191505060405180910390fd5b323314611565576040805162461bcd60e51b81526020600482015260126024820152716e6f20736d61727420636f6e74726163747360701b604482015290519081900360640190fd5b60175461157157611682565b601660009054906101000a90046001600160a01b03166001600160a01b0316636527ba5c6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156115c157600080fd5b505af11580156115d5573d6000803e3d6000fd5b50506016546008546115fd93506001600160a01b03908116925016308463ffffffff612bc716565b601754611610908263ffffffff61236d16565b601781905561168257601660009054906101000a90046001600160a01b03166001600160a01b031663cfc9b68c6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561166957600080fd5b505af115801561167d573d6000803e3d6000fd5b505050505b60095460408051633af9e66960e01b815230600482015290516001600160a01b0390921691633af9e669916024808201926020929091908290030181600087803b1580156116cf57600080fd5b505af11580156116e3573d6000803e3d6000fd5b505050506040513d60208110156116f957600080fd5b5051600e55600954604080516305eff7ef60e21b815230600482015290516001600160a01b03909216916317bfdfbc916024808201926020929091908290030181600087803b15801561174b57600080fd5b505af115801561175f573d6000803e3d6000fd5b505050506040513d602081101561177557600080fd5b5051600f5550565b600054604080516337b87c3960e21b815233600482015290516001600160a01b039092169163dee1f0e491602480820192602092909190829003018186803b1580156117c857600080fd5b505afa1580156117dc573d6000803e3d6000fd5b505050506040513d60208110156117f257600080fd5b5051611836576040805162461bcd60e51b815260206004820152600e60248201526d4e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b6001600160a01b038116611891576040805162461bcd60e51b815260206004820152601e60248201527f6e65772073746f726167652073686f756c646e277420626520656d7074790000604482015290519081900360640190fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b733d9819210a31b4961b30ef54be2aed79b9c9cd3b81565b6016546001600160a01b031681565b6000546001600160a01b031681565b6005546001600160a01b031681565b60115481565b60135481565b60015481565b600b546001600160a01b031633148061193b575061192661224b565b6001600160a01b0316336001600160a01b0316145b8061195e57506119496113f0565b6001600160a01b0316336001600160a01b0316145b6119995760405162461bcd60e51b815260040180806020018281038252602c815260200180613a94602c913960400191505060405180910390fd5b601155565b600054604080516337b87c3960e21b815233600482015290516001600160a01b039092169163dee1f0e491602480820192602092909190829003018186803b1580156119e957600080fd5b505afa1580156119fd573d6000803e3d6000fd5b505050506040513d6020811015611a1357600080fd5b5051611a57576040805162461bcd60e51b815260206004820152600e60248201526d4e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b611a5f612b75565b601854601754108015611ae65750600854604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015611ab857600080fd5b505afa158015611acc573d6000803e3d6000fd5b505050506040513d6020811015611ae257600080fd5b5051115b8015611afc57506016546001600160a01b031615155b15611c61576000611b99611b1d60175460185461236d90919063ffffffff16565b600854604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015611b6857600080fd5b505afa158015611b7c573d6000803e3d6000fd5b505050506040513d6020811015611b9257600080fd5b5051612c21565b601654600854919250611bc0916001600160a01b039081169116600063ffffffff612c3716565b601654600854611be3916001600160a01b0391821691168363ffffffff612c3716565b601654604080516346401fe160e11b81526004810184905290516001600160a01b0390921691638c803fc29160248082019260009290919082900301818387803b158015611c3057600080fd5b505af1158015611c44573d6000803e3d6000fd5b5050601754611c5c925090508263ffffffff61230a16565b601755505b6112ec610e54565b600054604080516337b87c3960e21b815233600482015290516001600160a01b039092169163dee1f0e491602480820192602092909190829003018186803b158015611cb457600080fd5b505afa158015611cc8573d6000803e3d6000fd5b505050506040513d6020811015611cde57600080fd5b5051611d22576040805162461bcd60e51b815260206004820152600e60248201526d4e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b601955565b600b546001600160a01b0316331480611d585750611d4361224b565b6001600160a01b0316336001600160a01b0316145b80611d7b5750611d666113f0565b6001600160a01b0316336001600160a01b0316145b611db65760405162461bcd60e51b815260040180806020018281038252602c815260200180613a94602c913960400191505060405180910390fd5b60125460ff1615611dce57611dc9612b75565b611dd6565b611dd6612d4a565b600854604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015611e2157600080fd5b505afa158015611e35573d6000803e3d6000fd5b505050506040513d6020811015611e4b57600080fd5b505111156112ec57600b54600854604080516370a0823160e01b815230600482015290516112ec936001600160a01b039081169316916370a08231916024808301926020929190829003018186803b158015611ea657600080fd5b505afa158015611eba573d6000803e3d6000fd5b505050506040513d6020811015611ed057600080fd5b50516008546001600160a01b0316919063ffffffff6122b816565b600190565b600054604080516337b87c3960e21b815233600482015290516001600160a01b039092169163dee1f0e491602480820192602092909190829003018186803b158015611f3b57600080fd5b505afa158015611f4f573d6000803e3d6000fd5b505050506040513d6020811015611f6557600080fd5b5051611fa9576040805162461bcd60e51b815260206004820152600e60248201526d4e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b6102e4811115611fea5760405162461bcd60e51b8152600401808060200182810382526025815260200180613a6f6025913960400191505060405180910390fd5b601355565b6009546001600160a01b031681565b600b546001600160a01b031633148061202f575061201a61224b565b6001600160a01b0316336001600160a01b0316145b80612052575061203d6113f0565b6001600160a01b0316336001600160a01b0316145b61208d5760405162461bcd60e51b815260040180806020018281038252602c815260200180613a94602c913960400191505060405180910390fd5b600854604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b1580156120d857600080fd5b505afa1580156120ec573d6000803e3d6000fd5b505050506040513d602081101561210257600080fd5b5051811161213257600b5460085461212d916001600160a01b0391821691168363ffffffff6122b816565b611682565b61213b81612ede565b600b5460085461215e916001600160a01b0391821691168363ffffffff6122b816565b611682610e54565b600054604080516337b87c3960e21b815233600482015290516001600160a01b039092169163dee1f0e491602480820192602092909190829003018186803b1580156121b157600080fd5b505afa1580156121c5573d6000803e3d6000fd5b505050506040513d60208110156121db57600080fd5b505161221f576040805162461bcd60e51b815260206004820152600e60248201526d4e6f7420676f7665726e616e636560901b604482015290519081900360640190fd5b601555565b600e5481565b734ddc2d193948926d02f9b1fe9e1daa0718270ed581565b60125460ff1681565b60008060009054906101000a90046001600160a01b03166001600160a01b031663f77c47916040518163ffffffff1660e01b815260040160206040518083038186803b1580156108fb57600080fd5b6003546001600160a01b031681565b600b546001600160a01b031681565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610a6f908490613049565b600082820183811015612364576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b600061236483836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250613201565b600354600160a01b900460ff1661240d576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6003805460ff60a01b1916905560048054604080516370a0823160e01b81523093810193909352516000926001600160a01b03909216916370a08231916024808301926020929190829003018186803b15801561246957600080fd5b505afa15801561247d573d6000803e3d6000fd5b505050506040513d602081101561249357600080fd5b50519050808210156124a25750805b60055460408051632e1a7d4d60e01b81526004810184905290516001600160a01b03909216918291632e1a7d4d91602480830192600092919082900301818387803b1580156124f057600080fd5b505af1158015612504573d6000803e3d6000fd5b50505050600660009054906101000a90046001600160a01b03166001600160a01b0316631249c58b836040518263ffffffff1660e01b81526004016000604051808303818588803b15801561255857600080fd5b505af115801561256c573d6000803e3d6000fd5b50506003805460ff60a01b1916600160a01b179055505050505050565b60008261259857506000612367565b828202828482816125a557fe5b04146123645760405162461bcd60e51b8152600401808060200182810382526021815260200180613b456021913960400191505060405180910390fd5b600061236483836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613298565b6006546040805163317afabb60e21b81526004810184905290516000926001600160a01b03169163c5ebeaec91602480830192602092919082900301818787803b15801561267157600080fd5b505af1158015612685573d6000803e3d6000fd5b505050506040513d602081101561269b57600080fd5b5051905080156126e2576040805162461bcd60e51b815260206004820152600d60248201526c109bdc9c9bddc819985a5b1959609a1b604482015290519081900360640190fd5b60055460408051630d0e30db60e41b815290516001600160a01b0390921691829163d0e30db091479160048082019260009290919082900301818588803b15801561272c57600080fd5b505af1158015612740573d6000803e3d6000fd5b5050505050505050565b600c54604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561279557600080fd5b505afa1580156127a9573d6000803e3d6000fd5b505050506040513d60208110156127bf57600080fd5b50516011549091508110806127d2575080155b15612806576040517fd26ff69ffdb9c21e34f9b534127733d71db1159e23eb2e5105a07b91fa2768ac90600090a15061120e565b61280f816132fd565b600c54604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561285a57600080fd5b505afa15801561286e573d6000803e3d6000fd5b505050506040513d602081101561288457600080fd5b50516040805182815290519192507fc9e9d7cf3944e82f1fe222573e1c9acf5a2f6cd29aa9639bc8078065f091bb6b919081900360200190a1600d54600c546001916128e4916001600160a01b039081169116600063ffffffff612c3716565b600d54600c54612907916001600160a01b0391821691168463ffffffff612c3716565b60408051600280825260608083018452926020830190803883395050600c5482519293506001600160a01b03169183915060009061294157fe5b6001600160a01b03928316602091820292909201015260085482519116908290600190811061296c57fe5b6001600160a01b03928316602091820292909201810191909152600854604080516370a0823160e01b8152306004820152905160009492909216926370a0823192602480840193829003018186803b1580156129c757600080fd5b505afa1580156129db573d6000803e3d6000fd5b505050506040513d60208110156129f157600080fd5b5051600d546040516338ed173960e01b815260048101878152602482018790523060648301819052426084840181905260a060448501908152885160a486015288519697506001600160a01b03909516956338ed1739958b958b958b95949390929160c401906020878101910280838360005b83811015612a7c578181015183820152602001612a64565b505050509050019650505050505050600060405180830381600087803b158015612aa557600080fd5b505af1158015612ab9573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015612ae257600080fd5b8101908080516040519392919084640100000000821115612b0257600080fd5b908301906020820185811115612b1757600080fd5b8251866020820283011164010000000082111715612b3457600080fd5b82525081516020918201928201910280838360005b83811015612b61578181015183820152602001612b49565b505050509050016040525050505050505050565b60105460ff1615612b9557612b88610a74565b612b9061274a565b612bbf565b6040517f6e180aeefd7fd43a105253e3c10a794670b4c6ef64e8a4d8879de77cfb09d61290600090a15b6112ec61346a565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610ad4908590613049565b6000818310612c305781612364565b5090919050565b801580612cbd575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015612c8f57600080fd5b505afa158015612ca3573d6000803e3d6000fd5b505050506040513d6020811015612cb957600080fd5b5051155b612cf85760405162461bcd60e51b8152600401808060200182810382526036815260200180613be06036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610a6f908490613049565b60175415612d895760405162461bcd60e51b8152600401808060200182810382526024815260200180613b216024913960400191505060405180910390fd5b60105460ff1615612da957612d9c610a74565b612da461274a565b612dd3565b6040517f6e180aeefd7fd43a105253e3c10a794670b4c6ef64e8a4d8879de77cfb09d61290600090a15b60095460408051633af9e66960e01b815230600482015290516000926001600160a01b031691633af9e66991602480830192602092919082900301818787803b158015612e1f57600080fd5b505af1158015612e33573d6000803e3d6000fd5b505050506040513d6020811015612e4957600080fd5b5051600954604080516305eff7ef60e21b815230600482015290519293506000926001600160a01b03909216916317bfdfbc9160248082019260209290919082900301818787803b158015612e9d57600080fd5b505af1158015612eb1573d6000803e3d6000fd5b505050506040513d6020811015612ec757600080fd5b50519050611031612ede838363ffffffff61236d16565b60095460408051631d8e90d160e11b8152905183926001600160a01b031691633b1d21a2916004808301926020929190829003018186803b158015612f2257600080fd5b505afa158015612f36573d6000803e3d6000fd5b505050506040513d6020811015612f4c57600080fd5b50511015612f8b5760405162461bcd60e51b8152600401808060200182810382526022815260200180613bbe6022913960400191505060405180910390fd5b612f9361346a565b600854604080516370a0823160e01b8152306004820152905183926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015612fdd57600080fd5b505afa158015612ff1573d6000803e3d6000fd5b505050506040513d602081101561300757600080fd5b505110156130465760405162461bcd60e51b815260040180806020018281038252602e815260200180613b66602e913960400191505060405180910390fd5b50565b61305b826001600160a01b031661347b565b6130ac576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106130ea5780518252601f1990920191602091820191016130cb565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d806000811461314c576040519150601f19603f3d011682016040523d82523d6000602084013e613151565b606091505b5091509150816131a8576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115610ad4578080602001905160208110156131c457600080fd5b5051610ad45760405162461bcd60e51b815260040180806020018281038252602a815260200180613b94602a913960400191505060405180910390fd5b600081848411156132905760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561325557818101518382015260200161323d565b50505050905090810190601f1680156132825780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600081836132e75760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561325557818101518382015260200161323d565b5060008385816132f357fe5b0495945050505050565b8015613428576000613320600254610f8f6001548561258990919063ffffffff16565b6040805184815260208101839052428183015290519192507f33fd2845a0f10293482de360244dd4ad31ddbb4b8c4a1ded3875cf8ebfba184b919081900360600190a161338861336e61224b565b6003546001600160a01b031690600063ffffffff612c3716565b6133ac61339361224b565b6003546001600160a01b0316908363ffffffff612c3716565b6133b461224b565b60035460408051631ee0d7e560e31b81526001600160a01b039283166004820152602481018590529051929091169163f706bf289160448082019260009290919082900301818387803b15801561340a57600080fd5b505af115801561341e573d6000803e3d6000fd5b5050505050613046565b6040805160008082526020820152428183015290517f33fd2845a0f10293482de360244dd4ad31ddbb4b8c4a1ded3875cf8ebfba184b9181900360600190a150565b61120e6013546014546019546134b7565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906134af57508115155b949350505050565b60065460408051631d8e90d160e11b815290516000926001600160a01b031691633b1d21a2916004808301926020929190829003018186803b1580156134fc57600080fd5b505afa158015613510573d6000803e3d6000fd5b505050506040513d602081101561352657600080fd5b505160065460408051633af9e66960e01b815230600482015290519293506000926001600160a01b0390921691633af9e6699160248082019260209290919082900301818787803b15801561357a57600080fd5b505af115801561358e573d6000803e3d6000fd5b505050506040513d60208110156135a457600080fd5b5051600654604080516305eff7ef60e21b815230600482015290519293506000926001600160a01b03909216916317bfdfbc9160248082019260209290919082900301818787803b1580156135f857600080fd5b505af115801561360c573d6000803e3d6000fd5b505050506040513d602081101561362257600080fd5b505190505b8381111561388d57600061365987610f8f61364982600263ffffffff6125e216565b610e2b868b63ffffffff61258916565b9050600061366d848363ffffffff61236d16565b905061368161367c8287612c21565b6138a2565b60048054604080516370a0823160e01b81523093810193909352516000926001600160a01b03909216916370a08231916024808301926020929190829003018186803b1580156136d057600080fd5b505afa1580156136e4573d6000803e3d6000fd5b505050506040513d60208110156136fa57600080fd5b5051905061371061370b8583612c21565b613918565b600660009054906101000a90046001600160a01b03166001600160a01b0316633b1d21a26040518163ffffffff1660e01b815260040160206040518083038186803b15801561375e57600080fd5b505afa158015613772573d6000803e3d6000fd5b505050506040513d602081101561378857600080fd5b5051600654604080516305eff7ef60e21b815230600482015290519298506001600160a01b03909116916317bfdfbc916024808201926020929091908290030181600087803b1580156137da57600080fd5b505af11580156137ee573d6000803e3d6000fd5b505050506040513d602081101561380457600080fd5b505160065460408051633af9e66960e01b815230600482015290519296506001600160a01b0390911691633af9e669916024808201926020929091908290030181600087803b15801561385657600080fd5b505af115801561386a573d6000803e3d6000fd5b505050506040513d602081101561388057600080fd5b5051945061362792505050565b61389a61367c8484612c21565b505050505050565b8015613046576138b1816139ce565b60055460408051630d0e30db60e41b815290516001600160a01b0390921691829163d0e30db091479160048082019260009290919082900301818588803b1580156138fb57600080fd5b505af115801561390f573d6000803e3d6000fd5b50505050505050565b60055460408051632e1a7d4d60e01b81526004810184905290516001600160a01b03909216918291632e1a7d4d91602480830192600092919082900301818387803b15801561396657600080fd5b505af115801561397a573d6000803e3d6000fd5b50505050600660009054906101000a90046001600160a01b03166001600160a01b0316634e4d9fea836040518263ffffffff1660e01b81526004016000604051808303818588803b1580156138fb57600080fd5b8015613046576006546040805163852a12e360e01b81526004810184905290516001600160a01b039092169163852a12e3916024808201926020929091908290030181600087803b158015613a2257600080fd5b505af1158015613a36573d6000803e3d6000fd5b505050506040513d6020811015610a6f57600080fdfe746f6b656e20697320646566696e6564206173206e6f742073616c76616761626c65436f6c6c61746572616c20666163746f722063616e6e6f74206265207468697320686967685468652073656e6465722068617320746f2062652074686520636f6e74726f6c6c6572206f72207661756c744c697175696469747920726563697069656e742077617320616c7265616479207365742c20616e64206861732061206c6f616e4275666665722065786973747320616e64207468652063616c6c6572206973206e6f7420676f7665726e616e63654c6971756964697479206c6f616e206d75737420626520736574746c6564206669727374536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77556e61626c6520746f2077697468647261772074686520656e7469726520616d6f756e74556e6465726c79696e675361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565646d61726b657420636173682063616e6e6f7420636f766572206c69717569646974795361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a265627a7a7231582054baa74ab1a0cd22bbac6c26a1ea195f428957b01c05a4eff7a2c6124b24eb8464736f6c63430005100032
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c95cbe4ca30055c787cb784be99d6a8494d0d197000000000000000000000000fe09e53a81fe2808bc493ea64319109b5baa573e
-----Decoded View---------------
Arg [0] : _storage (address): 0xc95CbE4ca30055c787CB784BE99D6a8494d0d197
Arg [1] : _vault (address): 0xFE09e53A81Fe2808bc493ea64319109B5bAa573e
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000c95cbe4ca30055c787cb784be99d6a8494d0d197
Arg [1] : 000000000000000000000000fe09e53a81fe2808bc493ea64319109b5baa573e
Deployed Bytecode Sourcemap
116410:789:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;102182:39;;8:9:-1;5:2;;;30:1;27;20:12;5:2;102182:39:0;;;:::i;:::-;;;;;;;;;;;;;;;;84072:91;;8:9:-1;5:2;;;30:1;27;20:12;5:2;84072:91:0;;;:::i;105345:37::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;105345:37:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;105168:25;;8:9:-1;5:2;;;30:1;27;20:12;5:2;105168:25:0;;;:::i;:::-;;;;-1:-1:-1;;;;;105168:25:0;;;;;;;;;;;;;;111005:303;;8:9:-1;5:2;;;30:1;27;20:12;5:2;111005:303:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;111005:303:0;;;;;;;;;;;;;;;;;:::i;82150:77::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;82150:77:0;;;:::i;105826:43::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;105826:43:0;;;:::i;116096:111::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;116096:111:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;116096:111:0;;:::i;105876:37::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;105876:37:0;;;:::i;115323:254::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;115323:254:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;115323:254:0;-1:-1:-1;;;;;115323:254:0;;:::i;105723:35::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;105723:35:0;;;:::i;112928:133::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;112928:133:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;112928:133:0;;;;:::i;112452:311::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;112452:311:0;;;:::i;116508:90::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;116508:90:0;;;:::i;107481:449::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;107481:449:0;;;:::i;109883:202::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;109883:202:0;;;:::i;105975:50::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;105975:50:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;105975:50:0;-1:-1:-1;;;;;105975:50:0;;:::i;105785:34::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;105785:34:0;;;:::i;108366:100::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;108366:100:0;;;:::i;105581:24::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;105581:24:0;;;:::i;105230:30::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;105230:30:0;;;:::i;112806:116::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;112806:116:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;112806:116:0;;;;:::i;86039:90::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;86039:90:0;;;:::i;116790:84::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;116790:84:0;;;:::i;105097:39::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;105097:39:0;;;:::i;105527:49::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;105527:49:0;;;:::i;105305:35::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;105305:35:0;;;:::i;105028:31::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;105028:31:0;;;:::i;116879:87::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;116879:87:0;;;:::i;114469:848::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;114469:848:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;114469:848:0;;:::i;85869:164::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;85869:164:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;85869:164:0;-1:-1:-1;;;;;85869:164:0;;:::i;116694:91::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;116694:91:0;;;:::i;105662:33::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;105662:33:0;;;:::i;85585:20::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;85585:20:0;;;:::i;78015:72::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;78015:72:0;;;:::i;105387:28::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;105387:28:0;;;:::i;105476:46::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;105476:46:0;;;:::i;102140:37::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;102140:37:0;;;:::i;113067:87::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;113067:87:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;113067:87:0;;:::i;113300:781::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;113300:781:0;;;:::i;115583:115::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;115583:115:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;115583:115:0;;:::i;108008:352::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;108008:352:0;;;:::i;107284:107::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;107284:107:0;;;:::i;115888:202::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;115888:202:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;115888:202:0;;:::i;105064:28::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;105064:28:0;;;:::i;109220:553::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;109220:553:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;109220:553:0;;:::i;116213:83::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;116213:83:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;116213:83:0;;:::i;105265:35::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;105265:35:0;;;:::i;116603:86::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;116603:86:0;;;:::i;105420:51::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;105420:51:0;;;:::i;86622:90::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;86622:90:0;;;:::i;102226:26::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;102226:26:0;;;:::i;105143:20::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;105143:20:0;;;:::i;102182:39::-;;;;:::o;84072:91::-;84141:6;;:16;;;-1:-1:-1;;;84141:16:0;;;;84118:7;;-1:-1:-1;;;;;84141:6:0;;:14;;:16;;;;;;;;;;;;;;:6;:16;;;5:2:-1;;;;30:1;27;20:12;5:2;84141:16:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;84141:16:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;84141:16:0;;-1:-1:-1;84072:91:0;:::o;105345:37::-;;;;;;:::o;105168:25::-;;;-1:-1:-1;;;;;105168:25:0;;:::o;111005:303::-;85800:5;;:30;;;-1:-1:-1;;;85800:30:0;;85819:10;85800:30;;;;;;-1:-1:-1;;;;;85800:5:0;;;;:18;;:30;;;;;;;;;;;;;;;:5;:30;;;5:2:-1;;;;30:1;27;20:12;5:2;85800:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;85800:30:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;85800:30:0;85792:57;;;;;-1:-1:-1;;;85792:57:0;;;;;;;;;;;;-1:-1:-1;;;85792:57:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;111186:25:0;;;;;;:18;:25;;;;;;;;111185:26;111177:73;;;;-1:-1:-1;;;111177:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;111257:45;-1:-1:-1;;;;;111257:26:0;;111284:9;111295:6;111257:45;:26;:45;:::i;:::-;111005:303;;;:::o;82150:77::-;82185:11;;:36;;;-1:-1:-1;;;82185:36:0;;82215:4;82185:36;;;;;;-1:-1:-1;;;;;82185:11:0;;;;:21;;:36;;;;;:11;;:36;;;;;;;;:11;;:36;;;5:2:-1;;;;30:1;27;20:12;5:2;82185:36:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;82185:36:0;;;;82150:77::o;105826:43::-;105860:9;105826:43;:::o;116096:111::-;85800:5;;:30;;;-1:-1:-1;;;85800:30:0;;85819:10;85800:30;;;;;;-1:-1:-1;;;;;85800:5:0;;;;:18;;:30;;;;;;;;;;;;;;;:5;:30;;;5:2:-1;;;;30:1;27;20:12;5:2;85800:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;85800:30:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;85800:30:0;85792:57;;;;;-1:-1:-1;;;85792:57:0;;;;;;;;;;;;-1:-1:-1;;;85792:57:0;;;;;;;;;;;;;;;116173:19;:28;116096:111::o;105876:37::-;;;;:::o;115323:254::-;85800:5;;:30;;;-1:-1:-1;;;85800:30:0;;85819:10;85800:30;;;;;;-1:-1:-1;;;;;85800:5:0;;;;:18;;:30;;;;;;;;;;;;;;;:5;:30;;;5:2:-1;;;;30:1;27;20:12;5:2;85800:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;85800:30:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;85800:30:0;85792:57;;;;;-1:-1:-1;;;85792:57:0;;;;;;;;;;;;-1:-1:-1;;;85792:57:0;;;;;;;;;;;;;;;115410:18;;-1:-1:-1;;;;;115410:18:0;:32;;:61;;-1:-1:-1;115446:20:0;;:25;115410:61;115402:132;;;;-1:-1:-1;;;115402:132:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;115541:18;:30;;-1:-1:-1;;;;;;115541:30:0;-1:-1:-1;;;;;115541:30:0;;;;;;;;;;115323:254::o;105723:35::-;;;;:::o;112928:133::-;106083:5;;-1:-1:-1;;;;;106083:5:0;106069:10;:19;;:58;;;106114:12;:10;:12::i;:::-;-1:-1:-1;;;;;106092:35:0;:10;-1:-1:-1;;;;;106092:35:0;;106069:58;:97;;;;106153:12;:10;:12::i;:::-;-1:-1:-1;;;;;106131:35:0;:10;-1:-1:-1;;;;;106131:35:0;;106069:97;106061:161;;;;-1:-1:-1;;;106061:161:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;113014:31;:41;;-1:-1:-1;;113014:41:0;;;;;;;;;;112928:133::o;112452:311::-;112736:20;;112702;;112668;;112620:10;;:35;;;-1:-1:-1;;;112620:35:0;;112649:4;112620:35;;;;;;112510:7;;112620:137;;112736:20;;112620:103;;112702:20;;112620:69;;112668:20;;-1:-1:-1;;;;;112620:10:0;;:20;;:35;;;;;;;;;;;;;;;:10;:35;;;5:2:-1;;;;30:1;27;20:12;5:2;112620:35:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;112620:35:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;112620:35:0;;:69;:47;:69;:::i;:::-;:81;:103;:81;:103;:::i;:::-;:115;:137;:115;:137;:::i;:::-;112613:144;;112452:311;:::o;116508:90::-;116555:42;116508:90;:::o;107481:449::-;106083:5;;-1:-1:-1;;;;;106083:5:0;106069:10;:19;;:58;;;106114:12;:10;:12::i;:::-;-1:-1:-1;;;;;106092:35:0;:10;-1:-1:-1;;;;;106092:35:0;;106069:58;:97;;;;106153:12;:10;:12::i;:::-;-1:-1:-1;;;;;106131:35:0;:10;-1:-1:-1;;;;;106131:35:0;;106069:97;106061:161;;;;-1:-1:-1;;;106061:161:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;107576:10;;:35;;;-1:-1:-1;;;107576:35:0;;107605:4;107576:35;;;;;;107558:15;;-1:-1:-1;;;;;107576:10:0;;:20;;:35;;;;;;;;;;;;;;:10;:35;;;5:2:-1;;;;30:1;27;20:12;5:2;107576:35:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;107576:35:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;107576:35:0;;-1:-1:-1;107618:27:0;107576:35;107618:18;:27::i;:::-;107657:9;107652:273;107676:5;;107672:1;:9;107652:273;;;107697:20;107720:71;107763:27;;107720:38;107732:25;;107720:7;:11;;:38;;;;:::i;:::-;:42;:71;:42;:71;:::i;:::-;107697:94;;107800:27;107814:12;107800:13;:27::i;:::-;107846:10;;:35;;;-1:-1:-1;;;107846:35:0;;107875:4;107846:35;;;;;;-1:-1:-1;;;;;107846:10:0;;;;:20;;:35;;;;;;;;;;;;;;;:10;:35;;;5:2:-1;;;;30:1;27;20:12;5:2;107846:35:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;107846:35:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;107846:35:0;;-1:-1:-1;107890:27:0;107846:35;107890:18;:27::i;:::-;-1:-1:-1;107683:3:0;;107652:273;;;-1:-1:-1;;107159:6:0;;:41;;;-1:-1:-1;;;107159:41:0;;107194:4;107159:41;;;;;;-1:-1:-1;;;;;107159:6:0;;;;:26;;:41;;;;;;;;;;;;;;;:6;;:41;;;5:2:-1;;;;30:1;27;20:12;5:2;107159:41:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;107159:41:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;107159:41:0;107136:20;:64;107230:6;;:42;;;-1:-1:-1;;;107230:42:0;;107266:4;107230:42;;;;;;-1:-1:-1;;;;;107230:6:0;;;;:27;;:42;;;;;107159:41;;107230:42;;;;;;;;:6;;:42;;;5:2:-1;;;;30:1;27;20:12;5:2;107230:42:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;107230:42:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;107230:42:0;107207:20;:65;107481:449::o;109883:202::-;106083:5;;-1:-1:-1;;;;;106083:5:0;106069:10;:19;;:58;;;106114:12;:10;:12::i;:::-;-1:-1:-1;;;;;106092:35:0;:10;-1:-1:-1;;;;;106092:35:0;;106069:58;:97;;;;106153:12;:10;:12::i;:::-;-1:-1:-1;;;;;106131:35:0;:10;-1:-1:-1;;;;;106131:35:0;;106069:97;106061:161;;;;-1:-1:-1;;;106061:161:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;109934:18;;;;109930:122;;;109963:11;:9;:11::i;:::-;109983:15;:13;:15::i;:::-;109930:122;;;110026:18;;;;;;;109930:122;110058:21;:19;:21::i;:::-;109883:202::o;105975:50::-;;;;;;;;;;;;;;;:::o;105785:34::-;;;;:::o;108366:100::-;85800:5;;:30;;;-1:-1:-1;;;85800:30:0;;85819:10;85800:30;;;;;;-1:-1:-1;;;;;85800:5:0;;;;:18;;:30;;;;;;;;;;;;;;;:5;:30;;;5:2:-1;;;;30:1;27;20:12;5:2;85800:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;85800:30:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;85800:30:0;85792:57;;;;;-1:-1:-1;;;85792:57:0;;;;;;;;;;;;-1:-1:-1;;;85792:57:0;;;;;;;;;;;;;;;108443:17;:15;:17::i;:::-;107159:6;;:41;;;-1:-1:-1;;;107159:41:0;;107194:4;107159:41;;;;;;-1:-1:-1;;;;;107159:6:0;;;;:26;;:41;;;;;;;;;;;;;;;:6;;:41;;;5:2:-1;;;;30:1;27;20:12;105581:24:0;;;;:::o;105230:30::-;;;-1:-1:-1;;;;;105230:30:0;;:::o;112806:116::-;106083:5;;-1:-1:-1;;;;;106083:5:0;106069:10;:19;;:58;;;106114:12;:10;:12::i;:::-;-1:-1:-1;;;;;106092:35:0;:10;-1:-1:-1;;;;;106092:35:0;;106069:58;:97;;;;106153:12;:10;:12::i;:::-;-1:-1:-1;;;;;106131:35:0;:10;-1:-1:-1;;;;;106131:35:0;;106069:97;106061:161;;;;-1:-1:-1;;;106061:161:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;112888:18;:28;;-1:-1:-1;;112888:28:0;;;;;;;;;;112806:116::o;86039:90::-;86082:7;86105:5;;;;;;;;;-1:-1:-1;;;;;86105:5:0;-1:-1:-1;;;;;86105:16:0;;:18;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;116790:84:0;116831:42;116790:84;:::o;105097:39::-;;;-1:-1:-1;;;;;105097:39:0;;:::o;105527:49::-;;;;:::o;105305:35::-;;;;:::o;105028:31::-;;;-1:-1:-1;;;;;105028:31:0;;:::o;116879:87::-;116923:42;116879:87;:::o;114469:848::-;114651:20;;:33;;105860:9;114651:33;:24;:33;:::i;:::-;114620:27;:25;:27::i;:::-;:64;;:150;;;;114758:12;:10;:12::i;:::-;-1:-1:-1;;;;;114744:26:0;:10;-1:-1:-1;;;;;114744:26:0;;114620:150;114540:294;;;;-1:-1:-1;;;114540:294:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;114888:9;114901:10;114888:23;114880:54;;;;;-1:-1:-1;;;114880:54:0;;;;;;;;;;;;-1:-1:-1;;;114880:54:0;;;;;;;;;;;;;;;114947:20;;114943:54;;114983:7;;114943:54;115024:18;;;;;;;;;-1:-1:-1;;;;;115024:18:0;-1:-1:-1;;;;;115005:49:0;;:51;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;115005:51:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;115099:18:0;;115070:10;;115063:78;;-1:-1:-1;;;;;;115070:10:0;;;;-1:-1:-1;115099:18:0;115127:4;115134:6;115063:78;:35;:78;:::i;:::-;115171:20;;:32;;115196:6;115171:32;:24;:32;:::i;:::-;115148:20;:55;;;115210:102;;115269:18;;;;;;;;;-1:-1:-1;;;;;115269:18:0;-1:-1:-1;;;;;115250:52:0;;:54;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;115250:54:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;115250:54:0;;;;115210:102;107159:6;;:41;;;-1:-1:-1;;;107159:41:0;;107194:4;107159:41;;;;;;-1:-1:-1;;;;;107159:6:0;;;;:26;;:41;;;;;;;;;;;;;;;:6;;:41;;;5:2:-1;;;;30:1;27;20:12;5:2;107159:41:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;107159:41:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;107159:41:0;107136:20;:64;107230:6;;:42;;;-1:-1:-1;;;107230:42:0;;107266:4;107230:42;;;;;;-1:-1:-1;;;;;107230:6:0;;;;:27;;:42;;;;;107159:41;;107230:42;;;;;;;;:6;;:42;;;5:2:-1;;;;30:1;27;20:12;5:2;107230:42:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;107230:42:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;107230:42:0;107207:20;:65;-1:-1:-1;114469:848:0:o;85869:164::-;85800:5;;:30;;;-1:-1:-1;;;85800:30:0;;85819:10;85800:30;;;;;;-1:-1:-1;;;;;85800:5:0;;;;:18;;:30;;;;;;;;;;;;;;;:5;:30;;;5:2:-1;;;;30:1;27;20:12;5:2;85800:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;85800:30:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;85800:30:0;85792:57;;;;;-1:-1:-1;;;85792:57:0;;;;;;;;;;;;-1:-1:-1;;;85792:57:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;85942:20:0;;85934:63;;;;;-1:-1:-1;;;85934:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;86004:5;:23;;-1:-1:-1;;;;;;86004:23:0;-1:-1:-1;;;;;86004:23:0;;;;;;;;;;85869:164::o;116694:91::-;116742:42;116694:91;:::o;105662:33::-;;;-1:-1:-1;;;;;105662:33:0;;:::o;85585:20::-;;;-1:-1:-1;;;;;85585:20:0;;:::o;78015:72::-;;;-1:-1:-1;;;;;78015:72:0;;:::o;105387:28::-;;;;:::o;105476:46::-;;;;:::o;102140:37::-;;;;:::o;113067:87::-;106083:5;;-1:-1:-1;;;;;106083:5:0;106069:10;:19;;:58;;;106114:12;:10;:12::i;:::-;-1:-1:-1;;;;;106092:35:0;:10;-1:-1:-1;;;;;106092:35:0;;106069:58;:97;;;;106153:12;:10;:12::i;:::-;-1:-1:-1;;;;;106131:35:0;:10;-1:-1:-1;;;;;106131:35:0;;106069:97;106061:161;;;;-1:-1:-1;;;106061:161:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;113131:9;:17;113067:87::o;113300:781::-;85800:5;;:30;;;-1:-1:-1;;;85800:30:0;;85819:10;85800:30;;;;;;-1:-1:-1;;;;;85800:5:0;;;;:18;;:30;;;;;;;;;;;;;;;:5;:30;;;5:2:-1;;;;30:1;27;20:12;5:2;85800:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;85800:30:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;85800:30:0;85792:57;;;;;-1:-1:-1;;;85792:57:0;;;;;;;;;;;;-1:-1:-1;;;85792:57:0;;;;;;;;;;;;;;;113373:17;:15;:17::i;:::-;113424:19;;113401:20;;:42;:100;;;;-1:-1:-1;113461:10:0;;113454:43;;;-1:-1:-1;;;113454:43:0;;113491:4;113454:43;;;;;;113500:1;;-1:-1:-1;;;;;113461:10:0;;113454:28;;:43;;;;;;;;;;;;;;113461:10;113454:43;;;5:2:-1;;;;30:1;27;20:12;5:2;113454:43:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;113454:43:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;113454:43:0;:47;113401:100;:143;;;;-1:-1:-1;113512:18:0;;-1:-1:-1;;;;;113512:18:0;:32;;113401:143;113397:651;;;113561:12;113576:127;113595:45;113619:20;;113595:19;;:23;;:45;;;;:::i;:::-;113658:10;;113651:43;;;-1:-1:-1;;;113651:43:0;;113688:4;113651:43;;;;;;-1:-1:-1;;;;;113658:10:0;;;;113651:28;;:43;;;;;;;;;;;;;;;113658:10;113651:43;;;5:2:-1;;;;30:1;27;20:12;5:2;113651:43:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;113651:43:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;113651:43:0;113576:8;:127::i;:::-;113743:18;;113719:10;;113561:142;;-1:-1:-1;113712:53:0;;-1:-1:-1;;;;;113719:10:0;;;;113743:18;;113712:53;:30;:53;:::i;:::-;113805:18;;113781:10;;113774:56;;-1:-1:-1;;;;;113781:10:0;;;;113805:18;113825:4;113774:56;:30;:56;:::i;:::-;113944:18;;113925:53;;;-1:-1:-1;;;113925:53:0;;;;;;;;;;-1:-1:-1;;;;;113944:18:0;;;;113925:47;;:53;;;;;113944:18;;113925:53;;;;;;;;113944:18;;113925:53;;;5:2:-1;;;;30:1;27;20:12;5:2;113925:53:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;114010:20:0;;:30;;-1:-1:-1;114010:20:0;-1:-1:-1;114035:4:0;114010:30;:24;:30;:::i;:::-;113987:20;:53;-1:-1:-1;113397:651:0;114054:21;:19;:21::i;115583:115::-;85800:5;;:30;;;-1:-1:-1;;;85800:30:0;;85819:10;85800:30;;;;;;-1:-1:-1;;;;;85800:5:0;;;;:18;;:30;;;;;;;;;;;;;;;:5;:30;;;5:2:-1;;;;30:1;27;20:12;5:2;85800:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;85800:30:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;85800:30:0;85792:57;;;;;-1:-1:-1;;;85792:57:0;;;;;;;;;;;;-1:-1:-1;;;85792:57:0;;;;;;;;;;;;;;;115662:18;:30;115583:115::o;108008:352::-;106083:5;;-1:-1:-1;;;;;106083:5:0;106069:10;:19;;:58;;;106114:12;:10;:12::i;:::-;-1:-1:-1;;;;;106092:35:0;:10;-1:-1:-1;;;;;106092:35:0;;106069:58;:97;;;;106153:12;:10;:12::i;:::-;-1:-1:-1;;;;;106131:35:0;:10;-1:-1:-1;;;;;106131:35:0;;106069:97;106061:161;;;;-1:-1:-1;;;106061:161:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;108090:31;;;;108086:117;;;108132:17;:15;:17::i;:::-;108086:117;;;108172:23;:21;:23::i;:::-;108213:10;;:35;;;-1:-1:-1;;;108213:35:0;;108242:4;108213:35;;;;;;108251:1;;-1:-1:-1;;;;;108213:10:0;;:20;;:35;;;;;;;;;;;;;;:10;:35;;;5:2:-1;;;;30:1;27;20:12;5:2;108213:35:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;108213:35:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;108213:35:0;:39;108209:146;;;108304:5;;108311:10;;:35;;;-1:-1:-1;;;108311:35:0;;108340:4;108311:35;;;;;;108263:84;;-1:-1:-1;;;;;108304:5:0;;;;108311:10;;:20;;:35;;;;;;;;;;;;;;:10;:35;;;5:2:-1;;;;30:1;27;20:12;5:2;108311:35:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;108311:35:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;108311:35:0;108278:10;;-1:-1:-1;;;;;108278:10:0;;108263:84;;:40;:84;:::i;107284:107::-;107381:4;107284:107;:::o;115888:202::-;85800:5;;:30;;;-1:-1:-1;;;85800:30:0;;85819:10;85800:30;;;;;;-1:-1:-1;;;;;85800:5:0;;;;:18;;:30;;;;;;;;;;;;;;;:5;:30;;;5:2:-1;;;;30:1;27;20:12;5:2;85800:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;85800:30:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;85800:30:0;85792:57;;;;;-1:-1:-1;;;85792:57:0;;;;;;;;;;;;-1:-1:-1;;;85792:57:0;;;;;;;;;;;;;;;115995:3;115982:9;:16;;115974:66;;;;-1:-1:-1;;;115974:66:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;116047:25;:37;115888:202::o;105064:28::-;;;-1:-1:-1;;;;;105064:28:0;;:::o;109220:553::-;106083:5;;-1:-1:-1;;;;;106083:5:0;106069:10;:19;;:58;;;106114:12;:10;:12::i;:::-;-1:-1:-1;;;;;106092:35:0;:10;-1:-1:-1;;;;;106092:35:0;;106069:58;:97;;;;106153:12;:10;:12::i;:::-;-1:-1:-1;;;;;106131:35:0;:10;-1:-1:-1;;;;;106131:35:0;;106069:97;106061:161;;;;-1:-1:-1;;;106061:161:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;109343:10;;:35;;;-1:-1:-1;;;109343:35:0;;109372:4;109343:35;;;;;;-1:-1:-1;;;;;109343:10:0;;;;:20;;:35;;;;;;;;;;;;;;;:10;:35;;;5:2:-1;;;;30:1;27;20:12;5:2;109343:35:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;109343:35:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;109343:35:0;109323:55;;109319:158;;109430:5;;109404:10;;109389:65;;-1:-1:-1;;;;;109404:10:0;;;;109430:5;109437:16;109389:65;:40;:65;:::i;:::-;109463:7;;109319:158;109520:35;109538:16;109520:17;:35::i;:::-;109681:5;;109655:10;;109640:65;;-1:-1:-1;;;;;109655:10:0;;;;109681:5;109688:16;109640:65;:40;:65;:::i;:::-;109746:21;:19;:21::i;116213:83::-;85800:5;;:30;;;-1:-1:-1;;;85800:30:0;;85819:10;85800:30;;;;;;-1:-1:-1;;;;;85800:5:0;;;;:18;;:30;;;;;;;;;;;;;;;:5;:30;;;5:2:-1;;;;30:1;27;20:12;5:2;85800:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;85800:30:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;85800:30:0;85792:57;;;;;-1:-1:-1;;;85792:57:0;;;;;;;;;;;;-1:-1:-1;;;85792:57:0;;;;;;;;;;;;;;;116276:5;:14;116213:83::o;105265:35::-;;;;:::o;116603:86::-;116646:42;116603:86;:::o;105420:51::-;;;;;;:::o;86622:90::-;86665:7;86688:5;;;;;;;;;-1:-1:-1;;;;;86688:5:0;-1:-1:-1;;;;;86688:16:0;;:18;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;102226:26:0;;;-1:-1:-1;;;;;102226:26:0;;:::o;105143:20::-;;;-1:-1:-1;;;;;105143:20:0;;:::o;14627:176::-;14736:58;;;-1:-1:-1;;;;;14736:58:0;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;14736:58:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;14710:85:0;;14729:5;;14710:18;:85::i;1762:181::-;1820:7;1852:5;;;1876:6;;;;1868:46;;;;;-1:-1:-1;;;1868:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;1934:1;-1:-1:-1;1762:181:0;;;;;:::o;2218:136::-;2276:7;2303:43;2307:1;2310;2303:43;;;;;;;;;;;;;;;;;:3;:43::i;78936:466::-;23535:11;;-1:-1:-1;;;23535:11:0;;;;23527:55;;;;;-1:-1:-1;;;23527:55:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;23660:11;:19;;-1:-1:-1;;;;23660:19:0;;;79065:10;;;:35;;;-1:-1:-1;;;79065:35:0;;79094:4;79065:35;;;;;;;;23674:5;;-1:-1:-1;;;;;79065:10:0;;;;:20;;:35;;;;;;;;;;;;;;:10;:35;;;5:2:-1;;;;30:1;27;20:12;5:2;79065:35:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;79065:35:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;79065:35:0;;-1:-1:-1;79139:22:0;;;79135:125;;;-1:-1:-1;79182:12:0;79135:125;79293:5;;79307:22;;;-1:-1:-1;;;79307:22:0;;;;;;;;;;-1:-1:-1;;;;;79293:5:0;;;;;;79307:13;;:22;;;;;79266:10;;79307:22;;;;;;;79266:10;79293:5;79307:22;;;5:2:-1;;;;30:1;27;20:12;5:2;79307:22:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;79307:22:0;;;;79366:6;;;;;;;;;-1:-1:-1;;;;;79366:6:0;-1:-1:-1;;;;;79350:29:0;;79386:7;79350:46;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;79350:46:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;23840:11:0;:18;;-1:-1:-1;;;;23840:18:0;-1:-1:-1;;;23840:18:0;;;-1:-1:-1;;;;;;78936:466:0:o;3134:471::-;3192:7;3437:6;3433:47;;-1:-1:-1;3467:1:0;3460:8;;3433:47;3504:5;;;3508:1;3504;:5;:1;3528:5;;;;;:10;3520:56;;;;-1:-1:-1;;;3520:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4073:132;4131:7;4158:39;4162:1;4165;4158:39;;;;;;;;;;;;;;;;;:3;:39::i;80533:300::-;80661:6;;:31;;;-1:-1:-1;;;80661:31:0;;;;;;;;;;80644:14;;-1:-1:-1;;;;;80661:6:0;;:13;;:31;;;;;;;;;;;;;;80644:14;80661:6;:31;;;5:2:-1;;;;30:1;27;20:12;5:2;80661:31:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;80661:31:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;80661:31:0;;-1:-1:-1;80707:11:0;;80699:37;;;;;-1:-1:-1;;;80699:37:0;;;;;;;;;;;;-1:-1:-1;;;80699:37:0;;;;;;;;;;;;;;;80770:5;;80784:43;;;-1:-1:-1;;;80784:43:0;;;;-1:-1:-1;;;;;80770:5:0;;;;;;80784:12;;80803:21;;80784:43;;;;;80743:10;;80784:43;;;;;;;;80803:21;80770:5;80784:43;;;5:2:-1;;;;30:1;27;20:12;5:2;80784:43:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;80784:43:0;;;;;80533:300;;;:::o;111314:1028::-;111373:4;;:29;;;-1:-1:-1;;;111373:29:0;;111396:4;111373:29;;;;;;111355:15;;-1:-1:-1;;;;;111373:4:0;;:14;;:29;;;;;;;;;;;;;;:4;:29;;;5:2:-1;;;;30:1;27;20:12;5:2;111373:29:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;111373:29:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;111373:29:0;111423:9;;111373:29;;-1:-1:-1;111413:19:0;;;:35;;-1:-1:-1;111436:12:0;;111413:35;111409:93;;;111464:15;;;;;;;111488:7;;;111409:93;111618:34;111644:7;111618:25;:34::i;:::-;111671:4;;:29;;;-1:-1:-1;;;111671:29:0;;111694:4;111671:29;;;;;;-1:-1:-1;;;;;111671:4:0;;;;:14;;:29;;;;;;;;;;;;;;;:4;:29;;;5:2:-1;;;;30:1;27;20:12;5:2;111671:29:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;111671:29:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;111671:29:0;111714:19;;;;;;;;111671:29;;-1:-1:-1;111714:19:0;;;;;;111671:29;111714:19;;;111893:15;;111866:4;;111843:1;;111851:62;;-1:-1:-1;;;;;111866:4:0;;;;111893:15;111820:20;111851:62;:33;:62;:::i;:::-;111962:15;;111935:4;;111920:68;;-1:-1:-1;;;;;111935:4:0;;;;111962:15;111980:7;111920:68;:33;:68;:::i;:::-;112019:16;;;112033:1;112019:16;;;111995:21;112019:16;;;;;111995:21;112019:16;;;;;105:10:-1;112019:16:0;88:34:-1;-1:-1;;112060:4:0;;112042:7;;;;-1:-1:-1;;;;;;112060:4:0;;112042:7;;-1:-1:-1;112060:4:0;;112042:7;;;;-1:-1:-1;;;;;112042:23:0;;;:7;;;;;;;;;:23;112090:10;;112072:7;;112090:10;;;112072:4;;112090:10;;112072:7;;;;;;-1:-1:-1;;;;;112072:29:0;;;:7;;;;;;;;;;:29;;;;112131:10;;:35;;;-1:-1:-1;;;112131:35:0;;112160:4;112131:35;;;;;;112110:18;;112131:10;;;;;:20;;:35;;;;;;;;;;:10;:35;;;5:2:-1;;;;30:1;27;20:12;5:2;112131:35:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;112131:35:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;112131:35:0;112192:15;;112173:163;;-1:-1:-1;;;112173:163:0;;;;;;;;;;;;;;112300:4;112173:163;;;;;;112314:15;112173:163;;;;;;;;;;;;;;;;;;;;;112131:35;;-1:-1:-1;;;;;;112192:15:0;;;;112173:60;;112242:7;;112258:12;;112279:4;;112300;112314:15;112173:163;;;;;;112131:35;112173:163;;;;;;;;112192:15;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;112173:163:0;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;112173:163:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;112173:163:0;;;;;;39:16:-1;36:1;17:17;2:54;101:4;112173:163:0;80:15:-1;;;-1:-1;;76:31;65:43;;120:4;113:20;13:2;5:11;;2:2;;;29:1;26;19:12;2:2;112173:163:0;;;;;;;;;;;;;19:11:-1;14:3;11:20;8:2;;;44:1;41;34:12;8:2;62:21;;;;123:4;114:14;;138:31;;;135:2;;;182:1;179;172:12;135:2;219:3;213:10;331:9;325:2;311:12;307:21;289:16;285:44;282:59;261:11;247:12;244:29;233:116;230:2;;;362:1;359;352:12;230:2;373:25;;-1:-1;112173:163:0;;421:4:-1;412:14;;;;112173:163:0;;;;;412:14:-1;112173:163:0;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;112173:163:0;;;;;;;;;;;;111314:1028;;;;:::o;108472:213::-;108540:18;;;;108536:122;;;108569:11;:9;:11::i;:::-;108589:15;:13;:15::i;:::-;108536:122;;;108632:18;;;;;;;108536:122;108664:15;:13;:15::i;14811:204::-;14938:68;;;-1:-1:-1;;;;;14938:68:0;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;14938:68:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;14912:95:0;;14931:5;;14912:18;:95::i;424:106::-;482:7;513:1;509;:5;:13;;521:1;509:13;;;-1:-1:-1;517:1:0;;424:106;-1:-1:-1;424:106:0:o;15023:621::-;15393:10;;;15392:62;;-1:-1:-1;15409:39:0;;;-1:-1:-1;;;15409:39:0;;15433:4;15409:39;;;;-1:-1:-1;;;;;15409:39:0;;;;;;;;;:15;;;;;;:39;;;;;;;;;;;;;;;:15;:39;;;5:2:-1;;;;30:1;27;20:12;5:2;15409:39:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;15409:39:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;15409:39:0;:44;15392:62;15384:152;;;;-1:-1:-1;;;15384:152:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15573:62;;;-1:-1:-1;;;;;15573:62:0;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;15573:62:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;15547:89:0;;15566:5;;15547:18;:89::i;108691:523::-;108769:20;;:25;108761:74;;;;-1:-1:-1;;;108761:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;108846:18;;;;108842:122;;;108875:11;:9;:11::i;:::-;108895:15;:13;:15::i;:::-;108842:122;;;108938:18;;;;;;;108842:122;109004:6;;:41;;;-1:-1:-1;;;109004:41:0;;109039:4;109004:41;;;;;;108970:31;;-1:-1:-1;;;;;109004:6:0;;:26;;:41;;;;;;;;;;;;;;108970:31;109004:6;:41;;;5:2:-1;;;;30:1;27;20:12;5:2;109004:41:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;109004:41:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;109004:41:0;109086:6;;:42;;;-1:-1:-1;;;109086:42:0;;109122:4;109086:42;;;;;;109004:41;;-1:-1:-1;109052:31:0;;-1:-1:-1;;;;;109086:6:0;;;;:27;;:42;;;;;109004:41;;109086:42;;;;;;;;109052:31;109086:6;:42;;;5:2:-1;;;;30:1;27;20:12;5:2;109086:42:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;109086:42:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;109086:42:0;;-1:-1:-1;109137:71:0;109155:52;:23;109086:42;109155:52;:27;:52;:::i;:::-;110726:6;;:16;;;-1:-1:-1;;;110726:16:0;;;;110746;;-1:-1:-1;;;;;110726:6:0;;:14;;:16;;;;;;;;;;;;;;:6;:16;;;5:2:-1;;;;30:1;27;20:12;5:2;110726:16:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;110726:16:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;110726:16:0;:36;;110710:104;;;;-1:-1:-1;;;110710:104:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;110821:15;:13;:15::i;:::-;110851:10;;:35;;;-1:-1:-1;;;110851:35:0;;110880:4;110851:35;;;;;;110890:16;;-1:-1:-1;;;;;110851:10:0;;:20;;:35;;;;;;;;;;;;;;:10;:35;;;5:2:-1;;;;30:1;27;20:12;5:2;110851:35:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;110851:35:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;110851:35:0;:55;;110843:114;;;;-1:-1:-1;;;110843:114:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;110641:322;:::o;16666:1114::-;17270:27;17278:5;-1:-1:-1;;;;;17270:25:0;;:27::i;:::-;17262:71;;;;;-1:-1:-1;;;17262:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;17407:12;17421:23;17456:5;-1:-1:-1;;;;;17448:19:0;17468:4;17448:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;17448:25:0;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;17406:67:0;;;;17492:7;17484:52;;;;;-1:-1:-1;;;17484:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17553:17;;:21;17549:224;;17695:10;17684:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;17684:30:0;17676:85;;;;-1:-1:-1;;;17676:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2691:192;2777:7;2813:12;2805:6;;;;2797:29;;;;-1:-1:-1;;;2797:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;2797:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2849:5:0;;;2691:192::o;4735:345::-;4821:7;4923:12;4916:5;4908:28;;;;-1:-1:-1;;;4908:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;4908:28:0;;4947:9;4963:1;4959;:5;;;;;;;4735:345;-1:-1:-1;;;;;4735:345:0:o;102817:581::-;102896:18;;102892:501;;102925:17;102945:72;102992:24;;102945:42;102964:22;;102945:14;:18;;:42;;;;:::i;:72::-;103031:61;;;;;;;;;;;;103076:15;103031:61;;;;;;102925:92;;-1:-1:-1;103031:61:0;;;;;;;;;;103101:48;103133:12;:10;:12::i;:::-;103108:11;;-1:-1:-1;;;;;103108:11:0;;103147:1;103101:48;:31;:48;:::i;:::-;103158:56;103190:12;:10;:12::i;:::-;103165:11;;-1:-1:-1;;;;;103165:11:0;;103204:9;103158:56;:31;:56;:::i;:::-;103243:12;:10;:12::i;:::-;103277:11;;103231:86;;;-1:-1:-1;;;103231:86:0;;-1:-1:-1;;;;;103277:11:0;;;103231:86;;;;;;;;;;;;:35;;;;;;;:86;;;;;103277:11;;103231:86;;;;;;;;103277:11;103231:35;:86;;;5:2:-1;;;;30:1;27;20:12;5:2;103231:86:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;103231:86:0;;;;102892:501;;;;103345:40;;;103363:1;103345:40;;;;;;;103369:15;103345:40;;;;;;;;;;;;;;;102817:581;:::o;110404:176::-;110445:129;110479:25;;110513:27;;110549:18;;110445:25;:129::i;11656:619::-;11716:4;12184:20;;12027:66;12224:23;;;;;;:42;;-1:-1:-1;12251:15:0;;;12224:42;12216:51;11656:619;-1:-1:-1;;;;11656:619:0:o;82731:1335::-;82962:6;;:16;;;-1:-1:-1;;;82962:16:0;;;;82942:17;;-1:-1:-1;;;;;82962:6:0;;:14;;:16;;;;;;;;;;;;;;:6;:16;;;5:2:-1;;;;30:1;27;20:12;5:2;82962:16:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;82962:16:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;82962:16:0;83039:6;;:41;;;-1:-1:-1;;;83039:41:0;;83074:4;83039:41;;;;;;82962:16;;-1:-1:-1;83020:16:0;;-1:-1:-1;;;;;83039:6:0;;;;:26;;:41;;;;;82962:16;;83039:41;;;;;;;;83020:16;83039:6;:41;;;5:2:-1;;;;30:1;27;20:12;5:2;83039:41:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;83039:41:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;83039:41:0;83141:6;;:42;;;-1:-1:-1;;;83141:42:0;;83177:4;83141:42;;;;;;83039:41;;-1:-1:-1;83122:16:0;;-1:-1:-1;;;;;83141:6:0;;;;:27;;:42;;;;;83039:41;;83141:42;;;;;;;;83122:16;83141:6;:42;;;5:2:-1;;;;30:1;27;20:12;5:2;83141:42:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;83141:42:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;83141:42:0;;-1:-1:-1;83192:769:0;83210:18;83199:8;:29;83192:769;;;83239:26;83268:140;83382:25;83268:99;83334:32;83382:25;83364:1;83334:32;:29;:32;:::i;:::-;83268:51;:8;83291:27;83268:51;:22;:51;:::i;:140::-;83239:169;-1:-1:-1;83477:20:0;83500:32;:8;83239:169;83500:32;:12;:32;:::i;:::-;83477:55;;83541:57;83564:33;83573:12;83587:9;83564:8;:33::i;:::-;83541:22;:57::i;:::-;83674:10;;;:35;;;-1:-1:-1;;;83674:35:0;;83703:4;83674:35;;;;;;;;83656:15;;-1:-1:-1;;;;;83674:10:0;;;;:20;;:35;;;;;;;;;;;;;;:10;:35;;;5:2:-1;;;;30:1;27;20:12;5:2;83674:35:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;83674:35:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;83674:35:0;;-1:-1:-1;83718:41:0;83731:27;83740:8;83674:35;83731:8;:27::i;:::-;83718:12;:41::i;:::-;83814:6;;;;;;;;;-1:-1:-1;;;;;83814:6:0;-1:-1:-1;;;;;83814:14:0;;:16;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;83814:16:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;83814:16:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;83814:16:0;83850:6;;:42;;;-1:-1:-1;;;83850:42:0;;83886:4;83850:42;;;;;;83814:16;;-1:-1:-1;;;;;;83850:6:0;;;;:27;;:42;;;;;83814:16;;83850:42;;;;;;;;:6;;:42;;;5:2:-1;;;;30:1;27;20:12;5:2;83850:42:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;83850:42:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;83850:42:0;83912:6;;:41;;;-1:-1:-1;;;83912:41:0;;83947:4;83912:41;;;;;;83850:42;;-1:-1:-1;;;;;;83912:6:0;;;;:26;;:41;;;;;83850:42;;83912:41;;;;;;;;:6;;:41;;;5:2:-1;;;;30:1;27;20:12;5:2;83912:41:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;83912:41:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;83912:41:0;;-1:-1:-1;83192:769:0;;-1:-1:-1;;;83192:769:0;;84007:53;84030:29;84039:9;84050:8;84030;:29::i;84007:53::-;82731:1335;;;;;;:::o;81859:258::-;81937:20;;81933:179;;81968:35;81986:16;81968:17;:35::i;:::-;82039:5;;82055:43;;;-1:-1:-1;;;82055:43:0;;;;-1:-1:-1;;;;;82039:5:0;;;;;;82055:12;;82074:21;;82055:43;;;;;82012:10;;82055:43;;;;;;;;82074:21;82039:5;82055:43;;;5:2:-1;;;;30:1;27;20:12;5:2;82055:43:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;82055:43:0;;;;;81933:179;81859:258;:::o;81178:225::-;81269:5;;81283:31;;;-1:-1:-1;;;81283:31:0;;;;;;;;;;-1:-1:-1;;;;;81269:5:0;;;;;;81283:13;;:31;;;;;81242:10;;81283:31;;;;;;;81242:10;81269:5;81283:31;;;5:2:-1;;;;30:1;27;20:12;5:2;81283:31:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;81283:31:0;;;;81351:6;;;;;;;;;-1:-1:-1;;;;;81351:6:0;-1:-1:-1;;;;;81335:36:0;;81378:16;81335:62;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;81646:158:0;81719:20;;81715:84;;81750:6;;:41;;;-1:-1:-1;;;81750:41:0;;;;;;;;;;-1:-1:-1;;;;;81750:6:0;;;;:23;;:41;;;;;;;;;;;;;;;:6;;:41;;;5:2:-1;;;;30:1;27;20:12;5:2;81750:41:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;81750:41:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12
Swarm Source
bzzr://54baa74ab1a0cd22bbac6c26a1ea195f428957b01c05a4eff7a2c6124b24eb84
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.