Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
17,227.34228060967266937 ERC20 ***
Holders
54
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0xC7976439...8CaE4c3A9 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
IdleToken
Compiler Version
v0.5.11+commit.c082d0b4
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-02-02 */ // File: @openzeppelin/contracts/token/ERC20/IERC20.sol pragma solidity ^0.5.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. Does not include * the optional functions; to access them see {ERC20Detailed}. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File: @openzeppelin/contracts/GSN/Context.sol pragma solidity ^0.5.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ contract Context { // Empty internal constructor, to prevent people from mistakenly deploying // an instance of this contract, which should be used via inheritance. constructor () internal { } // solhint-disable-previous-line no-empty-blocks function _msgSender() internal view returns (address payable) { return msg.sender; } function _msgData() internal view returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // File: @openzeppelin/contracts/math/SafeMath.sol pragma solidity ^0.5.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. * * _Available since v2.4.0._ */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. * * _Available since v2.4.0._ */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. * * _Available since v2.4.0._ */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } // File: @openzeppelin/contracts/token/ERC20/ERC20.sol pragma solidity ^0.5.0; /** * @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 {ERC20Mintable}. * * 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 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view 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 returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public 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 returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); 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 returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(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 returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); 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 { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(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 { require(account != address(0), "ERC20: mint to the zero address"); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(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 { require(account != address(0), "ERC20: burn from the zero address"); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens. * * This is 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 { 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 Destroys `amount` tokens from `account`.`amount` is then deducted * from the caller's allowance. * * See {_burn} and {_approve}. */ function _burnFrom(address account, uint256 amount) internal { _burn(account, amount); _approve(account, _msgSender(), _allowances[account][_msgSender()].sub(amount, "ERC20: burn amount exceeds allowance")); } } // File: @openzeppelin/contracts/token/ERC20/ERC20Detailed.sol pragma solidity ^0.5.0; /** * @dev Optional functions from the ERC20 standard. */ contract ERC20Detailed is IERC20 { string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for `name`, `symbol`, and `decimals`. All three of * these values are immutable: they can only be set once during * construction. */ constructor (string memory name, string memory symbol, uint8 decimals) public { _name = name; _symbol = symbol; _decimals = decimals; } /** * @dev Returns the name of the token. */ function name() public view returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view returns (uint8) { return _decimals; } } // File: @openzeppelin/contracts/utils/ReentrancyGuard.sol pragma solidity ^0.5.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. */ contract ReentrancyGuard { // counter to allow mutex lock with only one SSTORE operation uint256 private _guardCounter; constructor () internal { // The counter starts at one to prevent changing it from zero to a non-zero // value, which is a more expensive operation. _guardCounter = 1; } /** * @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() { _guardCounter += 1; uint256 localCounter = _guardCounter; _; require(localCounter == _guardCounter, "ReentrancyGuard: reentrant call"); } } // File: @openzeppelin/contracts/ownership/Ownable.sol pragma solidity ^0.5.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { _owner = _msgSender(); emit OwnershipTransferred(address(0), _owner); } /** * @dev Returns the address of the current owner. */ function owner() public view returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(isOwner(), "Ownable: caller is not the owner"); _; } /** * @dev Returns true if the caller is the current owner. */ function isOwner() public view returns (bool) { return _msgSender() == _owner; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public onlyOwner { _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). */ function _transferOwnership(address newOwner) internal { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } // File: @openzeppelin/contracts/access/Roles.sol pragma solidity ^0.5.0; /** * @title Roles * @dev Library for managing addresses assigned to a Role. */ library Roles { struct Role { mapping (address => bool) bearer; } /** * @dev Give an account access to this role. */ function add(Role storage role, address account) internal { require(!has(role, account), "Roles: account already has role"); role.bearer[account] = true; } /** * @dev Remove an account's access to this role. */ function remove(Role storage role, address account) internal { require(has(role, account), "Roles: account does not have role"); role.bearer[account] = false; } /** * @dev Check if an account has this role. * @return bool */ function has(Role storage role, address account) internal view returns (bool) { require(account != address(0), "Roles: account is the zero address"); return role.bearer[account]; } } // File: @openzeppelin/contracts/access/roles/PauserRole.sol pragma solidity ^0.5.0; contract PauserRole is Context { using Roles for Roles.Role; event PauserAdded(address indexed account); event PauserRemoved(address indexed account); Roles.Role private _pausers; constructor () internal { _addPauser(_msgSender()); } modifier onlyPauser() { require(isPauser(_msgSender()), "PauserRole: caller does not have the Pauser role"); _; } function isPauser(address account) public view returns (bool) { return _pausers.has(account); } function addPauser(address account) public onlyPauser { _addPauser(account); } function renouncePauser() public { _removePauser(_msgSender()); } function _addPauser(address account) internal { _pausers.add(account); emit PauserAdded(account); } function _removePauser(address account) internal { _pausers.remove(account); emit PauserRemoved(account); } } // File: @openzeppelin/contracts/lifecycle/Pausable.sol pragma solidity ^0.5.0; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ contract Pausable is Context, PauserRole { /** * @dev Emitted when the pause is triggered by a pauser (`account`). */ event Paused(address account); /** * @dev Emitted when the pause is lifted by a pauser (`account`). */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. Assigns the Pauser role * to the deployer. */ constructor () internal { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. */ modifier whenNotPaused() { require(!_paused, "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. */ modifier whenPaused() { require(_paused, "Pausable: not paused"); _; } /** * @dev Called by a pauser to pause, triggers stopped state. */ function pause() public onlyPauser whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Called by a pauser to unpause, returns to normal state. */ function unpause() public onlyPauser whenPaused { _paused = false; emit Unpaused(_msgSender()); } } // File: @openzeppelin/contracts/utils/Address.sol pragma solidity ^0.5.5; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * This test is non-exhaustive, and there may be false-negatives: during the * execution of a contract's constructor, its address will be reported as * not containing 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. */ function isContract(address account) internal view returns (bool) { // This method relies in extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // solhint-disable-next-line no-inline-assembly assembly { codehash := extcodehash(account) } return (codehash != 0x0 && codehash != accountHash); } /** * @dev Converts an `address` into `address payable`. Note that this is * simply a type cast: the actual underlying value is not changed. * * _Available since v2.4.0._ */ function toPayable(address account) internal pure returns (address payable) { return address(uint160(account)); } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. * * _Available since v2.4.0._ */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-call-value (bool success, ) = recipient.call.value(amount)(""); require(success, "Address: unable to send value, recipient may have reverted"); } } // File: @openzeppelin/contracts/token/ERC20/SafeERC20.sol pragma solidity ^0.5.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for ERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. // A Solidity high level call has three parts: // 1. The target address is checked to verify it contains contract code // 2. The call itself is made, and success asserted // 3. The return value is decoded, which in turn checks the size of the returned data. // solhint-disable-next-line max-line-length require(address(token).isContract(), "SafeERC20: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = address(token).call(data); require(success, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File: contracts/interfaces/iERC20Fulcrum.sol pragma solidity 0.5.11; interface iERC20Fulcrum { function mint( address receiver, uint256 depositAmount) external returns (uint256 mintAmount); function burn( address receiver, uint256 burnAmount) external returns (uint256 loanAmountPaid); function tokenPrice() external view returns (uint256 price); function supplyInterestRate() external view returns (uint256); function rateMultiplier() external view returns (uint256); function baseRate() external view returns (uint256); function borrowInterestRate() external view returns (uint256); function avgBorrowInterestRate() external view returns (uint256); function protocolInterestRate() external view returns (uint256); function spreadMultiplier() external view returns (uint256); function totalAssetBorrow() external view returns (uint256); function totalAssetSupply() external view returns (uint256); function nextSupplyInterestRate(uint256) external view returns (uint256); function nextBorrowInterestRate(uint256) external view returns (uint256); function nextLoanInterestRate(uint256) external view returns (uint256); function claimLoanToken() external returns (uint256 claimedAmount); function dsr() external view returns (uint256); function chaiPrice() external view returns (uint256); } // File: contracts/interfaces/ILendingProtocol.sol pragma solidity 0.5.11; interface ILendingProtocol { function mint() external returns (uint256); function redeem(address account) external returns (uint256); function nextSupplyRate(uint256 amount) external view returns (uint256); function nextSupplyRateWithParams(uint256[] calldata params) external view returns (uint256); function getAPR() external view returns (uint256); function getPriceInToken() external view returns (uint256); function token() external view returns (address); function underlying() external view returns (address); } // File: contracts/interfaces/IIdleToken.sol /** * @title: Idle Token interface * @author: William Bergamo, idle.finance */ pragma solidity 0.5.11; interface IIdleToken { // view /** * IdleToken price calculation, in underlying * * @return : price in underlying token */ function tokenPrice() external view returns (uint256 price); /** * underlying token decimals * * @return : decimals of underlying token */ function tokenDecimals() external view returns (uint256 decimals); /** * Get APR of every ILendingProtocol * * @return addresses: array of token addresses * @return aprs: array of aprs (ordered in respect to the `addresses` array) */ function getAPRs() external view returns (address[] memory addresses, uint256[] memory aprs); // external // We should save the amount one has deposited to calc interests /** * Used to mint IdleTokens, given an underlying amount (eg. DAI). * This method triggers a rebalance of the pools if needed * NOTE: User should 'approve' _amount of tokens before calling mintIdleToken * NOTE 2: this method can be paused * * @param _amount : amount of underlying token to be lended * @param _clientProtocolAmounts : client side calculated amounts to put on each lending protocol * @return mintedTokens : amount of IdleTokens minted */ function mintIdleToken(uint256 _amount, uint256[] calldata _clientProtocolAmounts) external returns (uint256 mintedTokens); /** * @param _amount : amount of underlying token to be lended * @return : address[] array with all token addresses used, * eg [cTokenAddress, iTokenAddress] * @return : uint256[] array with all amounts for each protocol in order, * eg [amountCompound, amountFulcrum] */ function getParamsForMintIdleToken(uint256 _amount) external returns (address[] memory, uint256[] memory); /** * Here we calc the pool share one can withdraw given the amount of IdleToken they want to burn * This method triggers a rebalance of the pools if needed * NOTE: If the contract is paused or iToken price has decreased one can still redeem but no rebalance happens. * NOTE 2: If iToken price has decresed one should not redeem (but can do it) otherwise he would capitalize the loss. * Ideally one should wait until the black swan event is terminated * * @param _amount : amount of IdleTokens to be burned * @param _clientProtocolAmounts : client side calculated amounts to put on each lending protocol * @return redeemedTokens : amount of underlying tokens redeemed */ function redeemIdleToken(uint256 _amount, bool _skipRebalance, uint256[] calldata _clientProtocolAmounts) external returns (uint256 redeemedTokens); /** * @param _amount : amount of IdleTokens to be burned * @param _skipRebalance : whether to skip the rebalance process or not * @return : address[] array with all token addresses used, * eg [cTokenAddress, iTokenAddress] * @return : uint256[] array with all amounts for each protocol in order, * eg [amountCompound, amountFulcrum] */ function getParamsForRedeemIdleToken(uint256 _amount, bool _skipRebalance) external returns (address[] memory, uint256[] memory); /** * Here we calc the pool share one can withdraw given the amount of IdleToken they want to burn * and send interest-bearing tokens (eg. cDAI/iDAI) directly to the user. * Underlying (eg. DAI) is not redeemed here. * * @param _amount : amount of IdleTokens to be burned */ function redeemInterestBearingTokens(uint256 _amount) external; /** * @param _clientProtocolAmounts : client side calculated amounts to put on each lending protocol * @return claimedTokens : amount of underlying tokens claimed */ function claimITokens(uint256[] calldata _clientProtocolAmounts) external returns (uint256 claimedTokens); /** * @param _newAmount : amount of underlying tokens that needs to be minted with this rebalance * @param _clientProtocolAmounts : client side calculated amounts to put on each lending protocol * @return : whether has rebalanced or not */ function rebalance(uint256 _newAmount, uint256[] calldata _clientProtocolAmounts) external returns (bool); /** * @param _newAmount : amount of underlying tokens that needs to be minted with this rebalance * @return : address[] array with all token addresses used, * eg [cTokenAddress, iTokenAddress] * @return : uint256[] array with all amounts for each protocol in order, * eg [amountCompound, amountFulcrum] */ function getParamsForRebalance(uint256 _newAmount) external returns (address[] memory, uint256[] memory); } // File: contracts/interfaces/CERC20.sol pragma solidity 0.5.11; interface CERC20 { function mint(uint256 mintAmount) external returns (uint256); function redeem(uint256 redeemTokens) external returns (uint256); function exchangeRateStored() external view returns (uint256); function supplyRatePerBlock() external view returns (uint256); function borrowRatePerBlock() external view returns (uint256); function totalReserves() external view returns (uint256); function getCash() external view returns (uint256); function totalBorrows() external view returns (uint256); function reserveFactorMantissa() external view returns (uint256); function interestRateModel() external view returns (address); } // File: contracts/interfaces/WhitePaperInterestRateModel.sol pragma solidity 0.5.11; interface WhitePaperInterestRateModel { function getBorrowRate(uint256 cash, uint256 borrows, uint256 _reserves) external view returns (uint256, uint256); function getSupplyRate(uint256 cash, uint256 borrows, uint256 reserves, uint256 reserveFactorMantissa) external view returns (uint256); function multiplier() external view returns (uint256); function baseRate() external view returns (uint256); function blocksPerYear() external view returns (uint256); function dsrPerBlock() external view returns (uint256); } // File: contracts/IdleRebalancer.sol /** * @title: Idle Rebalancer contract * @summary: Used for calculating amounts to lend on each implemented protocol. * This implementation works with Compound and Fulcrum only, * when a new protocol will be added this should be replaced * @author: William Bergamo, idle.finance */ pragma solidity 0.5.11; contract IdleRebalancer is Ownable { using SafeMath for uint256; // IdleToken address address public idleToken; // protocol token (cToken) address address public cToken; // protocol token (iToken) address address public iToken; // cToken protocol wrapper IdleCompound address public cWrapper; // iToken protocol wrapper IdleFulcrum address public iWrapper; // max % difference between next supply rate of Fulcrum and Compound uint256 public maxRateDifference; // 10**17 -> 0.1 % // max % difference between off-chain user supplied params for rebalance and actual amount to be rebalanced uint256 public maxSupplyedParamsDifference; // 100000 -> 0.001% // max number of recursive calls for bisection algorithm uint256 public maxIterations; /** * @param _cToken : cToken address * @param _iToken : iToken address * @param _cWrapper : cWrapper address * @param _iWrapper : iWrapper address */ constructor(address _cToken, address _iToken, address _cWrapper, address _iWrapper) public { require(_cToken != address(0) && _iToken != address(0) && _cWrapper != address(0) && _iWrapper != address(0), 'some addr is 0'); cToken = _cToken; iToken = _iToken; cWrapper = _cWrapper; iWrapper = _iWrapper; maxRateDifference = 10**17; // 0.1% maxSupplyedParamsDifference = 100000; // 0.001% maxIterations = 30; } /** * Throws if called by any account other than IdleToken contract. */ modifier onlyIdle() { require(msg.sender == idleToken, "Ownable: caller is not IdleToken contract"); _; } // onlyOwner /** * sets idleToken address * NOTE: can be called only once. It's not on the constructor because we are deploying this contract * after the IdleToken contract * @param _idleToken : idleToken address */ function setIdleToken(address _idleToken) external onlyOwner { require(idleToken == address(0), "idleToken addr already set"); require(_idleToken != address(0), "_idleToken addr is 0"); idleToken = _idleToken; } /** * sets maxIterations for bisection recursive calls * @param _maxIterations : max number of iterations for the bisection algorithm */ function setMaxIterations(uint256 _maxIterations) external onlyOwner { maxIterations = _maxIterations; } /** * sets maxRateDifference * @param _maxDifference : max rate difference in percentage scaled by 10**18 */ function setMaxRateDifference(uint256 _maxDifference) external onlyOwner { maxRateDifference = _maxDifference; } /** * sets maxSupplyedParamsDifference * @param _maxSupplyedParamsDifference : max slippage between the rebalance params given from the client * and actual amount to be rebalanced */ function setMaxSupplyedParamsDifference(uint256 _maxSupplyedParamsDifference) external onlyOwner { maxSupplyedParamsDifference = _maxSupplyedParamsDifference; } // end onlyOwner /** * Used by IdleToken contract to calculate the amount to be lended * on each protocol in order to get the best available rate for all funds. * * @param _rebalanceParams : first param is the total amount to be rebalanced, * all other elements are client side calculated amounts to put on each lending protocol * @return tokenAddresses : array with all token addresses used, * currently [cTokenAddress, iTokenAddress] * @return amounts : array with all amounts for each protocol in order, * currently [amountCompound, amountFulcrum] */ function calcRebalanceAmounts(uint256[] calldata _rebalanceParams) external view onlyIdle returns (address[] memory tokenAddresses, uint256[] memory amounts) { // Get all params for calculating Compound nextSupplyRateWithParams CERC20 _cToken = CERC20(cToken); WhitePaperInterestRateModel white = WhitePaperInterestRateModel(_cToken.interestRateModel()); uint256[] memory paramsCompound = new uint256[](10); paramsCompound[0] = 10**18; // j paramsCompound[1] = white.baseRate(); // a paramsCompound[2] = _cToken.totalBorrows(); // b paramsCompound[3] = white.multiplier(); // c paramsCompound[4] = _cToken.totalReserves(); // d paramsCompound[5] = paramsCompound[0].sub(_cToken.reserveFactorMantissa()); // e paramsCompound[6] = _cToken.getCash(); // s paramsCompound[7] = white.blocksPerYear(); // k paramsCompound[8] = 100; // f // Get all params for calculating Fulcrum nextSupplyRateWithParams iERC20Fulcrum _iToken = iERC20Fulcrum(iToken); uint256[] memory paramsFulcrum = new uint256[](4); paramsFulcrum[0] = _iToken.protocolInterestRate(); // a1 paramsFulcrum[1] = _iToken.totalAssetBorrow(); // b1 paramsFulcrum[2] = _iToken.totalAssetSupply(); // s1 tokenAddresses = new address[](2); tokenAddresses[0] = cToken; tokenAddresses[1] = iToken; // _rebalanceParams should be [totAmountToRebalance, amountCompound, amountFulcrum]; if (_rebalanceParams.length == 3) { (bool amountsAreCorrect, uint256[] memory checkedAmounts) = checkRebalanceAmounts(_rebalanceParams, paramsCompound, paramsFulcrum); if (amountsAreCorrect) { return (tokenAddresses, checkedAmounts); } } // Initial guess for shrinking initial bisection interval /* Compound: (getCash returns the available supply only, not the borrowed one) getCash + totalBorrows = totalSuppliedCompound Fulcrum: totalSupply = totalSuppliedFulcrum we try to correlate borrow and supply on both markets totC = totalSuppliedCompound + totalBorrowsCompound totF = totalSuppliedFulcrum + totalBorrowsFulcrum n : (totC + totF) = x : totF x = n * totF / (totC + totF) */ uint256 amountFulcrum = _rebalanceParams[0].mul(paramsFulcrum[2].add(paramsFulcrum[1])).div( paramsFulcrum[2].add(paramsFulcrum[1]).add(paramsCompound[6].add(paramsCompound[2]).add(paramsCompound[2])) ); // Recursive bisection algorithm amounts = bisectionRec( _rebalanceParams[0].sub(amountFulcrum), // amountCompound amountFulcrum, maxRateDifference, // 0.1% of rate difference, 0, // currIter maxIterations, // maxIter _rebalanceParams[0], paramsCompound, paramsFulcrum ); // returns [amountCompound, amountFulcrum] return (tokenAddresses, amounts); } /** * Used by IdleToken contract to check if provided amounts * causes the rates of Fulcrum and Compound to be balanced * (counting a tolerance) * * @param rebalanceParams : first element is the total amount to be rebalanced, * the rest is an array with all amounts for each protocol in order, * currently [amountCompound, amountFulcrum] * @param paramsCompound : array with all params (except for the newDAIAmount) * for calculating next supply rate of Compound * @param paramsFulcrum : array with all params (except for the newDAIAmount) * for calculating next supply rate of Fulcrum * @return bool : if provided amount correctly rebalances the pool */ function checkRebalanceAmounts( uint256[] memory rebalanceParams, uint256[] memory paramsCompound, uint256[] memory paramsFulcrum ) internal view returns (bool, uint256[] memory checkedAmounts) { // This is the amount that should be rebalanced no more no less uint256 actualAmountToBeRebalanced = rebalanceParams[0]; // n // interest is earned between when tx was submitted and when it is mined so params sent by users // should always be slightly less than what should be rebalanced uint256 totAmountSentByUser; for (uint8 i = 1; i < rebalanceParams.length; i++) { totAmountSentByUser = totAmountSentByUser.add(rebalanceParams[i]); } // check if amounts sent from user are less than actualAmountToBeRebalanced and // at most `actualAmountToBeRebalanced - 0.001% of (actualAmountToBeRebalanced)` if (totAmountSentByUser > actualAmountToBeRebalanced || totAmountSentByUser.add(totAmountSentByUser.div(maxSupplyedParamsDifference)) < actualAmountToBeRebalanced) { return (false, new uint256[](2)); } uint256 interestToBeSplitted = actualAmountToBeRebalanced.sub(totAmountSentByUser); // sets newDAIAmount for each protocol paramsCompound[9] = rebalanceParams[1].add(interestToBeSplitted.div(2)); paramsFulcrum[3] = rebalanceParams[2].add(interestToBeSplitted.sub(interestToBeSplitted.div(2))); // calculate next rates with amountCompound and amountFulcrum // For Fulcrum see https://github.com/bZxNetwork/bZx-monorepo/blob/development/packages/contracts/extensions/loanTokenization/contracts/LoanToken/LoanTokenLogicV3.sol#L1418 // fulcrumUtilRate = fulcrumBorrow.mul(10**20).div(assetSupply); uint256 currFulcRate = (paramsFulcrum[1].mul(10**20).div(paramsFulcrum[2])) > 90 ether ? ILendingProtocol(iWrapper).nextSupplyRate(paramsFulcrum[3]) : ILendingProtocol(iWrapper).nextSupplyRateWithParams(paramsFulcrum); uint256 currCompRate = ILendingProtocol(cWrapper).nextSupplyRateWithParams(paramsCompound); bool isCompoundBest = currCompRate > currFulcRate; // |fulcrumRate - compoundRate| <= tolerance bool areParamsOk = (currFulcRate.add(maxRateDifference) >= currCompRate && isCompoundBest) || (currCompRate.add(maxRateDifference) >= currFulcRate && !isCompoundBest); uint256[] memory actualParams = new uint256[](2); actualParams[0] = paramsCompound[9]; actualParams[1] = paramsFulcrum[3]; return (areParamsOk, actualParams); } /** * Internal implementation of our bisection algorithm * * @param amountCompound : amount to be lended in compound in current iteration * @param amountFulcrum : amount to be lended in Fulcrum in current iteration * @param tolerance : max % difference between next supply rate of Fulcrum and Compound * @param currIter : current iteration * @param maxIter : max number of iterations * @param n : amount of underlying tokens (eg. DAI) to rebalance * @param paramsCompound : array with all params (except for the newDAIAmount) * for calculating next supply rate of Compound * @param paramsFulcrum : array with all params (except for the newDAIAmount) * for calculating next supply rate of Fulcrum * @return amounts : array with all amounts for each protocol in order, * currently [amountCompound, amountFulcrum] */ function bisectionRec( uint256 amountCompound, uint256 amountFulcrum, uint256 tolerance, uint256 currIter, uint256 maxIter, uint256 n, uint256[] memory paramsCompound, uint256[] memory paramsFulcrum ) internal view returns (uint256[] memory amounts) { // sets newDAIAmount for each protocol paramsCompound[9] = amountCompound; paramsFulcrum[3] = amountFulcrum; // calculate next rates with amountCompound and amountFulcrum // For Fulcrum see https://github.com/bZxNetwork/bZx-monorepo/blob/development/packages/contracts/extensions/loanTokenization/contracts/LoanToken/LoanTokenLogicV3.sol#L1418 // fulcrumUtilRate = fulcrumBorrow.mul(10**20).div(assetSupply); uint256 currFulcRate = (paramsFulcrum[1].mul(10**20).div(paramsFulcrum[2])) > 90 ether ? ILendingProtocol(iWrapper).nextSupplyRate(amountFulcrum) : ILendingProtocol(iWrapper).nextSupplyRateWithParams(paramsFulcrum); uint256 currCompRate = ILendingProtocol(cWrapper).nextSupplyRateWithParams(paramsCompound); bool isCompoundBest = currCompRate > currFulcRate; // bisection interval update, we choose to halve the smaller amount uint256 step = amountCompound < amountFulcrum ? amountCompound.div(2) : amountFulcrum.div(2); // base case // |fulcrumRate - compoundRate| <= tolerance if ( ((currFulcRate.add(tolerance) >= currCompRate && isCompoundBest) || (currCompRate.add(tolerance) >= currFulcRate && !isCompoundBest)) || currIter >= maxIter ) { amounts = new uint256[](2); amounts[0] = amountCompound; amounts[1] = amountFulcrum; return amounts; } return bisectionRec( isCompoundBest ? amountCompound.add(step) : amountCompound.sub(step), isCompoundBest ? amountFulcrum.sub(step) : amountFulcrum.add(step), tolerance, currIter + 1, maxIter, n, paramsCompound, // paramsCompound[9] would be overwritten on next iteration paramsFulcrum // paramsFulcrum[3] would be overwritten on next iteration ); } } // File: contracts/IdlePriceCalculator.sol /** * @title: Idle Price Calculator contract * @summary: Used for calculating the current IdleToken price in underlying (eg. DAI) * price is: Net Asset Value / totalSupply * @author: William Bergamo, idle.finance */ pragma solidity 0.5.11; contract IdlePriceCalculator { using SafeMath for uint256; /** * IdleToken price calculation, in underlying (eg. DAI) * * @return : price in underlying token */ function tokenPrice( uint256 totalSupply, address idleToken, address[] calldata currentTokensUsed, address[] calldata protocolWrappersAddresses ) external view returns (uint256 price) { require(currentTokensUsed.length == protocolWrappersAddresses.length, "Different Length"); if (totalSupply == 0) { return 10**(IIdleToken(idleToken).tokenDecimals()); } uint256 currPrice; uint256 currNav; uint256 totNav; for (uint8 i = 0; i < currentTokensUsed.length; i++) { currPrice = ILendingProtocol(protocolWrappersAddresses[i]).getPriceInToken(); // NAV = price * poolSupply currNav = currPrice.mul(IERC20(currentTokensUsed[i]).balanceOf(idleToken)); totNav = totNav.add(currNav); } price = totNav.div(totalSupply); // idleToken price in token wei } } // File: contracts/IdleToken.sol /** * @title: Idle Token main contract * @summary: ERC20 that holds pooled user funds together * Each token rapresent a share of the underlying pools * and with each token user have the right to redeem a portion of these pools * @author: William Bergamo, idle.finance */ pragma solidity 0.5.11; contract IdleToken is ERC20, ERC20Detailed, ReentrancyGuard, Ownable, Pausable, IIdleToken { using SafeERC20 for IERC20; using SafeMath for uint256; // protocolWrappers may be changed/updated/removed do not rely on their // addresses to determine where funds are allocated // eg. cTokenAddress => IdleCompoundAddress mapping(address => address) public protocolWrappers; // eg. DAI address address public token; // eg. 18 for DAI uint256 public tokenDecimals; // eg. iDAI address address public iToken; // used for claimITokens and userClaimITokens // Min thresold of APR difference between protocols to trigger a rebalance uint256 public minRateDifference; // Idle rebalancer current implementation address address public rebalancer; // Idle rebalancer current implementation address address public priceCalculator; // Last iToken price, used to pause contract in case of a black swan event uint256 public lastITokenPrice; // Manual trigger for unpausing contract in case of a black swan event that caused the iToken price to not // return to the normal level bool public manualPlay = false; bool private _notLocalEntered; // no one can directly change this // Idle pool current investments eg. [cTokenAddress, iTokenAddress] address[] public currentTokensUsed; // eg. [cTokenAddress, iTokenAddress, ...] address[] public allAvailableTokens; struct TokenProtocol { address tokenAddr; address protocolAddr; } event Rebalance(uint256 amount); /** * @dev constructor, initialize some variables, mainly addresses of other contracts * * @param _name : IdleToken name * @param _symbol : IdleToken symbol * @param _decimals : IdleToken decimals * @param _token : underlying token address * @param _cToken : cToken address * @param _iToken : iToken address * @param _rebalancer : Idle Rebalancer address * @param _idleCompound : Idle Compound address * @param _idleFulcrum : Idle Fulcrum address */ constructor( string memory _name, // eg. IdleDAI string memory _symbol, // eg. IDLEDAI uint8 _decimals, // eg. 18 address _token, address _cToken, address _iToken, address _rebalancer, address _priceCalculator, address _idleCompound, address _idleFulcrum) public ERC20Detailed(_name, _symbol, _decimals) { token = _token; tokenDecimals = ERC20Detailed(_token).decimals(); iToken = _iToken; // used for claimITokens and userClaimITokens methods rebalancer = _rebalancer; priceCalculator = _priceCalculator; protocolWrappers[_cToken] = _idleCompound; protocolWrappers[_iToken] = _idleFulcrum; allAvailableTokens = [_cToken, _iToken]; minRateDifference = 100000000000000000; // 0.1% min _notLocalEntered = true; } modifier whenITokenPriceHasNotDecreased() { uint256 iTokenPrice = iERC20Fulcrum(iToken).tokenPrice(); require( iTokenPrice >= lastITokenPrice || manualPlay, "Paused: iToken price decreased" ); _; if (iTokenPrice > lastITokenPrice) { lastITokenPrice = iTokenPrice; } } modifier nonLocallyReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_notLocalEntered, "LocalReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _notLocalEntered = false; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _notLocalEntered = true; } // onlyOwner /** * It allows owner to set the iToken (Fulcrum) address * * @param _iToken : iToken address */ function setIToken(address _iToken) external onlyOwner { iToken = _iToken; } /** * It allows owner to set the IdleRebalancer address * * @param _rebalancer : new IdleRebalancer address */ function setRebalancer(address _rebalancer) external onlyOwner { rebalancer = _rebalancer; } /** * It allows owner to set the IdlePriceCalculator address * * @param _priceCalculator : new IdlePriceCalculator address */ function setPriceCalculator(address _priceCalculator) external onlyOwner { priceCalculator = _priceCalculator; } /** * It allows owner to set a protocol wrapper address * * @param _token : underlying token address (eg. DAI) * @param _wrapper : Idle protocol wrapper address */ function setProtocolWrapper(address _token, address _wrapper) external onlyOwner { require(_token != address(0) && _wrapper != address(0), 'some addr is 0'); // update allAvailableTokens if needed if (protocolWrappers[_token] == address(0)) { allAvailableTokens.push(_token); } protocolWrappers[_token] = _wrapper; } function setMinRateDifference(uint256 _rate) external onlyOwner { minRateDifference = _rate; } /** * It allows owner to unpause the contract when iToken price decreased and didn't return to the expected level * * @param _manualPlay : new IdleRebalancer address */ function setManualPlay(bool _manualPlay) external onlyOwner { manualPlay = _manualPlay; } // view /** * IdleToken price calculation, in underlying * * @return : price in underlying token */ function tokenPrice() public view returns (uint256 price) { address[] memory protocolWrappersAddresses = new address[](currentTokensUsed.length); for (uint8 i = 0; i < currentTokensUsed.length; i++) { protocolWrappersAddresses[i] = protocolWrappers[currentTokensUsed[i]]; } price = IdlePriceCalculator(priceCalculator).tokenPrice( this.totalSupply(), address(this), currentTokensUsed, protocolWrappersAddresses ); } /** * Get APR of every ILendingProtocol * * @return addresses: array of token addresses * @return aprs: array of aprs (ordered in respect to the `addresses` array) */ function getAPRs() public view returns (address[] memory addresses, uint256[] memory aprs) { address currToken; addresses = new address[](allAvailableTokens.length); aprs = new uint256[](allAvailableTokens.length); for (uint8 i = 0; i < allAvailableTokens.length; i++) { currToken = allAvailableTokens[i]; addresses[i] = currToken; aprs[i] = ILendingProtocol(protocolWrappers[currToken]).getAPR(); } } // external /** * Used to mint IdleTokens, given an underlying amount (eg. DAI). * This method triggers a rebalance of the pools if needed * NOTE: User should 'approve' _amount of tokens before calling mintIdleToken * NOTE 2: this method can be paused * * @param _amount : amount of underlying token to be lended * @param _clientProtocolAmounts : client side calculated amounts to put on each lending protocol * @return mintedTokens : amount of IdleTokens minted */ function mintIdleToken(uint256 _amount, uint256[] memory _clientProtocolAmounts) public nonReentrant whenNotPaused whenITokenPriceHasNotDecreased returns (uint256 mintedTokens) { // Get current IdleToken price uint256 idlePrice = tokenPrice(); // transfer tokens to this contract IERC20(token).safeTransferFrom(msg.sender, address(this), _amount); // Rebalance the current pool if needed and mint new supplyied amount rebalance(_amount, _clientProtocolAmounts); mintedTokens = _amount.mul(10**18).div(idlePrice); _mint(msg.sender, mintedTokens); } /** * Used to get `_clientProtocolAmounts` for `mintIdleToken` method, given an underlying amount (eg. DAI). * This should be used only for a call not an actual tx * NOTE: User should 'approve' _amount of tokens before calling this method * NOTE 2: this method can be paused * * @param _amount : amount of underlying token to be lended * @return : address[] array with all token addresses used, * eg [cTokenAddress, iTokenAddress] * @return : uint256[] array with all amounts for each protocol in order, * eg [amountCompoundInUnderlying, amountFulcrumInUnderlying] */ function getParamsForMintIdleToken(uint256 _amount) external nonLocallyReentrant whenNotPaused whenITokenPriceHasNotDecreased returns (address[] memory, uint256[] memory) { mintIdleToken(_amount, new uint256[](0)); return _getCurrentAllocations(); } /** * Here we calc the pool share one can withdraw given the amount of IdleToken they want to burn * This method triggers a rebalance of the pools if needed * NOTE: If the contract is paused or iToken price has decreased one can still redeem but no rebalance happens. * NOTE 2: If iToken price has decresed one should not redeem (but can do it) otherwise he would capitalize the loss. * Ideally one should wait until the black swan event is terminated * * @param _amount : amount of IdleTokens to be burned * @param _skipRebalance : whether to skip the rebalance process or not * @param _clientProtocolAmounts : client side calculated amounts to put on each lending protocol * @return redeemedTokens : amount of underlying tokens redeemed */ function redeemIdleToken(uint256 _amount, bool _skipRebalance, uint256[] memory _clientProtocolAmounts) public nonReentrant returns (uint256 redeemedTokens) { address currentToken; for (uint8 i = 0; i < currentTokensUsed.length; i++) { currentToken = currentTokensUsed[i]; redeemedTokens = redeemedTokens.add( _redeemProtocolTokens( protocolWrappers[currentToken], currentToken, // _amount * protocolPoolBalance / idleSupply _amount.mul(IERC20(currentToken).balanceOf(address(this))).div(this.totalSupply()), // amount to redeem msg.sender ) ); } _burn(msg.sender, _amount); // Do not rebalance if contract is paused or iToken price has decreased if (this.paused() || iERC20Fulcrum(iToken).tokenPrice() < lastITokenPrice || _skipRebalance) { return redeemedTokens; } rebalance(0, _clientProtocolAmounts); } /** * Used to get `_clientProtocolAmounts` for `redeemIdleToken` method * This should be used only for a call not an actual tx * NOTE: If the contract is paused or iToken price has decreased one can still redeem but no rebalance happens. * NOTE 2: If iToken price has decresed one should not redeem (but can do it) otherwise he would capitalize the loss. * Ideally one should wait until the black swan event is terminated * * @param _amount : amount of IdleTokens to be burned * @param _skipRebalance : whether to skip the rebalance process or not * @return : address[] array with all token addresses used, * eg [cTokenAddress, iTokenAddress] * @return : uint256[] array with all amounts for each protocol in order, * eg [amountCompoundInUnderlying, amountFulcrumInUnderlying] */ function getParamsForRedeemIdleToken(uint256 _amount, bool _skipRebalance) external nonLocallyReentrant returns (address[] memory, uint256[] memory) { redeemIdleToken(_amount, _skipRebalance, new uint256[](0)); return _getCurrentAllocations(); } /** * Here we calc the pool share one can withdraw given the amount of IdleToken they want to burn * and send interest-bearing tokens (eg. cDAI/iDAI) directly to the user. * Underlying (eg. DAI) is not redeemed here. * * @param _amount : amount of IdleTokens to be burned */ function redeemInterestBearingTokens(uint256 _amount) external nonReentrant { uint256 idleSupply = this.totalSupply(); address currentToken; for (uint8 i = 0; i < currentTokensUsed.length; i++) { currentToken = currentTokensUsed[i]; IERC20(currentToken).safeTransfer( msg.sender, _amount.mul(IERC20(currentToken).balanceOf(address(this))).div(idleSupply) // amount to redeem ); } _burn(msg.sender, _amount); } /** * Here we are redeeming unclaimed token from iToken contract to this contracts * then allocating claimedTokens with rebalancing * Everyone should be incentivized in calling this method * NOTE: this method can be paused * * @param _clientProtocolAmounts : client side calculated amounts to put on each lending protocol * @return claimedTokens : amount of underlying tokens claimed */ function claimITokens(uint256[] calldata _clientProtocolAmounts) external whenNotPaused whenITokenPriceHasNotDecreased returns (uint256 claimedTokens) { claimedTokens = iERC20Fulcrum(iToken).claimLoanToken(); rebalance(claimedTokens, _clientProtocolAmounts); } /** * Dynamic allocate all the pool across different lending protocols if needed * Everyone should be incentivized in calling this method * * If _newAmount == 0 then simple rebalance * else rebalance (if needed) and mint (always) * NOTE: this method can be paused * * @param _newAmount : amount of underlying tokens that needs to be minted with this rebalance * @param _clientProtocolAmounts : client side calculated amounts to put on each lending protocol * @return : whether has rebalanced or not */ function rebalance(uint256 _newAmount, uint256[] memory _clientProtocolAmounts) public whenNotPaused whenITokenPriceHasNotDecreased returns (bool) { // If we are using only one protocol we check if that protocol has still the best apr // if yes we check if it can support all `_newAmount` provided and still has the best apr bool shouldRebalance; address bestToken; if (currentTokensUsed.length == 1 && _newAmount > 0) { (shouldRebalance, bestToken) = _rebalanceCheck(_newAmount, currentTokensUsed[0]); if (!shouldRebalance) { // only one protocol is currently used and can support all the new liquidity _mintProtocolTokens(protocolWrappers[currentTokensUsed[0]], _newAmount); return false; // hasNotRebalanced } } // otherwise we redeem everything from every protocol and check if the protocol with the // best apr can support all the liquidity that we redeemed // - get current protocol used TokenProtocol[] memory tokenProtocols = _getCurrentProtocols(); // - redeem everything from each protocol for (uint8 i = 0; i < tokenProtocols.length; i++) { _redeemProtocolTokens( tokenProtocols[i].protocolAddr, tokenProtocols[i].tokenAddr, IERC20(tokenProtocols[i].tokenAddr).balanceOf(address(this)), address(this) // tokens are now in this contract ); } // remove all elements from `currentTokensUsed` delete currentTokensUsed; // tokenBalance here has already _newAmount counted uint256 tokenBalance = IERC20(token).balanceOf(address(this)); if (tokenBalance == 0) { return false; } // (we are re-fetching aprs because after redeeming they changed) (shouldRebalance, bestToken) = _rebalanceCheck(tokenBalance, address(0)); if (!shouldRebalance) { // only one protocol is currently used and can support all the new liquidity _mintProtocolTokens(protocolWrappers[bestToken], tokenBalance); // update current tokens used in IdleToken storage currentTokensUsed.push(bestToken); return false; // hasNotRebalanced } // if it's not the case we calculate the dynamic allocation for every protocol (address[] memory tokenAddresses, uint256[] memory protocolAmounts) = _calcAmounts(tokenBalance, _clientProtocolAmounts); // mint for each protocol and update currentTokensUsed uint256 currAmount; address currAddr; for (uint8 i = 0; i < protocolAmounts.length; i++) { currAmount = protocolAmounts[i]; if (currAmount == 0) { continue; } currAddr = tokenAddresses[i]; _mintProtocolTokens(protocolWrappers[currAddr], currAmount); // update current tokens used in IdleToken storage currentTokensUsed.push(currAddr); } emit Rebalance(tokenBalance); return true; // hasRebalanced } /** * Used to get `_clientProtocolAmounts` for `rebalance` method * This should be used only for a call not an actual tx * NOTE: this method can be paused * * @param _newAmount : amount of underlying tokens that needs to be minted with this rebalance * @return : address[] array with all token addresses used, * eg [cTokenAddress, iTokenAddress] * @return : uint256[] array with all amounts for each protocol in order, * eg [amountCompoundInUnderlying, amountFulcrumInUnderlying] */ function getParamsForRebalance(uint256 _newAmount) external whenNotPaused whenITokenPriceHasNotDecreased returns (address[] memory, uint256[] memory) { rebalance(_newAmount, new uint256[](0)); return _getCurrentAllocations(); } // internal /** * Check if a rebalance is needed * if there is only one protocol and has the best rate then check the nextRateWithAmount() * if rate is still the highest then put everything there * otherwise rebalance with all amount * * @param _amount : amount of underlying tokens that needs to be added to the current pools NAV * @return : whether should rebalanced or not */ function _rebalanceCheck(uint256 _amount, address currentToken) internal view returns (bool, address) { (address[] memory addresses, uint256[] memory aprs) = getAPRs(); if (aprs.length == 0) { return (false, address(0)); } // we are trying to find if the protocol with the highest APR can support all the liquidity // we intend to provide uint256 maxRate; address maxAddress; uint256 secondBestRate; uint256 currApr; address currAddr; // find best rate and secondBestRate for (uint8 i = 0; i < aprs.length; i++) { currApr = aprs[i]; currAddr = addresses[i]; if (currApr > maxRate) { secondBestRate = maxRate; maxRate = currApr; maxAddress = currAddr; } else if (currApr <= maxRate && currApr >= secondBestRate) { secondBestRate = currApr; } } if (currentToken != address(0) && currentToken != maxAddress) { return (true, maxAddress); } else { uint256 nextRate = _getProtocolNextRate(protocolWrappers[maxAddress], _amount); if (nextRate.add(minRateDifference) < secondBestRate) { return (true, maxAddress); } } return (false, maxAddress); } /** * Calls IdleRebalancer `calcRebalanceAmounts` method * * @param _amount : amount of underlying tokens that needs to be allocated on lending protocols * @return tokenAddresses : array with all token addresses used, * @return amounts : array with all amounts for each protocol in order, */ function _calcAmounts(uint256 _amount, uint256[] memory _clientProtocolAmounts) internal view returns (address[] memory, uint256[] memory) { uint256[] memory paramsRebalance = new uint256[](_clientProtocolAmounts.length + 1); paramsRebalance[0] = _amount; for (uint8 i = 1; i <= _clientProtocolAmounts.length; i++) { paramsRebalance[i] = _clientProtocolAmounts[i-1]; } return IdleRebalancer(rebalancer).calcRebalanceAmounts(paramsRebalance); } /** * Get addresses of current tokens and protocol wrappers used * * @return currentProtocolsUsed : array of `TokenProtocol` (currentToken address, protocolWrapper address) */ function _getCurrentProtocols() internal view returns (TokenProtocol[] memory currentProtocolsUsed) { currentProtocolsUsed = new TokenProtocol[](currentTokensUsed.length); for (uint8 i = 0; i < currentTokensUsed.length; i++) { currentProtocolsUsed[i] = TokenProtocol( currentTokensUsed[i], protocolWrappers[currentTokensUsed[i]] ); } } /** * Get the contract balance of every protocol currently used * * @return tokenAddresses : array with all token addresses used, * eg [cTokenAddress, iTokenAddress] * @return amounts : array with all amounts for each protocol in order, * eg [amountCompoundInUnderlying, amountFulcrumInUnderlying] */ function _getCurrentAllocations() internal view returns (address[] memory tokenAddresses, uint256[] memory amounts) { // Get balance of every protocol implemented tokenAddresses = new address[](allAvailableTokens.length); amounts = new uint256[](allAvailableTokens.length); address currentToken; uint256 currTokenPrice; for (uint8 i = 0; i < allAvailableTokens.length; i++) { currentToken = allAvailableTokens[i]; tokenAddresses[i] = currentToken; currTokenPrice = ILendingProtocol(protocolWrappers[currentToken]).getPriceInToken(); amounts[i] = currTokenPrice.mul( IERC20(currentToken).balanceOf(address(this)) ).div(10**18); } // return addresses and respective amounts in underlying return (tokenAddresses, amounts); } // ILendingProtocols calls /** * Get next rate of a lending protocol given an amount to be lended * * @param _wrapperAddr : address of protocol wrapper * @param _amount : amount of underlying to be lended * @return apr : new apr one will get after lending `_amount` */ function _getProtocolNextRate(address _wrapperAddr, uint256 _amount) internal view returns (uint256 apr) { ILendingProtocol _wrapper = ILendingProtocol(_wrapperAddr); apr = _wrapper.nextSupplyRate(_amount); } /** * Mint protocol tokens through protocol wrapper * * @param _wrapperAddr : address of protocol wrapper * @param _amount : amount of underlying to be lended * @return tokens : new tokens minted */ function _mintProtocolTokens(address _wrapperAddr, uint256 _amount) internal returns (uint256 tokens) { if (_amount == 0) { return tokens; } ILendingProtocol _wrapper = ILendingProtocol(_wrapperAddr); // Transfer _amount underlying token (eg. DAI) to _wrapperAddr IERC20(token).safeTransfer(_wrapperAddr, _amount); tokens = _wrapper.mint(); } /** * Redeem underlying tokens through protocol wrapper * * @param _wrapperAddr : address of protocol wrapper * @param _amount : amount of `_token` to redeem * @param _token : protocol token address * @param _account : should be msg.sender when rebalancing and final user when redeeming * @return tokens : new tokens minted */ function _redeemProtocolTokens(address _wrapperAddr, address _token, uint256 _amount, address _account) internal returns (uint256 tokens) { if (_amount == 0) { return tokens; } ILendingProtocol _wrapper = ILendingProtocol(_wrapperAddr); // Transfer _amount of _protocolToken (eg. cDAI) to _wrapperAddr IERC20(_token).safeTransfer(_wrapperAddr, _amount); tokens = _wrapper.redeem(_account); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"rebalancer","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"redeemInterestBearingTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bool","name":"_skipRebalance","type":"bool"}],"name":"getParamsForRedeemIdleToken","outputs":[{"internalType":"address[]","name":"","type":"address[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_rate","type":"uint256"}],"name":"setMinRateDifference","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"minRateDifference","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"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"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"allAvailableTokens","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"tokenDecimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256[]","name":"_clientProtocolAmounts","type":"uint256[]"}],"name":"mintIdleToken","outputs":[{"internalType":"uint256","name":"mintedTokens","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"unpause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"iToken","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"protocolWrappers","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isPauser","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"getParamsForMintIdleToken","outputs":[{"internalType":"address[]","name":"","type":"address[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256[]","name":"_clientProtocolAmounts","type":"uint256[]"}],"name":"claimITokens","outputs":[{"internalType":"uint256","name":"claimedTokens","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_priceCalculator","type":"address"}],"name":"setPriceCalculator","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_newAmount","type":"uint256"},{"internalType":"uint256[]","name":"_clientProtocolAmounts","type":"uint256[]"}],"name":"rebalance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_rebalancer","type":"address"}],"name":"setRebalancer","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"renouncePauser","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_iToken","type":"address"}],"name":"setIToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"tokenPrice","outputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"bool","name":"_manualPlay","type":"bool"}],"name":"setManualPlay","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addPauser","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"pause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"priceCalculator","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"manualPlay","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getAPRs","outputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256[]","name":"aprs","type":"uint256[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"currentTokensUsed","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_newAmount","type":"uint256"}],"name":"getParamsForRebalance","outputs":[{"internalType":"address[]","name":"","type":"address[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bool","name":"_skipRebalance","type":"bool"},{"internalType":"uint256[]","name":"_clientProtocolAmounts","type":"uint256[]"}],"name":"redeemIdleToken","outputs":[{"internalType":"uint256","name":"redeemedTokens","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_wrapper","type":"address"}],"name":"setProtocolWrapper","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"lastITokenPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"token","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint8","name":"_decimals","type":"uint8"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_cToken","type":"address"},{"internalType":"address","name":"_iToken","type":"address"},{"internalType":"address","name":"_rebalancer","type":"address"},{"internalType":"address","name":"_priceCalculator","type":"address"},{"internalType":"address","name":"_idleCompound","type":"address"},{"internalType":"address","name":"_idleFulcrum","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Rebalance","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":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"PauserAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"PauserRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","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":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"}]
Contract Creation Code
60806040526012805460ff191690553480156200001b57600080fd5b50604051620047593803806200475983398181016040526101408110156200004257600080fd5b81019080805160405193929190846401000000008211156200006357600080fd5b9083019060208201858111156200007957600080fd5b82516401000000008111828201881017156200009457600080fd5b82525081516020918201929091019080838360005b83811015620000c3578181015183820152602001620000a9565b50505050905090810190601f168015620000f15780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200011557600080fd5b9083019060208201858111156200012b57600080fd5b82516401000000008111828201881017156200014657600080fd5b82525081516020918201929091019080838360005b83811015620001755781810151838201526020016200015b565b50505050905090810190601f168015620001a35780820380516001836020036101000a031916815260200191505b506040908152602082810151918301516060840151608085015160a086015160c087015160e0880151610100909801518c51979a50949850929691959094929391928b918b918b91620001fd916003919086019062000593565b5081516200021390600490602085019062000593565b506005805460ff191660ff92909216919091179055505060016006556200023962000412565b600780546001600160a01b0319166001600160a01b0392831617908190556040519116906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3620002ab6200029c6001600160e01b036200041216565b6001600160e01b036200041716565b6009805460ff19169055600b80546001600160a01b0319166001600160a01b038916908117909155604080517f313ce567000000000000000000000000000000000000000000000000000000008152905163313ce56791600480820192602092909190829003018186803b1580156200032357600080fd5b505afa15801562000338573d6000803e3d6000fd5b505050506040513d60208110156200034f57600080fd5b505160ff16600c55600d80546001600160a01b03199081166001600160a01b03888116918217909355600f805483168885161790556010805483168785161790558883166000818152600a60209081526040808320805487168a8916179055848352918290208054909516958716959095179093558251808401909352825291810191909152620003e590601490600262000618565b505067016345785d8a0000600e5550506012805461ff00191661010017905550620006c295505050505050565b335b90565b620004328160086200046960201b62003c9d1790919060201c565b6040516001600160a01b038216907f6719d08c1888103bea251a4ed56406bd0c3e69723c8a1686e017e7bbe159b6f890600090a250565b6200047e82826001600160e01b036200051016565b15620004eb57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f526f6c65733a206163636f756e7420616c72656164792068617320726f6c6500604482015290519081900360640190fd5b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b60006001600160a01b03821662000573576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180620047376022913960400191505060405180910390fd5b506001600160a01b03166000908152602091909152604090205460ff1690565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620005d657805160ff191683800117855562000606565b8280016001018555821562000606579182015b8281111562000606578251825591602001919060010190620005e9565b50620006149291506200067e565b5090565b82805482825590600052602060002090810192821562000670579160200282015b828111156200067057825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000639565b50620006149291506200069b565b6200041491905b8082111562000614576000815560010162000685565b6200041491905b80821115620006145780546001600160a01b0319168155600101620006a2565b61406580620006d26000396000f3fe608060405234801561001057600080fd5b50600436106102a05760003560e01c80636ef8d66d116101675780639fc7875b116100ce578063c85c93aa11610087578063c85c93aa14610945578063dd62ed3e146109f4578063f2ce580614610a22578063f2d50ba614610a50578063f2fde38b14610a58578063fc0c546a14610a7e576102a0565b80639fc7875b146108a3578063a457c2d7146108ab578063a9059cbb146108d7578063b13bd49114610903578063bf959bb81461090b578063c4a664b814610928576102a0565b806382dc1ec41161012057806382dc1ec4146108555780638456cb591461087b5780638b95e335146108835780638da5cb5b1461088b5780638f32d59b1461089357806395d89b411461089b576102a0565b80636ef8d66d146107d257806370a08231146107da578063715018a6146108005780637e2a53af146108085780637ff9b5961461082e57806382ba653d14610836576102a0565b80633b97e8561161020b57806347ce6522116101c457806347ce65221461064b57806356a5178b146106685780635c975abb146106d65780636922d7b6146106de57806369ad6af2146107045780636cfd1553146107ac576102a0565b80633b97e8561461053f5780633cfcef64146105475780633f4ba83a146105ef578063408cfe24146105f757806345c8026c146105ff57806346fbf68e14610625576102a0565b80631aaa4a181161025d5780631aaa4a181461047d57806322c9f9711461049a57806323b872dd146104a2578063313ce567146104d857806336a00082146104f65780633950935114610513576102a0565b806301d22ccd146102a557806306fdde03146102c9578063095ea7b31461034657806318160ddd14610386578063194a62a8146103a05780631a5d6705146103bf575b600080fd5b6102ad610a86565b604080516001600160a01b039092168252519081900360200190f35b6102d1610a95565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561030b5781810151838201526020016102f3565b50505050905090810190601f1680156103385780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6103726004803603604081101561035c57600080fd5b506001600160a01b038135169060200135610b2c565b604080519115158252519081900360200190f35b61038e610b4a565b60408051918252519081900360200190f35b6103bd600480360360208110156103b657600080fd5b5035610b50565b005b6103e4600480360360408110156103d557600080fd5b50803590602001351515610d14565b604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015610428578181015183820152602001610410565b50505050905001838103825284818151815260200191508051906020019060200280838360005b8381101561046757818101518382015260200161044f565b5050505090500194505050505060405180910390f35b6103bd6004803603602081101561049357600080fd5b5035610dab565b61038e610df7565b610372600480360360608110156104b857600080fd5b506001600160a01b03813581169160208101359091169060400135610dfd565b6104e0610e8a565b6040805160ff9092168252519081900360200190f35b6102ad6004803603602081101561050c57600080fd5b5035610e93565b6103726004803603604081101561052957600080fd5b506001600160a01b038135169060200135610eba565b61038e610f0e565b61038e6004803603604081101561055d57600080fd5b81359190810190604081016020820135600160201b81111561057e57600080fd5b82018360208201111561059057600080fd5b803590602001918460208302840111600160201b831117156105b157600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610f14945050505050565b6103bd611101565b6102ad6111ea565b6102ad6004803603602081101561061557600080fd5b50356001600160a01b03166111f9565b6103726004803603602081101561063b57600080fd5b50356001600160a01b0316611214565b6103e46004803603602081101561066157600080fd5b5035611227565b61038e6004803603602081101561067e57600080fd5b810190602081018135600160201b81111561069857600080fd5b8201836020820111156106aa57600080fd5b803590602001918460208302840111600160201b831117156106cb57600080fd5b5090925090506113dc565b6103726115be565b6103bd600480360360208110156106f457600080fd5b50356001600160a01b03166115c7565b6103726004803603604081101561071a57600080fd5b81359190810190604081016020820135600160201b81111561073b57600080fd5b82018360208201111561074d57600080fd5b803590602001918460208302840111600160201b8311171561076e57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550611630945050505050565b6103bd600480360360208110156107c257600080fd5b50356001600160a01b0316611b3a565b6103bd611ba3565b61038e600480360360208110156107f057600080fd5b50356001600160a01b0316611bb5565b6103bd611bd0565b6103bd6004803603602081101561081e57600080fd5b50356001600160a01b0316611c61565b61038e611cca565b6103bd6004803603602081101561084c57600080fd5b50351515611f1d565b6103bd6004803603602081101561086b57600080fd5b50356001600160a01b0316611f77565b6103bd611fc9565b6102ad612090565b6102ad61209f565b6103726120ae565b6102d16120d4565b610372612135565b610372600480360360408110156108c157600080fd5b506001600160a01b03813516906020013561213e565b610372600480360360408110156108ed57600080fd5b506001600160a01b0381351690602001356121ac565b6103e46121c0565b6102ad6004803603602081101561092157600080fd5b503561232d565b6103e46004803603602081101561093e57600080fd5b503561233a565b61038e6004803603606081101561095b57600080fd5b8135916020810135151591810190606081016040820135600160201b81111561098357600080fd5b82018360208201111561099557600080fd5b803590602001918460208302840111600160201b831117156109b657600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955061248d945050505050565b61038e60048036036040811015610a0a57600080fd5b506001600160a01b038135811691602001351661276a565b6103bd60048036036040811015610a3857600080fd5b506001600160a01b0381358116916020013516612795565b61038e6128d7565b6103bd60048036036020811015610a6e57600080fd5b50356001600160a01b03166128dd565b6102ad61292d565b600f546001600160a01b031681565b60038054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610b215780601f10610af657610100808354040283529160200191610b21565b820191906000526020600020905b815481529060010190602001808311610b0457829003601f168201915b505050505090505b90565b6000610b40610b3961293c565b8484612940565b5060015b92915050565b60025490565b6006805460010190819055604080516318160ddd60e01b8152905160009130916318160ddd91600480820192602092909190829003018186803b158015610b9657600080fd5b505afa158015610baa573d6000803e3d6000fd5b505050506040513d6020811015610bc057600080fd5b505190506000805b60135460ff82161015610cad5760138160ff1681548110610be557fe5b60009182526020918290200154604080516370a0823160e01b815230600482015290516001600160a01b039092169450610ca5923392610c8e928892610c829289926370a08231926024808301939192829003018186803b158015610c4957600080fd5b505afa158015610c5d573d6000803e3d6000fd5b505050506040513d6020811015610c7357600080fd5b50518a9063ffffffff612a2c16565b9063ffffffff612a8c16565b6001600160a01b038516919063ffffffff612ace16565b600101610bc8565b50610cb83385612b25565b50506006548114610d10576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b5050565b6012546060908190610100900460ff16610d5f5760405162461bcd60e51b8152600401808060200182810382526024815260200180613f7a6024913960400191505060405180910390fd5b6012805461ff0019169055604080516000815260208101909152610d86908590859061248d565b50610d8f612c21565b915091506012805461ff00191661010017905590939092509050565b610db36120ae565b610df2576040805162461bcd60e51b81526020600482018190526024820152600080516020613ef2833981519152604482015290519081900360640190fd5b600e55565b600e5481565b6000610e0a848484612e21565b610e8084610e1661293c565b610e7b85604051806060016040528060288152602001613eca602891396001600160a01b038a16600090815260016020526040812090610e5461293c565b6001600160a01b03168152602081019190915260400160002054919063ffffffff612f7d16565b612940565b5060019392505050565b60055460ff1690565b60148181548110610ea057fe5b6000918252602090912001546001600160a01b0316905081565b6000610b40610ec761293c565b84610e7b8560016000610ed861293c565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff61301416565b600c5481565b60068054600101908190556009546000919060ff1615610f6e576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b600d5460408051633ffcdacb60e11b815290516000926001600160a01b031691637ff9b596916004808301926020929190829003018186803b158015610fb357600080fd5b505afa158015610fc7573d6000803e3d6000fd5b505050506040513d6020811015610fdd57600080fd5b505160115490915081101580610ff5575060125460ff165b611034576040805162461bcd60e51b815260206004820152601e6024820152600080516020613fec833981519152604482015290519081900360640190fd5b600061103e611cca565b600b5490915061105f906001600160a01b031633308963ffffffff61306e16565b6110698686611630565b5061108681610c8288670de0b6b3a764000063ffffffff612a2c16565b935061109233856130ce565b506011548111156110a35760118190555b5060065481146110fa576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b5092915050565b61111161110c61293c565b611214565b61114c5760405162461bcd60e51b8152600401808060200182810382526030815260200180613dea6030913960400191505060405180910390fd5b60095460ff1661119a576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6009805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6111cd61293c565b604080516001600160a01b039092168252519081900360200190a1565b600d546001600160a01b031681565b600a602052600090815260409020546001600160a01b031681565b6000610b4460088363ffffffff6131be16565b6012546060908190610100900460ff166112725760405162461bcd60e51b8152600401808060200182810382526024815260200180613f7a6024913960400191505060405180910390fd5b6012805461ff001916905560095460ff16156112c8576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b600d5460408051633ffcdacb60e11b815290516000926001600160a01b031691637ff9b596916004808301926020929190829003018186803b15801561130d57600080fd5b505afa158015611321573d6000803e3d6000fd5b505050506040513d602081101561133757600080fd5b50516011549091508110158061134f575060125460ff165b61138e576040805162461bcd60e51b815260206004820152601e6024820152600080516020613fec833981519152604482015290519081900360640190fd5b6040805160008152602081019091526113a8908590610f14565b506113b1612c21565b925092506011548111156113c55760118190555b506012805461ff0019166101001790559092909150565b60095460009060ff161561142a576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b600d5460408051633ffcdacb60e11b815290516000926001600160a01b031691637ff9b596916004808301926020929190829003018186803b15801561146f57600080fd5b505afa158015611483573d6000803e3d6000fd5b505050506040513d602081101561149957600080fd5b5051601154909150811015806114b1575060125460ff165b6114f0576040805162461bcd60e51b815260206004820152601e6024820152600080516020613fec833981519152604482015290519081900360640190fd5b600d60009054906101000a90046001600160a01b03166001600160a01b031663087fc48b6040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561154057600080fd5b505af1158015611554573d6000803e3d6000fd5b505050506040513d602081101561156a57600080fd5b505160408051602086810282810182019093528682529294506115aa92859288918891829185019084908082843760009201919091525061163092505050565b506011548111156110fa5760115592915050565b60095460ff1690565b6115cf6120ae565b61160e576040805162461bcd60e51b81526020600482018190526024820152600080516020613ef2833981519152604482015290519081900360640190fd5b601080546001600160a01b0319166001600160a01b0392909216919091179055565b60095460009060ff161561167e576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b600d5460408051633ffcdacb60e11b815290516000926001600160a01b031691637ff9b596916004808301926020929190829003018186803b1580156116c357600080fd5b505afa1580156116d7573d6000803e3d6000fd5b505050506040513d60208110156116ed57600080fd5b505160115490915081101580611705575060125460ff165b611744576040805162461bcd60e51b815260206004820152601e6024820152600080516020613fec833981519152604482015290519081900360640190fd5b6013546000908190600114801561175b5750600086115b156117e85761178c86601360008154811061177257fe5b6000918252602090912001546001600160a01b0316613225565b9092509050816117e8576117dc600a600060136000815481106117ab57fe5b60009182526020808320909101546001600160a01b039081168452908301939093526040909101902054168761337f565b50600093505050611b27565b60606117f2613419565b905060005b81518160ff1610156118d5576118cc828260ff168151811061181557fe5b602002602001015160200151838360ff168151811061183057fe5b602002602001015160000151848460ff168151811061184b57fe5b60209081029190910181015151604080516370a0823160e01b815230600482015290516001600160a01b03909216926370a0823192602480840193829003018186803b15801561189a57600080fd5b505afa1580156118ae573d6000803e3d6000fd5b505050506040513d60208110156118c457600080fd5b50513061351a565b506001016117f7565b506118e260136000613d55565b600b54604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561192d57600080fd5b505afa158015611941573d6000803e3d6000fd5b505050506040513d602081101561195757600080fd5b505190508061196d576000955050505050611b27565b611978816000613225565b909450925083611a03576001600160a01b038084166000908152600a60205260409020546119a791168261337f565b50506013805460018101825560009182527f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a0900180546001600160a01b0319166001600160a01b039490941693909317909255509250611b279050565b606080611a10838a6135d1565b9092509050600080805b83518160ff161015611ae657838160ff1681518110611a3557fe5b602002602001015192508260001415611a4d57611ade565b848160ff1681518110611a5c57fe5b6020908102919091018101516001600160a01b038082166000908152600a909352604090922054909350611a9191168461337f565b50601380546001810182556000919091527f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a0900180546001600160a01b0319166001600160a01b0384161790555b600101611a1a565b506040805186815290517f811d4760f1a92875eb76dbd3dc2359544b2f6a000ba5b78784c0b105b3469bd09181900360200190a16001995050505050505050505b6011548111156110fa5760115592915050565b611b426120ae565b611b81576040805162461bcd60e51b81526020600482018190526024820152600080516020613ef2833981519152604482015290519081900360640190fd5b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b611bb3611bae61293c565b613848565b565b6001600160a01b031660009081526020819052604090205490565b611bd86120ae565b611c17576040805162461bcd60e51b81526020600482018190526024820152600080516020613ef2833981519152604482015290519081900360640190fd5b6007546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600780546001600160a01b0319169055565b611c696120ae565b611ca8576040805162461bcd60e51b81526020600482018190526024820152600080516020613ef2833981519152604482015290519081900360640190fd5b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b60006060601380549050604051908082528060200260200182016040528015611cfd578160200160208202803883390190505b50905060005b60135460ff82161015611d8257600a600060138360ff1681548110611d2457fe5b60009182526020808320909101546001600160a01b0390811684529083019390935260409091019020548351911690839060ff8416908110611d6257fe5b6001600160a01b0390921660209283029190910190910152600101611d03565b50601060009054906101000a90046001600160a01b03166001600160a01b031663f28f3221306001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015611de057600080fd5b505afa158015611df4573d6000803e3d6000fd5b505050506040513d6020811015611e0a57600080fd5b50516040516001600160e01b031960e084901b1681526004810182815230602483018190526080604484019081526013805460848601819052929490938993909291606481019160a49091019086908015611e8e57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611e70575b50508381038252845181528451602091820191808701910280838360005b83811015611ec4578181015183820152602001611eac565b50505050905001965050505050505060206040518083038186803b158015611eeb57600080fd5b505afa158015611eff573d6000803e3d6000fd5b505050506040513d6020811015611f1557600080fd5b505192915050565b611f256120ae565b611f64576040805162461bcd60e51b81526020600482018190526024820152600080516020613ef2833981519152604482015290519081900360640190fd5b6012805460ff1916911515919091179055565b611f8261110c61293c565b611fbd5760405162461bcd60e51b8152600401808060200182810382526030815260200180613dea6030913960400191505060405180910390fd5b611fc681613890565b50565b611fd461110c61293c565b61200f5760405162461bcd60e51b8152600401808060200182810382526030815260200180613dea6030913960400191505060405180910390fd5b60095460ff161561205a576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6009805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586111cd61293c565b6010546001600160a01b031681565b6007546001600160a01b031690565b6007546000906001600160a01b03166120c561293c565b6001600160a01b031614905090565b60048054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610b215780601f10610af657610100808354040283529160200191610b21565b60125460ff1681565b6000610b4061214b61293c565b84610e7b8560405180606001604052806025815260200161400c602591396001600061217561293c565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff612f7d16565b6000610b406121b961293c565b8484612e21565b60608060006014805490506040519080825280602002602001820160405280156121f4578160200160208202803883390190505b506014546040805182815260208084028201019091529194508015612223578160200160208202803883390190505b50915060005b60145460ff821610156123275760148160ff168154811061224657fe5b9060005260206000200160009054906101000a90046001600160a01b0316915081848260ff168151811061227657fe5b6001600160a01b039283166020918202929092018101919091528382166000908152600a825260409081902054815163c89d5b8b60e01b8152915193169263c89d5b8b92600480840193919291829003018186803b1580156122d757600080fd5b505afa1580156122eb573d6000803e3d6000fd5b505050506040513d602081101561230157600080fd5b50518351849060ff841690811061231457fe5b6020908102919091010152600101612229565b50509091565b60138181548110610ea057fe5b600954606090819060ff161561238a576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b600d5460408051633ffcdacb60e11b815290516000926001600160a01b031691637ff9b596916004808301926020929190829003018186803b1580156123cf57600080fd5b505afa1580156123e3573d6000803e3d6000fd5b505050506040513d60208110156123f957600080fd5b505160115490915081101580612411575060125460ff165b612450576040805162461bcd60e51b815260206004820152601e6024820152600080516020613fec833981519152604482015290519081900360640190fd5b60408051600081526020810190915261246a908590611630565b50612473612c21565b925092506011548111156124875760118190555b50915091565b600680546001019081905560009081805b60135460ff821610156125f65760138160ff16815481106124bb57fe5b60009182526020808320909101546001600160a01b03908116808452600a83526040938490205484516318160ddd60e01b815294519196506125ec946125df94919093169287926125d99230926318160ddd9260048083019392829003018186803b15801561252957600080fd5b505afa15801561253d573d6000803e3d6000fd5b505050506040513d602081101561255357600080fd5b5051604080516370a0823160e01b81523060048201529051610c82916001600160a01b038b16916370a0823191602480820192602092909190829003018186803b1580156125a057600080fd5b505afa1580156125b4573d6000803e3d6000fd5b505050506040513d60208110156125ca57600080fd5b50518e9063ffffffff612a2c16565b3361351a565b859063ffffffff61301416565b935060010161249e565b506126013387612b25565b306001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b15801561263a57600080fd5b505afa15801561264e573d6000803e3d6000fd5b505050506040513d602081101561266457600080fd5b5051806126eb5750601154600d60009054906101000a90046001600160a01b03166001600160a01b0316637ff9b5966040518163ffffffff1660e01b815260040160206040518083038186803b1580156126bd57600080fd5b505afa1580156126d1573d6000803e3d6000fd5b505050506040513d60208110156126e757600080fd5b5051105b806126f35750845b156126fe575061270c565b612709600085611630565b50505b6006548114612762576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b509392505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61279d6120ae565b6127dc576040805162461bcd60e51b81526020600482018190526024820152600080516020613ef2833981519152604482015290519081900360640190fd5b6001600160a01b038216158015906127fc57506001600160a01b03811615155b61283e576040805162461bcd60e51b815260206004820152600e60248201526d0736f6d65206164647220697320360941b604482015290519081900360640190fd5b6001600160a01b038281166000908152600a6020526040902054166128a957601480546001810182556000919091527fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec0180546001600160a01b0319166001600160a01b0384161790555b6001600160a01b039182166000908152600a6020526040902080546001600160a01b03191691909216179055565b60115481565b6128e56120ae565b612924576040805162461bcd60e51b81526020600482018190526024820152600080516020613ef2833981519152604482015290519081900360640190fd5b611fc6816138d8565b600b546001600160a01b031681565b3390565b6001600160a01b0383166129855760405162461bcd60e51b8152600401808060200182810382526024815260200180613f9e6024913960400191505060405180910390fd5b6001600160a01b0382166129ca5760405162461bcd60e51b8152600401808060200182810382526022815260200180613e406022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b600082612a3b57506000610b44565b82820282848281612a4857fe5b0414612a855760405162461bcd60e51b8152600401808060200182810382526021815260200180613ea96021913960400191505060405180910390fd5b9392505050565b6000612a8583836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613979565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052612b209084906139de565b505050565b6001600160a01b038216612b6a5760405162461bcd60e51b8152600401808060200182810382526021815260200180613f346021913960400191505060405180910390fd5b612bad81604051806060016040528060228152602001613dc8602291396001600160a01b038516600090815260208190526040902054919063ffffffff612f7d16565b6001600160a01b038316600090815260208190526040902055600254612bd9908263ffffffff613b9616565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b606080601480549050604051908082528060200260200182016040528015612c53578160200160208202803883390190505b506014546040805182815260208084028201019091529193508015612c82578160200160208202803883390190505b509050600080805b60145460ff82161015612e1a5760148160ff1681548110612ca757fe5b9060005260206000200160009054906101000a90046001600160a01b0316925082858260ff1681518110612cd757fe5b6001600160a01b039283166020918202929092018101919091528482166000908152600a825260409081902054815163015de72360e11b815291519316926302bbce4692600480840193919291829003018186803b158015612d3857600080fd5b505afa158015612d4c573d6000803e3d6000fd5b505050506040513d6020811015612d6257600080fd5b5051604080516370a0823160e01b81523060048201529051919350612df891670de0b6b3a764000091610c82916001600160a01b038816916370a08231916024808301926020929190829003018186803b158015612dbf57600080fd5b505afa158015612dd3573d6000803e3d6000fd5b505050506040513d6020811015612de957600080fd5b5051859063ffffffff612a2c16565b848260ff1681518110612e0757fe5b6020908102919091010152600101612c8a565b5050509091565b6001600160a01b038316612e665760405162461bcd60e51b8152600401808060200182810382526025815260200180613f556025913960400191505060405180910390fd5b6001600160a01b038216612eab5760405162461bcd60e51b8152600401808060200182810382526023815260200180613da56023913960400191505060405180910390fd5b612eee81604051806060016040528060268152602001613e62602691396001600160a01b038616600090815260208190526040902054919063ffffffff612f7d16565b6001600160a01b038085166000908152602081905260408082209390935590841681522054612f23908263ffffffff61301416565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000818484111561300c5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612fd1578181015183820152602001612fb9565b50505050905090810190601f168015612ffe5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015612a85576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526130c89085906139de565b50505050565b6001600160a01b038216613129576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b60025461313c908263ffffffff61301416565b6002556001600160a01b038216600090815260208190526040902054613168908263ffffffff61301416565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b60006001600160a01b0382166132055760405162461bcd60e51b8152600401808060200182810382526022815260200180613f126022913960400191505060405180910390fd5b506001600160a01b03166000908152602091909152604090205460ff1690565b6000806060806132336121c0565b915091508051600014156132505750600092508291506133789050565b600080808080805b86518160ff1610156132cd57868160ff168151811061327357fe5b60200260200101519250878160ff168151811061328c57fe5b60200260200101519150858311156132ac578593508295508194506132c5565b8583111580156132bc5750838310155b156132c5578293505b600101613258565b506001600160a01b038a16158015906132f85750836001600160a01b03168a6001600160a01b031614155b15613310576001849850985050505050505050613378565b6001600160a01b038085166000908152600a6020526040812054909161333791168d613bd8565b90508361334f600e548361301490919063ffffffff16565b101561336957600185995099505050505050505050613378565b50506000975091955050505050505b9250929050565b60008161338b57610b44565b600b5483906133aa906001600160a01b0316828563ffffffff612ace16565b806001600160a01b0316631249c58b6040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156133e557600080fd5b505af11580156133f9573d6000803e3d6000fd5b505050506040513d602081101561340f57600080fd5b5051949350505050565b601354604080518281526020808402820101909152606091801561345757816020015b613444613d73565b81526020019060019003908161343c5790505b50905060005b60135460ff8216101561351657604051806040016040528060138360ff168154811061348557fe5b9060005260206000200160009054906101000a90046001600160a01b03166001600160a01b03168152602001600a600060138560ff16815481106134c557fe5b60009182526020808320909101546001600160a01b0390811684529083019390935260409091019020541690528251839060ff841690811061350357fe5b602090810291909101015260010161345d565b5090565b600082613526576135c9565b846135416001600160a01b038616828663ffffffff612ace16565b806001600160a01b03166395a2251f846040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b03168152602001915050602060405180830381600087803b15801561359957600080fd5b505af11580156135ad573d6000803e3d6000fd5b505050506040513d60208110156135c357600080fd5b50519150505b949350505050565b60608060608351600101604051908082528060200260200182016040528015613604578160200160208202803883390190505b509050848160008151811061361557fe5b602090810291909101015260015b84518160ff161161366a57846001820360ff168151811061364057fe5b6020026020010151828260ff168151811061365757fe5b6020908102919091010152600101613623565b50600f5460405163f8d6c0fd60e01b81526020600482018181528451602484015284516001600160a01b039094169363f8d6c0fd9386938392604490920191818601910280838360005b838110156136cc5781810151838201526020016136b4565b505050509050019250505060006040518083038186803b1580156136ef57600080fd5b505afa158015613703573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604090815281101561372c57600080fd5b8101908080516040519392919084600160201b82111561374b57600080fd5b90830190602082018581111561376057600080fd5b82518660208202830111600160201b8211171561377c57600080fd5b82525081516020918201928201910280838360005b838110156137a9578181015183820152602001613791565b5050505090500160405260200180516040519392919084600160201b8211156137d157600080fd5b9083019060208201858111156137e657600080fd5b82518660208202830111600160201b8211171561380257600080fd5b82525081516020918201928201910280838360005b8381101561382f578181015183820152602001613817565b5050505090500160405250505092509250509250929050565b61385960088263ffffffff613c3616565b6040516001600160a01b038216907fcd265ebaf09df2871cc7bd4133404a235ba12eff2041bb89d9c714a2621c7c7e90600090a250565b6138a160088263ffffffff613c9d16565b6040516001600160a01b038216907f6719d08c1888103bea251a4ed56406bd0c3e69723c8a1686e017e7bbe159b6f890600090a250565b6001600160a01b03811661391d5760405162461bcd60e51b8152600401808060200182810382526026815260200180613e1a6026913960400191505060405180910390fd5b6007546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600780546001600160a01b0319166001600160a01b0392909216919091179055565b600081836139c85760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315612fd1578181015183820152602001612fb9565b5060008385816139d457fe5b0495945050505050565b6139f0826001600160a01b0316613d1e565b613a41576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b60208310613a7f5780518252601f199092019160209182019101613a60565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114613ae1576040519150601f19603f3d011682016040523d82523d6000602084013e613ae6565b606091505b509150915081613b3d576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b8051156130c857808060200190516020811015613b5957600080fd5b50516130c85760405162461bcd60e51b815260040180806020018281038252602a815260200180613fc2602a913960400191505060405180910390fd5b6000612a8583836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612f7d565b600080839050806001600160a01b031663ccdd0149846040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015613c2257600080fd5b505afa1580156133f9573d6000803e3d6000fd5b613c4082826131be565b613c7b5760405162461bcd60e51b8152600401808060200182810382526021815260200180613e886021913960400191505060405180910390fd5b6001600160a01b0316600090815260209190915260409020805460ff19169055565b613ca782826131be565b15613cf9576040805162461bcd60e51b815260206004820152601f60248201527f526f6c65733a206163636f756e7420616c72656164792068617320726f6c6500604482015290519081900360640190fd5b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081158015906135c95750141592915050565b5080546000825590600052602060002090810190611fc69190613d8a565b604080518082019091526000808252602082015290565b610b2991905b808211156135165760008155600101613d9056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e6365506175736572526f6c653a2063616c6c657220646f6573206e6f742068617665207468652050617573657220726f6c654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365526f6c65733a206163636f756e7420646f6573206e6f74206861766520726f6c65536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572526f6c65733a206163636f756e7420697320746865207a65726f206164647265737345524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f20616464726573734c6f63616c5265656e7472616e637947756172643a207265656e7472616e742063616c6c45524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645061757365643a2069546f6b656e20707269636520646563726561736564000045524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa265627a7a72315820b842b2769e7f263e2ddb268beb394cf55bb8326b40231aeb467de1b45c26231764736f6c634300050b0032526f6c65733a206163636f756e7420697320746865207a65726f206164647265737300000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000180000000000000000000000000000000000000000000000000000000000000001200000000000000000000000089d24a6b4ccb1b6faa2625fe562bdd9a23260359000000000000000000000000f5dce57282a584d2746faf1593d3121fcac444dc00000000000000000000000014094949152eddbfcd073717200da82fed8dc960000000000000000000000000781616fb046a4e39c239e39bfeff1a07d4b753f4000000000000000000000000b988641e8d493b5bff65e63819975b6b33477057000000000000000000000000be3e788bd11ab3070b5264aeed25c1976ab6ac000000000000000000000000009ff8b75575a244c05697ff74818d202265088bd4000000000000000000000000000000000000000000000000000000000000000749646c6553414900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000749444c4553414900000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102a05760003560e01c80636ef8d66d116101675780639fc7875b116100ce578063c85c93aa11610087578063c85c93aa14610945578063dd62ed3e146109f4578063f2ce580614610a22578063f2d50ba614610a50578063f2fde38b14610a58578063fc0c546a14610a7e576102a0565b80639fc7875b146108a3578063a457c2d7146108ab578063a9059cbb146108d7578063b13bd49114610903578063bf959bb81461090b578063c4a664b814610928576102a0565b806382dc1ec41161012057806382dc1ec4146108555780638456cb591461087b5780638b95e335146108835780638da5cb5b1461088b5780638f32d59b1461089357806395d89b411461089b576102a0565b80636ef8d66d146107d257806370a08231146107da578063715018a6146108005780637e2a53af146108085780637ff9b5961461082e57806382ba653d14610836576102a0565b80633b97e8561161020b57806347ce6522116101c457806347ce65221461064b57806356a5178b146106685780635c975abb146106d65780636922d7b6146106de57806369ad6af2146107045780636cfd1553146107ac576102a0565b80633b97e8561461053f5780633cfcef64146105475780633f4ba83a146105ef578063408cfe24146105f757806345c8026c146105ff57806346fbf68e14610625576102a0565b80631aaa4a181161025d5780631aaa4a181461047d57806322c9f9711461049a57806323b872dd146104a2578063313ce567146104d857806336a00082146104f65780633950935114610513576102a0565b806301d22ccd146102a557806306fdde03146102c9578063095ea7b31461034657806318160ddd14610386578063194a62a8146103a05780631a5d6705146103bf575b600080fd5b6102ad610a86565b604080516001600160a01b039092168252519081900360200190f35b6102d1610a95565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561030b5781810151838201526020016102f3565b50505050905090810190601f1680156103385780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6103726004803603604081101561035c57600080fd5b506001600160a01b038135169060200135610b2c565b604080519115158252519081900360200190f35b61038e610b4a565b60408051918252519081900360200190f35b6103bd600480360360208110156103b657600080fd5b5035610b50565b005b6103e4600480360360408110156103d557600080fd5b50803590602001351515610d14565b604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015610428578181015183820152602001610410565b50505050905001838103825284818151815260200191508051906020019060200280838360005b8381101561046757818101518382015260200161044f565b5050505090500194505050505060405180910390f35b6103bd6004803603602081101561049357600080fd5b5035610dab565b61038e610df7565b610372600480360360608110156104b857600080fd5b506001600160a01b03813581169160208101359091169060400135610dfd565b6104e0610e8a565b6040805160ff9092168252519081900360200190f35b6102ad6004803603602081101561050c57600080fd5b5035610e93565b6103726004803603604081101561052957600080fd5b506001600160a01b038135169060200135610eba565b61038e610f0e565b61038e6004803603604081101561055d57600080fd5b81359190810190604081016020820135600160201b81111561057e57600080fd5b82018360208201111561059057600080fd5b803590602001918460208302840111600160201b831117156105b157600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610f14945050505050565b6103bd611101565b6102ad6111ea565b6102ad6004803603602081101561061557600080fd5b50356001600160a01b03166111f9565b6103726004803603602081101561063b57600080fd5b50356001600160a01b0316611214565b6103e46004803603602081101561066157600080fd5b5035611227565b61038e6004803603602081101561067e57600080fd5b810190602081018135600160201b81111561069857600080fd5b8201836020820111156106aa57600080fd5b803590602001918460208302840111600160201b831117156106cb57600080fd5b5090925090506113dc565b6103726115be565b6103bd600480360360208110156106f457600080fd5b50356001600160a01b03166115c7565b6103726004803603604081101561071a57600080fd5b81359190810190604081016020820135600160201b81111561073b57600080fd5b82018360208201111561074d57600080fd5b803590602001918460208302840111600160201b8311171561076e57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550611630945050505050565b6103bd600480360360208110156107c257600080fd5b50356001600160a01b0316611b3a565b6103bd611ba3565b61038e600480360360208110156107f057600080fd5b50356001600160a01b0316611bb5565b6103bd611bd0565b6103bd6004803603602081101561081e57600080fd5b50356001600160a01b0316611c61565b61038e611cca565b6103bd6004803603602081101561084c57600080fd5b50351515611f1d565b6103bd6004803603602081101561086b57600080fd5b50356001600160a01b0316611f77565b6103bd611fc9565b6102ad612090565b6102ad61209f565b6103726120ae565b6102d16120d4565b610372612135565b610372600480360360408110156108c157600080fd5b506001600160a01b03813516906020013561213e565b610372600480360360408110156108ed57600080fd5b506001600160a01b0381351690602001356121ac565b6103e46121c0565b6102ad6004803603602081101561092157600080fd5b503561232d565b6103e46004803603602081101561093e57600080fd5b503561233a565b61038e6004803603606081101561095b57600080fd5b8135916020810135151591810190606081016040820135600160201b81111561098357600080fd5b82018360208201111561099557600080fd5b803590602001918460208302840111600160201b831117156109b657600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955061248d945050505050565b61038e60048036036040811015610a0a57600080fd5b506001600160a01b038135811691602001351661276a565b6103bd60048036036040811015610a3857600080fd5b506001600160a01b0381358116916020013516612795565b61038e6128d7565b6103bd60048036036020811015610a6e57600080fd5b50356001600160a01b03166128dd565b6102ad61292d565b600f546001600160a01b031681565b60038054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610b215780601f10610af657610100808354040283529160200191610b21565b820191906000526020600020905b815481529060010190602001808311610b0457829003601f168201915b505050505090505b90565b6000610b40610b3961293c565b8484612940565b5060015b92915050565b60025490565b6006805460010190819055604080516318160ddd60e01b8152905160009130916318160ddd91600480820192602092909190829003018186803b158015610b9657600080fd5b505afa158015610baa573d6000803e3d6000fd5b505050506040513d6020811015610bc057600080fd5b505190506000805b60135460ff82161015610cad5760138160ff1681548110610be557fe5b60009182526020918290200154604080516370a0823160e01b815230600482015290516001600160a01b039092169450610ca5923392610c8e928892610c829289926370a08231926024808301939192829003018186803b158015610c4957600080fd5b505afa158015610c5d573d6000803e3d6000fd5b505050506040513d6020811015610c7357600080fd5b50518a9063ffffffff612a2c16565b9063ffffffff612a8c16565b6001600160a01b038516919063ffffffff612ace16565b600101610bc8565b50610cb83385612b25565b50506006548114610d10576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b5050565b6012546060908190610100900460ff16610d5f5760405162461bcd60e51b8152600401808060200182810382526024815260200180613f7a6024913960400191505060405180910390fd5b6012805461ff0019169055604080516000815260208101909152610d86908590859061248d565b50610d8f612c21565b915091506012805461ff00191661010017905590939092509050565b610db36120ae565b610df2576040805162461bcd60e51b81526020600482018190526024820152600080516020613ef2833981519152604482015290519081900360640190fd5b600e55565b600e5481565b6000610e0a848484612e21565b610e8084610e1661293c565b610e7b85604051806060016040528060288152602001613eca602891396001600160a01b038a16600090815260016020526040812090610e5461293c565b6001600160a01b03168152602081019190915260400160002054919063ffffffff612f7d16565b612940565b5060019392505050565b60055460ff1690565b60148181548110610ea057fe5b6000918252602090912001546001600160a01b0316905081565b6000610b40610ec761293c565b84610e7b8560016000610ed861293c565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff61301416565b600c5481565b60068054600101908190556009546000919060ff1615610f6e576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b600d5460408051633ffcdacb60e11b815290516000926001600160a01b031691637ff9b596916004808301926020929190829003018186803b158015610fb357600080fd5b505afa158015610fc7573d6000803e3d6000fd5b505050506040513d6020811015610fdd57600080fd5b505160115490915081101580610ff5575060125460ff165b611034576040805162461bcd60e51b815260206004820152601e6024820152600080516020613fec833981519152604482015290519081900360640190fd5b600061103e611cca565b600b5490915061105f906001600160a01b031633308963ffffffff61306e16565b6110698686611630565b5061108681610c8288670de0b6b3a764000063ffffffff612a2c16565b935061109233856130ce565b506011548111156110a35760118190555b5060065481146110fa576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b5092915050565b61111161110c61293c565b611214565b61114c5760405162461bcd60e51b8152600401808060200182810382526030815260200180613dea6030913960400191505060405180910390fd5b60095460ff1661119a576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6009805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6111cd61293c565b604080516001600160a01b039092168252519081900360200190a1565b600d546001600160a01b031681565b600a602052600090815260409020546001600160a01b031681565b6000610b4460088363ffffffff6131be16565b6012546060908190610100900460ff166112725760405162461bcd60e51b8152600401808060200182810382526024815260200180613f7a6024913960400191505060405180910390fd5b6012805461ff001916905560095460ff16156112c8576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b600d5460408051633ffcdacb60e11b815290516000926001600160a01b031691637ff9b596916004808301926020929190829003018186803b15801561130d57600080fd5b505afa158015611321573d6000803e3d6000fd5b505050506040513d602081101561133757600080fd5b50516011549091508110158061134f575060125460ff165b61138e576040805162461bcd60e51b815260206004820152601e6024820152600080516020613fec833981519152604482015290519081900360640190fd5b6040805160008152602081019091526113a8908590610f14565b506113b1612c21565b925092506011548111156113c55760118190555b506012805461ff0019166101001790559092909150565b60095460009060ff161561142a576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b600d5460408051633ffcdacb60e11b815290516000926001600160a01b031691637ff9b596916004808301926020929190829003018186803b15801561146f57600080fd5b505afa158015611483573d6000803e3d6000fd5b505050506040513d602081101561149957600080fd5b5051601154909150811015806114b1575060125460ff165b6114f0576040805162461bcd60e51b815260206004820152601e6024820152600080516020613fec833981519152604482015290519081900360640190fd5b600d60009054906101000a90046001600160a01b03166001600160a01b031663087fc48b6040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561154057600080fd5b505af1158015611554573d6000803e3d6000fd5b505050506040513d602081101561156a57600080fd5b505160408051602086810282810182019093528682529294506115aa92859288918891829185019084908082843760009201919091525061163092505050565b506011548111156110fa5760115592915050565b60095460ff1690565b6115cf6120ae565b61160e576040805162461bcd60e51b81526020600482018190526024820152600080516020613ef2833981519152604482015290519081900360640190fd5b601080546001600160a01b0319166001600160a01b0392909216919091179055565b60095460009060ff161561167e576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b600d5460408051633ffcdacb60e11b815290516000926001600160a01b031691637ff9b596916004808301926020929190829003018186803b1580156116c357600080fd5b505afa1580156116d7573d6000803e3d6000fd5b505050506040513d60208110156116ed57600080fd5b505160115490915081101580611705575060125460ff165b611744576040805162461bcd60e51b815260206004820152601e6024820152600080516020613fec833981519152604482015290519081900360640190fd5b6013546000908190600114801561175b5750600086115b156117e85761178c86601360008154811061177257fe5b6000918252602090912001546001600160a01b0316613225565b9092509050816117e8576117dc600a600060136000815481106117ab57fe5b60009182526020808320909101546001600160a01b039081168452908301939093526040909101902054168761337f565b50600093505050611b27565b60606117f2613419565b905060005b81518160ff1610156118d5576118cc828260ff168151811061181557fe5b602002602001015160200151838360ff168151811061183057fe5b602002602001015160000151848460ff168151811061184b57fe5b60209081029190910181015151604080516370a0823160e01b815230600482015290516001600160a01b03909216926370a0823192602480840193829003018186803b15801561189a57600080fd5b505afa1580156118ae573d6000803e3d6000fd5b505050506040513d60208110156118c457600080fd5b50513061351a565b506001016117f7565b506118e260136000613d55565b600b54604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561192d57600080fd5b505afa158015611941573d6000803e3d6000fd5b505050506040513d602081101561195757600080fd5b505190508061196d576000955050505050611b27565b611978816000613225565b909450925083611a03576001600160a01b038084166000908152600a60205260409020546119a791168261337f565b50506013805460018101825560009182527f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a0900180546001600160a01b0319166001600160a01b039490941693909317909255509250611b279050565b606080611a10838a6135d1565b9092509050600080805b83518160ff161015611ae657838160ff1681518110611a3557fe5b602002602001015192508260001415611a4d57611ade565b848160ff1681518110611a5c57fe5b6020908102919091018101516001600160a01b038082166000908152600a909352604090922054909350611a9191168461337f565b50601380546001810182556000919091527f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a0900180546001600160a01b0319166001600160a01b0384161790555b600101611a1a565b506040805186815290517f811d4760f1a92875eb76dbd3dc2359544b2f6a000ba5b78784c0b105b3469bd09181900360200190a16001995050505050505050505b6011548111156110fa5760115592915050565b611b426120ae565b611b81576040805162461bcd60e51b81526020600482018190526024820152600080516020613ef2833981519152604482015290519081900360640190fd5b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b611bb3611bae61293c565b613848565b565b6001600160a01b031660009081526020819052604090205490565b611bd86120ae565b611c17576040805162461bcd60e51b81526020600482018190526024820152600080516020613ef2833981519152604482015290519081900360640190fd5b6007546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600780546001600160a01b0319169055565b611c696120ae565b611ca8576040805162461bcd60e51b81526020600482018190526024820152600080516020613ef2833981519152604482015290519081900360640190fd5b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b60006060601380549050604051908082528060200260200182016040528015611cfd578160200160208202803883390190505b50905060005b60135460ff82161015611d8257600a600060138360ff1681548110611d2457fe5b60009182526020808320909101546001600160a01b0390811684529083019390935260409091019020548351911690839060ff8416908110611d6257fe5b6001600160a01b0390921660209283029190910190910152600101611d03565b50601060009054906101000a90046001600160a01b03166001600160a01b031663f28f3221306001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015611de057600080fd5b505afa158015611df4573d6000803e3d6000fd5b505050506040513d6020811015611e0a57600080fd5b50516040516001600160e01b031960e084901b1681526004810182815230602483018190526080604484019081526013805460848601819052929490938993909291606481019160a49091019086908015611e8e57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611e70575b50508381038252845181528451602091820191808701910280838360005b83811015611ec4578181015183820152602001611eac565b50505050905001965050505050505060206040518083038186803b158015611eeb57600080fd5b505afa158015611eff573d6000803e3d6000fd5b505050506040513d6020811015611f1557600080fd5b505192915050565b611f256120ae565b611f64576040805162461bcd60e51b81526020600482018190526024820152600080516020613ef2833981519152604482015290519081900360640190fd5b6012805460ff1916911515919091179055565b611f8261110c61293c565b611fbd5760405162461bcd60e51b8152600401808060200182810382526030815260200180613dea6030913960400191505060405180910390fd5b611fc681613890565b50565b611fd461110c61293c565b61200f5760405162461bcd60e51b8152600401808060200182810382526030815260200180613dea6030913960400191505060405180910390fd5b60095460ff161561205a576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6009805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586111cd61293c565b6010546001600160a01b031681565b6007546001600160a01b031690565b6007546000906001600160a01b03166120c561293c565b6001600160a01b031614905090565b60048054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610b215780601f10610af657610100808354040283529160200191610b21565b60125460ff1681565b6000610b4061214b61293c565b84610e7b8560405180606001604052806025815260200161400c602591396001600061217561293c565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff612f7d16565b6000610b406121b961293c565b8484612e21565b60608060006014805490506040519080825280602002602001820160405280156121f4578160200160208202803883390190505b506014546040805182815260208084028201019091529194508015612223578160200160208202803883390190505b50915060005b60145460ff821610156123275760148160ff168154811061224657fe5b9060005260206000200160009054906101000a90046001600160a01b0316915081848260ff168151811061227657fe5b6001600160a01b039283166020918202929092018101919091528382166000908152600a825260409081902054815163c89d5b8b60e01b8152915193169263c89d5b8b92600480840193919291829003018186803b1580156122d757600080fd5b505afa1580156122eb573d6000803e3d6000fd5b505050506040513d602081101561230157600080fd5b50518351849060ff841690811061231457fe5b6020908102919091010152600101612229565b50509091565b60138181548110610ea057fe5b600954606090819060ff161561238a576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b600d5460408051633ffcdacb60e11b815290516000926001600160a01b031691637ff9b596916004808301926020929190829003018186803b1580156123cf57600080fd5b505afa1580156123e3573d6000803e3d6000fd5b505050506040513d60208110156123f957600080fd5b505160115490915081101580612411575060125460ff165b612450576040805162461bcd60e51b815260206004820152601e6024820152600080516020613fec833981519152604482015290519081900360640190fd5b60408051600081526020810190915261246a908590611630565b50612473612c21565b925092506011548111156124875760118190555b50915091565b600680546001019081905560009081805b60135460ff821610156125f65760138160ff16815481106124bb57fe5b60009182526020808320909101546001600160a01b03908116808452600a83526040938490205484516318160ddd60e01b815294519196506125ec946125df94919093169287926125d99230926318160ddd9260048083019392829003018186803b15801561252957600080fd5b505afa15801561253d573d6000803e3d6000fd5b505050506040513d602081101561255357600080fd5b5051604080516370a0823160e01b81523060048201529051610c82916001600160a01b038b16916370a0823191602480820192602092909190829003018186803b1580156125a057600080fd5b505afa1580156125b4573d6000803e3d6000fd5b505050506040513d60208110156125ca57600080fd5b50518e9063ffffffff612a2c16565b3361351a565b859063ffffffff61301416565b935060010161249e565b506126013387612b25565b306001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b15801561263a57600080fd5b505afa15801561264e573d6000803e3d6000fd5b505050506040513d602081101561266457600080fd5b5051806126eb5750601154600d60009054906101000a90046001600160a01b03166001600160a01b0316637ff9b5966040518163ffffffff1660e01b815260040160206040518083038186803b1580156126bd57600080fd5b505afa1580156126d1573d6000803e3d6000fd5b505050506040513d60208110156126e757600080fd5b5051105b806126f35750845b156126fe575061270c565b612709600085611630565b50505b6006548114612762576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b509392505050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61279d6120ae565b6127dc576040805162461bcd60e51b81526020600482018190526024820152600080516020613ef2833981519152604482015290519081900360640190fd5b6001600160a01b038216158015906127fc57506001600160a01b03811615155b61283e576040805162461bcd60e51b815260206004820152600e60248201526d0736f6d65206164647220697320360941b604482015290519081900360640190fd5b6001600160a01b038281166000908152600a6020526040902054166128a957601480546001810182556000919091527fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec0180546001600160a01b0319166001600160a01b0384161790555b6001600160a01b039182166000908152600a6020526040902080546001600160a01b03191691909216179055565b60115481565b6128e56120ae565b612924576040805162461bcd60e51b81526020600482018190526024820152600080516020613ef2833981519152604482015290519081900360640190fd5b611fc6816138d8565b600b546001600160a01b031681565b3390565b6001600160a01b0383166129855760405162461bcd60e51b8152600401808060200182810382526024815260200180613f9e6024913960400191505060405180910390fd5b6001600160a01b0382166129ca5760405162461bcd60e51b8152600401808060200182810382526022815260200180613e406022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b600082612a3b57506000610b44565b82820282848281612a4857fe5b0414612a855760405162461bcd60e51b8152600401808060200182810382526021815260200180613ea96021913960400191505060405180910390fd5b9392505050565b6000612a8583836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613979565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052612b209084906139de565b505050565b6001600160a01b038216612b6a5760405162461bcd60e51b8152600401808060200182810382526021815260200180613f346021913960400191505060405180910390fd5b612bad81604051806060016040528060228152602001613dc8602291396001600160a01b038516600090815260208190526040902054919063ffffffff612f7d16565b6001600160a01b038316600090815260208190526040902055600254612bd9908263ffffffff613b9616565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b606080601480549050604051908082528060200260200182016040528015612c53578160200160208202803883390190505b506014546040805182815260208084028201019091529193508015612c82578160200160208202803883390190505b509050600080805b60145460ff82161015612e1a5760148160ff1681548110612ca757fe5b9060005260206000200160009054906101000a90046001600160a01b0316925082858260ff1681518110612cd757fe5b6001600160a01b039283166020918202929092018101919091528482166000908152600a825260409081902054815163015de72360e11b815291519316926302bbce4692600480840193919291829003018186803b158015612d3857600080fd5b505afa158015612d4c573d6000803e3d6000fd5b505050506040513d6020811015612d6257600080fd5b5051604080516370a0823160e01b81523060048201529051919350612df891670de0b6b3a764000091610c82916001600160a01b038816916370a08231916024808301926020929190829003018186803b158015612dbf57600080fd5b505afa158015612dd3573d6000803e3d6000fd5b505050506040513d6020811015612de957600080fd5b5051859063ffffffff612a2c16565b848260ff1681518110612e0757fe5b6020908102919091010152600101612c8a565b5050509091565b6001600160a01b038316612e665760405162461bcd60e51b8152600401808060200182810382526025815260200180613f556025913960400191505060405180910390fd5b6001600160a01b038216612eab5760405162461bcd60e51b8152600401808060200182810382526023815260200180613da56023913960400191505060405180910390fd5b612eee81604051806060016040528060268152602001613e62602691396001600160a01b038616600090815260208190526040902054919063ffffffff612f7d16565b6001600160a01b038085166000908152602081905260408082209390935590841681522054612f23908263ffffffff61301416565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000818484111561300c5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612fd1578181015183820152602001612fb9565b50505050905090810190601f168015612ffe5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015612a85576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526130c89085906139de565b50505050565b6001600160a01b038216613129576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b60025461313c908263ffffffff61301416565b6002556001600160a01b038216600090815260208190526040902054613168908263ffffffff61301416565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b60006001600160a01b0382166132055760405162461bcd60e51b8152600401808060200182810382526022815260200180613f126022913960400191505060405180910390fd5b506001600160a01b03166000908152602091909152604090205460ff1690565b6000806060806132336121c0565b915091508051600014156132505750600092508291506133789050565b600080808080805b86518160ff1610156132cd57868160ff168151811061327357fe5b60200260200101519250878160ff168151811061328c57fe5b60200260200101519150858311156132ac578593508295508194506132c5565b8583111580156132bc5750838310155b156132c5578293505b600101613258565b506001600160a01b038a16158015906132f85750836001600160a01b03168a6001600160a01b031614155b15613310576001849850985050505050505050613378565b6001600160a01b038085166000908152600a6020526040812054909161333791168d613bd8565b90508361334f600e548361301490919063ffffffff16565b101561336957600185995099505050505050505050613378565b50506000975091955050505050505b9250929050565b60008161338b57610b44565b600b5483906133aa906001600160a01b0316828563ffffffff612ace16565b806001600160a01b0316631249c58b6040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156133e557600080fd5b505af11580156133f9573d6000803e3d6000fd5b505050506040513d602081101561340f57600080fd5b5051949350505050565b601354604080518281526020808402820101909152606091801561345757816020015b613444613d73565b81526020019060019003908161343c5790505b50905060005b60135460ff8216101561351657604051806040016040528060138360ff168154811061348557fe5b9060005260206000200160009054906101000a90046001600160a01b03166001600160a01b03168152602001600a600060138560ff16815481106134c557fe5b60009182526020808320909101546001600160a01b0390811684529083019390935260409091019020541690528251839060ff841690811061350357fe5b602090810291909101015260010161345d565b5090565b600082613526576135c9565b846135416001600160a01b038616828663ffffffff612ace16565b806001600160a01b03166395a2251f846040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b03168152602001915050602060405180830381600087803b15801561359957600080fd5b505af11580156135ad573d6000803e3d6000fd5b505050506040513d60208110156135c357600080fd5b50519150505b949350505050565b60608060608351600101604051908082528060200260200182016040528015613604578160200160208202803883390190505b509050848160008151811061361557fe5b602090810291909101015260015b84518160ff161161366a57846001820360ff168151811061364057fe5b6020026020010151828260ff168151811061365757fe5b6020908102919091010152600101613623565b50600f5460405163f8d6c0fd60e01b81526020600482018181528451602484015284516001600160a01b039094169363f8d6c0fd9386938392604490920191818601910280838360005b838110156136cc5781810151838201526020016136b4565b505050509050019250505060006040518083038186803b1580156136ef57600080fd5b505afa158015613703573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604090815281101561372c57600080fd5b8101908080516040519392919084600160201b82111561374b57600080fd5b90830190602082018581111561376057600080fd5b82518660208202830111600160201b8211171561377c57600080fd5b82525081516020918201928201910280838360005b838110156137a9578181015183820152602001613791565b5050505090500160405260200180516040519392919084600160201b8211156137d157600080fd5b9083019060208201858111156137e657600080fd5b82518660208202830111600160201b8211171561380257600080fd5b82525081516020918201928201910280838360005b8381101561382f578181015183820152602001613817565b5050505090500160405250505092509250509250929050565b61385960088263ffffffff613c3616565b6040516001600160a01b038216907fcd265ebaf09df2871cc7bd4133404a235ba12eff2041bb89d9c714a2621c7c7e90600090a250565b6138a160088263ffffffff613c9d16565b6040516001600160a01b038216907f6719d08c1888103bea251a4ed56406bd0c3e69723c8a1686e017e7bbe159b6f890600090a250565b6001600160a01b03811661391d5760405162461bcd60e51b8152600401808060200182810382526026815260200180613e1a6026913960400191505060405180910390fd5b6007546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600780546001600160a01b0319166001600160a01b0392909216919091179055565b600081836139c85760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315612fd1578181015183820152602001612fb9565b5060008385816139d457fe5b0495945050505050565b6139f0826001600160a01b0316613d1e565b613a41576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b60208310613a7f5780518252601f199092019160209182019101613a60565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114613ae1576040519150601f19603f3d011682016040523d82523d6000602084013e613ae6565b606091505b509150915081613b3d576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b8051156130c857808060200190516020811015613b5957600080fd5b50516130c85760405162461bcd60e51b815260040180806020018281038252602a815260200180613fc2602a913960400191505060405180910390fd5b6000612a8583836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250612f7d565b600080839050806001600160a01b031663ccdd0149846040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015613c2257600080fd5b505afa1580156133f9573d6000803e3d6000fd5b613c4082826131be565b613c7b5760405162461bcd60e51b8152600401808060200182810382526021815260200180613e886021913960400191505060405180910390fd5b6001600160a01b0316600090815260209190915260409020805460ff19169055565b613ca782826131be565b15613cf9576040805162461bcd60e51b815260206004820152601f60248201527f526f6c65733a206163636f756e7420616c72656164792068617320726f6c6500604482015290519081900360640190fd5b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081158015906135c95750141592915050565b5080546000825590600052602060002090810190611fc69190613d8a565b604080518082019091526000808252602082015290565b610b2991905b808211156135165760008155600101613d9056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e6365506175736572526f6c653a2063616c6c657220646f6573206e6f742068617665207468652050617573657220726f6c654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365526f6c65733a206163636f756e7420646f6573206e6f74206861766520726f6c65536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572526f6c65733a206163636f756e7420697320746865207a65726f206164647265737345524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f20616464726573734c6f63616c5265656e7472616e637947756172643a207265656e7472616e742063616c6c45524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645061757365643a2069546f6b656e20707269636520646563726561736564000045524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa265627a7a72315820b842b2769e7f263e2ddb268beb394cf55bb8326b40231aeb467de1b45c26231764736f6c634300050b0032
Deployed Bytecode Sourcemap
58663:24136:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;58663:24136:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;59422:25;;;:::i;:::-;;;;-1:-1:-1;;;;;59422:25:0;;;;;;;;;;;;;;18593:83;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;18593:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12136:152;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;12136:152:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;11157:91;;;:::i;:::-;;;;;;;;;;;;;;;;70696:505;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;70696:505:0;;:::i;:::-;;70116:272;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;70116:272:0;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;70116:272:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;70116:272:0;;;;;;;;;;;;;;;;;;;63656:109;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;63656:109:0;;:::i;59332:32::-;;;:::i;12760:304::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;12760:304:0;;;;;;;;;;;;;;;;;:::i;19445:83::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;60061:35;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;60061:35:0;;:::i;13473:210::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;13473:210:0;;;;;;;;:::i;59126:28::-;;;:::i;65856:618::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;65856:618:0;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;65856:618:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;65856:618:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;-1:-1;;;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;65856:618:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;65856:618:0;;-1:-1:-1;65856:618:0;;-1:-1:-1;;;;;65856:618:0:i;27690:120::-;;;:::i;59182:21::-;;;:::i;59002:51::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;59002:51:0;-1:-1:-1;;;;;59002:51:0;;:::i;25169:109::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;25169:109:0;-1:-1:-1;;;;;25169:109:0;;:::i;67138:276::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;67138:276:0;;:::i;71629:287::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;71629:287:0;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;71629:287:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;71629:287:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;-1:-1;;;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;-1:-1;71629:287:0;;-1:-1:-1;71629:287:0;-1:-1:-1;71629:287:0;:::i;26897:78::-;;;:::i;62964:127::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;62964:127:0;-1:-1:-1;;;;;62964:127:0;;:::i;72471:3072::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;72471:3072:0;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;72471:3072:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;72471:3072:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;-1:-1;;;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;72471:3072:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;72471:3072:0;;-1:-1:-1;72471:3072:0;;-1:-1:-1;;;;;72471:3072:0:i;62708:107::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;62708:107:0;-1:-1:-1;;;;;62708:107:0;;:::i;25386:79::-;;;:::i;11311:110::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;11311:110:0;-1:-1:-1;;;;;11311:110:0;;:::i;22825:140::-;;;:::i;62483:91::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;62483:91:0;-1:-1:-1;;;;;62483:91:0;;:::i;64189:481::-;;;:::i;63957:104::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;63957:104:0;;;;:::i;25286:92::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;25286:92:0;-1:-1:-1;;;;;25286:92:0;;:::i;27477:118::-;;;:::i;59505:30::-;;;:::i;22014:79::-;;;:::i;22380:94::-;;;:::i;18795:87::-;;;:::i;59796:30::-;;;:::i;14186:261::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;14186:261:0;;;;;;;;:::i;11634:158::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;11634:158:0;;;;;;;;:::i;64866:476::-;;;:::i;59976:34::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;59976:34:0;;:::i;76118:254::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;76118:254:0;;:::i;68217:1006::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;68217:1006:0;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;68217:1006:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;68217:1006:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;-1:-1;;;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;68217:1006:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;68217:1006:0;;-1:-1:-1;68217:1006:0;;-1:-1:-1;;;;;68217:1006:0:i;11855:134::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;11855:134:0;;;;;;;;;;:::i;63282:368::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;63282:368:0;;;;;;;;;;:::i;59618:30::-;;;:::i;23120:109::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;23120:109:0;-1:-1:-1;;;;;23120:109:0;;:::i;59080:20::-;;;:::i;59422:25::-;;;-1:-1:-1;;;;;59422:25:0;;:::o;18593:83::-;18663:5;18656:12;;;;;;;;-1:-1:-1;;18656:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18630:13;;18656:12;;18663:5;;18656:12;;18663:5;18656:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18593:83;;:::o;12136:152::-;12202:4;12219:39;12228:12;:10;:12::i;:::-;12242:7;12251:6;12219:8;:39::i;:::-;-1:-1:-1;12276:4:0;12136:152;;;;;:::o;11157:91::-;11228:12;;11157:91;:::o;70696:505::-;20925:13;:18;;20942:1;20925:18;;;;;70807;;;-1:-1:-1;;;70807:18:0;;;;20925:13;;70807:4;;:16;;:18;;;;;;;;;;;;;;;:4;:18;;;5:2:-1;;;;30:1;27;20:12;5:2;70807:18:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;70807:18:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;70807:18:0;;-1:-1:-1;70834:20:0;;70865:294;70887:17;:24;70883:28;;;;70865:294;;;70944:17;70962:1;70944:20;;;;;;;;;;;;;;;;;;;;;71056:45;;;-1:-1:-1;;;71056:45:0;;71095:4;71056:45;;;;;;-1:-1:-1;;;;;70944:20:0;;;;-1:-1:-1;70975:174:0;;71021:10;;71044:74;;71107:10;;71044:58;;70944:20;;71056:30;;:45;;;;;70944:20;;71056:45;;;;;70944:20;71056:45;;;5:2:-1;;;;30:1;27;20:12;5:2;71056:45:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;71056:45:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;71056:45:0;71044:7;;:58;:11;:58;:::i;:::-;:62;:74;:62;:74;:::i;:::-;-1:-1:-1;;;;;70975:33:0;;;:174;;:33;:174;:::i;:::-;70913:3;;70865:294;;;;71169:26;71175:10;71187:7;71169:5;:26::i;:::-;21001:1;;21037:13;;21021:12;:29;21013:73;;;;;-1:-1:-1;;;21013:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;70696:505;;:::o;70116:272::-;62020:16;;70239;;;;62020;;;;;62012:65;;;;-1:-1:-1;;;62012:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;62147:16;:24;;-1:-1:-1;;62147:24:0;;;70325:16;;;-1:-1:-1;70325:16:0;;;;;;;;70284:58;;70300:7;;70309:14;;70284:15;:58::i;:::-;;70358:24;:22;:24::i;:::-;70351:31;;;;62316:16;:23;;-1:-1:-1;;62316:23:0;;;;;70116:272;;;;-1:-1:-1;70116:272:0;-1:-1:-1;70116:272:0:o;63656:109::-;22226:9;:7;:9::i;:::-;22218:54;;;;;-1:-1:-1;;;22218:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;22218:54:0;;;;;;;;;;;;;;;63734:17;:25;63656:109::o;59332:32::-;;;;:::o;12760:304::-;12849:4;12866:36;12876:6;12884:9;12895:6;12866:9;:36::i;:::-;12913:121;12922:6;12930:12;:10;:12::i;:::-;12944:89;12982:6;12944:89;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;12944:19:0;;;;;;:11;:19;;;;;;12964:12;:10;:12::i;:::-;-1:-1:-1;;;;;12944:33:0;;;;;;;;;;;;-1:-1:-1;12944:33:0;;;:89;;:37;:89;:::i;:::-;12913:8;:121::i;:::-;-1:-1:-1;13052:4:0;12760:304;;;;;:::o;19445:83::-;19511:9;;;;19445:83;:::o;60061:35::-;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;60061:35:0;;-1:-1:-1;60061:35:0;:::o;13473:210::-;13553:4;13570:83;13579:12;:10;:12::i;:::-;13593:7;13602:50;13641:10;13602:11;:25;13614:12;:10;:12::i;:::-;-1:-1:-1;;;;;13602:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;13602:25:0;;;:34;;;;;;;;;;;:50;:38;:50;:::i;59126:28::-;;;;:::o;65856:618::-;20925:13;:18;;20942:1;20925:18;;;;;27134:7;;66021:20;;20925:18;27134:7;;27133:8;27125:37;;;;;-1:-1:-1;;;27125:37:0;;;;;;;;;;;;-1:-1:-1;;;27125:37:0;;;;;;;;;;;;;;;61660:6;;61646:34;;;-1:-1:-1;;;61646:34:0;;;;61624:19;;-1:-1:-1;;;;;61660:6:0;;61646:32;;:34;;;;;;;;;;;;;;61660:6;61646:34;;;5:2:-1;;;;30:1;27;20:12;5:2;61646:34:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;61646:34:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;61646:34:0;61718:15;;61646:34;;-1:-1:-1;61703:30:0;;;;:44;;-1:-1:-1;61737:10:0;;;;61703:44;61687:108;;;;;-1:-1:-1;;;61687:108:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;61687:108:0;;;;;;;;;;;;;;;66090:17;66110:12;:10;:12::i;:::-;66181:5;;66090:32;;-1:-1:-1;66174:66:0;;-1:-1:-1;;;;;66181:5:0;66205:10;66225:4;66232:7;66174:66;:30;:66;:::i;:::-;66326:42;66336:7;66345:22;66326:9;:42::i;:::-;-1:-1:-1;66394:34:0;66418:9;66394:19;:7;66406:6;66394:19;:11;:19;:::i;:34::-;66379:49;;66437:31;66443:10;66455:12;66437:5;:31::i;:::-;61804:1;61832:15;;61818:11;:29;61814:81;;;61858:15;:29;;;61814:81;27173:1;21037:13;;21021:12;:29;21013:73;;;;;-1:-1:-1;;;21013:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;65856:618;;;;;:::o;27690:120::-;25066:22;25075:12;:10;:12::i;:::-;25066:8;:22::i;:::-;25058:83;;;;-1:-1:-1;;;25058:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27333:7;;;;27325:40;;;;;-1:-1:-1;;;27325:40:0;;;;;;;;;;;;-1:-1:-1;;;27325:40:0;;;;;;;;;;;;;;;27749:7;:15;;-1:-1:-1;;27749:15:0;;;27780:22;27789:12;:10;:12::i;:::-;27780:22;;;-1:-1:-1;;;;;27780:22:0;;;;;;;;;;;;;;27690:120::o;59182:21::-;;;-1:-1:-1;;;;;59182:21:0;;:::o;59002:51::-;;;;;;;;;;;;-1:-1:-1;;;;;59002:51:0;;:::o;25169:109::-;25225:4;25249:21;:8;25262:7;25249:21;:12;:21;:::i;67138:276::-;62020:16;;67283;;;;62020;;;;;62012:65;;;;-1:-1:-1;;;62012:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;62147:16;:24;;-1:-1:-1;;62147:24:0;;;27134:7;;62147:24;27134:7;27133:8;27125:37;;;;;-1:-1:-1;;;27125:37:0;;;;;;;;;;;;-1:-1:-1;;;27125:37:0;;;;;;;;;;;;;;;61660:6;;61646:34;;;-1:-1:-1;;;61646:34:0;;;;61624:19;;-1:-1:-1;;;;;61660:6:0;;61646:32;;:34;;;;;;;;;;;;;;61660:6;61646:34;;;5:2:-1;;;;30:1;27;20:12;5:2;61646:34:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;61646:34:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;61646:34:0;61718:15;;61646:34;;-1:-1:-1;61703:30:0;;;;:44;;-1:-1:-1;61737:10:0;;;;61703:44;61687:108;;;;;-1:-1:-1;;;61687:108:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;61687:108:0;;;;;;;;;;;;;;;67351:16;;;67365:1;67351:16;;;;;;;;67328:40;;67342:7;;67328:13;:40::i;:::-;;67384:24;:22;:24::i;:::-;67377:31;;;;61832:15;;61818:11;:29;61814:81;;;61858:15;:29;;;61814:81;-1:-1:-1;62316:16:0;:23;;-1:-1:-1;;62316:23:0;;;;;67138:276;;;;-1:-1:-1;67138:276:0:o;71629:287::-;27134:7;;71767:21;;27134:7;;27133:8;27125:37;;;;;-1:-1:-1;;;27125:37:0;;;;;;;;;;;;-1:-1:-1;;;27125:37:0;;;;;;;;;;;;;;;61660:6;;61646:34;;;-1:-1:-1;;;61646:34:0;;;;61624:19;;-1:-1:-1;;;;;61660:6:0;;61646:32;;:34;;;;;;;;;;;;;;61660:6;61646:34;;;5:2:-1;;;;30:1;27;20:12;5:2;61646:34:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;61646:34:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;61646:34:0;61718:15;;61646:34;;-1:-1:-1;61703:30:0;;;;:44;;-1:-1:-1;61737:10:0;;;;61703:44;61687:108;;;;;-1:-1:-1;;;61687:108:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;61687:108:0;;;;;;;;;;;;;;;71829:6;;;;;;;;;-1:-1:-1;;;;;71829:6:0;-1:-1:-1;;;;;71815:36:0;;:38;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;71815:38:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;71815:38:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;71815:38:0;71862:48;;;71815:38;71862:48;;;;;;;;;;;;;;71815:38;;-1:-1:-1;71862:48:0;;71815:38;;71887:22;;;;;;71862:48;;;71887:22;;71862:48;71887:22;71862:48;1:33:-1;99:1;81:16;;74:27;;;;-1:-1;71862:9:0;;-1:-1:-1;;;71862:48:0:i;:::-;;61832:15;;61818:11;:29;61814:81;;;61858:15;:29;71629:287;;-1:-1:-1;;71629:287:0:o;26897:78::-;26960:7;;;;26897:78;:::o;62964:127::-;22226:9;:7;:9::i;:::-;22218:54;;;;;-1:-1:-1;;;22218:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;22218:54:0;;;;;;;;;;;;;;;63051:15;:34;;-1:-1:-1;;;;;;63051:34:0;-1:-1:-1;;;;;63051:34:0;;;;;;;;;;62964:127::o;72471:3072::-;27134:7;;72622:4;;27134:7;;27133:8;27125:37;;;;;-1:-1:-1;;;27125:37:0;;;;;;;;;;;;-1:-1:-1;;;27125:37:0;;;;;;;;;;;;;;;61660:6;;61646:34;;;-1:-1:-1;;;61646:34:0;;;;61624:19;;-1:-1:-1;;;;;61660:6:0;;61646:32;;:34;;;;;;;;;;;;;;61660:6;61646:34;;;5:2:-1;;;;30:1;27;20:12;5:2;61646:34:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;61646:34:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;61646:34:0;61718:15;;61646:34;;-1:-1:-1;61703:30:0;;;;:44;;-1:-1:-1;61737:10:0;;;;61703:44;61687:108;;;;;-1:-1:-1;;;61687:108:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;61687:108:0;;;;;;;;;;;;;;;72890:17;:24;72829:20;;;;72918:1;72890:29;:47;;;;;72936:1;72923:10;:14;72890:47;72886:417;;;72981:49;72997:10;73009:17;73027:1;73009:20;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;73009:20:0;72981:15;:49::i;:::-;72950:80;;-1:-1:-1;72950:80:0;-1:-1:-1;72950:80:0;73043:251;;73166:71;73186:16;:38;73203:17;73221:1;73203:20;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;73203:20:0;;;73186:38;;;;;;;;;;;;;;;;;73226:10;73166:19;:71::i;:::-;;73257:5;73250:12;;;;;;73043:251;73515:37;73555:22;:20;:22::i;:::-;73515:62;-1:-1:-1;73640:7:0;73635:320;73657:14;:21;73653:1;:25;;;73635:320;;;73696:249;73730:14;73745:1;73730:17;;;;;;;;;;;;;;;;:30;;;73773:14;73788:1;73773:17;;;;;;;;;;;;;;;;:27;;;73820:14;73835:1;73820:17;;;;;;;;;;;;;;;;;;;;;:27;73813:60;;;-1:-1:-1;;;73813:60:0;;73867:4;73813:60;;;;;;-1:-1:-1;;;;;73813:45:0;;;;;;:60;;;;;;;;;;:45;:60;;;5:2:-1;;;;30:1;27;20:12;5:2;73813:60:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;73813:60:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;73813:60:0;73894:4;73696:21;:249::i;:::-;-1:-1:-1;73680:3:0;;73635:320;;;-1:-1:-1;74018:24:0;74025:17;;74018:24;:::i;:::-;74142:5;;74135:38;;;-1:-1:-1;;;74135:38:0;;74167:4;74135:38;;;;;;74112:20;;-1:-1:-1;;;;;74142:5:0;;74135:23;;:38;;;;;;;;;;;;;;74142:5;74135:38;;;5:2:-1;;;;30:1;27;20:12;5:2;74135:38:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;74135:38:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;74135:38:0;;-1:-1:-1;74186:17:0;74182:56;;74223:5;74216:12;;;;;;;;74182:56;74350:41;74366:12;74388:1;74350:15;:41::i;:::-;74319:72;;-1:-1:-1;74319:72:0;-1:-1:-1;74319:72:0;74402:338;;-1:-1:-1;;;;;74541:27:0;;;;;;;:16;:27;;;;;;74521:62;;74541:27;74570:12;74521:19;:62::i;:::-;-1:-1:-1;;74654:17:0;27:10:-1;;39:1;23:18;;45:23;;-1:-1;74654:33:0;;;;;;;-1:-1:-1;;;;;;74654:33:0;-1:-1:-1;;;;;74654:33:0;;;;;;;;;;;-1:-1:-1;;;74698:12:0;;-1:-1:-1;74698:12:0;74402:338;74837:31;74870:32;74906:50;74919:12;74933:22;74906:12;:50::i;:::-;74836:120;;-1:-1:-1;74836:120:0;-1:-1:-1;75029:18:0;;;75081:379;75103:15;:22;75099:1;:26;;;75081:379;;;75156:15;75172:1;75156:18;;;;;;;;;;;;;;;;75143:31;;75189:10;75203:1;75189:15;75185:54;;;75219:8;;75185:54;75260:14;75275:1;75260:17;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;75308:26:0;;;;;;;:16;:26;;;;;;;;75260:17;;-1:-1:-1;75288:59:0;;75308:26;75336:10;75288:19;:59::i;:::-;-1:-1:-1;75418:17:0;27:10:-1;;39:1;23:18;;45:23;;-1:-1;75418:32:0;;;;;;;;-1:-1:-1;;;;;;75418:32:0;-1:-1:-1;;;;;75418:32:0;;;;;75081:379;75127:3;;75081:379;;;-1:-1:-1;75475:23:0;;;;;;;;;;;;;;;;;75516:4;75509:11;;;;;;;;;;61804:1;61832:15;;61818:11;:29;61814:81;;;61858:15;:29;72471:3072;;-1:-1:-1;;72471:3072:0:o;62708:107::-;22226:9;:7;:9::i;:::-;22218:54;;;;;-1:-1:-1;;;22218:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;22218:54:0;;;;;;;;;;;;;;;62785:10;:24;;-1:-1:-1;;;;;;62785:24:0;-1:-1:-1;;;;;62785:24:0;;;;;;;;;;62708:107::o;25386:79::-;25430:27;25444:12;:10;:12::i;:::-;25430:13;:27::i;:::-;25386:79::o;11311:110::-;-1:-1:-1;;;;;11395:18:0;11368:7;11395:18;;;;;;;;;;;;11311:110::o;22825:140::-;22226:9;:7;:9::i;:::-;22218:54;;;;;-1:-1:-1;;;22218:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;22218:54:0;;;;;;;;;;;;;;;22908:6;;22887:40;;22924:1;;-1:-1:-1;;;;;22908:6:0;;22887:40;;22924:1;;22887:40;22938:6;:19;;-1:-1:-1;;;;;;22938:19:0;;;22825:140::o;62483:91::-;22226:9;:7;:9::i;:::-;22218:54;;;;;-1:-1:-1;;;22218:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;22218:54:0;;;;;;;;;;;;;;;62552:6;:16;;-1:-1:-1;;;;;;62552:16:0;-1:-1:-1;;;;;62552:16:0;;;;;;;;;;62483:91::o;64189:481::-;64242:13;64266:42;64325:17;:24;;;;64311:39;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;136:17;;-1:-1;64311:39:0;-1:-1:-1;64266:84:0;-1:-1:-1;64364:7:0;64359:143;64381:17;:24;64377:28;;;;64359:143;;;64454:16;:38;64471:17;64489:1;64471:20;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;64471:20:0;;;64454:38;;;;;;;;;;;;;;;;64423:28;;64454:38;;;64423:25;;:28;;;;;;;;;;-1:-1:-1;;;;;64423:69:0;;;:28;;;;;;;;;;;:69;64407:3;;64359:143;;;;64538:15;;;;;;;;;-1:-1:-1;;;;;64538:15:0;-1:-1:-1;;;;;64518:47:0;;64576:4;-1:-1:-1;;;;;64576:16:0;;:18;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;64576:18:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;64576:18:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;64576:18:0;64518:146;;-1:-1:-1;;;;;;64518:146:0;;;;;;;;;;;;;64604:4;64518:146;;;;;;;;;;;;;64611:17;64518:146;;;;;;;;64604:4;;64611:17;;64630:25;;64518:146;;;;;;;;;;;;64611:17;;64518:146;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;64518:146:0;;;;;;;;;;;;;;;;-1:-1:-1;;64518:146:0;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;64518:146:0;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;64518:146:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;64518:146:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;64518:146:0;;64189:481;-1:-1:-1;;64189:481:0:o;63957:104::-;22226:9;:7;:9::i;:::-;22218:54;;;;;-1:-1:-1;;;22218:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;22218:54:0;;;;;;;;;;;;;;;64031:10;:24;;-1:-1:-1;;64031:24:0;;;;;;;;;;63957:104::o;25286:92::-;25066:22;25075:12;:10;:12::i;25066:22::-;25058:83;;;;-1:-1:-1;;;25058:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25351:19;25362:7;25351:10;:19::i;:::-;25286:92;:::o;27477:118::-;25066:22;25075:12;:10;:12::i;25066:22::-;25058:83;;;;-1:-1:-1;;;25058:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27134:7;;;;27133:8;27125:37;;;;;-1:-1:-1;;;27125:37:0;;;;;;;;;;;;-1:-1:-1;;;27125:37:0;;;;;;;;;;;;;;;27537:7;:14;;-1:-1:-1;;27537:14:0;27547:4;27537:14;;;27567:20;27574:12;:10;:12::i;59505:30::-;;;-1:-1:-1;;;;;59505:30:0;;:::o;22014:79::-;22079:6;;-1:-1:-1;;;;;22079:6:0;22014:79;:::o;22380:94::-;22460:6;;22420:4;;-1:-1:-1;;;;;22460:6:0;22444:12;:10;:12::i;:::-;-1:-1:-1;;;;;22444:22:0;;22437:29;;22380:94;:::o;18795:87::-;18867:7;18860:14;;;;;;;;-1:-1:-1;;18860:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18834:13;;18860:14;;18867:7;;18860:14;;18867:7;18860:14;;;;;;;;;;;;;;;;;;;;;;;;59796:30;;;;;;:::o;14186:261::-;14271:4;14288:129;14297:12;:10;:12::i;:::-;14311:7;14320:96;14359:15;14320:96;;;;;;;;;;;;;;;;;:11;:25;14332:12;:10;:12::i;:::-;-1:-1:-1;;;;;14320:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;14320:25:0;;;:34;;;;;;;;;;;:96;;:38;:96;:::i;11634:158::-;11703:4;11720:42;11730:12;:10;:12::i;:::-;11744:9;11755:6;11720:9;:42::i;64866:476::-;64916:26;64944:21;64976:17;65028:18;:25;;;;65014:40;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;136:17;;-1:-1;65014:40:0;-1:-1:-1;65084:18:0;:25;65070:40;;;;;;;;;;;;;;;;65002:52;;-1:-1:-1;65070:40:0;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;136:17;;-1:-1;65070:40:0;-1:-1:-1;65063:47:0;-1:-1:-1;65124:7:0;65119:218;65141:18;:25;65137:29;;;;65119:218;;;65196:18;65215:1;65196:21;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;65196:21:0;65184:33;;65243:9;65228;65238:1;65228:12;;;;;;;;;;-1:-1:-1;;;;;65228:24:0;;;:12;;;;;;;;;;:24;;;;65290:27;;;;;;;:16;:27;;;;;;;;65273:54;;-1:-1:-1;;;65273:54:0;;;;65290:27;;;65273:52;;:54;;;;;65228:12;;65273:54;;;;;;65290:27;65273:54;;;5:2:-1;;;;30:1;27;20:12;5:2;65273:54:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;65273:54:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;65273:54:0;65263:7;;:4;;:7;;;;;;;;;;;;;;;;;;;:64;65168:3;;65119:218;;;;64866:476;;;:::o;59976:34::-;;;;;;;;;;76118:254;27134:7;;76242:16;;;;27134:7;;27133:8;27125:37;;;;;-1:-1:-1;;;27125:37:0;;;;;;;;;;;;-1:-1:-1;;;27125:37:0;;;;;;;;;;;;;;;61660:6;;61646:34;;;-1:-1:-1;;;61646:34:0;;;;61624:19;;-1:-1:-1;;;;;61660:6:0;;61646:32;;:34;;;;;;;;;;;;;;61660:6;61646:34;;;5:2:-1;;;;30:1;27;20:12;5:2;61646:34:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;61646:34:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;61646:34:0;61718:15;;61646:34;;-1:-1:-1;61703:30:0;;;;:44;;-1:-1:-1;61737:10:0;;;;61703:44;61687:108;;;;;-1:-1:-1;;;61687:108:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;61687:108:0;;;;;;;;;;;;;;;76309:16;;;76323:1;76309:16;;;;;;;;76287:39;;76297:10;;76287:9;:39::i;:::-;;76342:24;:22;:24::i;:::-;76335:31;;;;61832:15;;61818:11;:29;61814:81;;;61858:15;:29;;;61814:81;27173:1;76118:254;;;:::o;68217:1006::-;20925:13;:18;;20942:1;20925:18;;;;;68360:22;;;;68424:486;68446:17;:24;68442:28;;;;68424:486;;;68503:17;68521:1;68503:20;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;68503:20:0;;;68618:30;;;:16;:30;;;;;;;;68812:18;;-1:-1:-1;;;68812:18:0;;;;68503:20;;-1:-1:-1;68551:349:0;;68582:307;;68618:30;;;;;68503:20;;68749:82;;68812:4;;:16;;:18;;;;;68503:20;68812:18;;;;;:4;:18;;;5:2:-1;;;;30:1;27;20:12;5:2;68812:18:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;68812:18:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;68812:18:0;68761:45;;;-1:-1:-1;;;68761:45:0;;68800:4;68761:45;;;;;;68749:58;;-1:-1:-1;;;;;68761:30:0;;;;;:45;;;;;68812:18;;68761:45;;;;;;;;:30;:45;;;5:2:-1;;;;30:1;27;20:12;5:2;68761:45:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;68761:45:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;68761:45:0;68749:7;;:58;:11;:58;:::i;:82::-;68866:10;68582:21;:307::i;:::-;68551:14;;:349;:18;:349;:::i;:::-;68534:366;-1:-1:-1;68472:3:0;;68424:486;;;;68920:26;68926:10;68938:7;68920:5;:26::i;:::-;69040:4;-1:-1:-1;;;;;69040:11:0;;:13;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;69040:13:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;69040:13:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;69040:13:0;;:69;;;69094:15;;69071:6;;;;;;;;;-1:-1:-1;;;;;69071:6:0;-1:-1:-1;;;;;69057:32:0;;:34;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;69057:34:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;69057:34:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;69057:34:0;:52;69040:69;:87;;;;69113:14;69040:87;69036:135;;;-1:-1:-1;69140:21:0;;69036:135;69181:36;69191:1;69194:22;69181:9;:36::i;:::-;;21001:1;;21037:13;;21021:12;:29;21013:73;;;;;-1:-1:-1;;;21013:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;68217:1006;;;;;;:::o;11855:134::-;-1:-1:-1;;;;;11954:18:0;;;11927:7;11954:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;11855:134::o;63282:368::-;22226:9;:7;:9::i;:::-;22218:54;;;;;-1:-1:-1;;;22218:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;22218:54:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;63385:20:0;;;;;;:46;;-1:-1:-1;;;;;;63409:22:0;;;;63385:46;63377:73;;;;;-1:-1:-1;;;63377:73:0;;;;;;;;;;;;-1:-1:-1;;;63377:73:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;63509:24:0;;;63545:1;63509:24;;;:16;:24;;;;;;;63505:96;;63560:18;27:10:-1;;39:1;23:18;;45:23;;-1:-1;63560:31:0;;;;;;;;-1:-1:-1;;;;;;63560:31:0;-1:-1:-1;;;;;63560:31:0;;;;;63505:96;-1:-1:-1;;;;;63609:24:0;;;;;;;:16;:24;;;;;:35;;-1:-1:-1;;;;;;63609:35:0;;;;;;;;63282:368::o;59618:30::-;;;;:::o;23120:109::-;22226:9;:7;:9::i;:::-;22218:54;;;;;-1:-1:-1;;;22218:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;22218:54:0;;;;;;;;;;;;;;;23193:28;23212:8;23193:18;:28::i;59080:20::-;;;-1:-1:-1;;;;;59080:20:0;;:::o;3738:98::-;3818:10;3738:98;:::o;17118:338::-;-1:-1:-1;;;;;17212:19:0;;17204:68;;;;-1:-1:-1;;;17204:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;17291:21:0;;17283:68;;;;-1:-1:-1;;;17283:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;17364:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;17416:32;;;;;;;;;;;;;;;;;17118:338;;;:::o;6361:471::-;6419:7;6664:6;6660:47;;-1:-1:-1;6694:1:0;6687:8;;6660:47;6731:5;;;6735:1;6731;:5;:1;6755:5;;;;;:10;6747:56;;;;-1:-1:-1;;;6747:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6823:1;6361:471;-1:-1:-1;;;6361:471:0:o;7300:132::-;7358:7;7385:39;7389:1;7392;7385:39;;;;;;;;;;;;;;;;;:3;:39::i;31607:176::-;31716:58;;;-1:-1:-1;;;;;31716:58:0;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;31716:58:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;31690:85:0;;31709:5;;31690:18;:85::i;:::-;31607:176;;;:::o;16330:348::-;-1:-1:-1;;;;;16406:21:0;;16398:67;;;;-1:-1:-1;;;16398:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16499:68;16522:6;16499:68;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16499:18:0;;:9;:18;;;;;;;;;;;;:68;;:22;:68;:::i;:::-;-1:-1:-1;;;;;16478:18:0;;:9;:18;;;;;;;;;;:89;16593:12;;:24;;16610:6;16593:24;:16;:24;:::i;:::-;16578:12;:39;16633:37;;;;;;;;16659:1;;-1:-1:-1;;;;;16633:37:0;;;;;;;;;;;;16330:348;;:::o;79941:854::-;80003:31;80036:24;80154:18;:25;;;;80140:40;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;136:17;;-1:-1;80140:40:0;-1:-1:-1;80213:18:0;:25;80199:40;;;;;;;;;;;;;;;;80123:57;;-1:-1:-1;80199:40:0;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;136:17;;-1:-1;80199:40:0;-1:-1:-1;80189:50:0;-1:-1:-1;80250:20:0;;;80312:371;80334:18;:25;80330:29;;;;80312:371;;;80392:18;80411:1;80392:21;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;80392:21:0;80377:36;;80444:12;80424:14;80439:1;80424:17;;;;;;;;;;-1:-1:-1;;;;;80424:32:0;;;:17;;;;;;;;;;:32;;;;80501:30;;;;;;;:16;:30;;;;;;;;80484:66;;-1:-1:-1;;;80484:66:0;;;;80501:30;;;80484:64;;:66;;;;;80424:17;;80484:66;;;;;;80501:30;80484:66;;;5:2:-1;;;;30:1;27;20:12;5:2;80484:66:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;80484:66:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;80484:66:0;80605:45;;;-1:-1:-1;;;80605:45:0;;80644:4;80605:45;;;;;;80484:66;;-1:-1:-1;80574:99:0;;80666:6;;80574:87;;-1:-1:-1;;;;;80605:30:0;;;;;:45;;;;;80484:66;;80605:45;;;;;;;:30;:45;;;5:2:-1;;;;30:1;27;20:12;5:2;80605:45:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;80605:45:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;80605:45:0;80574:14;;:87;:18;:87;:::i;:99::-;80561:7;80569:1;80561:10;;;;;;;;;;;;;;;;;;;:112;80361:3;;80312:371;;;-1:-1:-1;;;79941:854:0;;:::o;14937:471::-;-1:-1:-1;;;;;15035:20:0;;15027:70;;;;-1:-1:-1;;;15027:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;15116:23:0;;15108:71;;;;-1:-1:-1;;;15108:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15212;15234:6;15212:71;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;15212:17:0;;:9;:17;;;;;;;;;;;;:71;;:21;:71;:::i;:::-;-1:-1:-1;;;;;15192:17:0;;;:9;:17;;;;;;;;;;;:91;;;;15317:20;;;;;;;:32;;15342:6;15317:32;:24;:32;:::i;:::-;-1:-1:-1;;;;;15294:20:0;;;:9;:20;;;;;;;;;;;;:55;;;;15365:35;;;;;;;15294:20;;15365:35;;;;;;;;;;;;;14937:471;;;:::o;5918:192::-;6004:7;6040:12;6032:6;;;;6024:29;;;;-1:-1:-1;;;6024:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;6024:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;6076:5:0;;;5918:192::o;4989:181::-;5047:7;5079:5;;;5103:6;;;;5095:46;;;;;-1:-1:-1;;;5095:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;31791:204;31918:68;;;-1:-1:-1;;;;;31918:68:0;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;31918:68:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;31892:95:0;;31911:5;;31892:18;:95::i;:::-;31791:204;;;;:::o;15689:308::-;-1:-1:-1;;;;;15765:21:0;;15757:65;;;;;-1:-1:-1;;;15757:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;15850:12;;:24;;15867:6;15850:24;:16;:24;:::i;:::-;15835:12;:39;-1:-1:-1;;;;;15906:18:0;;:9;:18;;;;;;;;;;;:30;;15929:6;15906:30;:22;:30;:::i;:::-;-1:-1:-1;;;;;15885:18:0;;:9;:18;;;;;;;;;;;:51;;;;15952:37;;;;;;;15885:18;;:9;;15952:37;;;;;;;;;;15689:308;;:::o;24434:203::-;24506:4;-1:-1:-1;;;;;24531:21:0;;24523:68;;;;-1:-1:-1;;;24523:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;24609:20:0;:11;:20;;;;;;;;;;;;;;;24434:203::o;76797:1324::-;76894:4;76900:7;76919:26;76947:21;76972:9;:7;:9::i;:::-;76918:63;;;;76994:4;:11;77009:1;76994:16;76990:69;;;-1:-1:-1;77031:5:0;;-1:-1:-1;77031:5:0;;-1:-1:-1;77023:26:0;;-1:-1:-1;77023:26:0;76990:69;77199:15;;;;;;77376:366;77398:4;:11;77394:1;:15;;;77376:366;;;77437:4;77442:1;77437:7;;;;;;;;;;;;;;;;77427:17;;77466:9;77476:1;77466:12;;;;;;;;;;;;;;;;77455:23;;77503:7;77493;:17;77489:244;;;77542:7;77525:24;;77572:7;77562:17;;77605:8;77592:21;;77489:244;;;77646:7;77635;:18;;:47;;;;;77668:14;77657:7;:25;;77635:47;77631:102;;;77714:7;77697:24;;77631:102;77411:3;;77376:366;;;-1:-1:-1;;;;;;77756:26:0;;;;;;:56;;;77802:10;-1:-1:-1;;;;;77786:26:0;:12;-1:-1:-1;;;;;77786:26:0;;;77756:56;77752:327;;;77833:4;77839:10;77825:25;;;;;;;;;;;;;77752:327;-1:-1:-1;;;;;77917:28:0;;;77877:16;77917:28;;;:16;:28;;;;;;77877:16;;77896:59;;77917:28;77947:7;77896:20;:59::i;:::-;77877:78;;78004:14;77970:31;77983:17;;77970:8;:12;;:31;;;;:::i;:::-;:48;77966:104;;;78041:4;78047:10;78033:25;;;;;;;;;;;;;;77966:104;77752:327;-1:-1:-1;78097:5:0;;-1:-1:-1;78104:10:0;;-1:-1:-1;;;;;;76797:1324:0;;;;;;:::o;81567:406::-;81663:14;81692:12;81688:52;;81717:13;;81688:52;81892:5;;81793:12;;81885:49;;-1:-1:-1;;;;;81892:5:0;81793:12;81926:7;81885:49;:26;:49;:::i;:::-;81952:8;-1:-1:-1;;;;;81952:13:0;;:15;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;81952:15:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;81952:15:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;81952:15:0;;81567:406;-1:-1:-1;;;;81567:406:0:o;79151:409::-;79313:17;:24;79293:45;;;;;;;;;;;;;;;;79216:43;;79293:45;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;-1:-1:-1;79270:68:0;-1:-1:-1;79352:7:0;79347:208;79369:17;:24;79365:28;;;;79347:208;;;79437:108;;;;;;;;79463:17;79481:1;79463:20;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;79463:20:0;-1:-1:-1;;;;;79437:108:0;;;;;79496:16;:38;79513:17;79531:1;79513:20;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;79513:20:0;;;79496:38;;;;;;;;;;;;;;;;;79437:108;;79411:23;;:20;;:23;;;;;;;;;;;;;;;;;;;:134;79395:3;;79347:208;;;;79151:409;:::o;82341:455::-;82473:14;82502:12;82498:52;;82527:13;;82498:52;82603:12;82697:50;-1:-1:-1;;;;;82697:27:0;;82603:12;82739:7;82697:50;:27;:50;:::i;:::-;82765:8;-1:-1:-1;;;;;82765:15:0;;82781:8;82765:25;;;;;;;;;;;;;-1:-1:-1;;;;;82765:25:0;-1:-1:-1;;;;;82765:25:0;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;82765:25:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;82765:25:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;82765:25:0;;-1:-1:-1;;82341:455:0;;;;;;;:::o;78446:504::-;78559:16;78577;78604:32;78653:22;:29;78685:1;78653:33;78639:48;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;136:17;;-1:-1;78639:48:0;;78604:83;;78717:7;78696:15;78712:1;78696:18;;;;;;;;;;;;;;;;;:28;78750:1;78735:128;78758:22;:29;78753:1;:34;;;78735:128;;78826:22;78851:1;78849;:3;78826:27;;;;;;;;;;;;;;;;78805:15;78821:1;78805:18;;;;;;;;;;;;;;;;;;;:48;78789:3;;78735:128;;;-1:-1:-1;78895:10:0;;78880:64;;-1:-1:-1;;;78880:64:0;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;78895:10:0;;;;78880:47;;78928:15;;78880:64;;;;;;;;;;;;;;;78895:10;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;78880:64:0;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;78880:64:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;78880:64:0;;;;;;39:16:-1;36:1;17:17;2:54;101:4;78880:64:0;80:15:-1;;;-1:-1;;76:31;65:43;;120:4;113:20;;;5:11;;2:2;;;29:1;26;19:12;2:2;78880:64:0;;;;;;;;;;;;;-1:-1:-1;;;14:3;11:20;8:2;;;44:1;41;34:12;8:2;62:21;;;;123:4;114:14;;138:31;;;135:2;;;182:1;179;172:12;135:2;219:3;213:10;331:9;325:2;311:12;307:21;289:16;285:44;282:59;-1:-1;;;247:12;244:29;233:116;230:2;;;362:1;359;352:12;230:2;373:25;;-1:-1;78880:64:0;;421:4:-1;412:14;;;;78880:64:0;;;;;412:14:-1;78880:64:0;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;78880:64:0;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;14:3;11:20;8:2;;;44:1;41;34:12;8:2;62:21;;;;123:4;114:14;;138:31;;;135:2;;;182:1;179;172:12;135:2;219:3;213:10;331:9;325:2;311:12;307:21;289:16;285:44;282:59;-1:-1;;;247:12;244:29;233:116;230:2;;;362:1;359;352:12;230:2;373:25;;-1:-1;78880:64:0;;421:4:-1;412:14;;;;78880:64:0;;;;;412:14:-1;78880:64:0;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;78880:64:0;;;;;;;;;;;78873:71;;;;;78446:504;;;;;:::o;25603:130::-;25663:24;:8;25679:7;25663:24;:15;:24;:::i;:::-;25703:22;;-1:-1:-1;;;;;25703:22:0;;;;;;;;25603:130;:::o;25473:122::-;25530:21;:8;25543:7;25530:21;:12;:21;:::i;:::-;25567:20;;-1:-1:-1;;;;;25567:20:0;;;;;;;;25473:122;:::o;23335:229::-;-1:-1:-1;;;;;23409:22:0;;23401:73;;;;-1:-1:-1;;;23401:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23511:6;;23490:38;;-1:-1:-1;;;;;23490:38:0;;;;23511:6;;23490:38;;23511:6;;23490:38;23539:6;:17;;-1:-1:-1;;;;;;23539:17:0;-1:-1:-1;;;;;23539:17:0;;;;;;;;;;23335:229::o;7962:345::-;8048:7;8150:12;8143:5;8135:28;;;;-1:-1:-1;;;8135:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;8135:28:0;;8174:9;8190:1;8186;:5;;;;;;;7962:345;-1:-1:-1;;;;;7962:345:0:o;33646:1114::-;34250:27;34258:5;-1:-1:-1;;;;;34250:25:0;;:27::i;:::-;34242:71;;;;;-1:-1:-1;;;34242:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;34387:12;34401:23;34436:5;-1:-1:-1;;;;;34428:19:0;34448:4;34428:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;34428:25:0;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;34386:67:0;;;;34472:7;34464:52;;;;;-1:-1:-1;;;34464:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34533:17;;:21;34529:224;;34675:10;34664:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;34664:30:0;34656:85;;;;-1:-1:-1;;;34656:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5445:136;5503:7;5530:43;5534:1;5537;5530:43;;;;;;;;;;;;;;;;;:3;:43::i;81100:235::-;81202:11;81224:25;81269:12;81224:58;;81297:8;-1:-1:-1;;;;;81297:23:0;;81321:7;81297:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;81297:32:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;24156:183:0;24236:18;24240:4;24246:7;24236:3;:18::i;:::-;24228:64;;;;-1:-1:-1;;;24228:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;24303:20:0;24326:5;24303:20;;;;;;;;;;;:28;;-1:-1:-1;;24303:28:0;;;24156:183::o;23898:178::-;23976:18;23980:4;23986:7;23976:3;:18::i;:::-;23975:19;23967:63;;;;;-1:-1:-1;;;23967:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;24041:20:0;:11;:20;;;;;;;;;;;:27;;-1:-1:-1;;24041:27:0;24064:4;24041:27;;;23898:178::o;28445:810::-;28505:4;29164:20;;29007:66;29204:15;;;;;:42;;-1:-1:-1;29223:23:0;;;29196:51;-1:-1:-1;;28445:810:0:o;58663:24136::-;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;-1:-1:-1;58663:24136:0;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;
Swarm Source
bzzr://b842b2769e7f263e2ddb268beb394cf55bb8326b40231aeb467de1b45c262317
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.