Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 305 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Pause | 13317132 | 1228 days ago | IN | 0 ETH | 0.00370002 | ||||
Withdraw | 13077385 | 1265 days ago | IN | 0 ETH | 0.00358357 | ||||
Withdraw | 12986667 | 1279 days ago | IN | 0 ETH | 0.01634161 | ||||
Withdraw | 12940328 | 1287 days ago | IN | 0 ETH | 0.01346348 | ||||
Deposit | 12871388 | 1297 days ago | IN | 0 ETH | 0.00257509 | ||||
Withdraw | 12733481 | 1319 days ago | IN | 0 ETH | 0.00368849 | ||||
Deposit | 12717082 | 1322 days ago | IN | 0 ETH | 0.00090871 | ||||
Withdraw | 12691269 | 1326 days ago | IN | 0 ETH | 0.01090626 | ||||
Withdraw | 12686133 | 1326 days ago | IN | 0 ETH | 0.01121536 | ||||
Deposit | 12680186 | 1327 days ago | IN | 0 ETH | 0.00442037 | ||||
Withdraw | 12679432 | 1327 days ago | IN | 0 ETH | 0.01213723 | ||||
Withdraw | 12678696 | 1328 days ago | IN | 0 ETH | 0.01842782 | ||||
Withdraw | 12677163 | 1328 days ago | IN | 0 ETH | 0.01121922 | ||||
Withdraw | 12675073 | 1328 days ago | IN | 0 ETH | 0.00455054 | ||||
Withdraw | 12672373 | 1329 days ago | IN | 0 ETH | 0.00373986 | ||||
Withdraw | 12671244 | 1329 days ago | IN | 0 ETH | 0.00714674 | ||||
Withdraw | 12670425 | 1329 days ago | IN | 0 ETH | 0.00179483 | ||||
Withdraw | 12670224 | 1329 days ago | IN | 0 ETH | 0.00376078 | ||||
Withdraw | 12666688 | 1329 days ago | IN | 0 ETH | 0.00536317 | ||||
Withdraw | 12663637 | 1330 days ago | IN | 0 ETH | 0.00466671 | ||||
Withdraw | 12662824 | 1330 days ago | IN | 0 ETH | 0.00374437 | ||||
Withdraw | 12661800 | 1330 days ago | IN | 0 ETH | 0.00477124 | ||||
Withdraw | 12661521 | 1330 days ago | IN | 0 ETH | 0.00402337 | ||||
Withdraw | 12661500 | 1330 days ago | IN | 0 ETH | 0.00502569 | ||||
Withdraw | 12660702 | 1330 days ago | IN | 0 ETH | 0.00654475 |
Advanced mode: Intended for advanced users or developers and will display all Internal Transactions including zero value transfers. Name tag integration is not available in advanced view.
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
||||
---|---|---|---|---|---|---|---|
14933222 | 975 days ago | 0 ETH | |||||
13822804 | 1149 days ago | 0 ETH | |||||
13822804 | 1149 days ago | 0 ETH | |||||
13822804 | 1149 days ago | 0 ETH | |||||
13822804 | 1149 days ago | 0 ETH | |||||
13822804 | 1149 days ago | 0 ETH | |||||
13822804 | 1149 days ago | 0 ETH | |||||
13822804 | 1149 days ago | 0 ETH | |||||
13822804 | 1149 days ago | 0 ETH | |||||
13822804 | 1149 days ago | 0 ETH | |||||
13822804 | 1149 days ago | 0 ETH | |||||
13822804 | 1149 days ago | 0 ETH | |||||
13822804 | 1149 days ago | 0 ETH | |||||
13822804 | 1149 days ago | 0 ETH | |||||
13822804 | 1149 days ago | 0 ETH | |||||
13822804 | 1149 days ago | 0 ETH | |||||
13822804 | 1149 days ago | 0 ETH | |||||
13818283 | 1149 days ago | 0 ETH | |||||
13818283 | 1149 days ago | 0 ETH | |||||
13317132 | 1228 days ago | 0 ETH | |||||
13227752 | 1242 days ago | 0 ETH | |||||
13227752 | 1242 days ago | 0 ETH | |||||
13174969 | 1250 days ago | 0 ETH | |||||
13174969 | 1250 days ago | 0 ETH | |||||
13174969 | 1250 days ago | 0 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
VUSDC
Compiler Version
v0.8.3+commit.8d00100c
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.3; import "./VTokenBase.sol"; //solhint-disable no-empty-blocks contract VUSDC is VTokenBase { string public constant VERSION = "3.0.0"; // USDC = 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 constructor() VTokenBase("vUSDC Pool", "vUSDC", 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48) {} /// @dev Convert from 18 decimals to token defined decimals. function convertFrom18(uint256 _value) public pure override returns (uint256) { return _value / (10**12); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.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]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being 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 percentage 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. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor () { _status = _NOT_ENTERED; } /** * @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(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The defaut value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor (string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override 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. This is the value {ERC20} uses, unless this function is * overridden; * * 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 virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); _approve(sender, _msgSender(), currentAllowance - amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); _approve(_msgSender(), spender, currentAllowance - subtractedValue); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); _balances[sender] = senderBalance - amount; _balances[recipient] += amount; emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); _balances[account] = accountBalance - amount; _totalSupply -= amount; emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ 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); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./draft-IERC20Permit.sol"; import "../ERC20.sol"; import "../../../utils/cryptography/draft-EIP712.sol"; import "../../../utils/cryptography/ECDSA.sol"; import "../../../utils/Counters.sol"; /** * @dev Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. * * _Available since v3.4._ */ abstract contract ERC20Permit is ERC20, IERC20Permit, EIP712 { using Counters for Counters.Counter; mapping (address => Counters.Counter) private _nonces; // solhint-disable-next-line var-name-mixedcase bytes32 private immutable _PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); /** * @dev Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `"1"`. * * It's a good idea to use the same `name` that is defined as the ERC20 token name. */ constructor(string memory name) EIP712(name, "1") { } /** * @dev See {IERC20Permit-permit}. */ function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public virtual override { // solhint-disable-next-line not-rely-on-time require(block.timestamp <= deadline, "ERC20Permit: expired deadline"); bytes32 structHash = keccak256( abi.encode( _PERMIT_TYPEHASH, owner, spender, value, _useNonce(owner), deadline ) ); bytes32 hash = _hashTypedDataV4(structHash); address signer = ECDSA.recover(hash, v, r, s); require(signer == owner, "ERC20Permit: invalid signature"); _approve(owner, spender, value); } /** * @dev See {IERC20Permit-nonces}. */ function nonces(address owner) public view virtual override returns (uint256) { return _nonces[owner].current(); } /** * @dev See {IERC20Permit-DOMAIN_SEPARATOR}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view override returns (bytes32) { return _domainSeparatorV4(); } /** * @dev "Consume a nonce": return the current value and increment. * * _Available since v4.1._ */ function _useNonce(address owner) internal virtual returns (uint256 current) { Counters.Counter storage nonce = _nonces[owner]; current = nonce.current(); nonce.increment(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @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 IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { 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)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ 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) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _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. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "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"); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @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) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @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]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.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 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. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented or decremented by one. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { // Divide the signature in r, s and v variables bytes32 r; bytes32 s; uint8 v; // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. // solhint-disable-next-line no-inline-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } } else if (signature.length == 64) { // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. // solhint-disable-next-line no-inline-assembly assembly { let vs := mload(add(signature, 0x40)) r := mload(add(signature, 0x20)) s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } } else { revert("ECDSA: invalid signature length"); } return recover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. require(uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0, "ECDSA: invalid signature 's' value"); require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value"); // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); require(signer != address(0), "ECDSA: invalid signature"); return signer; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ECDSA.sol"; /** * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data. * * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible, * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding * they need in their contracts using a combination of `abi.encode` and `keccak256`. * * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA * ({_hashTypedDataV4}). * * The implementation of the domain separator was designed to be as efficient as possible while still properly updating * the chain id to protect against replay attacks on an eventual fork of the chain. * * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask]. * * _Available since v3.4._ */ abstract contract EIP712 { /* solhint-disable var-name-mixedcase */ // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to // invalidate the cached domain separator if the chain id changes. bytes32 private immutable _CACHED_DOMAIN_SEPARATOR; uint256 private immutable _CACHED_CHAIN_ID; bytes32 private immutable _HASHED_NAME; bytes32 private immutable _HASHED_VERSION; bytes32 private immutable _TYPE_HASH; /* solhint-enable var-name-mixedcase */ /** * @dev Initializes the domain separator and parameter caches. * * The meaning of `name` and `version` is specified in * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]: * * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol. * - `version`: the current major version of the signing domain. * * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart * contract upgrade]. */ constructor(string memory name, string memory version) { bytes32 hashedName = keccak256(bytes(name)); bytes32 hashedVersion = keccak256(bytes(version)); bytes32 typeHash = keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"); _HASHED_NAME = hashedName; _HASHED_VERSION = hashedVersion; _CACHED_CHAIN_ID = block.chainid; _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion); _TYPE_HASH = typeHash; } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { if (block.chainid == _CACHED_CHAIN_ID) { return _CACHED_DOMAIN_SEPARATOR; } else { return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION); } } function _buildDomainSeparator(bytes32 typeHash, bytes32 name, bytes32 version) private view returns (bytes32) { return keccak256( abi.encode( typeHash, name, version, block.chainid, address(this) ) ); } /** * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this * function returns the hash of the fully encoded EIP712 message for this domain. * * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example: * * ```solidity * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode( * keccak256("Mail(address to,string contents)"), * mailTo, * keccak256(bytes(mailContents)) * ))); * address signer = ECDSA.recover(digest, signature); * ``` */ function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) { return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.3; import "@openzeppelin/contracts/utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (governor) that can be granted exclusive access to * specific functions. * * By default, the governor account will be the one that deploys the contract. This * can later be changed with {transferGovernorship}. * */ contract Governed is Context { address public governor; address private proposedGovernor; event UpdatedGovernor(address indexed previousGovernor, address indexed proposedGovernor); /** * @dev Initializes the contract setting the deployer as the initial governor. */ constructor() { address msgSender = _msgSender(); governor = msgSender; emit UpdatedGovernor(address(0), msgSender); } /** * @dev Throws if called by any account other than the governor. */ modifier onlyGovernor { require(governor == _msgSender(), "caller-is-not-the-governor"); _; } /** * @dev Transfers governorship of the contract to a new account (`proposedGovernor`). * Can only be called by the current owner. */ function transferGovernorship(address _proposedGovernor) external onlyGovernor { //solhint-disable-next-line reason-string require(_proposedGovernor != address(0), "proposed-governor-is-zero-address"); proposedGovernor = _proposedGovernor; } /** * @dev Allows new governor to accept governorship of the contract. */ function acceptGovernorship() external { //solhint-disable-next-line reason-string require(proposedGovernor == _msgSender(), "caller-is-not-the-proposed-governor"); emit UpdatedGovernor(governor, proposedGovernor); governor = proposedGovernor; proposedGovernor = address(0); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.3; import "@openzeppelin/contracts/utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * */ contract Pausable is Context { event Paused(address account); event Shutdown(address account); event Unpaused(address account); event Open(address account); bool public paused; bool public stopEverything; modifier whenNotPaused() { require(!paused, "Pausable: paused"); _; } modifier whenPaused() { require(paused, "Pausable: not paused"); _; } modifier whenNotShutdown() { require(!stopEverything, "Pausable: shutdown"); _; } modifier whenShutdown() { require(stopEverything, "Pausable: not shutdown"); _; } /// @dev Pause contract operations, if contract is not paused. function _pause() internal virtual whenNotPaused { paused = true; emit Paused(_msgSender()); } /// @dev Unpause contract operations, allow only if contract is paused and not shutdown. function _unpause() internal virtual whenPaused whenNotShutdown { paused = false; emit Unpaused(_msgSender()); } /// @dev Shutdown contract operations, if not already shutdown. function _shutdown() internal virtual whenNotShutdown { stopEverything = true; paused = true; emit Shutdown(_msgSender()); } /// @dev Open contract operations, if contract is in shutdown state function _open() internal virtual whenShutdown { stopEverything = false; emit Open(_msgSender()); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.3; interface IAddressList { function add(address a) external returns (bool); function remove(address a) external returns (bool); function get(address a) external view returns (uint256); function contains(address a) external view returns (bool); function length() external view returns (uint256); function grantRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.3; interface IAddressListFactory { function ours(address a) external view returns (bool); function listCount() external view returns (uint256); function listAt(uint256 idx) external view returns (address); function createList() external returns (address listaddr); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.3; interface IStrategy { function rebalance() external; function sweepERC20(address _fromToken) external; function withdraw(uint256 _amount) external; function feeCollector() external view returns (address); function isReservedToken(address _token) external view returns (bool); function migrate(address _newStrategy) external; function token() external view returns (address); function totalValue() external view returns (uint256); function pool() external view returns (address); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.3; import "@openzeppelin/contracts/token/ERC20/extensions/draft-ERC20Permit.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "../Governed.sol"; import "../Pausable.sol"; import "../interfaces/bloq/IAddressList.sol"; import "../interfaces/bloq/IAddressListFactory.sol"; /// @title Holding pool share token // solhint-disable no-empty-blocks abstract contract PoolShareToken is ERC20Permit, Pausable, ReentrancyGuard, Governed { using SafeERC20 for IERC20; IERC20 public immutable token; IAddressList public immutable feeWhitelist; uint256 public constant MAX_BPS = 10_000; address public feeCollector; // fee collector address uint256 public withdrawFee; // withdraw fee for this pool event Deposit(address indexed owner, uint256 shares, uint256 amount); event Withdraw(address indexed owner, uint256 shares, uint256 amount); event UpdatedFeeCollector(address indexed previousFeeCollector, address indexed newFeeCollector); event UpdatedWithdrawFee(uint256 previousWithdrawFee, uint256 newWithdrawFee); constructor( string memory _name, string memory _symbol, address _token ) ERC20Permit(_name) ERC20(_name, _symbol) { token = IERC20(_token); IAddressListFactory factory = IAddressListFactory(0xded8217De022706A191eE7Ee0Dc9df1185Fb5dA3); IAddressList _feeWhitelist = IAddressList(factory.createList()); feeWhitelist = _feeWhitelist; } /** * @notice Update fee collector address for this pool * @param _newFeeCollector new fee collector address */ function updateFeeCollector(address _newFeeCollector) external onlyGovernor { require(_newFeeCollector != address(0), "fee-collector-address-is-zero"); require(feeCollector != _newFeeCollector, "same-fee-collector"); emit UpdatedFeeCollector(feeCollector, _newFeeCollector); feeCollector = _newFeeCollector; } /** * @notice Update withdraw fee for this pool * @dev Format: 1500 = 15% fee, 100 = 1% * @param _newWithdrawFee new withdraw fee */ function updateWithdrawFee(uint256 _newWithdrawFee) external onlyGovernor { require(feeCollector != address(0), "fee-collector-not-set"); require(_newWithdrawFee <= 10000, "withdraw-fee-limit-reached"); require(withdrawFee != _newWithdrawFee, "same-withdraw-fee"); emit UpdatedWithdrawFee(withdrawFee, _newWithdrawFee); withdrawFee = _newWithdrawFee; } /** * @notice Deposit ERC20 tokens and receive pool shares depending on the current share price. * @param _amount ERC20 token amount. */ function deposit(uint256 _amount) external virtual nonReentrant whenNotPaused { _deposit(_amount); } /** * @notice Deposit ERC20 tokens with permit aka gasless approval. * @param _amount ERC20 token amount. * @param _deadline The time at which signature will expire * @param _v The recovery byte of the signature * @param _r Half of the ECDSA signature pair * @param _s Half of the ECDSA signature pair */ function depositWithPermit( uint256 _amount, uint256 _deadline, uint8 _v, bytes32 _r, bytes32 _s ) external virtual nonReentrant whenNotPaused { IERC20Permit(address(token)).permit(_msgSender(), address(this), _amount, _deadline, _v, _r, _s); _deposit(_amount); } /** * @notice Withdraw collateral based on given shares and the current share price. * Withdraw fee, if any, will be deduced from given shares and transferred to feeCollector. * Burn remaining shares and return collateral. * @param _shares Pool shares. It will be in 18 decimals. */ function withdraw(uint256 _shares) external virtual nonReentrant whenNotShutdown { _withdraw(_shares); } /** * @notice Withdraw collateral based on given shares and the current share price. * @dev Burn shares and return collateral. No withdraw fee will be assessed * when this function is called. Only some white listed address can call this function. * @param _shares Pool shares. It will be in 18 decimals. */ function whitelistedWithdraw(uint256 _shares) external virtual nonReentrant whenNotShutdown { require(feeWhitelist.contains(_msgSender()), "not-a-white-listed-address"); _withdrawWithoutFee(_shares); } /** * @notice Transfer tokens to multiple recipient * @dev Address array and amount array are 1:1 and are in order. * @param _recipients array of recipient addresses * @param _amounts array of token amounts * @return true/false */ function multiTransfer(address[] memory _recipients, uint256[] memory _amounts) external returns (bool) { require(_recipients.length == _amounts.length, "input-length-mismatch"); for (uint256 i = 0; i < _recipients.length; i++) { require(transfer(_recipients[i], _amounts[i]), "multi-transfer-failed"); } return true; } /** * @notice Get price per share * @dev Return value will be in token defined decimals. */ function pricePerShare() public view returns (uint256) { if (totalSupply() == 0 || totalValue() == 0) { return convertFrom18(1e18); } return (totalValue() * 1e18) / totalSupply(); } /// @dev Convert from 18 decimals to token defined decimals. Default no conversion. function convertFrom18(uint256 _amount) public view virtual returns (uint256) { return _amount; } /// @dev Returns the token stored in the pool. It will be in token defined decimals. function tokensHere() public view virtual returns (uint256) { return token.balanceOf(address(this)); } /** * @dev Returns sum of token locked in other contracts and token stored in the pool. * Default tokensHere. It will be in token defined decimals. */ function totalValue() public view virtual returns (uint256); /** * @dev Hook that is called just before burning tokens. This withdraw collateral from withdraw queue * @param _share Pool share in 18 decimals */ function _beforeBurning(uint256 _share) internal virtual returns (uint256) {} /** * @dev Hook that is called just after burning tokens. * @param _amount Collateral amount in collateral token defined decimals. */ function _afterBurning(uint256 _amount) internal virtual returns (uint256) { token.safeTransfer(_msgSender(), _amount); return _amount; } /** * @dev Hook that is called just before minting new tokens. To be used i.e. * if the deposited amount is to be transferred from user to this contract. * @param _amount Collateral amount in collateral token defined decimals. */ function _beforeMinting(uint256 _amount) internal virtual { token.safeTransferFrom(_msgSender(), address(this), _amount); } /** * @dev Hook that is called just after minting new tokens. To be used i.e. * if the deposited amount is to be transferred to a different contract. * @param _amount Collateral amount in collateral token defined decimals. */ function _afterMinting(uint256 _amount) internal virtual {} /** * @dev Calculate shares to mint based on the current share price and given amount. * @param _amount Collateral amount in collateral token defined decimals. * @return share amount in 18 decimal */ function _calculateShares(uint256 _amount) internal view returns (uint256) { require(_amount != 0, "amount-is-0"); uint256 _share = ((_amount * 1e18) / pricePerShare()); return _amount > ((_share * pricePerShare()) / 1e18) ? _share + 1 : _share; } /// @dev Deposit incoming token and mint pool token i.e. shares. function _deposit(uint256 _amount) internal { uint256 _shares = _calculateShares(_amount); _beforeMinting(_amount); _mint(_msgSender(), _shares); _afterMinting(_amount); emit Deposit(_msgSender(), _shares, _amount); } /// @dev Burns shares and returns the collateral value, after fee, of those. function _withdraw(uint256 _shares) internal { if (withdrawFee == 0) { _withdrawWithoutFee(_shares); } else { require(_shares != 0, "share-is-0"); uint256 _fee = (_shares * withdrawFee) / MAX_BPS; uint256 _sharesAfterFee = _shares - _fee; uint256 _amountWithdrawn = _beforeBurning(_sharesAfterFee); // Recalculate proportional share on actual amount withdrawn uint256 _proportionalShares = _calculateShares(_amountWithdrawn); // Using convertFrom18() to avoid dust. // Pool share token is in 18 decimal and collatoral token decimal is <=18. // Anything less than 10**(18-collortalTokenDecimal) is dust. if (convertFrom18(_proportionalShares) < convertFrom18(_sharesAfterFee)) { // Recalculate shares to withdraw, fee and shareAfterFee _shares = (_proportionalShares * MAX_BPS) / (MAX_BPS - withdrawFee); _fee = _shares - _proportionalShares; _sharesAfterFee = _proportionalShares; } _burn(_msgSender(), _sharesAfterFee); _transfer(_msgSender(), feeCollector, _fee); _afterBurning(_amountWithdrawn); emit Withdraw(_msgSender(), _shares, _amountWithdrawn); } } /// @dev Burns shares and returns the collateral value of those. function _withdrawWithoutFee(uint256 _shares) internal { require(_shares != 0, "share-is-0"); uint256 _amountWithdrawn = _beforeBurning(_shares); uint256 _proportionalShares = _calculateShares(_amountWithdrawn); if (convertFrom18(_proportionalShares) < convertFrom18(_shares)) { _shares = _proportionalShares; } _burn(_msgSender(), _shares); _afterBurning(_amountWithdrawn); emit Withdraw(_msgSender(), _shares, _amountWithdrawn); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.3; import "./PoolShareToken.sol"; import "../interfaces/vesper/IStrategy.sol"; contract VTokenBase is PoolShareToken { using SafeERC20 for IERC20; struct StrategyConfig { bool active; uint256 interestFee; // Strategy fee uint256 debtRate; //strategy can not borrow large amount in short durations. Can set big limit for trusted strategy uint256 lastRebalance; uint256 totalDebt; // Total outstanding debt strategy has uint256 totalLoss; // Total loss that strategy has realized uint256 totalProfit; // Total gain that strategy has realized uint256 debtRatio; // % of asset allocation } mapping(address => StrategyConfig) public strategy; uint256 public totalDebtRatio; // this will keep some buffer amount in pool uint256 public totalDebt; address[] public strategies; address[] public withdrawQueue; IAddressList public keepers; IAddressList public maintainers; address internal constant WETH = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2; event StrategyAdded(address indexed strategy, uint256 interestFee, uint256 debtRatio, uint256 debtRate); event StrategyMigrated( address indexed oldStrategy, address indexed newStrategy, uint256 interestFee, uint256 debtRatio, uint256 debtRate ); event UpdatedInterestFee(address indexed strategy, uint256 interestFee); event UpdatedStrategyDebtParams(address indexed strategy, uint256 debtRatio, uint256 debtRate); event EarningReported( address indexed strategy, uint256 profit, uint256 loss, uint256 payback, uint256 strategyDebt, uint256 poolDebt, uint256 creditLine ); constructor( string memory name, string memory symbol, address _token // solhint-disable-next-line no-empty-blocks ) PoolShareToken(name, symbol, _token) {} modifier onlyKeeper() { require(keepers.contains(_msgSender()), "caller-is-not-a-keeper"); _; } modifier onlyMaintainer() { require(maintainers.contains(_msgSender()), "caller-is-not-maintainer"); _; } modifier onlyStrategy() { require(strategy[_msgSender()].active, "caller-is-not-active-strategy"); _; } ///////////////////////////// Only Keeper /////////////////////////////// function pause() external onlyKeeper { _pause(); } function unpause() external onlyKeeper { _unpause(); } function shutdown() external onlyKeeper { _shutdown(); } function open() external onlyKeeper { _open(); } /////////////////////////////////////////////////////////////////////////// ////////////////////////////// Only Governor ////////////////////////////// /** * @notice Create keeper and maintainer list * @dev Create lists and add governor into the list. * NOTE: Any function with onlyKeeper and onlyMaintainer modifier will not work until this function is called. * NOTE: Due to gas constraint this function cannot be called in constructor. */ function init() external onlyGovernor { require(address(keepers) == address(0), "list-already-created"); IAddressListFactory _factory = IAddressListFactory(0xded8217De022706A191eE7Ee0Dc9df1185Fb5dA3); keepers = IAddressList(_factory.createList()); maintainers = IAddressList(_factory.createList()); // List creator i.e. governor can do job of keeper and maintainer. keepers.add(governor); maintainers.add(governor); } /** * @notice Add given address in provided address list. * @dev Use it to add keeper in keepers list and to add address in feeWhitelist * @param _listToUpdate address of AddressList contract. * @param _addressToAdd address which we want to add in AddressList. */ function addInList(address _listToUpdate, address _addressToAdd) external onlyKeeper { require(IAddressList(_listToUpdate).add(_addressToAdd), "add-in-list-failed"); } /** * @notice Remove given address from provided address list. * @dev Use it to remove keeper from keepers list and to remove address from feeWhitelist * @param _listToUpdate address of AddressList contract. * @param _addressToRemove address which we want to remove from AddressList. */ function removeFromList(address _listToUpdate, address _addressToRemove) external onlyKeeper { require(IAddressList(_listToUpdate).remove(_addressToRemove), "remove-from-list-failed"); } /// @dev Add strategy function addStrategy( address _strategy, uint256 _interestFee, uint256 _debtRatio, uint256 _debtRate ) public onlyGovernor { require(_strategy != address(0), "strategy-address-is-zero"); require(!strategy[_strategy].active, "strategy-already-added"); totalDebtRatio = totalDebtRatio + _debtRatio; require(totalDebtRatio <= MAX_BPS, "totalDebtRatio-above-max_bps"); require(_interestFee <= MAX_BPS, "interest-fee-above-max_bps"); StrategyConfig memory newStrategy = StrategyConfig({ active: true, interestFee: _interestFee, debtRatio: _debtRatio, totalDebt: 0, totalProfit: 0, totalLoss: 0, debtRate: _debtRate, lastRebalance: block.number }); strategy[_strategy] = newStrategy; strategies.push(_strategy); withdrawQueue.push(_strategy); emit StrategyAdded(_strategy, _interestFee, _debtRatio, _debtRate); } function migrateStrategy(address _old, address _new) external onlyGovernor { require(_new != address(0), "new-address-is-zero"); require(_old != address(0), "old-address-is-zero"); require(IStrategy(_new).pool() == address(this), "not-valid-new-strategy"); require(IStrategy(_old).pool() == address(this), "not-valid-old-strategy"); require(strategy[_old].active, "strategy-already-migrated"); require(!strategy[_new].active, "strategy-already-added"); StrategyConfig memory _newStrategy = StrategyConfig({ active: true, interestFee: strategy[_old].interestFee, debtRatio: strategy[_old].debtRatio, totalDebt: strategy[_old].totalDebt, totalProfit: 0, totalLoss: 0, debtRate: strategy[_old].debtRate, lastRebalance: strategy[_old].lastRebalance }); strategy[_old].debtRatio = 0; strategy[_old].totalDebt = 0; strategy[_old].debtRate = 0; strategy[_old].active = false; strategy[_new] = _newStrategy; IStrategy(_old).migrate(_new); // Strategies and withdrawQueue has same length but we still want // to iterate over them in different loop. for (uint256 i = 0; i < strategies.length; i++) { if (strategies[i] == _old) { strategies[i] = _new; break; } } for (uint256 i = 0; i < withdrawQueue.length; i++) { if (withdrawQueue[i] == _old) { withdrawQueue[i] = _new; break; } } emit StrategyMigrated( _old, _new, strategy[_new].interestFee, strategy[_new].debtRatio, strategy[_new].debtRate ); } function updateInterestFee(address _strategy, uint256 _interestFee) external onlyGovernor { require(_strategy != address(0), "strategy-address-is-zero"); require(strategy[_strategy].active, "strategy-not-active"); require(_interestFee <= MAX_BPS, "interest-fee-above-max_bps"); strategy[_strategy].interestFee = _interestFee; emit UpdatedInterestFee(_strategy, _interestFee); } /** * @dev Update debt ratio. A strategy is retired when debtRatio is 0 */ function updateDebtRatio(address _strategy, uint256 _debtRatio) external onlyMaintainer { require(strategy[_strategy].active, "strategy-not-active"); totalDebtRatio = totalDebtRatio - strategy[_strategy].debtRatio + _debtRatio; require(totalDebtRatio <= MAX_BPS, "totalDebtRatio-above-max_bps"); strategy[_strategy].debtRatio = _debtRatio; emit UpdatedStrategyDebtParams(_strategy, _debtRatio, strategy[_strategy].debtRate); } /** * @dev Update debtRate per block. */ function updateDebtRate(address _strategy, uint256 _debtRate) external onlyKeeper { require(strategy[_strategy].active, "strategy-not-active"); strategy[_strategy].debtRate = _debtRate; emit UpdatedStrategyDebtParams(_strategy, strategy[_strategy].debtRatio, _debtRate); } /// @dev update withdrawal queue function updateWithdrawQueue(address[] memory _withdrawQueue) external onlyMaintainer { uint256 _length = _withdrawQueue.length; require(_length > 0, "withdrawal-queue-blank"); require(_length == withdrawQueue.length && _length == strategies.length, "incorrect-withdraw-queue-length"); for (uint256 i = 0; i < _length; i++) { require(strategy[_withdrawQueue[i]].active, "invalid-strategy"); } withdrawQueue = _withdrawQueue; } /////////////////////////////////////////////////////////////////////////// /** @dev Strategy call this in regular interval. @param _profit yield generated by strategy. Strategy get performance fee on this amount @param _loss Reduce debt ,also reduce debtRatio, increase loss in record. @param _payback strategy willing to payback outstanding above debtLimit. no performance fee on this amount. when governance has reduced debtRatio of strategy, strategy will report profit and payback amount separately. */ function reportEarning( uint256 _profit, uint256 _loss, uint256 _payback ) external onlyStrategy { require(token.balanceOf(_msgSender()) >= (_profit + _payback), "insufficient-balance-in-strategy"); if (_loss != 0) { _reportLoss(_msgSender(), _loss); } uint256 _overLimitDebt = _excessDebt(_msgSender()); uint256 _actualPayback = _min(_overLimitDebt, _payback); if (_actualPayback != 0) { strategy[_msgSender()].totalDebt -= _actualPayback; totalDebt -= _actualPayback; } uint256 _creditLine = _availableCreditLimit(_msgSender()); if (_creditLine != 0) { strategy[_msgSender()].totalDebt += _creditLine; totalDebt += _creditLine; } uint256 _totalPayback = _profit + _actualPayback; if (_totalPayback < _creditLine) { token.safeTransfer(_msgSender(), _creditLine - _totalPayback); } else if (_totalPayback > _creditLine) { token.safeTransferFrom(_msgSender(), address(this), _totalPayback - _creditLine); } if (_profit != 0) { strategy[_msgSender()].totalProfit += _profit; _transferInterestFee(_profit); } emit EarningReported( _msgSender(), _profit, _loss, _actualPayback, strategy[_msgSender()].totalDebt, totalDebt, _creditLine ); } /** * @dev Transfer given ERC20 token to feeCollector * @param _fromToken Token address to sweep */ function sweepERC20(address _fromToken) external virtual onlyKeeper { require(_fromToken != address(token), "not-allowed-to-sweep"); require(feeCollector != address(0), "fee-collector-not-set"); IERC20(_fromToken).safeTransfer(feeCollector, IERC20(_fromToken).balanceOf(address(this))); } /** @dev debt above current debt limit */ function excessDebt(address _strategy) external view returns (uint256) { return _excessDebt(_strategy); } /** @dev available credit limit is calculated based on current debt of pool and strategy, current debt limit of pool and strategy. // credit available = min(pool's debt limit, strategy's debt limit, max debt per rebalance) // when some strategy do not pay back outstanding debt, this impact credit line of other strategy if totalDebt of pool >= debtLimit of pool */ function availableCreditLimit(address _strategy) external view returns (uint256) { return _availableCreditLimit(_strategy); } /** * @notice Get total debt of given strategy */ function totalDebtOf(address _strategy) external view returns (uint256) { return strategy[_strategy].totalDebt; } /// @dev Returns total value of vesper pool, in terms of collateral token function totalValue() public view override returns (uint256) { return totalDebt + tokensHere(); } function _withdrawCollateral(uint256 _amount) internal virtual { // Withdraw amount from queue uint256 _debt; uint256 _balanceAfter; uint256 _balanceBefore; uint256 _amountWithdrawn; uint256 _amountNeeded = _amount; uint256 _totalAmountWithdrawn; for (uint256 i; i < withdrawQueue.length; i++) { _debt = strategy[withdrawQueue[i]].totalDebt; if (_debt == 0) { continue; } if (_amountNeeded > _debt) { // Should not withdraw more than current debt of strategy. _amountNeeded = _debt; } _balanceBefore = tokensHere(); //solhint-disable no-empty-blocks try IStrategy(withdrawQueue[i]).withdraw(_amountNeeded) {} catch { continue; } _balanceAfter = tokensHere(); _amountWithdrawn = _balanceAfter - _balanceBefore; // Adjusting totalDebt. Assuming that during next reportEarning(), strategy will report loss if amountWithdrawn < _amountNeeded strategy[withdrawQueue[i]].totalDebt -= _amountWithdrawn; totalDebt -= _amountWithdrawn; _totalAmountWithdrawn += _amountWithdrawn; if (_totalAmountWithdrawn >= _amount) { // withdraw done break; } _amountNeeded = _amount - _totalAmountWithdrawn; } } /** * @dev Before burning hook. * withdraw amount from strategies */ function _beforeBurning(uint256 _share) internal override returns (uint256 actualWithdrawn) { uint256 _amount = (_share * pricePerShare()) / 1e18; uint256 _balanceNow = tokensHere(); if (_amount > _balanceNow) { _withdrawCollateral(_amount - _balanceNow); _balanceNow = tokensHere(); } actualWithdrawn = _balanceNow < _amount ? _balanceNow : _amount; } /** @dev when a strategy report loss, its debtRatio decrease to get fund back quickly. */ function _reportLoss(address _strategy, uint256 _loss) internal { uint256 _currentDebt = strategy[_strategy].totalDebt; require(_currentDebt >= _loss, "loss-too-high"); strategy[_strategy].totalLoss += _loss; strategy[_strategy].totalDebt -= _loss; totalDebt -= _loss; uint256 _deltaDebtRatio = _min((_loss * MAX_BPS) / totalValue(), strategy[_strategy].debtRatio); strategy[_strategy].debtRatio -= _deltaDebtRatio; totalDebtRatio -= _deltaDebtRatio; } function _excessDebt(address _strategy) internal view returns (uint256) { uint256 _currentDebt = strategy[_strategy].totalDebt; if (stopEverything) { return _currentDebt; } uint256 _maxDebt = (strategy[_strategy].debtRatio * totalValue()) / MAX_BPS; return _currentDebt > _maxDebt ? (_currentDebt - _maxDebt) : 0; } function _availableCreditLimit(address _strategy) internal view returns (uint256) { if (stopEverything) { return 0; } uint256 _totalValue = totalValue(); uint256 _maxDebt = (strategy[_strategy].debtRatio * _totalValue) / MAX_BPS; uint256 _currentDebt = strategy[_strategy].totalDebt; if (_currentDebt >= _maxDebt) { return 0; } uint256 _poolDebtLimit = (totalDebtRatio * _totalValue) / MAX_BPS; if (totalDebt >= _poolDebtLimit) { return 0; } uint256 _available = _maxDebt - _currentDebt; _available = _min(_min(tokensHere(), _available), _poolDebtLimit - totalDebt); _available = _min( (block.number - strategy[_strategy].lastRebalance) * strategy[_strategy].debtRate, _available ); return _available; } /** @dev strategy get interest fee in pool share token */ function _transferInterestFee(uint256 _profit) internal { uint256 _fee = (_profit * strategy[_msgSender()].interestFee) / MAX_BPS; if (_fee != 0) { _fee = _calculateShares(_fee); _mint(_msgSender(), _fee); } } function _min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } }
{ "evmVersion": "istanbul", "libraries": {}, "metadata": { "bytecodeHash": "ipfs", "useLiteralContent": true }, "optimizer": { "enabled": true, "runs": 200 }, "remappings": [], "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"strategy","type":"address"},{"indexed":false,"internalType":"uint256","name":"profit","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"loss","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"payback","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"strategyDebt","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"poolDebt","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"creditLine","type":"uint256"}],"name":"EarningReported","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Open","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Shutdown","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"strategy","type":"address"},{"indexed":false,"internalType":"uint256","name":"interestFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"debtRatio","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"debtRate","type":"uint256"}],"name":"StrategyAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldStrategy","type":"address"},{"indexed":true,"internalType":"address","name":"newStrategy","type":"address"},{"indexed":false,"internalType":"uint256","name":"interestFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"debtRatio","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"debtRate","type":"uint256"}],"name":"StrategyMigrated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousFeeCollector","type":"address"},{"indexed":true,"internalType":"address","name":"newFeeCollector","type":"address"}],"name":"UpdatedFeeCollector","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"proposedGovernor","type":"address"}],"name":"UpdatedGovernor","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"strategy","type":"address"},{"indexed":false,"internalType":"uint256","name":"interestFee","type":"uint256"}],"name":"UpdatedInterestFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"strategy","type":"address"},{"indexed":false,"internalType":"uint256","name":"debtRatio","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"debtRate","type":"uint256"}],"name":"UpdatedStrategyDebtParams","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"previousWithdrawFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newWithdrawFee","type":"uint256"}],"name":"UpdatedWithdrawFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_BPS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptGovernorship","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_listToUpdate","type":"address"},{"internalType":"address","name":"_addressToAdd","type":"address"}],"name":"addInList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategy","type":"address"},{"internalType":"uint256","name":"_interestFee","type":"uint256"},{"internalType":"uint256","name":"_debtRatio","type":"uint256"},{"internalType":"uint256","name":"_debtRate","type":"uint256"}],"name":"addStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategy","type":"address"}],"name":"availableCreditLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"convertFrom18","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_deadline","type":"uint256"},{"internalType":"uint8","name":"_v","type":"uint8"},{"internalType":"bytes32","name":"_r","type":"bytes32"},{"internalType":"bytes32","name":"_s","type":"bytes32"}],"name":"depositWithPermit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategy","type":"address"}],"name":"excessDebt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeCollector","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeWhitelist","outputs":[{"internalType":"contract IAddressList","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"init","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"keepers","outputs":[{"internalType":"contract IAddressList","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maintainers","outputs":[{"internalType":"contract IAddressList","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_old","type":"address"},{"internalType":"address","name":"_new","type":"address"}],"name":"migrateStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_recipients","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"multiTransfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"open","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pricePerShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_listToUpdate","type":"address"},{"internalType":"address","name":"_addressToRemove","type":"address"}],"name":"removeFromList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_profit","type":"uint256"},{"internalType":"uint256","name":"_loss","type":"uint256"},{"internalType":"uint256","name":"_payback","type":"uint256"}],"name":"reportEarning","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"shutdown","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stopEverything","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"strategies","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"strategy","outputs":[{"internalType":"bool","name":"active","type":"bool"},{"internalType":"uint256","name":"interestFee","type":"uint256"},{"internalType":"uint256","name":"debtRate","type":"uint256"},{"internalType":"uint256","name":"lastRebalance","type":"uint256"},{"internalType":"uint256","name":"totalDebt","type":"uint256"},{"internalType":"uint256","name":"totalLoss","type":"uint256"},{"internalType":"uint256","name":"totalProfit","type":"uint256"},{"internalType":"uint256","name":"debtRatio","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_fromToken","type":"address"}],"name":"sweepERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensHere","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalDebt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_strategy","type":"address"}],"name":"totalDebtOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalDebtRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalValue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_proposedGovernor","type":"address"}],"name":"transferGovernorship","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategy","type":"address"},{"internalType":"uint256","name":"_debtRate","type":"uint256"}],"name":"updateDebtRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategy","type":"address"},{"internalType":"uint256","name":"_debtRatio","type":"uint256"}],"name":"updateDebtRatio","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newFeeCollector","type":"address"}],"name":"updateFeeCollector","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategy","type":"address"},{"internalType":"uint256","name":"_interestFee","type":"uint256"}],"name":"updateInterestFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newWithdrawFee","type":"uint256"}],"name":"updateWithdrawFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_withdrawQueue","type":"address[]"}],"name":"updateWithdrawQueue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_shares","type":"uint256"}],"name":"whitelistedWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_shares","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"withdrawQueue","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6101806040527f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9610120523480156200003757600080fd5b506040518060400160405280600a8152602001691d9554d110c8141bdbdb60b21b81525060405180604001604052806005815260200164765553444360d81b81525073a0b86991c6218b36c1d19d4a2e9eb0ce3606eb488282828280604051806040016040528060018152602001603160f81b81525085858160039080519060200190620000c792919062000270565b508051620000dd90600490602084019062000270565b5050825160209384012082519284019290922060c083815260e08290524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818a0181905281830198909852606081019590955260808086019390935230858301528051808603909201825293909201928390528151919095012090935250610100526001600755600880546001600160a01b03191633908117909155915081906000907fd4459d5b8b913cab0244230fd9b1c08b6ceace7fe9230e60d0f74cbffdf849d0908290a3506001600160601b0319606082901b166101405260408051630fab4d2560e01b8152905173ded8217de022706a191ee7ee0dc9df1185fb5da3916000918391630fab4d2591600480830192602092919082900301818787803b1580156200021557600080fd5b505af11580156200022a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000250919062000316565b60601b6001600160601b0319166101605250620003839650505050505050565b8280546200027e9062000346565b90600052602060002090601f016020900481019282620002a25760008555620002ed565b82601f10620002bd57805160ff1916838001178555620002ed565b82800160010185558215620002ed579182015b82811115620002ed578251825591602001919060010190620002d0565b50620002fb929150620002ff565b5090565b5b80821115620002fb576000815560010162000300565b60006020828403121562000328578081fd5b81516001600160a01b03811681146200033f578182fd5b9392505050565b600181811c908216806200035b57607f821691505b602082108114156200037d57634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e05161010051610120516101405160601c6101605160601c61538f6200042e6000396000818161084701526134ed0152600081816108180152818161093201528181610b1101528181610b5e01528181611501015281816127d001528181612e480152818161489601526148ce01526000612b2301526000613eba01526000613f0901526000613ee401526000613e6701526000613e90015261538f6000f3fe608060405234801561001057600080fd5b50600436106103af5760003560e01c806395d89b41116101f4578063d574ea3d1161011a578063fc0c546a116100ad578063fcfff16f1161007c578063fcfff16f14610872578063fd967f471461087a578063ff643a7c14610883578063ffa1ad7414610896576103af565b8063fc0c546a14610813578063fc0e74d11461083a578063fc76781014610842578063fc7b9c1814610869576103af565b8063e1c7392a116100e9578063e1c7392a146107e7578063e941fa78146107ef578063f3b27bc3146107f8578063fb589de214610800576103af565b8063d574ea3d14610775578063daf635de14610788578063dd62ed3e1461079b578063e00af4a7146107d4576103af565b8063b6b55f2511610192578063d2c35ce811610161578063d2c35ce814610734578063d4c3eea014610747578063d505accf1461074f578063d53ddc2614610762576103af565b8063b6b55f25146106f3578063b8cb343d14610706578063c415b95c1461070e578063d20ed3ef14610721576103af565b8063a457c2d7116101ce578063a457c2d7146106a7578063a9059cbb146106ba578063b64321ec146106cd578063b6aa515b146106e0576103af565b806395d89b411461066b57806399530b06146106735780639f2b28331461067b576103af565b80633f4ba83a116102d95780636cb56d19116102775780638456cb59116102465780638456cb591461062a578063854f4d80146106325780638f88d18c14610645578063951dc22c14610658576103af565b80636cb56d19146105de57806370a08231146105f15780637b62f070146106045780637ecebe0014610617576103af565b80634a970be7116102b35780634a970be7146105985780635c975abb146105ab57806362518ddf146105b857806367187d3d146105cb576103af565b80633f4ba83a1461056b5780634938649a1461057357806349eeb86014610585576103af565b80631e89d545116103515780632e1a7d4d116103205780632e1a7d4d1461052e578063313ce567146105415780633644e515146105505780633950935114610558576103af565b80631e89d5451461046d578063228bfd9f1461048057806323b872dd146105125780632df9eab914610525576103af565b80630c340a241161038d5780630c340a241461040a5780630dd21b6c1461043557806318160ddd146104485780631e751ac11461045a576103af565b806305bed046146103b457806306fdde03146103c9578063095ea7b3146103e7575b600080fd5b6103c76103c2366004614ff8565b6108ba565b005b6103d1610c31565b6040516103de9190615085565b60405180910390f35b6103fa6103f5366004614e54565b610cc4565b60405190151581526020016103de565b60085461041d906001600160a01b031681565b6040516001600160a01b0390911681526020016103de565b6103c7610443366004614e7f565b610cda565b6002545b6040519081526020016103de565b6103c7610468366004614d6f565b61102f565b6103fa61047b366004614eec565b611194565b6104d561048e366004614d37565b600c602052600090815260409020805460018201546002830154600384015460048501546005860154600687015460079097015460ff909616969495939492939192909188565b6040805198151589526020890197909752958701949094526060860192909252608085015260a084015260c083015260e0820152610100016103de565b6103fa610520366004614da7565b6112a3565b61044c600d5481565b6103c761053c366004614fc8565b611356565b604051601281526020016103de565b61044c6113b7565b6103fa610566366004614e54565b6113c6565b6103c76113fd565b6006546103fa90610100900460ff1681565b60125461041d906001600160a01b031681565b6103c76105a6366004615023565b6114ac565b6006546103fa9060ff1681565b61041d6105c6366004614fc8565b6115c0565b6103c76105d9366004614d6f565b6115ea565b6103c76105ec366004614d6f565b611756565b61044c6105ff366004614d37565b611f33565b6103c7610612366004614e54565b611f52565b61044c610625366004614d37565b6120b3565b6103c76120d3565b6103c7610640366004614eb9565b612180565b6103c7610653366004614e54565b6123b6565b60115461041d906001600160a01b031681565b6103d16125a0565b61044c6125af565b61044c610689366004614d37565b6001600160a01b03166000908152600c602052604090206004015490565b6103fa6106b5366004614e54565b61260f565b6103fa6106c8366004614e54565b6126a0565b61044c6106db366004614d37565b6126ad565b6103c76106ee366004614d37565b6126b8565b6103c7610701366004614fc8565b612764565b61044c6127b8565b600a5461041d906001600160a01b031681565b6103c761072f366004614e54565b612852565b6103c7610742366004614d37565b612989565b61044c612ab8565b6103c761075d366004614de7565b612acf565b61044c610770366004614d37565b612c33565b61041d610783366004614fc8565b612c3e565b6103c7610796366004614fc8565b612c4e565b61044c6107a9366004614d6f565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6103c76107e2366004614d37565b612da1565b6103c7612fa6565b61044c600b5481565b6103c761325c565b61044c61080e366004614fc8565b613328565b61041d7f000000000000000000000000000000000000000000000000000000000000000081565b6103c7613339565b61041d7f000000000000000000000000000000000000000000000000000000000000000081565b61044c600e5481565b6103c76133e6565b61044c61271081565b6103c7610891366004614fc8565b613493565b6103d1604051806040016040528060058152602001640332e302e360dc1b81525081565b336000908152600c602052604090205460ff1661091e5760405162461bcd60e51b815260206004820152601d60248201527f63616c6c65722d69732d6e6f742d6163746976652d737472617465677900000060448201526064015b60405180910390fd5b610928818461522e565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000166370a08231336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561099757600080fd5b505afa1580156109ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109cf9190614fe0565b1015610a1d5760405162461bcd60e51b815260206004820181905260248201527f696e73756666696369656e742d62616c616e63652d696e2d73747261746567796044820152606401610915565b8115610a2d57610a2d33836135df565b6000610a383361374d565b90506000610a4682846137df565b90508015610a8f57336000908152600c602052604081206004018054839290610a70908490615285565b9250508190555080600e6000828254610a899190615285565b90915550505b6000610a9a336137f5565b90508015610ae357336000908152600c602052604081206004018054839290610ac490849061522e565b9250508190555080600e6000828254610add919061522e565b90915550505b6000610aef838861522e565b905081811015610b3d57610b3833610b078385615285565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016919061393d565b610b86565b81811115610b8657610b863330610b548585615285565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169291906139a0565b8615610bbd57336000908152600c602052604081206006018054899290610bae90849061522e565b90915550610bbd9050876139de565b336000818152600c602090815260409182902060040154600e5483518c81529283018b90528284018890526060830191909152608082015260a0810185905290517f29c6c60e040fcd722949346bda66341e8859b20b9a2124a625326ad10373391b9181900360c00190a250505050505050565b606060038054610c40906152c8565b80601f0160208091040260200160405190810160405280929190818152602001828054610c6c906152c8565b8015610cb95780601f10610c8e57610100808354040283529160200191610cb9565b820191906000526020600020905b815481529060010190602001808311610c9c57829003601f168201915b505050505090505b90565b6000610cd1338484613a27565b50600192915050565b6008546001600160a01b03163314610d045760405162461bcd60e51b8152600401610915906150e8565b6001600160a01b038416610d555760405162461bcd60e51b815260206004820152601860248201527773747261746567792d616464726573732d69732d7a65726f60401b6044820152606401610915565b6001600160a01b0384166000908152600c602052604090205460ff1615610db75760405162461bcd60e51b81526020600482015260166024820152751cdd1c985d1959de4b585b1c9958591e4b585919195960521b6044820152606401610915565b81600d54610dc5919061522e565b600d8190556127101015610e1b5760405162461bcd60e51b815260206004820152601c60248201527f746f74616c44656274526174696f2d61626f76652d6d61785f627073000000006044820152606401610915565b612710831115610e6d5760405162461bcd60e51b815260206004820152601a60248201527f696e7465726573742d6665652d61626f76652d6d61785f6270730000000000006044820152606401610915565b600060405180610100016040528060011515815260200185815260200183815260200143815260200160008152602001600081526020016000815260200184815250905080600c6000876001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000160006101000a81548160ff0219169083151502179055506020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015560c0820151816006015560e08201518160070155905050600f859080600181540180825580915050600190039060005260206000200160009091909190916101000a8154816001600160a01b0302191690836001600160a01b031602179055506010859080600181540180825580915050600190039060005260206000200160009091909190916101000a8154816001600160a01b0302191690836001600160a01b03160217905550846001600160a01b03167f5ec27a4fa537fc86d0d17d84e0ee3172c9d253c78cc4ab5c69ee99c5f7084f51858585604051611020939291909283526020830191909152604082015260600190565b60405180910390a25050505050565b6011546001600160a01b0316635dbe47e8336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561108057600080fd5b505afa158015611094573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110b89190614fa8565b6110d45760405162461bcd60e51b8152600401610915906150b8565b604051630a3b0a4f60e01b81526001600160a01b038281166004830152831690630a3b0a4f90602401602060405180830381600087803b15801561111757600080fd5b505af115801561112b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061114f9190614fa8565b6111905760405162461bcd60e51b81526020600482015260126024820152711859190b5a5b8b5b1a5cdd0b59985a5b195960721b6044820152606401610915565b5050565b600081518351146111df5760405162461bcd60e51b81526020600482015260156024820152740d2dce0eae85ad8cadccee8d05adad2e6dac2e8c6d605b1b6044820152606401610915565b60005b83518110156112995761124384828151811061120e57634e487b7160e01b600052603260045260246000fd5b602002602001015184838151811061123657634e487b7160e01b600052603260045260246000fd5b60200260200101516126a0565b6112875760405162461bcd60e51b81526020600482015260156024820152741b5d5b1d1a4b5d1c985b9cd9995c8b59985a5b1959605a1b6044820152606401610915565b80611291816152fd565b9150506111e2565b5060019392505050565b60006112b0848484613b43565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156113355760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610915565b61134985336113448685615285565b613a27565b60019150505b9392505050565b600260075414156113795760405162461bcd60e51b8152600401610915906151a2565b6002600755600654610100900460ff16156113a65760405162461bcd60e51b81526004016109159061511f565b6113af81613d1b565b506001600755565b60006113c1613e63565b905090565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610cd191859061134490869061522e565b6011546001600160a01b0316635dbe47e8336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561144e57600080fd5b505afa158015611462573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114869190614fa8565b6114a25760405162461bcd60e51b8152600401610915906150b8565b6114aa613f59565b565b600260075414156114cf5760405162461bcd60e51b8152600401610915906151a2565b600260075560065460ff16156114f75760405162461bcd60e51b81526004016109159061514b565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001663d505accf336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152306024820152604481018890526064810187905260ff8616608482015260a4810185905260c4810184905260e401600060405180830381600087803b15801561159357600080fd5b505af11580156115a7573d6000803e3d6000fd5b505050506115b485614014565b50506001600755505050565b601081815481106115d057600080fd5b6000918252602090912001546001600160a01b0316905081565b6011546001600160a01b0316635dbe47e8336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561163b57600080fd5b505afa15801561164f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116739190614fa8565b61168f5760405162461bcd60e51b8152600401610915906150b8565b604051631484968760e11b81526001600160a01b0382811660048301528316906329092d0e90602401602060405180830381600087803b1580156116d257600080fd5b505af11580156116e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061170a9190614fa8565b6111905760405162461bcd60e51b815260206004820152601760248201527f72656d6f76652d66726f6d2d6c6973742d6661696c65640000000000000000006044820152606401610915565b6008546001600160a01b031633146117805760405162461bcd60e51b8152600401610915906150e8565b6001600160a01b0381166117cc5760405162461bcd60e51b81526020600482015260136024820152726e65772d616464726573732d69732d7a65726f60681b6044820152606401610915565b6001600160a01b0382166118185760405162461bcd60e51b81526020600482015260136024820152726f6c642d616464726573732d69732d7a65726f60681b6044820152606401610915565b306001600160a01b0316816001600160a01b03166316f0115b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561185b57600080fd5b505afa15801561186f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118939190614d53565b6001600160a01b0316146118e25760405162461bcd60e51b81526020600482015260166024820152756e6f742d76616c69642d6e65772d737472617465677960501b6044820152606401610915565b306001600160a01b0316826001600160a01b03166316f0115b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561192557600080fd5b505afa158015611939573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061195d9190614d53565b6001600160a01b0316146119ac5760405162461bcd60e51b81526020600482015260166024820152756e6f742d76616c69642d6f6c642d737472617465677960501b6044820152606401610915565b6001600160a01b0382166000908152600c602052604090205460ff16611a145760405162461bcd60e51b815260206004820152601960248201527f73747261746567792d616c72656164792d6d69677261746564000000000000006044820152606401610915565b6001600160a01b0381166000908152600c602052604090205460ff1615611a765760405162461bcd60e51b81526020600482015260166024820152751cdd1c985d1959de4b585b1c9958591e4b585919195960521b6044820152606401610915565b6000604051806101000160405280600115158152602001600c6000866001600160a01b03166001600160a01b03168152602001908152602001600020600101548152602001600c6000866001600160a01b03166001600160a01b03168152602001908152602001600020600201548152602001600c6000866001600160a01b03166001600160a01b03168152602001908152602001600020600301548152602001600c6000866001600160a01b03166001600160a01b031681526020019081526020016000206004015481526020016000815260200160008152602001600c6000866001600160a01b03166001600160a01b031681526020019081526020016000206007015481525090506000600c6000856001600160a01b03166001600160a01b03168152602001908152602001600020600701819055506000600c6000856001600160a01b03166001600160a01b03168152602001908152602001600020600401819055506000600c6000856001600160a01b03166001600160a01b03168152602001908152602001600020600201819055506000600c6000856001600160a01b03166001600160a01b0316815260200190815260200160002060000160006101000a81548160ff02191690831515021790555080600c6000846001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000160006101000a81548160ff0219169083151502179055506020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015560c0820151816006015560e08201518160070155905050826001600160a01b031663ce5494bb836040518263ffffffff1660e01b8152600401611d1691906001600160a01b0391909116815260200190565b600060405180830381600087803b158015611d3057600080fd5b505af1158015611d44573d6000803e3d6000fd5b5050505060005b600f54811015611e0257836001600160a01b0316600f8281548110611d8057634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03161415611df05782600f8281548110611dbd57634e487b7160e01b600052603260045260246000fd5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550611e02565b80611dfa816152fd565b915050611d4b565b5060005b601054811015611ebd57836001600160a01b031660108281548110611e3b57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03161415611eab578260108281548110611e7857634e487b7160e01b600052603260045260246000fd5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550611ebd565b80611eb5816152fd565b915050611e06565b506001600160a01b038281166000818152600c6020908152604091829020600181015460078201546002909201548451918252928101919091529182015290918516907f35df46f62e188dd7abf424c0f449d857c487aa70360ca1bc904871a61617c20e906060015b60405180910390a3505050565b6001600160a01b0381166000908152602081905260409020545b919050565b6008546001600160a01b03163314611f7c5760405162461bcd60e51b8152600401610915906150e8565b6001600160a01b038216611fcd5760405162461bcd60e51b815260206004820152601860248201527773747261746567792d616464726573732d69732d7a65726f60401b6044820152606401610915565b6001600160a01b0382166000908152600c602052604090205460ff166120055760405162461bcd60e51b815260040161091590615175565b6127108111156120575760405162461bcd60e51b815260206004820152601a60248201527f696e7465726573742d6665652d61626f76652d6d61785f6270730000000000006044820152606401610915565b6001600160a01b0382166000818152600c602052604090819020600101839055517f683b8ed6de444177ebfaa1bac367068d61bd9dfef1f4c309b35e05dd709e73e1906120a79084815260200190565b60405180910390a25050565b6001600160a01b0381166000908152600560205260408120545b92915050565b6011546001600160a01b0316635dbe47e8336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561212457600080fd5b505afa158015612138573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061215c9190614fa8565b6121785760405162461bcd60e51b8152600401610915906150b8565b6114aa61406b565b6012546001600160a01b0316635dbe47e8336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b1580156121d157600080fd5b505afa1580156121e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122099190614fa8565b6122505760405162461bcd60e51b815260206004820152601860248201527731b0b63632b916b4b996b737ba16b6b0b4b73a30b4b732b960411b6044820152606401610915565b8051806122985760405162461bcd60e51b81526020600482015260166024820152757769746864726177616c2d71756575652d626c616e6b60501b6044820152606401610915565b601054811480156122aa5750600f5481145b6122f65760405162461bcd60e51b815260206004820152601f60248201527f696e636f72726563742d77697468647261772d71756575652d6c656e677468006044820152606401610915565b60005b8181101561239d57600c600084838151811061232557634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff1661238b5760405162461bcd60e51b815260206004820152601060248201526f696e76616c69642d737472617465677960801b6044820152606401610915565b80612395816152fd565b9150506122f9565b5081516123b1906010906020850190614c3d565b505050565b6012546001600160a01b0316635dbe47e8336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561240757600080fd5b505afa15801561241b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061243f9190614fa8565b6124865760405162461bcd60e51b815260206004820152601860248201527731b0b63632b916b4b996b737ba16b6b0b4b73a30b4b732b960411b6044820152606401610915565b6001600160a01b0382166000908152600c602052604090205460ff166124be5760405162461bcd60e51b815260040161091590615175565b6001600160a01b0382166000908152600c6020526040902060070154600d5482916124e891615285565b6124f2919061522e565b600d81905561271010156125485760405162461bcd60e51b815260206004820152601c60248201527f746f74616c44656274526174696f2d61626f76652d6d61785f627073000000006044820152606401610915565b6001600160a01b0382166000818152600c602090815260409182902060078101859055600201548251858152918201527f3819805ced44aeebe5cbf4f81a253424557ef66c0a682cf3b54501e3fb935ba191016120a7565b606060048054610c40906152c8565b60006125ba60025490565b15806125cb57506125c9612ab8565b155b156125e8576125e1670de0b6b3a7640000613328565b9050610cc1565b6002546125f3612ab8565b61260590670de0b6b3a7640000615266565b6113c19190615246565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156126915760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610915565b61129933856113448685615285565b6000610cd1338484613b43565b60006120cd826137f5565b6008546001600160a01b031633146126e25760405162461bcd60e51b8152600401610915906150e8565b6001600160a01b0381166127425760405162461bcd60e51b815260206004820152602160248201527f70726f706f7365642d676f7665726e6f722d69732d7a65726f2d6164647265736044820152607360f81b6064820152608401610915565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b600260075414156127875760405162461bcd60e51b8152600401610915906151a2565b600260075560065460ff16156127af5760405162461bcd60e51b81526004016109159061514b565b6113af81614014565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b15801561281a57600080fd5b505afa15801561282e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113c19190614fe0565b6011546001600160a01b0316635dbe47e8336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b1580156128a357600080fd5b505afa1580156128b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128db9190614fa8565b6128f75760405162461bcd60e51b8152600401610915906150b8565b6001600160a01b0382166000908152600c602052604090205460ff1661292f5760405162461bcd60e51b815260040161091590615175565b6001600160a01b0382166000818152600c6020908152604091829020600281018590556007015482519081529081018490527f3819805ced44aeebe5cbf4f81a253424557ef66c0a682cf3b54501e3fb935ba191016120a7565b6008546001600160a01b031633146129b35760405162461bcd60e51b8152600401610915906150e8565b6001600160a01b038116612a095760405162461bcd60e51b815260206004820152601d60248201527f6665652d636f6c6c6563746f722d616464726573732d69732d7a65726f0000006044820152606401610915565b600a546001600160a01b0382811691161415612a5c5760405162461bcd60e51b815260206004820152601260248201527139b0b6b296b332b296b1b7b63632b1ba37b960711b6044820152606401610915565b600a546040516001600160a01b038084169216907f0f06062680f9bd68e786e9980d9bb03d73d5620fc3b345e417b6eacb310b970690600090a3600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6000612ac26127b8565b600e546113c1919061522e565b83421115612b1f5760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e650000006044820152606401610915565b60007f0000000000000000000000000000000000000000000000000000000000000000888888612b4e8c6140c3565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090506000612ba9826140eb565b90506000612bb982878787614139565b9050896001600160a01b0316816001600160a01b031614612c1c5760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e617475726500006044820152606401610915565b612c278a8a8a613a27565b50505050505050505050565b60006120cd8261374d565b600f81815481106115d057600080fd5b6008546001600160a01b03163314612c785760405162461bcd60e51b8152600401610915906150e8565b600a546001600160a01b0316612cc85760405162461bcd60e51b81526020600482015260156024820152741999594b58dbdb1b1958dd1bdc8b5b9bdd0b5cd95d605a1b6044820152606401610915565b612710811115612d1a5760405162461bcd60e51b815260206004820152601a60248201527f77697468647261772d6665652d6c696d69742d726561636865640000000000006044820152606401610915565b80600b541415612d605760405162461bcd60e51b815260206004820152601160248201527073616d652d77697468647261772d66656560781b6044820152606401610915565b600b5460408051918252602082018390527f2bf847f5692332004b0f69e0d84a8f85ed020bcf8573b3ede68afc92009965bf910160405180910390a1600b55565b6011546001600160a01b0316635dbe47e8336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b158015612df257600080fd5b505afa158015612e06573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e2a9190614fa8565b612e465760405162461bcd60e51b8152600401610915906150b8565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316816001600160a01b03161415612ebf5760405162461bcd60e51b815260206004820152601460248201527306e6f742d616c6c6f7765642d746f2d73776565760641b6044820152606401610915565b600a546001600160a01b0316612f0f5760405162461bcd60e51b81526020600482015260156024820152741999594b58dbdb1b1958dd1bdc8b5b9bdd0b5cd95d605a1b6044820152606401610915565b600a546040516370a0823160e01b8152306004820152612fa3916001600160a01b0390811691908416906370a082319060240160206040518083038186803b158015612f5a57600080fd5b505afa158015612f6e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f929190614fe0565b6001600160a01b038416919061393d565b50565b6008546001600160a01b03163314612fd05760405162461bcd60e51b8152600401610915906150e8565b6011546001600160a01b0316156130205760405162461bcd60e51b81526020600482015260146024820152731b1a5cdd0b585b1c9958591e4b58dc99585d195960621b6044820152606401610915565b600073ded8217de022706a191ee7ee0dc9df1185fb5da39050806001600160a01b0316630fab4d256040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561307457600080fd5b505af1158015613088573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130ac9190614d53565b601160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550806001600160a01b0316630fab4d256040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561310d57600080fd5b505af1158015613121573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131459190614d53565b601280546001600160a01b0319166001600160a01b03928316179055601154600854604051630a3b0a4f60e01b81529083166004820152911690630a3b0a4f90602401602060405180830381600087803b1580156131a257600080fd5b505af11580156131b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131da9190614fa8565b50601254600854604051630a3b0a4f60e01b81526001600160a01b039182166004820152911690630a3b0a4f90602401602060405180830381600087803b15801561322457600080fd5b505af1158015613238573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111909190614fa8565b6009546001600160a01b031633146132c25760405162461bcd60e51b815260206004820152602360248201527f63616c6c65722d69732d6e6f742d7468652d70726f706f7365642d676f7665726044820152623737b960e91b6064820152608401610915565b6009546008546040516001600160a01b0392831692909116907fd4459d5b8b913cab0244230fd9b1c08b6ceace7fe9230e60d0f74cbffdf849d090600090a360098054600880546001600160a01b03199081166001600160a01b03841617909155169055565b60006120cd64e8d4a5100083615246565b6011546001600160a01b0316635dbe47e8336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561338a57600080fd5b505afa15801561339e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133c29190614fa8565b6133de5760405162461bcd60e51b8152600401610915906150b8565b6114aa6142e2565b6011546001600160a01b0316635dbe47e8336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561343757600080fd5b505afa15801561344b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061346f9190614fa8565b61348b5760405162461bcd60e51b8152600401610915906150b8565b6114aa614341565b600260075414156134b65760405162461bcd60e51b8152600401610915906151a2565b6002600755600654610100900460ff16156134e35760405162461bcd60e51b81526004016109159061511f565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016635dbe47e8336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561355257600080fd5b505afa158015613566573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061358a9190614fa8565b6135d65760405162461bcd60e51b815260206004820152601a60248201527f6e6f742d612d77686974652d6c69737465642d616464726573730000000000006044820152606401610915565b6113af816143c3565b6001600160a01b0382166000908152600c60205260409020600401548181101561363b5760405162461bcd60e51b815260206004820152600d60248201526c0d8dee6e65ae8dede5ad0d2ced609b1b6044820152606401610915565b6001600160a01b0383166000908152600c60205260408120600501805484929061366690849061522e565b90915550506001600160a01b0383166000908152600c602052604081206004018054849290613696908490615285565b9250508190555081600e60008282546136af9190615285565b90915550600090506136f96136c2612ab8565b6136ce61271086615266565b6136d89190615246565b6001600160a01b0386166000908152600c60205260409020600701546137df565b6001600160a01b0385166000908152600c6020526040812060070180549293508392909190613729908490615285565b9250508190555080600d60008282546137429190615285565b909155505050505050565b6001600160a01b0381166000908152600c6020526040812060040154600654610100900460ff1615613780579050611f4d565b600061271061378d612ab8565b6001600160a01b0386166000908152600c60205260409020600701546137b39190615266565b6137bd9190615246565b90508082116137cd5760006137d7565b6137d78183615285565b949350505050565b60008183106137ee578161134f565b5090919050565b600654600090610100900460ff161561381057506000611f4d565b600061381a612ab8565b6001600160a01b0384166000908152600c60205260408120600701549192509061271090613849908490615266565b6138539190615246565b6001600160a01b0385166000908152600c60205260409020600401549091508181106138855760009350505050611f4d565b600061271084600d546138989190615266565b6138a29190615246565b905080600e54106138ba576000945050505050611f4d565b60006138c68385615285565b90506138ee6138dc6138d66127b8565b836137df565b600e546138e99085615285565b6137df565b6001600160a01b0388166000908152600c602052604090206002810154600390910154919250613932916139229043615285565b61392c9190615266565b826137df565b979650505050505050565b6040516001600160a01b0383166024820152604481018290526123b190849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152614486565b6040516001600160a01b03808516602483015283166044820152606481018290526139d89085906323b872dd60e01b90608401613969565b50505050565b336000908152600c6020526040812060010154612710906139ff9084615266565b613a099190615246565b9050801561119057613a1a81614558565b9050611190335b826145f9565b6001600160a01b038316613a895760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610915565b6001600160a01b038216613aea5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610915565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259101611f26565b6001600160a01b038316613ba75760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610915565b6001600160a01b038216613c095760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610915565b6001600160a01b03831660009081526020819052604090205481811015613c815760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610915565b613c8b8282615285565b6001600160a01b038086166000908152602081905260408082209390935590851681529081208054849290613cc190849061522e565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051613d0d91815260200190565b60405180910390a350505050565b600b54613d3057613d2b816143c3565b612fa3565b80613d6a5760405162461bcd60e51b815260206004820152600a602482015269073686172652d69732d360b41b6044820152606401610915565b6000612710600b5483613d7d9190615266565b613d879190615246565b90506000613d958284615285565b90506000613da2826146d8565b90506000613daf82614558565b9050613dba83613328565b613dc382613328565b1015613e0057600b54613dd890612710615285565b613de461271083615266565b613dee9190615246565b9450613dfa8186615285565b93508092505b613e0b335b84614740565b613e2133600a546001600160a01b031686613b43565b613e2a8261488f565b50604080518681526020810184905233917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689101611020565b60007f0000000000000000000000000000000000000000000000000000000000000000461415613eb457507f0000000000000000000000000000000000000000000000000000000000000000610cc1565b604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c090920190925280519101206125e1565b60065460ff16613fa25760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610915565b600654610100900460ff1615613fca5760405162461bcd60e51b81526004016109159061511f565b6006805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600061401f82614558565b905061402a826148c9565b61403333613a21565b604080518281526020810184905233917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a1591016120a7565b60065460ff161561408e5760405162461bcd60e51b81526004016109159061514b565b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258613ff73390565b6001600160a01b03811660009081526005602052604090208054600181018255905b50919050565b60006120cd6140f8613e63565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156141b65760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610915565b8360ff16601b14806141cb57508360ff16601c145b6142225760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610915565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015614276573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166142d95760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610915565b95945050505050565b600654610100900460ff161561430a5760405162461bcd60e51b81526004016109159061511f565b6006805461ffff19166101011790557f28b4c24cb1012c094cd2f59f98e89d791973295f8fda6eaa118022d6d318960a613ff73390565b600654610100900460ff166143915760405162461bcd60e51b81526020600482015260166024820152752830bab9b0b136329d103737ba1039b43aba3237bbb760511b6044820152606401610915565b6006805461ff00191690557fece7583a70a505ef0e36d4dec768f5ae597713e09c26011022599ee01abdabfc33613ff7565b806143fd5760405162461bcd60e51b815260206004820152600a602482015269073686172652d69732d360b41b6044820152606401610915565b6000614408826146d8565b9050600061441582614558565b905061442083613328565b61442982613328565b1015614433578092505b61443c33613e05565b6144458261488f565b50604080518481526020810184905233917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568910160405180910390a2505050565b60006144db826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166148fe9092919063ffffffff16565b8051909150156123b157808060200190518101906144f99190614fa8565b6123b15760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610915565b6000816145955760405162461bcd60e51b815260206004820152600b60248201526a0616d6f756e742d69732d360ac1b6044820152606401610915565b600061459f6125af565b6145b184670de0b6b3a7640000615266565b6145bb9190615246565b9050670de0b6b3a76400006145ce6125af565b6145d89083615266565b6145e29190615246565b83116145ee578061134f565b61134f81600161522e565b6001600160a01b03821661464f5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610915565b8060026000828254614661919061522e565b90915550506001600160a01b0382166000908152602081905260408120805483929061468e90849061522e565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b600080670de0b6b3a76400006146ec6125af565b6146f69085615266565b6147009190615246565b9050600061470c6127b8565b905080821115614733576147286147238284615285565b61490d565b6147306127b8565b90505b81811061134f57816137d7565b6001600160a01b0382166147a05760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610915565b6001600160a01b038216600090815260208190526040902054818110156148145760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610915565b61481e8282615285565b6001600160a01b0384166000908152602081905260408120919091556002805484929061484c908490615285565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001611f26565b60006148c57f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316338461393d565b5090565b612fa37f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03163330846139a0565b60606137d78484600085614aec565b60008080808481805b601054811015614ae257600c60006010838154811061494557634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b0316835282019290925260400190206004015496508661497957614ad0565b86831115614985578692505b61498d6127b8565b9450601081815481106149b057634e487b7160e01b600052603260045260246000fd5b600091825260209091200154604051632e1a7d4d60e01b8152600481018590526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b1580156149ff57600080fd5b505af1925050508015614a10575060015b614a1957614ad0565b614a216127b8565b9550614a2d8587615285565b935083600c600060108481548110614a5557634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b0316835282019290925260400181206004018054909190614a8c908490615285565b9250508190555083600e6000828254614aa59190615285565b90915550614ab59050848361522e565b9150878210614ac357614ae2565b614acd8289615285565b92505b80614ada816152fd565b915050614916565b5050505050505050565b606082471015614b4d5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610915565b843b614b9b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610915565b600080866001600160a01b03168587604051614bb79190615069565b60006040518083038185875af1925050503d8060008114614bf4576040519150601f19603f3d011682016040523d82523d6000602084013e614bf9565b606091505b509150915061393282828660608315614c1357508161134f565b825115614c235782518084602001fd5b8160405162461bcd60e51b81526004016109159190615085565b828054828255906000526020600020908101928215614c92579160200282015b82811115614c9257825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190614c5d565b506148c59291505b808211156148c55760008155600101614c9a565b600082601f830112614cbe578081fd5b81356020614cd3614cce8361520a565b6151d9565b80838252828201915082860187848660051b8901011115614cf2578586fd5b855b85811015614d19578135614d0781615344565b84529284019290840190600101614cf4565b5090979650505050505050565b803560ff81168114611f4d57600080fd5b600060208284031215614d48578081fd5b813561134f81615344565b600060208284031215614d64578081fd5b815161134f81615344565b60008060408385031215614d81578081fd5b8235614d8c81615344565b91506020830135614d9c81615344565b809150509250929050565b600080600060608486031215614dbb578081fd5b8335614dc681615344565b92506020840135614dd681615344565b929592945050506040919091013590565b600080600080600080600060e0888a031215614e01578283fd5b8735614e0c81615344565b96506020880135614e1c81615344565b95506040880135945060608801359350614e3860808901614d26565b925060a0880135915060c0880135905092959891949750929550565b60008060408385031215614e66578182fd5b8235614e7181615344565b946020939093013593505050565b60008060008060808587031215614e94578384fd5b8435614e9f81615344565b966020860135965060408601359560600135945092505050565b600060208284031215614eca578081fd5b813567ffffffffffffffff811115614ee0578182fd5b6137d784828501614cae565b60008060408385031215614efe578182fd5b823567ffffffffffffffff80821115614f15578384fd5b614f2186838701614cae565b9350602091508185013581811115614f37578384fd5b85019050601f81018613614f49578283fd5b8035614f57614cce8261520a565b80828252848201915084840189868560051b8701011115614f76578687fd5b8694505b83851015614f98578035835260019490940193918501918501614f7a565b5080955050505050509250929050565b600060208284031215614fb9578081fd5b8151801515811461134f578182fd5b600060208284031215614fd9578081fd5b5035919050565b600060208284031215614ff1578081fd5b5051919050565b60008060006060848603121561500c578081fd5b505081359360208301359350604090920135919050565b600080600080600060a0868803121561503a578283fd5b853594506020860135935061505160408701614d26565b94979396509394606081013594506080013592915050565b6000825161507b81846020870161529c565b9190910192915050565b60006020825282518060208401526150a481604085016020870161529c565b601f01601f19169190910160400192915050565b60208082526016908201527531b0b63632b916b4b996b737ba16b096b5b2b2b832b960511b604082015260600190565b6020808252601a908201527f63616c6c65722d69732d6e6f742d7468652d676f7665726e6f72000000000000604082015260600190565b6020808252601290820152712830bab9b0b136329d1039b43aba3237bbb760711b604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526013908201527273747261746567792d6e6f742d61637469766560681b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b604051601f8201601f1916810167ffffffffffffffff811182821017156152025761520261532e565b604052919050565b600067ffffffffffffffff8211156152245761522461532e565b5060051b60200190565b6000821982111561524157615241615318565b500190565b60008261526157634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561528057615280615318565b500290565b60008282101561529757615297615318565b500390565b60005b838110156152b757818101518382015260200161529f565b838111156139d85750506000910152565b600181811c908216806152dc57607f821691505b602082108114156140e557634e487b7160e01b600052602260045260246000fd5b600060001982141561531157615311615318565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114612fa357600080fdfea26469706673582212203e278a945b9b6e040aef2dbcd5c841dea95bb7ecf8c91c941561e8e5d404ef4264736f6c63430008030033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106103af5760003560e01c806395d89b41116101f4578063d574ea3d1161011a578063fc0c546a116100ad578063fcfff16f1161007c578063fcfff16f14610872578063fd967f471461087a578063ff643a7c14610883578063ffa1ad7414610896576103af565b8063fc0c546a14610813578063fc0e74d11461083a578063fc76781014610842578063fc7b9c1814610869576103af565b8063e1c7392a116100e9578063e1c7392a146107e7578063e941fa78146107ef578063f3b27bc3146107f8578063fb589de214610800576103af565b8063d574ea3d14610775578063daf635de14610788578063dd62ed3e1461079b578063e00af4a7146107d4576103af565b8063b6b55f2511610192578063d2c35ce811610161578063d2c35ce814610734578063d4c3eea014610747578063d505accf1461074f578063d53ddc2614610762576103af565b8063b6b55f25146106f3578063b8cb343d14610706578063c415b95c1461070e578063d20ed3ef14610721576103af565b8063a457c2d7116101ce578063a457c2d7146106a7578063a9059cbb146106ba578063b64321ec146106cd578063b6aa515b146106e0576103af565b806395d89b411461066b57806399530b06146106735780639f2b28331461067b576103af565b80633f4ba83a116102d95780636cb56d19116102775780638456cb59116102465780638456cb591461062a578063854f4d80146106325780638f88d18c14610645578063951dc22c14610658576103af565b80636cb56d19146105de57806370a08231146105f15780637b62f070146106045780637ecebe0014610617576103af565b80634a970be7116102b35780634a970be7146105985780635c975abb146105ab57806362518ddf146105b857806367187d3d146105cb576103af565b80633f4ba83a1461056b5780634938649a1461057357806349eeb86014610585576103af565b80631e89d545116103515780632e1a7d4d116103205780632e1a7d4d1461052e578063313ce567146105415780633644e515146105505780633950935114610558576103af565b80631e89d5451461046d578063228bfd9f1461048057806323b872dd146105125780632df9eab914610525576103af565b80630c340a241161038d5780630c340a241461040a5780630dd21b6c1461043557806318160ddd146104485780631e751ac11461045a576103af565b806305bed046146103b457806306fdde03146103c9578063095ea7b3146103e7575b600080fd5b6103c76103c2366004614ff8565b6108ba565b005b6103d1610c31565b6040516103de9190615085565b60405180910390f35b6103fa6103f5366004614e54565b610cc4565b60405190151581526020016103de565b60085461041d906001600160a01b031681565b6040516001600160a01b0390911681526020016103de565b6103c7610443366004614e7f565b610cda565b6002545b6040519081526020016103de565b6103c7610468366004614d6f565b61102f565b6103fa61047b366004614eec565b611194565b6104d561048e366004614d37565b600c602052600090815260409020805460018201546002830154600384015460048501546005860154600687015460079097015460ff909616969495939492939192909188565b6040805198151589526020890197909752958701949094526060860192909252608085015260a084015260c083015260e0820152610100016103de565b6103fa610520366004614da7565b6112a3565b61044c600d5481565b6103c761053c366004614fc8565b611356565b604051601281526020016103de565b61044c6113b7565b6103fa610566366004614e54565b6113c6565b6103c76113fd565b6006546103fa90610100900460ff1681565b60125461041d906001600160a01b031681565b6103c76105a6366004615023565b6114ac565b6006546103fa9060ff1681565b61041d6105c6366004614fc8565b6115c0565b6103c76105d9366004614d6f565b6115ea565b6103c76105ec366004614d6f565b611756565b61044c6105ff366004614d37565b611f33565b6103c7610612366004614e54565b611f52565b61044c610625366004614d37565b6120b3565b6103c76120d3565b6103c7610640366004614eb9565b612180565b6103c7610653366004614e54565b6123b6565b60115461041d906001600160a01b031681565b6103d16125a0565b61044c6125af565b61044c610689366004614d37565b6001600160a01b03166000908152600c602052604090206004015490565b6103fa6106b5366004614e54565b61260f565b6103fa6106c8366004614e54565b6126a0565b61044c6106db366004614d37565b6126ad565b6103c76106ee366004614d37565b6126b8565b6103c7610701366004614fc8565b612764565b61044c6127b8565b600a5461041d906001600160a01b031681565b6103c761072f366004614e54565b612852565b6103c7610742366004614d37565b612989565b61044c612ab8565b6103c761075d366004614de7565b612acf565b61044c610770366004614d37565b612c33565b61041d610783366004614fc8565b612c3e565b6103c7610796366004614fc8565b612c4e565b61044c6107a9366004614d6f565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6103c76107e2366004614d37565b612da1565b6103c7612fa6565b61044c600b5481565b6103c761325c565b61044c61080e366004614fc8565b613328565b61041d7f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4881565b6103c7613339565b61041d7f0000000000000000000000005b9b099a712bc02533bc15310ace326cd2c588fe81565b61044c600e5481565b6103c76133e6565b61044c61271081565b6103c7610891366004614fc8565b613493565b6103d1604051806040016040528060058152602001640332e302e360dc1b81525081565b336000908152600c602052604090205460ff1661091e5760405162461bcd60e51b815260206004820152601d60248201527f63616c6c65722d69732d6e6f742d6163746976652d737472617465677900000060448201526064015b60405180910390fd5b610928818461522e565b6001600160a01b037f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48166370a08231336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561099757600080fd5b505afa1580156109ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109cf9190614fe0565b1015610a1d5760405162461bcd60e51b815260206004820181905260248201527f696e73756666696369656e742d62616c616e63652d696e2d73747261746567796044820152606401610915565b8115610a2d57610a2d33836135df565b6000610a383361374d565b90506000610a4682846137df565b90508015610a8f57336000908152600c602052604081206004018054839290610a70908490615285565b9250508190555080600e6000828254610a899190615285565b90915550505b6000610a9a336137f5565b90508015610ae357336000908152600c602052604081206004018054839290610ac490849061522e565b9250508190555080600e6000828254610add919061522e565b90915550505b6000610aef838861522e565b905081811015610b3d57610b3833610b078385615285565b6001600160a01b037f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4816919061393d565b610b86565b81811115610b8657610b863330610b548585615285565b6001600160a01b037f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48169291906139a0565b8615610bbd57336000908152600c602052604081206006018054899290610bae90849061522e565b90915550610bbd9050876139de565b336000818152600c602090815260409182902060040154600e5483518c81529283018b90528284018890526060830191909152608082015260a0810185905290517f29c6c60e040fcd722949346bda66341e8859b20b9a2124a625326ad10373391b9181900360c00190a250505050505050565b606060038054610c40906152c8565b80601f0160208091040260200160405190810160405280929190818152602001828054610c6c906152c8565b8015610cb95780601f10610c8e57610100808354040283529160200191610cb9565b820191906000526020600020905b815481529060010190602001808311610c9c57829003601f168201915b505050505090505b90565b6000610cd1338484613a27565b50600192915050565b6008546001600160a01b03163314610d045760405162461bcd60e51b8152600401610915906150e8565b6001600160a01b038416610d555760405162461bcd60e51b815260206004820152601860248201527773747261746567792d616464726573732d69732d7a65726f60401b6044820152606401610915565b6001600160a01b0384166000908152600c602052604090205460ff1615610db75760405162461bcd60e51b81526020600482015260166024820152751cdd1c985d1959de4b585b1c9958591e4b585919195960521b6044820152606401610915565b81600d54610dc5919061522e565b600d8190556127101015610e1b5760405162461bcd60e51b815260206004820152601c60248201527f746f74616c44656274526174696f2d61626f76652d6d61785f627073000000006044820152606401610915565b612710831115610e6d5760405162461bcd60e51b815260206004820152601a60248201527f696e7465726573742d6665652d61626f76652d6d61785f6270730000000000006044820152606401610915565b600060405180610100016040528060011515815260200185815260200183815260200143815260200160008152602001600081526020016000815260200184815250905080600c6000876001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000160006101000a81548160ff0219169083151502179055506020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015560c0820151816006015560e08201518160070155905050600f859080600181540180825580915050600190039060005260206000200160009091909190916101000a8154816001600160a01b0302191690836001600160a01b031602179055506010859080600181540180825580915050600190039060005260206000200160009091909190916101000a8154816001600160a01b0302191690836001600160a01b03160217905550846001600160a01b03167f5ec27a4fa537fc86d0d17d84e0ee3172c9d253c78cc4ab5c69ee99c5f7084f51858585604051611020939291909283526020830191909152604082015260600190565b60405180910390a25050505050565b6011546001600160a01b0316635dbe47e8336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561108057600080fd5b505afa158015611094573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110b89190614fa8565b6110d45760405162461bcd60e51b8152600401610915906150b8565b604051630a3b0a4f60e01b81526001600160a01b038281166004830152831690630a3b0a4f90602401602060405180830381600087803b15801561111757600080fd5b505af115801561112b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061114f9190614fa8565b6111905760405162461bcd60e51b81526020600482015260126024820152711859190b5a5b8b5b1a5cdd0b59985a5b195960721b6044820152606401610915565b5050565b600081518351146111df5760405162461bcd60e51b81526020600482015260156024820152740d2dce0eae85ad8cadccee8d05adad2e6dac2e8c6d605b1b6044820152606401610915565b60005b83518110156112995761124384828151811061120e57634e487b7160e01b600052603260045260246000fd5b602002602001015184838151811061123657634e487b7160e01b600052603260045260246000fd5b60200260200101516126a0565b6112875760405162461bcd60e51b81526020600482015260156024820152741b5d5b1d1a4b5d1c985b9cd9995c8b59985a5b1959605a1b6044820152606401610915565b80611291816152fd565b9150506111e2565b5060019392505050565b60006112b0848484613b43565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156113355760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610915565b61134985336113448685615285565b613a27565b60019150505b9392505050565b600260075414156113795760405162461bcd60e51b8152600401610915906151a2565b6002600755600654610100900460ff16156113a65760405162461bcd60e51b81526004016109159061511f565b6113af81613d1b565b506001600755565b60006113c1613e63565b905090565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610cd191859061134490869061522e565b6011546001600160a01b0316635dbe47e8336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561144e57600080fd5b505afa158015611462573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114869190614fa8565b6114a25760405162461bcd60e51b8152600401610915906150b8565b6114aa613f59565b565b600260075414156114cf5760405162461bcd60e51b8152600401610915906151a2565b600260075560065460ff16156114f75760405162461bcd60e51b81526004016109159061514b565b6001600160a01b037f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb481663d505accf336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152306024820152604481018890526064810187905260ff8616608482015260a4810185905260c4810184905260e401600060405180830381600087803b15801561159357600080fd5b505af11580156115a7573d6000803e3d6000fd5b505050506115b485614014565b50506001600755505050565b601081815481106115d057600080fd5b6000918252602090912001546001600160a01b0316905081565b6011546001600160a01b0316635dbe47e8336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561163b57600080fd5b505afa15801561164f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116739190614fa8565b61168f5760405162461bcd60e51b8152600401610915906150b8565b604051631484968760e11b81526001600160a01b0382811660048301528316906329092d0e90602401602060405180830381600087803b1580156116d257600080fd5b505af11580156116e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061170a9190614fa8565b6111905760405162461bcd60e51b815260206004820152601760248201527f72656d6f76652d66726f6d2d6c6973742d6661696c65640000000000000000006044820152606401610915565b6008546001600160a01b031633146117805760405162461bcd60e51b8152600401610915906150e8565b6001600160a01b0381166117cc5760405162461bcd60e51b81526020600482015260136024820152726e65772d616464726573732d69732d7a65726f60681b6044820152606401610915565b6001600160a01b0382166118185760405162461bcd60e51b81526020600482015260136024820152726f6c642d616464726573732d69732d7a65726f60681b6044820152606401610915565b306001600160a01b0316816001600160a01b03166316f0115b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561185b57600080fd5b505afa15801561186f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118939190614d53565b6001600160a01b0316146118e25760405162461bcd60e51b81526020600482015260166024820152756e6f742d76616c69642d6e65772d737472617465677960501b6044820152606401610915565b306001600160a01b0316826001600160a01b03166316f0115b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561192557600080fd5b505afa158015611939573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061195d9190614d53565b6001600160a01b0316146119ac5760405162461bcd60e51b81526020600482015260166024820152756e6f742d76616c69642d6f6c642d737472617465677960501b6044820152606401610915565b6001600160a01b0382166000908152600c602052604090205460ff16611a145760405162461bcd60e51b815260206004820152601960248201527f73747261746567792d616c72656164792d6d69677261746564000000000000006044820152606401610915565b6001600160a01b0381166000908152600c602052604090205460ff1615611a765760405162461bcd60e51b81526020600482015260166024820152751cdd1c985d1959de4b585b1c9958591e4b585919195960521b6044820152606401610915565b6000604051806101000160405280600115158152602001600c6000866001600160a01b03166001600160a01b03168152602001908152602001600020600101548152602001600c6000866001600160a01b03166001600160a01b03168152602001908152602001600020600201548152602001600c6000866001600160a01b03166001600160a01b03168152602001908152602001600020600301548152602001600c6000866001600160a01b03166001600160a01b031681526020019081526020016000206004015481526020016000815260200160008152602001600c6000866001600160a01b03166001600160a01b031681526020019081526020016000206007015481525090506000600c6000856001600160a01b03166001600160a01b03168152602001908152602001600020600701819055506000600c6000856001600160a01b03166001600160a01b03168152602001908152602001600020600401819055506000600c6000856001600160a01b03166001600160a01b03168152602001908152602001600020600201819055506000600c6000856001600160a01b03166001600160a01b0316815260200190815260200160002060000160006101000a81548160ff02191690831515021790555080600c6000846001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000160006101000a81548160ff0219169083151502179055506020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015560c0820151816006015560e08201518160070155905050826001600160a01b031663ce5494bb836040518263ffffffff1660e01b8152600401611d1691906001600160a01b0391909116815260200190565b600060405180830381600087803b158015611d3057600080fd5b505af1158015611d44573d6000803e3d6000fd5b5050505060005b600f54811015611e0257836001600160a01b0316600f8281548110611d8057634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03161415611df05782600f8281548110611dbd57634e487b7160e01b600052603260045260246000fd5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550611e02565b80611dfa816152fd565b915050611d4b565b5060005b601054811015611ebd57836001600160a01b031660108281548110611e3b57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03161415611eab578260108281548110611e7857634e487b7160e01b600052603260045260246000fd5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550611ebd565b80611eb5816152fd565b915050611e06565b506001600160a01b038281166000818152600c6020908152604091829020600181015460078201546002909201548451918252928101919091529182015290918516907f35df46f62e188dd7abf424c0f449d857c487aa70360ca1bc904871a61617c20e906060015b60405180910390a3505050565b6001600160a01b0381166000908152602081905260409020545b919050565b6008546001600160a01b03163314611f7c5760405162461bcd60e51b8152600401610915906150e8565b6001600160a01b038216611fcd5760405162461bcd60e51b815260206004820152601860248201527773747261746567792d616464726573732d69732d7a65726f60401b6044820152606401610915565b6001600160a01b0382166000908152600c602052604090205460ff166120055760405162461bcd60e51b815260040161091590615175565b6127108111156120575760405162461bcd60e51b815260206004820152601a60248201527f696e7465726573742d6665652d61626f76652d6d61785f6270730000000000006044820152606401610915565b6001600160a01b0382166000818152600c602052604090819020600101839055517f683b8ed6de444177ebfaa1bac367068d61bd9dfef1f4c309b35e05dd709e73e1906120a79084815260200190565b60405180910390a25050565b6001600160a01b0381166000908152600560205260408120545b92915050565b6011546001600160a01b0316635dbe47e8336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561212457600080fd5b505afa158015612138573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061215c9190614fa8565b6121785760405162461bcd60e51b8152600401610915906150b8565b6114aa61406b565b6012546001600160a01b0316635dbe47e8336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b1580156121d157600080fd5b505afa1580156121e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122099190614fa8565b6122505760405162461bcd60e51b815260206004820152601860248201527731b0b63632b916b4b996b737ba16b6b0b4b73a30b4b732b960411b6044820152606401610915565b8051806122985760405162461bcd60e51b81526020600482015260166024820152757769746864726177616c2d71756575652d626c616e6b60501b6044820152606401610915565b601054811480156122aa5750600f5481145b6122f65760405162461bcd60e51b815260206004820152601f60248201527f696e636f72726563742d77697468647261772d71756575652d6c656e677468006044820152606401610915565b60005b8181101561239d57600c600084838151811061232557634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff1661238b5760405162461bcd60e51b815260206004820152601060248201526f696e76616c69642d737472617465677960801b6044820152606401610915565b80612395816152fd565b9150506122f9565b5081516123b1906010906020850190614c3d565b505050565b6012546001600160a01b0316635dbe47e8336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561240757600080fd5b505afa15801561241b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061243f9190614fa8565b6124865760405162461bcd60e51b815260206004820152601860248201527731b0b63632b916b4b996b737ba16b6b0b4b73a30b4b732b960411b6044820152606401610915565b6001600160a01b0382166000908152600c602052604090205460ff166124be5760405162461bcd60e51b815260040161091590615175565b6001600160a01b0382166000908152600c6020526040902060070154600d5482916124e891615285565b6124f2919061522e565b600d81905561271010156125485760405162461bcd60e51b815260206004820152601c60248201527f746f74616c44656274526174696f2d61626f76652d6d61785f627073000000006044820152606401610915565b6001600160a01b0382166000818152600c602090815260409182902060078101859055600201548251858152918201527f3819805ced44aeebe5cbf4f81a253424557ef66c0a682cf3b54501e3fb935ba191016120a7565b606060048054610c40906152c8565b60006125ba60025490565b15806125cb57506125c9612ab8565b155b156125e8576125e1670de0b6b3a7640000613328565b9050610cc1565b6002546125f3612ab8565b61260590670de0b6b3a7640000615266565b6113c19190615246565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156126915760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610915565b61129933856113448685615285565b6000610cd1338484613b43565b60006120cd826137f5565b6008546001600160a01b031633146126e25760405162461bcd60e51b8152600401610915906150e8565b6001600160a01b0381166127425760405162461bcd60e51b815260206004820152602160248201527f70726f706f7365642d676f7665726e6f722d69732d7a65726f2d6164647265736044820152607360f81b6064820152608401610915565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b600260075414156127875760405162461bcd60e51b8152600401610915906151a2565b600260075560065460ff16156127af5760405162461bcd60e51b81526004016109159061514b565b6113af81614014565b6040516370a0823160e01b81523060048201526000907f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb486001600160a01b0316906370a082319060240160206040518083038186803b15801561281a57600080fd5b505afa15801561282e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113c19190614fe0565b6011546001600160a01b0316635dbe47e8336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b1580156128a357600080fd5b505afa1580156128b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128db9190614fa8565b6128f75760405162461bcd60e51b8152600401610915906150b8565b6001600160a01b0382166000908152600c602052604090205460ff1661292f5760405162461bcd60e51b815260040161091590615175565b6001600160a01b0382166000818152600c6020908152604091829020600281018590556007015482519081529081018490527f3819805ced44aeebe5cbf4f81a253424557ef66c0a682cf3b54501e3fb935ba191016120a7565b6008546001600160a01b031633146129b35760405162461bcd60e51b8152600401610915906150e8565b6001600160a01b038116612a095760405162461bcd60e51b815260206004820152601d60248201527f6665652d636f6c6c6563746f722d616464726573732d69732d7a65726f0000006044820152606401610915565b600a546001600160a01b0382811691161415612a5c5760405162461bcd60e51b815260206004820152601260248201527139b0b6b296b332b296b1b7b63632b1ba37b960711b6044820152606401610915565b600a546040516001600160a01b038084169216907f0f06062680f9bd68e786e9980d9bb03d73d5620fc3b345e417b6eacb310b970690600090a3600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6000612ac26127b8565b600e546113c1919061522e565b83421115612b1f5760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e650000006044820152606401610915565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9888888612b4e8c6140c3565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090506000612ba9826140eb565b90506000612bb982878787614139565b9050896001600160a01b0316816001600160a01b031614612c1c5760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e617475726500006044820152606401610915565b612c278a8a8a613a27565b50505050505050505050565b60006120cd8261374d565b600f81815481106115d057600080fd5b6008546001600160a01b03163314612c785760405162461bcd60e51b8152600401610915906150e8565b600a546001600160a01b0316612cc85760405162461bcd60e51b81526020600482015260156024820152741999594b58dbdb1b1958dd1bdc8b5b9bdd0b5cd95d605a1b6044820152606401610915565b612710811115612d1a5760405162461bcd60e51b815260206004820152601a60248201527f77697468647261772d6665652d6c696d69742d726561636865640000000000006044820152606401610915565b80600b541415612d605760405162461bcd60e51b815260206004820152601160248201527073616d652d77697468647261772d66656560781b6044820152606401610915565b600b5460408051918252602082018390527f2bf847f5692332004b0f69e0d84a8f85ed020bcf8573b3ede68afc92009965bf910160405180910390a1600b55565b6011546001600160a01b0316635dbe47e8336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b158015612df257600080fd5b505afa158015612e06573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e2a9190614fa8565b612e465760405162461bcd60e51b8152600401610915906150b8565b7f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb486001600160a01b0316816001600160a01b03161415612ebf5760405162461bcd60e51b815260206004820152601460248201527306e6f742d616c6c6f7765642d746f2d73776565760641b6044820152606401610915565b600a546001600160a01b0316612f0f5760405162461bcd60e51b81526020600482015260156024820152741999594b58dbdb1b1958dd1bdc8b5b9bdd0b5cd95d605a1b6044820152606401610915565b600a546040516370a0823160e01b8152306004820152612fa3916001600160a01b0390811691908416906370a082319060240160206040518083038186803b158015612f5a57600080fd5b505afa158015612f6e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f929190614fe0565b6001600160a01b038416919061393d565b50565b6008546001600160a01b03163314612fd05760405162461bcd60e51b8152600401610915906150e8565b6011546001600160a01b0316156130205760405162461bcd60e51b81526020600482015260146024820152731b1a5cdd0b585b1c9958591e4b58dc99585d195960621b6044820152606401610915565b600073ded8217de022706a191ee7ee0dc9df1185fb5da39050806001600160a01b0316630fab4d256040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561307457600080fd5b505af1158015613088573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130ac9190614d53565b601160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550806001600160a01b0316630fab4d256040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561310d57600080fd5b505af1158015613121573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131459190614d53565b601280546001600160a01b0319166001600160a01b03928316179055601154600854604051630a3b0a4f60e01b81529083166004820152911690630a3b0a4f90602401602060405180830381600087803b1580156131a257600080fd5b505af11580156131b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131da9190614fa8565b50601254600854604051630a3b0a4f60e01b81526001600160a01b039182166004820152911690630a3b0a4f90602401602060405180830381600087803b15801561322457600080fd5b505af1158015613238573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111909190614fa8565b6009546001600160a01b031633146132c25760405162461bcd60e51b815260206004820152602360248201527f63616c6c65722d69732d6e6f742d7468652d70726f706f7365642d676f7665726044820152623737b960e91b6064820152608401610915565b6009546008546040516001600160a01b0392831692909116907fd4459d5b8b913cab0244230fd9b1c08b6ceace7fe9230e60d0f74cbffdf849d090600090a360098054600880546001600160a01b03199081166001600160a01b03841617909155169055565b60006120cd64e8d4a5100083615246565b6011546001600160a01b0316635dbe47e8336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561338a57600080fd5b505afa15801561339e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133c29190614fa8565b6133de5760405162461bcd60e51b8152600401610915906150b8565b6114aa6142e2565b6011546001600160a01b0316635dbe47e8336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561343757600080fd5b505afa15801561344b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061346f9190614fa8565b61348b5760405162461bcd60e51b8152600401610915906150b8565b6114aa614341565b600260075414156134b65760405162461bcd60e51b8152600401610915906151a2565b6002600755600654610100900460ff16156134e35760405162461bcd60e51b81526004016109159061511f565b6001600160a01b037f0000000000000000000000005b9b099a712bc02533bc15310ace326cd2c588fe16635dbe47e8336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561355257600080fd5b505afa158015613566573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061358a9190614fa8565b6135d65760405162461bcd60e51b815260206004820152601a60248201527f6e6f742d612d77686974652d6c69737465642d616464726573730000000000006044820152606401610915565b6113af816143c3565b6001600160a01b0382166000908152600c60205260409020600401548181101561363b5760405162461bcd60e51b815260206004820152600d60248201526c0d8dee6e65ae8dede5ad0d2ced609b1b6044820152606401610915565b6001600160a01b0383166000908152600c60205260408120600501805484929061366690849061522e565b90915550506001600160a01b0383166000908152600c602052604081206004018054849290613696908490615285565b9250508190555081600e60008282546136af9190615285565b90915550600090506136f96136c2612ab8565b6136ce61271086615266565b6136d89190615246565b6001600160a01b0386166000908152600c60205260409020600701546137df565b6001600160a01b0385166000908152600c6020526040812060070180549293508392909190613729908490615285565b9250508190555080600d60008282546137429190615285565b909155505050505050565b6001600160a01b0381166000908152600c6020526040812060040154600654610100900460ff1615613780579050611f4d565b600061271061378d612ab8565b6001600160a01b0386166000908152600c60205260409020600701546137b39190615266565b6137bd9190615246565b90508082116137cd5760006137d7565b6137d78183615285565b949350505050565b60008183106137ee578161134f565b5090919050565b600654600090610100900460ff161561381057506000611f4d565b600061381a612ab8565b6001600160a01b0384166000908152600c60205260408120600701549192509061271090613849908490615266565b6138539190615246565b6001600160a01b0385166000908152600c60205260409020600401549091508181106138855760009350505050611f4d565b600061271084600d546138989190615266565b6138a29190615246565b905080600e54106138ba576000945050505050611f4d565b60006138c68385615285565b90506138ee6138dc6138d66127b8565b836137df565b600e546138e99085615285565b6137df565b6001600160a01b0388166000908152600c602052604090206002810154600390910154919250613932916139229043615285565b61392c9190615266565b826137df565b979650505050505050565b6040516001600160a01b0383166024820152604481018290526123b190849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152614486565b6040516001600160a01b03808516602483015283166044820152606481018290526139d89085906323b872dd60e01b90608401613969565b50505050565b336000908152600c6020526040812060010154612710906139ff9084615266565b613a099190615246565b9050801561119057613a1a81614558565b9050611190335b826145f9565b6001600160a01b038316613a895760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610915565b6001600160a01b038216613aea5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610915565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259101611f26565b6001600160a01b038316613ba75760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610915565b6001600160a01b038216613c095760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610915565b6001600160a01b03831660009081526020819052604090205481811015613c815760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610915565b613c8b8282615285565b6001600160a01b038086166000908152602081905260408082209390935590851681529081208054849290613cc190849061522e565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051613d0d91815260200190565b60405180910390a350505050565b600b54613d3057613d2b816143c3565b612fa3565b80613d6a5760405162461bcd60e51b815260206004820152600a602482015269073686172652d69732d360b41b6044820152606401610915565b6000612710600b5483613d7d9190615266565b613d879190615246565b90506000613d958284615285565b90506000613da2826146d8565b90506000613daf82614558565b9050613dba83613328565b613dc382613328565b1015613e0057600b54613dd890612710615285565b613de461271083615266565b613dee9190615246565b9450613dfa8186615285565b93508092505b613e0b335b84614740565b613e2133600a546001600160a01b031686613b43565b613e2a8261488f565b50604080518681526020810184905233917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689101611020565b60007f0000000000000000000000000000000000000000000000000000000000000001461415613eb457507fd6270329aac26c39840b93fe13843fd93419fe77169b07175aca9e90fa355cfd610cc1565b604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6020808301919091527f713c4578f6c92602b812e27c4429a8bc765a10c145b74e4403ab685c40118bd5828401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608301524660808301523060a0808401919091528351808403909101815260c090920190925280519101206125e1565b60065460ff16613fa25760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610915565b600654610100900460ff1615613fca5760405162461bcd60e51b81526004016109159061511f565b6006805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600061401f82614558565b905061402a826148c9565b61403333613a21565b604080518281526020810184905233917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a1591016120a7565b60065460ff161561408e5760405162461bcd60e51b81526004016109159061514b565b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258613ff73390565b6001600160a01b03811660009081526005602052604090208054600181018255905b50919050565b60006120cd6140f8613e63565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156141b65760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610915565b8360ff16601b14806141cb57508360ff16601c145b6142225760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610915565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015614276573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166142d95760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610915565b95945050505050565b600654610100900460ff161561430a5760405162461bcd60e51b81526004016109159061511f565b6006805461ffff19166101011790557f28b4c24cb1012c094cd2f59f98e89d791973295f8fda6eaa118022d6d318960a613ff73390565b600654610100900460ff166143915760405162461bcd60e51b81526020600482015260166024820152752830bab9b0b136329d103737ba1039b43aba3237bbb760511b6044820152606401610915565b6006805461ff00191690557fece7583a70a505ef0e36d4dec768f5ae597713e09c26011022599ee01abdabfc33613ff7565b806143fd5760405162461bcd60e51b815260206004820152600a602482015269073686172652d69732d360b41b6044820152606401610915565b6000614408826146d8565b9050600061441582614558565b905061442083613328565b61442982613328565b1015614433578092505b61443c33613e05565b6144458261488f565b50604080518481526020810184905233917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568910160405180910390a2505050565b60006144db826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166148fe9092919063ffffffff16565b8051909150156123b157808060200190518101906144f99190614fa8565b6123b15760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610915565b6000816145955760405162461bcd60e51b815260206004820152600b60248201526a0616d6f756e742d69732d360ac1b6044820152606401610915565b600061459f6125af565b6145b184670de0b6b3a7640000615266565b6145bb9190615246565b9050670de0b6b3a76400006145ce6125af565b6145d89083615266565b6145e29190615246565b83116145ee578061134f565b61134f81600161522e565b6001600160a01b03821661464f5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610915565b8060026000828254614661919061522e565b90915550506001600160a01b0382166000908152602081905260408120805483929061468e90849061522e565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b600080670de0b6b3a76400006146ec6125af565b6146f69085615266565b6147009190615246565b9050600061470c6127b8565b905080821115614733576147286147238284615285565b61490d565b6147306127b8565b90505b81811061134f57816137d7565b6001600160a01b0382166147a05760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610915565b6001600160a01b038216600090815260208190526040902054818110156148145760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610915565b61481e8282615285565b6001600160a01b0384166000908152602081905260408120919091556002805484929061484c908490615285565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001611f26565b60006148c57f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb486001600160a01b0316338461393d565b5090565b612fa37f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb486001600160a01b03163330846139a0565b60606137d78484600085614aec565b60008080808481805b601054811015614ae257600c60006010838154811061494557634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b0316835282019290925260400190206004015496508661497957614ad0565b86831115614985578692505b61498d6127b8565b9450601081815481106149b057634e487b7160e01b600052603260045260246000fd5b600091825260209091200154604051632e1a7d4d60e01b8152600481018590526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b1580156149ff57600080fd5b505af1925050508015614a10575060015b614a1957614ad0565b614a216127b8565b9550614a2d8587615285565b935083600c600060108481548110614a5557634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b0316835282019290925260400181206004018054909190614a8c908490615285565b9250508190555083600e6000828254614aa59190615285565b90915550614ab59050848361522e565b9150878210614ac357614ae2565b614acd8289615285565b92505b80614ada816152fd565b915050614916565b5050505050505050565b606082471015614b4d5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610915565b843b614b9b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610915565b600080866001600160a01b03168587604051614bb79190615069565b60006040518083038185875af1925050503d8060008114614bf4576040519150601f19603f3d011682016040523d82523d6000602084013e614bf9565b606091505b509150915061393282828660608315614c1357508161134f565b825115614c235782518084602001fd5b8160405162461bcd60e51b81526004016109159190615085565b828054828255906000526020600020908101928215614c92579160200282015b82811115614c9257825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190614c5d565b506148c59291505b808211156148c55760008155600101614c9a565b600082601f830112614cbe578081fd5b81356020614cd3614cce8361520a565b6151d9565b80838252828201915082860187848660051b8901011115614cf2578586fd5b855b85811015614d19578135614d0781615344565b84529284019290840190600101614cf4565b5090979650505050505050565b803560ff81168114611f4d57600080fd5b600060208284031215614d48578081fd5b813561134f81615344565b600060208284031215614d64578081fd5b815161134f81615344565b60008060408385031215614d81578081fd5b8235614d8c81615344565b91506020830135614d9c81615344565b809150509250929050565b600080600060608486031215614dbb578081fd5b8335614dc681615344565b92506020840135614dd681615344565b929592945050506040919091013590565b600080600080600080600060e0888a031215614e01578283fd5b8735614e0c81615344565b96506020880135614e1c81615344565b95506040880135945060608801359350614e3860808901614d26565b925060a0880135915060c0880135905092959891949750929550565b60008060408385031215614e66578182fd5b8235614e7181615344565b946020939093013593505050565b60008060008060808587031215614e94578384fd5b8435614e9f81615344565b966020860135965060408601359560600135945092505050565b600060208284031215614eca578081fd5b813567ffffffffffffffff811115614ee0578182fd5b6137d784828501614cae565b60008060408385031215614efe578182fd5b823567ffffffffffffffff80821115614f15578384fd5b614f2186838701614cae565b9350602091508185013581811115614f37578384fd5b85019050601f81018613614f49578283fd5b8035614f57614cce8261520a565b80828252848201915084840189868560051b8701011115614f76578687fd5b8694505b83851015614f98578035835260019490940193918501918501614f7a565b5080955050505050509250929050565b600060208284031215614fb9578081fd5b8151801515811461134f578182fd5b600060208284031215614fd9578081fd5b5035919050565b600060208284031215614ff1578081fd5b5051919050565b60008060006060848603121561500c578081fd5b505081359360208301359350604090920135919050565b600080600080600060a0868803121561503a578283fd5b853594506020860135935061505160408701614d26565b94979396509394606081013594506080013592915050565b6000825161507b81846020870161529c565b9190910192915050565b60006020825282518060208401526150a481604085016020870161529c565b601f01601f19169190910160400192915050565b60208082526016908201527531b0b63632b916b4b996b737ba16b096b5b2b2b832b960511b604082015260600190565b6020808252601a908201527f63616c6c65722d69732d6e6f742d7468652d676f7665726e6f72000000000000604082015260600190565b6020808252601290820152712830bab9b0b136329d1039b43aba3237bbb760711b604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526013908201527273747261746567792d6e6f742d61637469766560681b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b604051601f8201601f1916810167ffffffffffffffff811182821017156152025761520261532e565b604052919050565b600067ffffffffffffffff8211156152245761522461532e565b5060051b60200190565b6000821982111561524157615241615318565b500190565b60008261526157634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561528057615280615318565b500290565b60008282101561529757615297615318565b500390565b60005b838110156152b757818101518382015260200161529f565b838111156139d85750506000910152565b600181811c908216806152dc57607f821691505b602082108114156140e557634e487b7160e01b600052602260045260246000fd5b600060001982141561531157615311615318565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114612fa357600080fdfea26469706673582212203e278a945b9b6e040aef2dbcd5c841dea95bb7ecf8c91c941561e8e5d404ef4264736f6c63430008030033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.