ERC-721
Overview
Max Total Supply
27,172 WEOMVT
Holders
22,553
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 WEOMVTLoading...
Loading
Loading...
Loading
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0xFBEB75c4...E5DaE64DF The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
crosschainQiStablecoinSlim
Compiler Version
v0.5.17+commit.d19bba13
Contract Source Code (Solidity)
/** *Submitted for verification at optimistic.etherscan.io on 2022-04-06 */ // Sources flattened with hardhat v2.9.3 https://hardhat.org // File @openzeppelin/contracts/GSN/[email protected] pragma solidity ^0.5.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ contract Context { // Empty internal constructor, to prevent people from mistakenly deploying // an instance of this contract, which should be used via inheritance. constructor () internal { } // solhint-disable-previous-line no-empty-blocks function _msgSender() internal view returns (address payable) { return msg.sender; } function _msgData() internal view returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // File @openzeppelin/contracts/ownership/[email protected] pragma solidity ^0.5.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(isOwner(), "Ownable: caller is not the owner"); _; } /** * @dev Returns true if the caller is the current owner. */ function isOwner() public view returns (bool) { return _msgSender() == _owner; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public onlyOwner { _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). */ function _transferOwnership(address newOwner) internal { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } // File @openzeppelin/contracts/token/ERC20/[email protected] 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/math/[email protected] 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/utils/[email protected] pragma solidity ^0.5.5; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // solhint-disable-next-line no-inline-assembly assembly { codehash := extcodehash(account) } return (codehash != accountHash && codehash != 0x0); } /** * @dev Converts an `address` into `address payable`. Note that this is * simply a type cast: the actual underlying value is not changed. * * _Available since v2.4.0._ */ function toPayable(address account) internal pure returns (address payable) { return address(uint160(account)); } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. * * _Available since v2.4.0._ */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-call-value (bool success, ) = recipient.call.value(amount)(""); require(success, "Address: unable to send value, recipient may have reverted"); } } // File @openzeppelin/contracts/token/ERC20/[email protected] pragma solidity ^0.5.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for ERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. // A Solidity high level call has three parts: // 1. The target address is checked to verify it contains contract code // 2. The call itself is made, and success asserted // 3. The return value is decoded, which in turn checks the size of the returned data. // solhint-disable-next-line max-line-length require(address(token).isContract(), "SafeERC20: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = address(token).call(data); require(success, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File @openzeppelin/contracts/token/ERC20/[email protected] 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/[email protected] 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/[email protected] pragma solidity ^0.5.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. * * _Since v2.5.0:_ this module is now much more gas efficient, given net gas * metering changes introduced in the Istanbul hardfork. */ contract ReentrancyGuard { bool private _notEntered; constructor () internal { // Storing an initial non-zero value makes deployment a bit more // expensive, but in exchange the refund on every call to nonReentrant // will be lower in amount. Since refunds are capped to a percetange of // the total transaction's gas, it is best to keep them low in cases // like this one, to increase the likelihood of the full refund coming // into effect. _notEntered = true; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_notEntered, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _notEntered = false; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _notEntered = true; } } // File contracts/interfaces/IPriceSourceAll.sol interface IPriceSource { function latestRoundData() external view returns (uint256); function latestAnswer() external view returns (uint256); function decimals() external view returns (uint8); } // File @openzeppelin/contracts/introspection/[email protected] pragma solidity ^0.5.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File @openzeppelin/contracts/token/ERC721/[email protected] pragma solidity ^0.5.0; /** * @dev Required interface of an ERC721 compliant contract. */ contract IERC721 is IERC165 { event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of NFTs in `owner`'s account. */ function balanceOf(address owner) public view returns (uint256 balance); /** * @dev Returns the owner of the NFT specified by `tokenId`. */ function ownerOf(uint256 tokenId) public view returns (address owner); /** * @dev Transfers a specific NFT (`tokenId`) from one account (`from`) to * another (`to`). * * * * Requirements: * - `from`, `to` cannot be zero. * - `tokenId` must be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this * NFT by either {approve} or {setApprovalForAll}. */ function safeTransferFrom(address from, address to, uint256 tokenId) public; /** * @dev Transfers a specific NFT (`tokenId`) from one account (`from`) to * another (`to`). * * Requirements: * - If the caller is not `from`, it must be approved to move this NFT by * either {approve} or {setApprovalForAll}. */ function transferFrom(address from, address to, uint256 tokenId) public; function approve(address to, uint256 tokenId) public; function getApproved(uint256 tokenId) public view returns (address operator); function setApprovalForAll(address operator, bool _approved) public; function isApprovedForAll(address owner, address operator) public view returns (bool); function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public; } // File @openzeppelin/contracts/token/ERC721/[email protected] pragma solidity ^0.5.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ contract IERC721Receiver { /** * @notice Handle the receipt of an NFT * @dev The ERC721 smart contract calls this function on the recipient * after a {IERC721-safeTransferFrom}. This function MUST return the function selector, * otherwise the caller will revert the transaction. The selector to be * returned can be obtained as `this.onERC721Received.selector`. This * function MAY throw to revert and reject the transfer. * Note: the ERC721 contract address is always the message sender. * @param operator The address which called `safeTransferFrom` function * @param from The address which previously owned the token * @param tokenId The NFT identifier which is being transferred * @param data Additional data with no specified format * @return bytes4 `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` */ function onERC721Received(address operator, address from, uint256 tokenId, bytes memory data) public returns (bytes4); } // File @openzeppelin/contracts/drafts/[email protected] pragma solidity ^0.5.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented or decremented by one. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` * Since it is not possible to overflow a 256 bit integer with increments of one, `increment` can skip the {SafeMath} * overflow check, thereby saving gas. This does assume however correct usage, in that the underlying `_value` is never * directly accessed. */ library Counters { using SafeMath for uint256; struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { // The {SafeMath} overflow check can be skipped here, see the comment at the top counter._value += 1; } function decrement(Counter storage counter) internal { counter._value = counter._value.sub(1); } } // File @openzeppelin/contracts/introspection/[email protected] pragma solidity ^0.5.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts may inherit from this and call {_registerInterface} to declare * their support of an interface. */ contract ERC165 is IERC165 { /* * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7 */ bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7; /** * @dev Mapping of interface ids to whether or not it's supported. */ mapping(bytes4 => bool) private _supportedInterfaces; constructor () internal { // Derived contracts need only register support for their own interfaces, // we register support for ERC165 itself here _registerInterface(_INTERFACE_ID_ERC165); } /** * @dev See {IERC165-supportsInterface}. * * Time complexity O(1), guaranteed to always use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool) { return _supportedInterfaces[interfaceId]; } /** * @dev Registers the contract as an implementer of the interface defined by * `interfaceId`. Support of the actual ERC165 interface is automatic and * registering its interface id is not required. * * See {IERC165-supportsInterface}. * * Requirements: * * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`). */ function _registerInterface(bytes4 interfaceId) internal { require(interfaceId != 0xffffffff, "ERC165: invalid interface id"); _supportedInterfaces[interfaceId] = true; } } // File @openzeppelin/contracts/token/ERC721/[email protected] pragma solidity ^0.5.0; /** * @title ERC721 Non-Fungible Token Standard basic implementation * @dev see https://eips.ethereum.org/EIPS/eip-721 */ contract ERC721 is Context, ERC165, IERC721 { using SafeMath for uint256; using Address for address; using Counters for Counters.Counter; // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))` // which can be also obtained as `IERC721Receiver(0).onERC721Received.selector` bytes4 private constant _ERC721_RECEIVED = 0x150b7a02; // Mapping from token ID to owner mapping (uint256 => address) private _tokenOwner; // Mapping from token ID to approved address mapping (uint256 => address) private _tokenApprovals; // Mapping from owner to number of owned token mapping (address => Counters.Counter) private _ownedTokensCount; // Mapping from owner to operator approvals mapping (address => mapping (address => bool)) private _operatorApprovals; /* * bytes4(keccak256('balanceOf(address)')) == 0x70a08231 * bytes4(keccak256('ownerOf(uint256)')) == 0x6352211e * bytes4(keccak256('approve(address,uint256)')) == 0x095ea7b3 * bytes4(keccak256('getApproved(uint256)')) == 0x081812fc * bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465 * bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5 * bytes4(keccak256('transferFrom(address,address,uint256)')) == 0x23b872dd * bytes4(keccak256('safeTransferFrom(address,address,uint256)')) == 0x42842e0e * bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)')) == 0xb88d4fde * * => 0x70a08231 ^ 0x6352211e ^ 0x095ea7b3 ^ 0x081812fc ^ * 0xa22cb465 ^ 0xe985e9c ^ 0x23b872dd ^ 0x42842e0e ^ 0xb88d4fde == 0x80ac58cd */ bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd; constructor () public { // register the supported interfaces to conform to ERC721 via ERC165 _registerInterface(_INTERFACE_ID_ERC721); } /** * @dev Gets the balance of the specified address. * @param owner address to query the balance of * @return uint256 representing the amount owned by the passed address */ function balanceOf(address owner) public view returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _ownedTokensCount[owner].current(); } /** * @dev Gets the owner of the specified token ID. * @param tokenId uint256 ID of the token to query the owner of * @return address currently marked as the owner of the given token ID */ function ownerOf(uint256 tokenId) public view returns (address) { address owner = _tokenOwner[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev Approves another address to transfer the given token ID * The zero address indicates there is no approved address. * There can only be one approved address per token at a given time. * Can only be called by the token owner or an approved operator. * @param to address to be approved for the given token ID * @param tokenId uint256 ID of the token to be approved */ function approve(address to, uint256 tokenId) public { address owner = ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require(_msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Gets the approved address for a token ID, or zero if no address set * Reverts if the token ID does not exist. * @param tokenId uint256 ID of the token to query the approval of * @return address currently approved for the given token ID */ function getApproved(uint256 tokenId) public view returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev Sets or unsets the approval of a given operator * An operator is allowed to transfer all tokens of the sender on their behalf. * @param to operator address to set the approval * @param approved representing the status of the approval to be set */ function setApprovalForAll(address to, bool approved) public { require(to != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][to] = approved; emit ApprovalForAll(_msgSender(), to, approved); } /** * @dev Tells whether an operator is approved by a given owner. * @param owner owner address which you want to query the approval of * @param operator operator address which you want to query the approval of * @return bool whether the given operator is approved by the given owner */ function isApprovedForAll(address owner, address operator) public view returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Transfers the ownership of a given token ID to another address. * Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * Requires the msg.sender to be the owner, approved, or operator. * @param from current owner of the token * @param to address to receive the ownership of the given token ID * @param tokenId uint256 ID of the token to be transferred */ function transferFrom(address from, address to, uint256 tokenId) public { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transferFrom(from, to, tokenId); } /** * @dev Safely transfers the ownership of a given token ID to another address * If the target address is a contract, it must implement {IERC721Receiver-onERC721Received}, * which is called upon a safe transfer, and return the magic value * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise, * the transfer is reverted. * Requires the msg.sender to be the owner, approved, or operator * @param from current owner of the token * @param to address to receive the ownership of the given token ID * @param tokenId uint256 ID of the token to be transferred */ function safeTransferFrom(address from, address to, uint256 tokenId) public { safeTransferFrom(from, to, tokenId, ""); } /** * @dev Safely transfers the ownership of a given token ID to another address * If the target address is a contract, it must implement {IERC721Receiver-onERC721Received}, * which is called upon a safe transfer, and return the magic value * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise, * the transfer is reverted. * Requires the _msgSender() to be the owner, approved, or operator * @param from current owner of the token * @param to address to receive the ownership of the given token ID * @param tokenId uint256 ID of the token to be transferred * @param _data bytes data to send along with a safe transfer check */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransferFrom(from, to, tokenId, _data); } /** * @dev Safely transfers the ownership of a given token ID to another address * If the target address is a contract, it must implement `onERC721Received`, * which is called upon a safe transfer, and return the magic value * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise, * the transfer is reverted. * Requires the msg.sender to be the owner, approved, or operator * @param from current owner of the token * @param to address to receive the ownership of the given token ID * @param tokenId uint256 ID of the token to be transferred * @param _data bytes data to send along with a safe transfer check */ function _safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) internal { _transferFrom(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether the specified token exists. * @param tokenId uint256 ID of the token to query the existence of * @return bool whether the token exists */ function _exists(uint256 tokenId) internal view returns (bool) { address owner = _tokenOwner[tokenId]; return owner != address(0); } /** * @dev Returns whether the given spender can transfer a given token ID. * @param spender address of the spender to query * @param tokenId uint256 ID of the token to be transferred * @return bool whether the msg.sender is approved for the given token ID, * is an operator of the owner, or is the owner of the token */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Internal function to safely mint a new token. * Reverts if the given token ID already exists. * If the target address is a contract, it must implement `onERC721Received`, * which is called upon a safe transfer, and return the magic value * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise, * the transfer is reverted. * @param to The address that will own the minted token * @param tokenId uint256 ID of the token to be minted */ function _safeMint(address to, uint256 tokenId) internal { _safeMint(to, tokenId, ""); } /** * @dev Internal function to safely mint a new token. * Reverts if the given token ID already exists. * If the target address is a contract, it must implement `onERC721Received`, * which is called upon a safe transfer, and return the magic value * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise, * the transfer is reverted. * @param to The address that will own the minted token * @param tokenId uint256 ID of the token to be minted * @param _data bytes data to send along with a safe transfer check */ function _safeMint(address to, uint256 tokenId, bytes memory _data) internal { _mint(to, tokenId); require(_checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Internal function to mint a new token. * Reverts if the given token ID already exists. * @param to The address that will own the minted token * @param tokenId uint256 ID of the token to be minted */ function _mint(address to, uint256 tokenId) internal { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _tokenOwner[tokenId] = to; _ownedTokensCount[to].increment(); emit Transfer(address(0), to, tokenId); } /** * @dev Internal function to burn a specific token. * Reverts if the token does not exist. * Deprecated, use {_burn} instead. * @param owner owner of the token to burn * @param tokenId uint256 ID of the token being burned */ function _burn(address owner, uint256 tokenId) internal { require(ownerOf(tokenId) == owner, "ERC721: burn of token that is not own"); _clearApproval(tokenId); _ownedTokensCount[owner].decrement(); _tokenOwner[tokenId] = address(0); emit Transfer(owner, address(0), tokenId); } /** * @dev Internal function to burn a specific token. * Reverts if the token does not exist. * @param tokenId uint256 ID of the token being burned */ function _burn(uint256 tokenId) internal { _burn(ownerOf(tokenId), tokenId); } /** * @dev Internal function to transfer ownership of a given token ID to another address. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * @param from current owner of the token * @param to address to receive the ownership of the given token ID * @param tokenId uint256 ID of the token to be transferred */ function _transferFrom(address from, address to, uint256 tokenId) internal { require(ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _clearApproval(tokenId); _ownedTokensCount[from].decrement(); _ownedTokensCount[to].increment(); _tokenOwner[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * This is an internal detail of the `ERC721` contract and its use is deprecated. * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data) internal returns (bool) { if (!to.isContract()) { return true; } // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = to.call(abi.encodeWithSelector( IERC721Receiver(to).onERC721Received.selector, _msgSender(), from, tokenId, _data )); if (!success) { if (returndata.length > 0) { // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert("ERC721: transfer to non ERC721Receiver implementer"); } } else { bytes4 retval = abi.decode(returndata, (bytes4)); return (retval == _ERC721_RECEIVED); } } /** * @dev Private function to clear current approval of a given token ID. * @param tokenId uint256 ID of the token to be transferred */ function _clearApproval(uint256 tokenId) private { if (_tokenApprovals[tokenId] != address(0)) { _tokenApprovals[tokenId] = address(0); } } } // File @openzeppelin/contracts/token/ERC721/[email protected] pragma solidity ^0.5.0; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ contract IERC721Enumerable is IERC721 { function totalSupply() public view returns (uint256); function tokenOfOwnerByIndex(address owner, uint256 index) public view returns (uint256 tokenId); function tokenByIndex(uint256 index) public view returns (uint256); } // File @openzeppelin/contracts/token/ERC721/[email protected] pragma solidity ^0.5.0; /** * @title ERC-721 Non-Fungible Token with optional enumeration extension logic * @dev See https://eips.ethereum.org/EIPS/eip-721 */ contract ERC721Enumerable is Context, ERC165, ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => uint256[]) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /* * bytes4(keccak256('totalSupply()')) == 0x18160ddd * bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) == 0x2f745c59 * bytes4(keccak256('tokenByIndex(uint256)')) == 0x4f6ccce7 * * => 0x18160ddd ^ 0x2f745c59 ^ 0x4f6ccce7 == 0x780e9d63 */ bytes4 private constant _INTERFACE_ID_ERC721_ENUMERABLE = 0x780e9d63; /** * @dev Constructor function. */ constructor () public { // register the supported interface to conform to ERC721Enumerable via ERC165 _registerInterface(_INTERFACE_ID_ERC721_ENUMERABLE); } /** * @dev Gets the token ID at a given index of the tokens list of the requested owner. * @param owner address owning the tokens list to be accessed * @param index uint256 representing the index to be accessed of the requested tokens list * @return uint256 token ID at the given index of the tokens list owned by the requested address */ function tokenOfOwnerByIndex(address owner, uint256 index) public view returns (uint256) { require(index < balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev Gets the total amount of tokens stored by the contract. * @return uint256 representing the total amount of tokens */ function totalSupply() public view returns (uint256) { return _allTokens.length; } /** * @dev Gets the token ID at a given index of all the tokens in this contract * Reverts if the index is greater or equal to the total number of tokens. * @param index uint256 representing the index to be accessed of the tokens list * @return uint256 token ID at the given index of the tokens list */ function tokenByIndex(uint256 index) public view returns (uint256) { require(index < totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Internal function to transfer ownership of a given token ID to another address. * As opposed to transferFrom, this imposes no restrictions on msg.sender. * @param from current owner of the token * @param to address to receive the ownership of the given token ID * @param tokenId uint256 ID of the token to be transferred */ function _transferFrom(address from, address to, uint256 tokenId) internal { super._transferFrom(from, to, tokenId); _removeTokenFromOwnerEnumeration(from, tokenId); _addTokenToOwnerEnumeration(to, tokenId); } /** * @dev Internal function to mint a new token. * Reverts if the given token ID already exists. * @param to address the beneficiary that will own the minted token * @param tokenId uint256 ID of the token to be minted */ function _mint(address to, uint256 tokenId) internal { super._mint(to, tokenId); _addTokenToOwnerEnumeration(to, tokenId); _addTokenToAllTokensEnumeration(tokenId); } /** * @dev Internal function to burn a specific token. * Reverts if the token does not exist. * Deprecated, use {ERC721-_burn} instead. * @param owner owner of the token to burn * @param tokenId uint256 ID of the token being burned */ function _burn(address owner, uint256 tokenId) internal { super._burn(owner, tokenId); _removeTokenFromOwnerEnumeration(owner, tokenId); // Since tokenId will be deleted, we can clear its slot in _ownedTokensIndex to trigger a gas refund _ownedTokensIndex[tokenId] = 0; _removeTokenFromAllTokensEnumeration(tokenId); } /** * @dev Gets the list of token IDs of the requested owner. * @param owner address owning the tokens * @return uint256[] List of token IDs owned by the requested address */ function _tokensOfOwner(address owner) internal view returns (uint256[] storage) { return _ownedTokens[owner]; } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { _ownedTokensIndex[tokenId] = _ownedTokens[to].length; _ownedTokens[to].push(tokenId); } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _ownedTokens[from].length.sub(1); uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array _ownedTokens[from].length--; // Note that _ownedTokensIndex[tokenId] hasn't been cleared: it still points to the old slot (now occupied by // lastTokenId, or just over the end of the array if the token was the last one). } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length.sub(1); uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array _allTokens.length--; _allTokensIndex[tokenId] = 0; } } // File @openzeppelin/contracts/token/ERC721/[email protected] pragma solidity ^0.5.0; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ contract IERC721Metadata is IERC721 { function name() external view returns (string memory); function symbol() external view returns (string memory); function tokenURI(uint256 tokenId) external view returns (string memory); } // File @openzeppelin/contracts/token/ERC721/[email protected] pragma solidity ^0.5.0; contract ERC721Metadata is Context, ERC165, ERC721, IERC721Metadata { // Token name string private _name; // Token symbol string private _symbol; // Base URI string private _baseURI; // Optional mapping for token URIs mapping(uint256 => string) private _tokenURIs; /* * bytes4(keccak256('name()')) == 0x06fdde03 * bytes4(keccak256('symbol()')) == 0x95d89b41 * bytes4(keccak256('tokenURI(uint256)')) == 0xc87b56dd * * => 0x06fdde03 ^ 0x95d89b41 ^ 0xc87b56dd == 0x5b5e139f */ bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x5b5e139f; /** * @dev Constructor function */ constructor (string memory name, string memory symbol) public { _name = name; _symbol = symbol; // register the supported interfaces to conform to ERC721 via ERC165 _registerInterface(_INTERFACE_ID_ERC721_METADATA); } /** * @dev Gets the token name. * @return string representing the token name */ function name() external view returns (string memory) { return _name; } /** * @dev Gets the token symbol. * @return string representing the token symbol */ function symbol() external view returns (string memory) { return _symbol; } /** * @dev Returns the URI for a given token ID. May return an empty string. * * If the token's URI is non-empty and a base URI was set (via * {_setBaseURI}), it will be added to the token ID's URI as a prefix. * * Reverts if the token ID does not exist. */ function tokenURI(uint256 tokenId) external view returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory _tokenURI = _tokenURIs[tokenId]; // Even if there is a base URI, it is only appended to non-empty token-specific URIs if (bytes(_tokenURI).length == 0) { return ""; } else { // abi.encodePacked is being used to concatenate strings return string(abi.encodePacked(_baseURI, _tokenURI)); } } /** * @dev Internal function to set the token URI for a given token. * * Reverts if the token ID does not exist. * * TIP: if all token IDs share a prefix (e.g. if your URIs look like * `http://api.myproject.com/token/<id>`), use {_setBaseURI} to store * it and save gas. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal { require(_exists(tokenId), "ERC721Metadata: URI set of nonexistent token"); _tokenURIs[tokenId] = _tokenURI; } /** * @dev Internal function to set the base URI for all token IDs. It is * automatically added as a prefix to the value returned in {tokenURI}. * * _Available since v2.5.0._ */ function _setBaseURI(string memory baseURI) internal { _baseURI = baseURI; } /** * @dev Returns the base URI set via {_setBaseURI}. This will be * automatically added as a preffix in {tokenURI} to each token's URI, when * they are non-empty. * * _Available since v2.5.0._ */ function baseURI() external view returns (string memory) { return _baseURI; } /** * @dev Internal function to burn a specific token. * Reverts if the token does not exist. * Deprecated, use _burn(uint256) instead. * @param owner owner of the token to burn * @param tokenId uint256 ID of the token being burned by the msg.sender */ function _burn(address owner, uint256 tokenId) internal { super._burn(owner, tokenId); // Clear metadata (if any) if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } } } // File @openzeppelin/contracts/token/ERC721/[email protected] pragma solidity ^0.5.0; /** * @title Full ERC721 Token * @dev This implementation includes all the required and some optional functionality of the ERC721 standard * Moreover, it includes approve all functionality using operator terminology. * * See https://eips.ethereum.org/EIPS/eip-721 */ contract ERC721Full is ERC721, ERC721Enumerable, ERC721Metadata { constructor (string memory name, string memory symbol) public ERC721Metadata(name, symbol) { // solhint-disable-previous-line no-empty-blocks } } // File contracts/MyVaultV4.sol // contracts/MyVaultNFT.sol // SPDX-License-Identifier: MIT pragma solidity 0.5.17; contract VaultNFTv4 is ERC721Full { string public uri; constructor(string memory name, string memory symbol, string memory _uri) public ERC721Full(name, symbol) { uri = _uri; } function tokenURI(uint256 tokenId) public view returns (string memory) { require(_exists(tokenId)); return uri; } } // File hardhat/[email protected] // SPDX-License-Identifier: MIT pragma solidity >= 0.4.22 <0.9.0; library console { address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67); function _sendLogPayload(bytes memory payload) private view { uint256 payloadLength = payload.length; address consoleAddress = CONSOLE_ADDRESS; assembly { let payloadStart := add(payload, 32) let r := staticcall(gas(), consoleAddress, payloadStart, payloadLength, 0, 0) } } function log() internal view { _sendLogPayload(abi.encodeWithSignature("log()")); } function logInt(int p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(int)", p0)); } function logUint(uint p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint)", p0)); } function logString(string memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(string)", p0)); } function logBool(bool p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool)", p0)); } function logAddress(address p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(address)", p0)); } function logBytes(bytes memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes)", p0)); } function logBytes1(bytes1 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes1)", p0)); } function logBytes2(bytes2 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes2)", p0)); } function logBytes3(bytes3 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes3)", p0)); } function logBytes4(bytes4 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes4)", p0)); } function logBytes5(bytes5 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes5)", p0)); } function logBytes6(bytes6 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes6)", p0)); } function logBytes7(bytes7 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes7)", p0)); } function logBytes8(bytes8 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes8)", p0)); } function logBytes9(bytes9 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes9)", p0)); } function logBytes10(bytes10 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes10)", p0)); } function logBytes11(bytes11 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes11)", p0)); } function logBytes12(bytes12 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes12)", p0)); } function logBytes13(bytes13 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes13)", p0)); } function logBytes14(bytes14 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes14)", p0)); } function logBytes15(bytes15 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes15)", p0)); } function logBytes16(bytes16 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes16)", p0)); } function logBytes17(bytes17 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes17)", p0)); } function logBytes18(bytes18 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes18)", p0)); } function logBytes19(bytes19 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes19)", p0)); } function logBytes20(bytes20 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes20)", p0)); } function logBytes21(bytes21 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes21)", p0)); } function logBytes22(bytes22 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes22)", p0)); } function logBytes23(bytes23 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes23)", p0)); } function logBytes24(bytes24 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes24)", p0)); } function logBytes25(bytes25 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes25)", p0)); } function logBytes26(bytes26 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes26)", p0)); } function logBytes27(bytes27 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes27)", p0)); } function logBytes28(bytes28 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes28)", p0)); } function logBytes29(bytes29 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes29)", p0)); } function logBytes30(bytes30 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes30)", p0)); } function logBytes31(bytes31 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes31)", p0)); } function logBytes32(bytes32 p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bytes32)", p0)); } function log(uint p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint)", p0)); } function log(string memory p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(string)", p0)); } function log(bool p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool)", p0)); } function log(address p0) internal view { _sendLogPayload(abi.encodeWithSignature("log(address)", p0)); } function log(uint p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint)", p0, p1)); } function log(uint p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string)", p0, p1)); } function log(uint p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool)", p0, p1)); } function log(uint p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address)", p0, p1)); } function log(string memory p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint)", p0, p1)); } function log(string memory p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string)", p0, p1)); } function log(string memory p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool)", p0, p1)); } function log(string memory p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address)", p0, p1)); } function log(bool p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint)", p0, p1)); } function log(bool p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string)", p0, p1)); } function log(bool p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool)", p0, p1)); } function log(bool p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address)", p0, p1)); } function log(address p0, uint p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint)", p0, p1)); } function log(address p0, string memory p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string)", p0, p1)); } function log(address p0, bool p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool)", p0, p1)); } function log(address p0, address p1) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address)", p0, p1)); } function log(uint p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint)", p0, p1, p2)); } function log(uint p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string)", p0, p1, p2)); } function log(uint p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool)", p0, p1, p2)); } function log(uint p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address)", p0, p1, p2)); } function log(uint p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint)", p0, p1, p2)); } function log(uint p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string)", p0, p1, p2)); } function log(uint p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool)", p0, p1, p2)); } function log(uint p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address)", p0, p1, p2)); } function log(uint p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint)", p0, p1, p2)); } function log(uint p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string)", p0, p1, p2)); } function log(uint p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool)", p0, p1, p2)); } function log(uint p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address)", p0, p1, p2)); } function log(uint p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint)", p0, p1, p2)); } function log(uint p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string)", p0, p1, p2)); } function log(uint p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool)", p0, p1, p2)); } function log(uint p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address)", p0, p1, p2)); } function log(string memory p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint)", p0, p1, p2)); } function log(string memory p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string)", p0, p1, p2)); } function log(string memory p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool)", p0, p1, p2)); } function log(string memory p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address)", p0, p1, p2)); } function log(string memory p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint)", p0, p1, p2)); } function log(string memory p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string)", p0, p1, p2)); } function log(string memory p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool)", p0, p1, p2)); } function log(string memory p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address)", p0, p1, p2)); } function log(string memory p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint)", p0, p1, p2)); } function log(string memory p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string)", p0, p1, p2)); } function log(string memory p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool)", p0, p1, p2)); } function log(string memory p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address)", p0, p1, p2)); } function log(string memory p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint)", p0, p1, p2)); } function log(string memory p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string)", p0, p1, p2)); } function log(string memory p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool)", p0, p1, p2)); } function log(string memory p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address)", p0, p1, p2)); } function log(bool p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint)", p0, p1, p2)); } function log(bool p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string)", p0, p1, p2)); } function log(bool p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool)", p0, p1, p2)); } function log(bool p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address)", p0, p1, p2)); } function log(bool p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint)", p0, p1, p2)); } function log(bool p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string)", p0, p1, p2)); } function log(bool p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool)", p0, p1, p2)); } function log(bool p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address)", p0, p1, p2)); } function log(bool p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint)", p0, p1, p2)); } function log(bool p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string)", p0, p1, p2)); } function log(bool p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool)", p0, p1, p2)); } function log(bool p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address)", p0, p1, p2)); } function log(bool p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint)", p0, p1, p2)); } function log(bool p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string)", p0, p1, p2)); } function log(bool p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool)", p0, p1, p2)); } function log(bool p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address)", p0, p1, p2)); } function log(address p0, uint p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint)", p0, p1, p2)); } function log(address p0, uint p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string)", p0, p1, p2)); } function log(address p0, uint p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool)", p0, p1, p2)); } function log(address p0, uint p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address)", p0, p1, p2)); } function log(address p0, string memory p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint)", p0, p1, p2)); } function log(address p0, string memory p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string)", p0, p1, p2)); } function log(address p0, string memory p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool)", p0, p1, p2)); } function log(address p0, string memory p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address)", p0, p1, p2)); } function log(address p0, bool p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint)", p0, p1, p2)); } function log(address p0, bool p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string)", p0, p1, p2)); } function log(address p0, bool p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool)", p0, p1, p2)); } function log(address p0, bool p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address)", p0, p1, p2)); } function log(address p0, address p1, uint p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint)", p0, p1, p2)); } function log(address p0, address p1, string memory p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string)", p0, p1, p2)); } function log(address p0, address p1, bool p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool)", p0, p1, p2)); } function log(address p0, address p1, address p2) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address)", p0, p1, p2)); } function log(uint p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,address)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,uint)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,string)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,bool)", p0, p1, p2, p3)); } function log(uint p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,string,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,address)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,uint)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,string)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,bool)", p0, p1, p2, p3)); } function log(uint p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,string,address,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,address)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,uint)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,string)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,bool)", p0, p1, p2, p3)); } function log(uint p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,string,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,address)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,uint)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,string)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,bool)", p0, p1, p2, p3)); } function log(uint p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(uint,address,address,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,string,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,string)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,uint,address,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,string,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,string)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,string,address,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,string)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,uint,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,string,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,address)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,uint)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,string)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,bool)", p0, p1, p2, p3)); } function log(string memory p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(string,address,address,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,address)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,uint)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,string)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,bool)", p0, p1, p2, p3)); } function log(bool p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,address)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,uint)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,string)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,bool)", p0, p1, p2, p3)); } function log(bool p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,address)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,uint)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,string)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,bool)", p0, p1, p2, p3)); } function log(bool p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,address)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,uint)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,string)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,bool)", p0, p1, p2, p3)); } function log(bool p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,string,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,address)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,uint)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,string)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,bool)", p0, p1, p2, p3)); } function log(address p0, uint p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,uint,address,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,uint,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,string,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,address)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,uint)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,string)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,bool)", p0, p1, p2, p3)); } function log(address p0, string memory p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,string,address,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,address)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,uint)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,string)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,bool)", p0, p1, p2, p3)); } function log(address p0, bool p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,address)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,string)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, uint p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,uint,address)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,string)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, string memory p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,string,address)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,string)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, bool p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,address)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, uint p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,uint)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, string memory p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,string)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, bool p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,bool)", p0, p1, p2, p3)); } function log(address p0, address p1, address p2, address p3) internal view { _sendLogPayload(abi.encodeWithSignature("log(address,address,address,address)", p0, p1, p2, p3)); } } // File contracts/crosschainStablecoinSlim/crosschainStablecoinSlim.sol pragma solidity 0.5.17; contract crosschainStablecoinSlim is ReentrancyGuard, VaultNFTv4 { IPriceSource public ethPriceSource; using SafeMath for uint256; using SafeERC20 for ERC20Detailed; uint256 public _minimumCollateralPercentage; uint256 public vaultCount; uint256 public closingFee; uint256 public minDebt; uint256 public treasury; uint256 public tokenPeg; mapping(uint256 => uint256) public vaultCollateral; mapping(uint256 => uint256) public vaultDebt; uint256 public debtRatio; uint256 public gainRatio; address public stabilityPool; ERC20Detailed public collateral; ERC20Detailed public mai; uint256 public priceSourceDecimals; uint256 public totalBorrowed; uint8 public version = 3; event CreateVault(uint256 vaultID, address creator); event DestroyVault(uint256 vaultID); event TransferVault(uint256 vaultID, address from, address to); event DepositCollateral(uint256 vaultID, uint256 amount); event WithdrawCollateral(uint256 vaultID, uint256 amount); event BorrowToken(uint256 vaultID, uint256 amount); event PayBackToken(uint256 vaultID, uint256 amount, uint256 closingFee); event LiquidateVault( uint256 vaultID, address owner, address buyer, uint256 debtRepaid, uint256 collateralLiquidated, uint256 closingFee ); mapping(address => uint256) public maticDebt; constructor( address ethPriceSourceAddress, uint256 minimumCollateralPercentage, string memory name, string memory symbol, address _mai, address _collateral, string memory baseURI ) public VaultNFTv4(name, symbol, baseURI) { assert(ethPriceSourceAddress != address(0)); assert(minimumCollateralPercentage != 0); closingFee = 50; // 0.5% ethPriceSource = IPriceSource(ethPriceSourceAddress); stabilityPool = address(0); tokenPeg = 100000000; // $1 debtRatio = 2; // 1/2, pay back 50% gainRatio = 1100; // /10 so 1.1 _minimumCollateralPercentage = minimumCollateralPercentage; collateral = ERC20Detailed(_collateral); mai = ERC20Detailed(_mai); priceSourceDecimals = 8; } modifier onlyVaultOwner(uint256 vaultID) { require(_exists(vaultID), "Vault does not exist"); require(ownerOf(vaultID) == msg.sender, "Vault is not owned by you"); _; } function getDebtCeiling() public view returns (uint256) { return mai.balanceOf(address(this)); } function exists(uint256 vaultID) external view returns (bool) { return _exists(vaultID); } function getClosingFee() external view returns (uint256) { return closingFee; } function getTokenPriceSource() public view returns (uint256) { return tokenPeg; } function getEthPriceSource() public view returns (uint256) { uint256 price = ethPriceSource.latestAnswer(); return price; } function calculateCollateralProperties(uint256 _collateral, uint256 _debt) private view returns (uint256, uint256) { assert(getEthPriceSource() != 0); assert(getTokenPriceSource() != 0); uint256 collateralValue = _collateral.mul(getEthPriceSource()).mul( 10**(uint256(mai.decimals()).sub(uint256(collateral.decimals()))) ); assert(collateralValue >= _collateral); uint256 debtValue = _debt.mul(getTokenPriceSource()); assert(debtValue >= _debt); uint256 collateralValueTimes100 = collateralValue.mul(100); assert(collateralValueTimes100 > collateralValue); return (collateralValueTimes100, debtValue); } function isValidCollateral(uint256 collateral, uint256 debt) private view returns (bool) { ( uint256 collateralValueTimes100, uint256 debtValue ) = calculateCollateralProperties(collateral, debt); uint256 collateralPercentage = collateralValueTimes100.div(debtValue); return collateralPercentage >= _minimumCollateralPercentage; } function createVault() external returns (uint256) { uint256 id = vaultCount; vaultCount = vaultCount.add(1); assert(vaultCount >= id); _mint(msg.sender, id); emit CreateVault(id, msg.sender); return id; } function destroyVault(uint256 vaultID) external onlyVaultOwner(vaultID) nonReentrant { require(vaultDebt[vaultID] == 0, "Vault has outstanding debt"); if (vaultCollateral[vaultID] != 0) { // withdraw leftover collateral collateral.safeTransfer(ownerOf(vaultID), vaultCollateral[vaultID]); } _burn(vaultID); delete vaultCollateral[vaultID]; delete vaultDebt[vaultID]; emit DestroyVault(vaultID); } function depositCollateral(uint256 vaultID, uint256 amount) external { collateral.safeTransferFrom(msg.sender, address(this), amount); uint256 newCollateral = vaultCollateral[vaultID].add(amount); assert(newCollateral >= vaultCollateral[vaultID]); vaultCollateral[vaultID] = newCollateral; emit DepositCollateral(vaultID, amount); } function withdrawCollateral(uint256 vaultID, uint256 amount) external onlyVaultOwner(vaultID) nonReentrant { require( vaultCollateral[vaultID] >= amount, "Vault does not have enough collateral" ); uint256 newCollateral = vaultCollateral[vaultID].sub(amount); if (vaultDebt[vaultID] != 0) { require( isValidCollateral(newCollateral, vaultDebt[vaultID]), "Withdrawal would put vault below minimum collateral percentage" ); } vaultCollateral[vaultID] = newCollateral; collateral.safeTransfer(msg.sender, amount); emit WithdrawCollateral(vaultID, amount); } function borrowToken(uint256 vaultID, uint256 amount) external onlyVaultOwner(vaultID) { require(amount > 0, "Must borrow non-zero amount"); require( amount <= getDebtCeiling(), "borrowToken: Cannot mint over available supply." ); uint256 newDebt = vaultDebt[vaultID].add(amount); assert(newDebt > vaultDebt[vaultID]); require( isValidCollateral(vaultCollateral[vaultID], newDebt), "Borrow would put vault below minimum collateral percentage" ); require( (vaultDebt[vaultID]).add(amount) >= minDebt, "Vault debt can't be under minDebt" ); vaultDebt[vaultID] = newDebt; // mai mai.safeTransfer(msg.sender, amount); totalBorrowed = totalBorrowed.add(amount); emit BorrowToken(vaultID, amount); } function payBackToken(uint256 vaultID, uint256 amount) external { require(mai.balanceOf(msg.sender) >= amount, "Token balance too low"); require( vaultDebt[vaultID] >= amount, "Vault debt less than amount to pay back" ); require( (vaultDebt[vaultID]).sub(amount) >= minDebt || amount == (vaultDebt[vaultID]), "Vault debt can't be under minDebt" ); uint256 _closingFee = ( amount.mul(closingFee).mul(getTokenPriceSource()) ).div(getEthPriceSource().mul(10000)); //mai mai.safeTransferFrom(msg.sender, address(this), amount); vaultDebt[vaultID] = vaultDebt[vaultID].sub(amount); vaultCollateral[vaultID] = vaultCollateral[vaultID].sub(_closingFee); vaultCollateral[treasury] = vaultCollateral[treasury].add(_closingFee); totalBorrowed = totalBorrowed.sub(amount); emit PayBackToken(vaultID, amount, _closingFee); } function getPaid() public nonReentrant { require(maticDebt[msg.sender] != 0, "Don't have anything for you."); uint256 amount = maticDebt[msg.sender]; maticDebt[msg.sender] = 0; collateral.safeTransfer(msg.sender, amount); } function checkCost(uint256 vaultID) public view returns (uint256) { if ( vaultCollateral[vaultID] == 0 || vaultDebt[vaultID] == 0 || !checkLiquidation(vaultID) ) { return 0; } ( uint256 collateralValueTimes100, uint256 debtValue ) = calculateCollateralProperties( vaultCollateral[vaultID], vaultDebt[vaultID] ); if (debtValue == 0) { return 0; } uint256 collateralPercentage = collateralValueTimes100.div(debtValue); debtValue = debtValue.div(10**priceSourceDecimals); uint256 halfDebt = debtValue.div(debtRatio); //debtRatio (2) if(halfDebt<=minDebt) { halfDebt=debtValue; } return (halfDebt); } function checkExtract(uint256 vaultID) public view returns (uint256) { if (vaultCollateral[vaultID] == 0 || !checkLiquidation(vaultID)) { return 0; } ( uint256 collateralValueTimes100, uint256 debtValue ) = calculateCollateralProperties( vaultCollateral[vaultID], vaultDebt[vaultID] ); uint256 halfDebt = debtValue.div(debtRatio); //debtRatio (2) if (halfDebt == 0) { return 0; } if((halfDebt).div(10**priceSourceDecimals)<=minDebt){ // full liquidation if under the min debt. return debtValue.mul(gainRatio).div(1000).div(getEthPriceSource()); }else{ return halfDebt.mul(gainRatio).div(1000).div(getEthPriceSource()); } } function checkCollateralPercentage(uint256 vaultID) public view returns (uint256) { require(_exists(vaultID), "Vault does not exist"); if (vaultCollateral[vaultID] == 0 || vaultDebt[vaultID] == 0) { return 0; } ( uint256 collateralValueTimes100, uint256 debtValue ) = calculateCollateralProperties( vaultCollateral[vaultID], vaultDebt[vaultID] ); return collateralValueTimes100.div(debtValue); } function checkLiquidation(uint256 vaultID) public view returns (bool) { require(_exists(vaultID), "Vault does not exist"); if (vaultCollateral[vaultID] == 0 || vaultDebt[vaultID] == 0) { return false; } ( uint256 collateralValueTimes100, uint256 debtValue ) = calculateCollateralProperties( vaultCollateral[vaultID], vaultDebt[vaultID] ); uint256 collateralPercentage = collateralValueTimes100.div(debtValue); if (collateralPercentage < _minimumCollateralPercentage) { return true; } else { return false; } } function liquidateVault(uint256 vaultID) external { require(_exists(vaultID), "Vault does not exist"); require( stabilityPool == address(0) || msg.sender == stabilityPool, "liquidation is disabled for public" ); ( uint256 collateralValueTimes100, uint256 debtValue ) = calculateCollateralProperties( vaultCollateral[vaultID], vaultDebt[vaultID] ); uint256 collateralPercentage = collateralValueTimes100.div(debtValue); require( collateralPercentage < _minimumCollateralPercentage, "Vault is not below minimum collateral percentage" ); debtValue = debtValue.div(10**priceSourceDecimals); uint256 halfDebt = debtValue.div(debtRatio); //debtRatio (2) if(halfDebt<=minDebt){ halfDebt=debtValue; } require( mai.balanceOf(msg.sender) >= halfDebt, "Token balance too low to pay off outstanding debt" ); //mai mai.safeTransferFrom(msg.sender, address(this), halfDebt); totalBorrowed = totalBorrowed.sub(halfDebt); uint256 maticExtract = checkExtract(vaultID); vaultDebt[vaultID] = vaultDebt[vaultID].sub(halfDebt); // we paid back half of its debt. uint256 _closingFee = ( halfDebt.mul(closingFee).mul(getTokenPriceSource()) ).div(getEthPriceSource().mul(10000)); vaultCollateral[vaultID] = vaultCollateral[vaultID].sub(_closingFee); vaultCollateral[treasury] = vaultCollateral[treasury].add(_closingFee); // deduct the amount from the vault's collateral vaultCollateral[vaultID] = vaultCollateral[vaultID].sub(maticExtract); // let liquidator take the collateral maticDebt[msg.sender] = maticDebt[msg.sender].add(maticExtract); emit LiquidateVault( vaultID, ownerOf(vaultID), msg.sender, halfDebt, maticExtract, _closingFee ); } } // File contracts/crosschainStablecoinSlim/crosschainQiStablecoinSlim.sol pragma solidity 0.5.17; contract crosschainQiStablecoinSlim is crosschainStablecoinSlim, Ownable { constructor( address ethPriceSourceAddress, uint256 minimumCollateralPercentage, string memory name, string memory symbol, address _mai, address _collateral, string memory baseURI ) public crosschainStablecoinSlim( ethPriceSourceAddress, minimumCollateralPercentage, name, symbol, _mai, _collateral, baseURI ) { treasury = 0; } function setGainRatio(uint256 _gainRatio) external onlyOwner { gainRatio = _gainRatio; } function setDebtRatio(uint256 _debtRatio) external onlyOwner { debtRatio = _debtRatio; } function changeEthPriceSource(address ethPriceSourceAddress) external onlyOwner { ethPriceSource = IPriceSource(ethPriceSourceAddress); } function setStabilityPool(address _pool) external onlyOwner { stabilityPool = _pool; } function setMinCollateralRatio(uint256 minimumCollateralPercentage) external onlyOwner { _minimumCollateralPercentage = minimumCollateralPercentage; } function setMinDebt(uint256 _minDebt) external onlyOwner { minDebt = _minDebt; } function setTreasury(uint256 _treasury) external onlyOwner { require(_exists(_treasury), "Vault does not exist"); treasury = _treasury; } function burn(uint256 amountToken) public onlyOwner { // Burn mai.transfer(address(1), amountToken); } function setTokenURI(string memory _uri) public onlyOwner { uri = _uri; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"ethPriceSourceAddress","type":"address"},{"internalType":"uint256","name":"minimumCollateralPercentage","type":"uint256"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"_mai","type":"address"},{"internalType":"address","name":"_collateral","type":"address"},{"internalType":"string","name":"baseURI","type":"string"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"vaultID","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"BorrowToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"vaultID","type":"uint256"},{"indexed":false,"internalType":"address","name":"creator","type":"address"}],"name":"CreateVault","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"vaultID","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"DepositCollateral","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"vaultID","type":"uint256"}],"name":"DestroyVault","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"vaultID","type":"uint256"},{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"address","name":"buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"debtRepaid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"collateralLiquidated","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"closingFee","type":"uint256"}],"name":"LiquidateVault","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":false,"internalType":"uint256","name":"vaultID","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"closingFee","type":"uint256"}],"name":"PayBackToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"vaultID","type":"uint256"},{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"}],"name":"TransferVault","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"vaultID","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WithdrawCollateral","type":"event"},{"constant":true,"inputs":[],"name":"_minimumCollateralPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"vaultID","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"borrowToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amountToken","type":"uint256"}],"name":"burn","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"ethPriceSourceAddress","type":"address"}],"name":"changeEthPriceSource","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"vaultID","type":"uint256"}],"name":"checkCollateralPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"vaultID","type":"uint256"}],"name":"checkCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"vaultID","type":"uint256"}],"name":"checkExtract","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"vaultID","type":"uint256"}],"name":"checkLiquidation","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"closingFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"collateral","outputs":[{"internalType":"contract ERC20Detailed","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"createVault","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"debtRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"vaultID","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"depositCollateral","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"vaultID","type":"uint256"}],"name":"destroyVault","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"ethPriceSource","outputs":[{"internalType":"contract IPriceSource","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"vaultID","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"gainRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getClosingFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getDebtCeiling","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getEthPriceSource","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"getPaid","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getTokenPriceSource","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"vaultID","type":"uint256"}],"name":"liquidateVault","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"mai","outputs":[{"internalType":"contract ERC20Detailed","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"maticDebt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"minDebt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"vaultID","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"payBackToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"priceSourceDecimals","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":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_debtRatio","type":"uint256"}],"name":"setDebtRatio","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_gainRatio","type":"uint256"}],"name":"setGainRatio","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"minimumCollateralPercentage","type":"uint256"}],"name":"setMinCollateralRatio","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_minDebt","type":"uint256"}],"name":"setMinDebt","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_pool","type":"address"}],"name":"setStabilityPool","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setTokenURI","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_treasury","type":"uint256"}],"name":"setTreasury","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"stabilityPool","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","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":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"tokenPeg","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalBorrowed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"treasury","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"vaultCollateral","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"vaultCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"vaultDebt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"version","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"vaultID","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawCollateral","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052601f805460ff191660031790553480156200001e57600080fd5b5060405162004c8938038062004c89833981810160405260e08110156200004457600080fd5b815160208301516040808501805191519395929483019291846401000000008211156200007057600080fd5b9083019060208201858111156200008657600080fd5b8251640100000000811182820188101715620000a157600080fd5b82525081516020918201929091019080838360005b83811015620000d0578181015183820152602001620000b6565b50505050905090810190601f168015620000fe5780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200012257600080fd5b9083019060208201858111156200013857600080fd5b82516401000000008111828201881017156200015357600080fd5b82525081516020918201929091019080838360005b838110156200018257818101518382015260200162000168565b50505050905090810190601f168015620001b05780820380516001836020036101000a031916815260200191505b50604081815260208301519083015160609093018051919593949293929184640100000000821115620001e257600080fd5b908301906020820185811115620001f857600080fd5b82516401000000008111828201881017156200021357600080fd5b82525081516020918201929091019080838360005b838110156200024257818101518382015260200162000228565b50505050905090810190601f168015620002705780820380516001836020036101000a031916815260200191505b5060405250506000805460ff19166001179055508686868686868684848282828181620002ad6301ffc9a760e01b6001600160e01b036200043916565b620002c86380ac58cd60e01b6001600160e01b036200043916565b620002e363780e9d6360e01b6001600160e01b036200043916565b8151620002f890600a906020850190620004c6565b5080516200030e90600b906020840190620004c6565b506200032a635b5e139f60e01b6001600160e01b036200043916565b50508251620003439250600e91506020840190620004c6565b505050506001600160a01b0387166200035857fe5b856200036057fe5b506032601255600f80546001600160a01b03199081166001600160a01b0398891617909155601a8054821690556305f5e100601555600260185561044c601955601095909555601b80548616918716919091179055601c805490941694169390931790915550506008601d556000620003d8620004c1565b602180546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3505060006014555062000568945050505050565b6001600160e01b0319808216141562000499576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152600160208190526040909120805460ff19169091179055565b335b90565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200050957805160ff191683800117855562000539565b8280016001018555821562000539579182015b82811115620005395782518255916020019190600101906200051c565b50620005479291506200054b565b5090565b620004c391905b8082111562000547576000815560010162000552565b61471180620005786000396000f3fe608060405234801561001057600080fd5b50600436106104065760003560e01c806385e290a31161021a578063cd44db1b11610135578063e0df5b6f116100c8578063eb6a887d11610097578063f17336d71161007c578063f17336d714610bb3578063f2fde38b14610bbb578063ffc73da714610be157610406565b8063eb6a887d14610b73578063ece1373214610b9057610406565b8063e0df5b6f14610a8f578063e5f4dc9214610b35578063e985e9c514610b3d578063eac989f814610b6b57610406565b8063d310f49b11610104578063d310f49b14610a30578063d4a9b2c514610a4d578063d8dfeb4514610a6a578063df98784614610a7257610406565b8063cd44db1b14610a10578063cdfedd6314610a18578063cea55f5714610a20578063cf41d6f814610a2857610406565b8063a22cb465116101ad578063b86f6aef1161017c578063b86f6aef14610908578063b88d4fde14610925578063c71abb32146109eb578063c87b56dd146109f357610406565b8063a22cb465146108a4578063a5e98837146108d2578063a7c6a100146108da578063b165ff0b146108e257610406565b806394cd4ba7116101e957806394cd4ba71461086657806395d89b411461086e57806398c3f2db1461087657806398d721e01461087e57610406565b806385e290a31461081c5780638da5cb5b146108395780638f32d59b1461084157806390cf0bba1461084957610406565b806342f371c61161032557806361d027b3116102b857806370a0823111610287578063715018a61161026c578063715018a6146107ce578063767a7b05146107d657806385af3c16146107f957610406565b806370a082311461078b5780637139c929146107b157610406565b806361d027b3146107415780636234dc21146107495780636352211e146107665780636c0360eb1461078357610406565b806354fd4d50116102f457806354fd4d50146106f657806356572ac014610714578063570b2b84146107315780635d12928b1461073957610406565b806342f371c6146106ac5780634c19386c146106b45780634f558e79146106bc5780634f6ccce7146106d957610406565b806318160ddd1161039d578063311f392a1161036c578063311f392a14610634578063385362751461063c57806342842e0e1461065957806342966c681461068f57610406565b806318160ddd146105c25780631c883e7b146105ca57806323b872dd146105d25780632f745c591461060857610406565b8063081812fc116103d9578063081812fc1461052757806308ec592714610544578063095ea7b31461056757806311b4a8321461059357610406565b806301ffc9a71461040b578063048c661d1461045e57806306fdde031461048257806307960532146104ff575b600080fd5b61044a6004803603602081101561042157600080fd5b50357fffffffff0000000000000000000000000000000000000000000000000000000016610bfe565b604080519115158252519081900360200190f35b610466610c39565b604080516001600160a01b039092168252519081900360200190f35b61048a610c48565b6040805160208082528351818301528351919283929083019185019080838360005b838110156104c45781810151838201526020016104ac565b50505050905090810190601f1680156104f15780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6105256004803603602081101561051557600080fd5b50356001600160a01b0316610cdf565b005b6104666004803603602081101561053d57600080fd5b5035610d67565b6105256004803603604081101561055a57600080fd5b5080359060200135610dc9565b6105256004803603604081101561057d57600080fd5b506001600160a01b03813516906020013561108c565b6105b0600480360360208110156105a957600080fd5b50356111c1565b60408051918252519081900360200190f35b6105b061129f565b6105b06112a5565b610525600480360360608110156105e857600080fd5b506001600160a01b038135811691602081013590911690604001356112ab565b6105b06004803603604081101561061e57600080fd5b506001600160a01b038135169060200135611307565b6105b0611387565b6105256004803603602081101561065257600080fd5b503561138d565b6105256004803603606081101561066f57600080fd5b506001600160a01b038135811691602081013590911690604001356113eb565b610525600480360360208110156106a557600080fd5b5035611406565b6104666114f7565b6105b0611506565b61044a600480360360208110156106d257600080fd5b503561150c565b6105b0600480360360208110156106ef57600080fd5b5035611517565b6106fe61157d565b6040805160ff9092168252519081900360200190f35b6105b06004803603602081101561072a57600080fd5b5035611586565b610466611688565b6105b0611697565b6105b0611705565b6105256004803603602081101561075f57600080fd5b503561170b565b6104666004803603602081101561077c57600080fd5b5035611769565b61048a6117bd565b6105b0600480360360208110156107a157600080fd5b50356001600160a01b031661181e565b610525600480360360208110156107c757600080fd5b5035611886565b610525611935565b610525600480360360408110156107ec57600080fd5b50803590602001356119e5565b6105256004803603604081101561080f57600080fd5b5080359060200135611c4f565b6105256004803603602081101561083257600080fd5b5035611f1c565b610466612145565b61044a612154565b6105256004803603602081101561085f57600080fd5b503561217a565b6105b061255b565b61048a6125d7565b6105b0612638565b6105256004803603602081101561089457600080fd5b50356001600160a01b03166126bb565b610525600480360360408110156108ba57600080fd5b506001600160a01b0381351690602001351515612743565b6105b0612848565b6105b061284e565b6105b0600480360360208110156108f857600080fd5b50356001600160a01b0316612854565b61044a6004803603602081101561091e57600080fd5b5035612865565b6105256004803603608081101561093b57600080fd5b6001600160a01b0382358116926020810135909116916040820135919081019060808101606082013564010000000081111561097657600080fd5b82018360208201111561098857600080fd5b803590602001918460018302840111640100000000831117156109aa57600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061294c945050505050565b6105b06129aa565b61048a60048036036020811015610a0957600080fd5b50356129b0565b6105b0612a56565b6105b0612a5c565b6105b0612a62565b610525612a68565b6105b060048036036020811015610a4657600080fd5b5035612b68565b6105b060048036036020811015610a6357600080fd5b5035612b7a565b610466612b8c565b6105b060048036036020811015610a8857600080fd5b5035612b9b565b61052560048036036020811015610aa557600080fd5b810190602081018135640100000000811115610ac057600080fd5b820183602082011115610ad257600080fd5b80359060200191846001830284011164010000000083111715610af457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550612c64945050505050565b6105b0612cd4565b61044a60048036036040811015610b5357600080fd5b506001600160a01b0381358116916020013516612cda565b61048a612d08565b61052560048036036020811015610b8957600080fd5b5035612d96565b61052560048036036040811015610ba657600080fd5b5080359060200135612df4565b6105b0612e9e565b61052560048036036020811015610bd157600080fd5b50356001600160a01b0316612ea4565b61052560048036036020811015610bf757600080fd5b5035612f09565b7fffffffff00000000000000000000000000000000000000000000000000000000811660009081526001602052604090205460ff165b919050565b601a546001600160a01b031681565b600a8054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610cd45780601f10610ca957610100808354040283529160200191610cd4565b820191906000526020600020905b815481529060010190602001808311610cb757829003601f168201915b505050505090505b90565b610ce7612154565b610d38576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600f805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000610d7282612f67565b610dad5760405162461bcd60e51b815260040180806020018281038252602c81526020018061452f602c913960400191505060405180910390fd5b506000908152600360205260409020546001600160a01b031690565b81610dd381612f67565b610e1b576040805162461bcd60e51b815260206004820152601460248201527315985d5b1d08191bd95cc81b9bdd08195e1a5cdd60621b604482015290519081900360640190fd5b33610e2582611769565b6001600160a01b031614610e80576040805162461bcd60e51b815260206004820152601960248201527f5661756c74206973206e6f74206f776e656420627920796f7500000000000000604482015290519081900360640190fd5b60008211610ed5576040805162461bcd60e51b815260206004820152601b60248201527f4d75737420626f72726f77206e6f6e2d7a65726f20616d6f756e740000000000604482015290519081900360640190fd5b610edd61255b565b821115610f1b5760405162461bcd60e51b815260040180806020018281038252602f81526020018061439d602f913960400191505060405180910390fd5b600083815260176020526040812054610f3a908463ffffffff612f8416565b6000858152601760205260409020549091508111610f5457fe5b600084815260166020526040902054610f6d9082612fe5565b610fa85760405162461bcd60e51b815260040180806020018281038252603a815260200180614584603a913960400191505060405180910390fd5b601354600085815260176020526040902054610fca908563ffffffff612f8416565b10156110075760405162461bcd60e51b81526004018080602001828103825260218152602001806144866021913960400191505060405180910390fd5b6000848152601760205260409020819055601c54611035906001600160a01b0316338563ffffffff61301a16565b601e54611048908463ffffffff612f8416565b601e55604080518581526020810185905281517f3e08df88d8e28f37df9bf227d3142ac506a364403445661a60891a49ed6792ca929181900390910190a150505050565b600061109782611769565b9050806001600160a01b0316836001600160a01b031614156110ea5760405162461bcd60e51b81526004018080602001828103825260218152602001806145be6021913960400191505060405180910390fd5b806001600160a01b03166110fc61309a565b6001600160a01b0316148061111d575061111d8161111861309a565b612cda565b6111585760405162461bcd60e51b81526004018080602001828103825260388152602001806143fd6038913960400191505060405180910390fd5b600082815260036020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60008181526016602052604081205415806111e85750600082815260176020526040902054155b806111f957506111f782612865565b155b1561120657506000610c34565b6000828152601660209081526040808320546017909252822054829161122b9161309e565b91509150806000141561124357600092505050610c34565b6000611255838363ffffffff61325416565b905061126f601d54600a0a8361325490919063ffffffff16565b915060006112886018548461325490919063ffffffff16565b905060135481116112965750815b95945050505050565b60085490565b60125481565b6112bc6112b661309a565b82613296565b6112f75760405162461bcd60e51b815260040180806020018281038252603181526020018061460f6031913960400191505060405180910390fd5b611302838383613332565b505050565b60006113128361181e565b821061134f5760405162461bcd60e51b815260040180806020018281038252602b8152602001806142a5602b913960400191505060405180910390fd5b6001600160a01b038316600090815260066020526040902080548390811061137357fe5b906000526020600020015490505b92915050565b60195481565b611395612154565b6113e6576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b601055565b6113028383836040518060200160405280600081525061294c565b61140e612154565b61145f576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b601c54604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152600160048201526024810184905290516001600160a01b039092169163a9059cbb916044808201926020929091908290030181600087803b1580156114cd57600080fd5b505af11580156114e1573d6000803e3d6000fd5b505050506040513d602081101561130257600080fd5b600f546001600160a01b031681565b601e5481565b600061138182612f67565b600061152161129f565b821061155e5760405162461bcd60e51b815260040180806020018281038252602c815260200180614640602c913960400191505060405180910390fd5b6008828154811061156b57fe5b90600052602060002001549050919050565b601f5460ff1681565b60008181526016602052604081205415806115a757506115a582612865565b155b156115b457506000610c34565b600082815260166020908152604080832054601790925282205482916115d99161309e565b9150915060006115f46018548361325490919063ffffffff16565b9050806116075760009350505050610c34565b601354601d54611621908390600a0a63ffffffff61325416565b1161166257611658611631612638565b61164c6103e861164c6019548761335190919063ffffffff16565b9063ffffffff61325416565b9350505050610c34565b61165861166d612638565b61164c6103e861164c6019548661335190919063ffffffff16565b601c546001600160a01b031681565b6011546000906116ae81600163ffffffff612f8416565b60118190558111156116bc57fe5b6116c633826133aa565b6040805182815233602082015281517f8b6c1d05c678fa59695e26465a85918ce0fc63a88f74af53d1daef8f0a9c7804929181900390910190a1905090565b60145481565b611713612154565b611764576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b601355565b6000818152600260205260408120546001600160a01b0316806113815760405162461bcd60e51b81526004018080602001828103825260298152602001806144a76029913960400191505060405180910390fd5b600c8054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610cd45780601f10610ca957610100808354040283529160200191610cd4565b60006001600160a01b0382166118655760405162461bcd60e51b815260040180806020018281038252602a81526020018061445c602a913960400191505060405180910390fd5b6001600160a01b0382166000908152600460205260409020611381906133c7565b61188e612154565b6118df576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6118e881612f67565b611930576040805162461bcd60e51b815260206004820152601460248201527315985d5b1d08191bd95cc81b9bdd08195e1a5cdd60621b604482015290519081900360640190fd5b601455565b61193d612154565b61198e576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6021546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36021805473ffffffffffffffffffffffffffffffffffffffff19169055565b816119ef81612f67565b611a37576040805162461bcd60e51b815260206004820152601460248201527315985d5b1d08191bd95cc81b9bdd08195e1a5cdd60621b604482015290519081900360640190fd5b33611a4182611769565b6001600160a01b031614611a9c576040805162461bcd60e51b815260206004820152601960248201527f5661756c74206973206e6f74206f776e656420627920796f7500000000000000604482015290519081900360640190fd5b60005460ff16611af3576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6000805460ff1916815583815260166020526040902054821115611b485760405162461bcd60e51b815260040180806020018281038252602581526020018061434c6025913960400191505060405180910390fd5b600083815260166020526040812054611b67908463ffffffff6133cb16565b60008581526017602052604090205490915015611bd357600084815260176020526040902054611b98908290612fe5565b611bd35760405162461bcd60e51b815260040180806020018281038252603e8152602001806144d0603e913960400191505060405180910390fd5b6000848152601660205260409020819055601b54611c01906001600160a01b0316338563ffffffff61301a16565b604080518581526020810185905281517f6c0ea3bea9dd66afa8f9d39d6eb93d833466190330813b42835efc650dca4cb9929181900390910190a150506000805460ff191660011790555050565b601c54604080516370a0823160e01b8152336004820152905183926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015611c9957600080fd5b505afa158015611cad573d6000803e3d6000fd5b505050506040513d6020811015611cc357600080fd5b50511015611d18576040805162461bcd60e51b815260206004820152601560248201527f546f6b656e2062616c616e636520746f6f206c6f770000000000000000000000604482015290519081900360640190fd5b600082815260176020526040902054811115611d655760405162461bcd60e51b81526004018080602001828103825260278152602001806144356027913960400191505060405180910390fd5b601354600083815260176020526040902054611d87908363ffffffff6133cb16565b101580611da1575060008281526017602052604090205481145b611ddc5760405162461bcd60e51b81526004018080602001828103825260218152602001806144866021913960400191505060405180910390fd5b6000611e1a611dfb612710611def612638565b9063ffffffff61335116565b61164c611e06612a56565b601254611def90879063ffffffff61335116565b601c54909150611e3b906001600160a01b031633308563ffffffff61340d16565b600083815260176020526040902054611e5a908363ffffffff6133cb16565b600084815260176020908152604080832093909355601690522054611e85908263ffffffff6133cb16565b6000848152601660205260408082209290925560145481522054611eaf908263ffffffff612f8416565b601454600090815260166020526040902055601e54611ed4908363ffffffff6133cb16565b601e55604080518481526020810184905280820183905290517f31f96762af4051f367185773cc2f55bfb112a6c114b3407ded1f321a9eb199ac9181900360600190a1505050565b80611f2681612f67565b611f6e576040805162461bcd60e51b815260206004820152601460248201527315985d5b1d08191bd95cc81b9bdd08195e1a5cdd60621b604482015290519081900360640190fd5b33611f7882611769565b6001600160a01b031614611fd3576040805162461bcd60e51b815260206004820152601960248201527f5661756c74206973206e6f74206f776e656420627920796f7500000000000000604482015290519081900360640190fd5b60005460ff1661202a576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6000805460ff191681558281526017602052604090205415612093576040805162461bcd60e51b815260206004820152601a60248201527f5661756c7420686173206f75747374616e64696e672064656274000000000000604482015290519081900360640190fd5b600082815260166020526040902054156120db576120db6120b383611769565b600084815260166020526040902054601b546001600160a01b0316919063ffffffff61301a16565b6120e482613495565b60008281526016602090815260408083208390556017825280832092909255815184815291517f4fe08624ee65b341c38ab9693d216b909d4ddee1bc8d3fe0fea14026c361b4659281900390910190a150506000805460ff19166001179055565b6021546001600160a01b031690565b6021546000906001600160a01b031661216b61309a565b6001600160a01b031614905090565b61218381612f67565b6121cb576040805162461bcd60e51b815260206004820152601460248201527315985d5b1d08191bd95cc81b9bdd08195e1a5cdd60621b604482015290519081900360640190fd5b601a546001600160a01b031615806121ed5750601a546001600160a01b031633145b6122285760405162461bcd60e51b81526004018080602001828103825260228152602001806146bb6022913960400191505060405180910390fd5b6000818152601660209081526040808320546017909252822054829161224d9161309e565b90925090506000612264838363ffffffff61325416565b905060105481106122a65760405162461bcd60e51b81526004018080602001828103825260308152602001806145df6030913960400191505060405180910390fd5b601d546122bd908390600a0a63ffffffff61325416565b915060006122d66018548461325490919063ffffffff16565b905060135481116122e45750815b601c54604080516370a0823160e01b8152336004820152905183926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561232e57600080fd5b505afa158015612342573d6000803e3d6000fd5b505050506040513d602081101561235857600080fd5b505110156123975760405162461bcd60e51b81526004018080602001828103825260318152602001806143cc6031913960400191505060405180910390fd5b601c546123b5906001600160a01b031633308463ffffffff61340d16565b601e546123c8908263ffffffff6133cb16565b601e5560006123d686611586565b6000878152601760205260409020549091506123f8908363ffffffff6133cb16565b60008781526017602052604081209190915561243a61241b612710611def612638565b61164c612426612a56565b601254611def90889063ffffffff61335116565b60008881526016602052604090205490915061245c908263ffffffff6133cb16565b6000888152601660205260408082209290925560145481522054612486908263ffffffff612f8416565b6014546000908152601660205260408082209290925588815220546124b1908363ffffffff6133cb16565b600088815260166020908152604080832093909355338252805220546124dd908363ffffffff612f8416565b3360009081526020805260409020557f4d151d3a98b83151d51917640c221f8c8e3c054422ea1b48dcbbd57e3f4210d58761251781611769565b604080519283526001600160a01b0390911660208301523382820152606082018690526080820185905260a08201849052519081900360c00190a150505050505050565b601c54604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156125a657600080fd5b505afa1580156125ba573d6000803e3d6000fd5b505050506040513d60208110156125d057600080fd5b5051905090565b600b8054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610cd45780601f10610ca957610100808354040283529160200191610cd4565b600080600f60009054906101000a90046001600160a01b03166001600160a01b03166350d25bcd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561268957600080fd5b505afa15801561269d573d6000803e3d6000fd5b505050506040513d60208110156126b357600080fd5b505191505090565b6126c3612154565b612714576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b601a805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b61274b61309a565b6001600160a01b0316826001600160a01b031614156127b1576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b80600560006127be61309a565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561280261309a565b60408051841515815290516001600160a01b0392909216917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319181900360200190a35050565b60125490565b60115481565b602080526000908152604090205481565b600061287082612f67565b6128b8576040805162461bcd60e51b815260206004820152601460248201527315985d5b1d08191bd95cc81b9bdd08195e1a5cdd60621b604482015290519081900360640190fd5b60008281526016602052604090205415806128df5750600082815260176020526040902054155b156128ec57506000610c34565b600082815260166020908152604080832054601790925282205482916129119161309e565b90925090506000612928838363ffffffff61325416565b90506010548110156129405760019350505050610c34565b60009350505050610c34565b61295d61295761309a565b83613296565b6129985760405162461bcd60e51b815260040180806020018281038252603181526020018061460f6031913960400191505060405180910390fd5b6129a4848484846134a7565b50505050565b601d5481565b60606129bb82612f67565b6129c457600080fd5b600e805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015612a4a5780601f10612a1f57610100808354040283529160200191612a4a565b820191906000526020600020905b815481529060010190602001808311612a2d57829003601f168201915b50505050509050919050565b60155490565b60155481565b60185481565b60005460ff16612abf576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6000805460ff19168155338152602080526040902054612b26576040805162461bcd60e51b815260206004820152601c60248201527f446f6e2774206861766520616e797468696e6720666f7220796f752e00000000604482015290519081900360640190fd5b33600081815260208052604081208054919055601b549091612b58916001600160a01b0316908363ffffffff61301a16565b506000805460ff19166001179055565b60176020526000908152604090205481565b60166020526000908152604090205481565b601b546001600160a01b031681565b6000612ba682612f67565b612bee576040805162461bcd60e51b815260206004820152601460248201527315985d5b1d08191bd95cc81b9bdd08195e1a5cdd60621b604482015290519081900360640190fd5b6000828152601660205260409020541580612c155750600082815260176020526040902054155b15612c2257506000610c34565b60008281526016602090815260408083205460179092528220548291612c479161309e565b9092509050612c5c828263ffffffff61325416565b949350505050565b612c6c612154565b612cbd576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b8051612cd090600e9060208401906141a8565b5050565b60105481565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b600e805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015612d8e5780601f10612d6357610100808354040283529160200191612d8e565b820191906000526020600020905b815481529060010190602001808311612d7157829003601f168201915b505050505081565b612d9e612154565b612def576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b601855565b601b54612e12906001600160a01b031633308463ffffffff61340d16565b600082815260166020526040812054612e31908363ffffffff612f8416565b600084815260166020526040902054909150811015612e4c57fe5b600083815260166020908152604091829020839055815185815290810184905281517f52c4e7127ec34e8fc95f09ce2d06b4f00acca12ccbcdfb246ef67ee6aefe068d929181900390910190a1505050565b60135481565b612eac612154565b612efd576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b612f06816134f9565b50565b612f11612154565b612f62576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b601955565b6000908152600260205260409020546001600160a01b0316151590565b600082820183811015612fde576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6000806000612ff4858561309e565b9092509050600061300b838363ffffffff61325416565b60105411159695505050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790526113029084906135a7565b3390565b6000806130a9612638565b6130af57fe5b6130b7612a56565b6130bd57fe5b60006131f96131de601b60009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b15801561311357600080fd5b505afa158015613127573d6000803e3d6000fd5b505050506040513d602081101561313d57600080fd5b5051601c54604080517f313ce567000000000000000000000000000000000000000000000000000000008152905160ff909316926001600160a01b039092169163313ce56791600480820192602092909190829003018186803b1580156131a357600080fd5b505afa1580156131b7573d6000803e3d6000fd5b505050506040513d60208110156131cd57600080fd5b505160ff169063ffffffff6133cb16565b600a0a611def6131ec612638565b889063ffffffff61335116565b90508481101561320557fe5b600061321f613212612a56565b869063ffffffff61335116565b90508481101561322b57fe5b600061323e83606463ffffffff61335116565b905082811161324957fe5b969095509350505050565b6000612fde83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061375f565b60006132a182612f67565b6132dc5760405162461bcd60e51b815260040180806020018281038252602c815260200180614371602c913960400191505060405180910390fd5b60006132e783611769565b9050806001600160a01b0316846001600160a01b031614806133225750836001600160a01b031661331784610d67565b6001600160a01b0316145b80612c5c5750612c5c8185612cda565b61333d838383613801565b6133478382613952565b6113028282613a47565b60008261336057506000611381565b8282028284828161336d57fe5b0414612fde5760405162461bcd60e51b815260040180806020018281038252602181526020018061450e6021913960400191505060405180910390fd5b6133b48282613a85565b6133be8282613a47565b612cd081613bc3565b5490565b6000612fde83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250613c07565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd000000000000000000000000000000000000000000000000000000001790526129a49085906135a7565b612f066134a182611769565b82613c61565b6134b2848484613332565b6134be84848484613ca9565b6129a45760405162461bcd60e51b81526004018080602001828103825260328152602001806142d06032913960400191505060405180910390fd5b6001600160a01b03811661353e5760405162461bcd60e51b81526004018080602001828103825260268152602001806143026026913960400191505060405180910390fd5b6021546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a36021805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6135b9826001600160a01b0316613f5b565b61360a576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106136485780518252601f199092019160209182019101613629565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146136aa576040519150601f19603f3d011682016040523d82523d6000602084013e6136af565b606091505b509150915081613706576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b8051156129a45780806020019051602081101561372257600080fd5b50516129a45760405162461bcd60e51b815260040180806020018281038252602a815260200180614691602a913960400191505060405180910390fd5b600081836137eb5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156137b0578181015183820152602001613798565b50505050905090810190601f1680156137dd5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816137f757fe5b0495945050505050565b826001600160a01b031661381482611769565b6001600160a01b0316146138595760405162461bcd60e51b815260040180806020018281038252602981526020018061455b6029913960400191505060405180910390fd5b6001600160a01b03821661389e5760405162461bcd60e51b81526004018080602001828103825260248152602001806143286024913960400191505060405180910390fd5b6138a781613f94565b6001600160a01b03831660009081526004602052604090206138c890613fdc565b6001600160a01b03821660009081526004602052604090206138e990613ff3565b600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b03821660009081526006602052604081205461397c90600163ffffffff6133cb16565b600083815260076020526040902054909150808214613a17576001600160a01b03841660009081526006602052604081208054849081106139b957fe5b906000526020600020015490508060066000876001600160a01b03166001600160a01b0316815260200190815260200160002083815481106139f757fe5b600091825260208083209091019290925591825260079052604090208190555b6001600160a01b0384166000908152600660205260409020805490613a40906000198301614226565b5050505050565b6001600160a01b0390911660009081526006602081815260408084208054868652600784529185208290559282526001810183559183529091200155565b6001600160a01b038216613ae0576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b613ae981612f67565b15613b3b576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b6000818152600260209081526040808320805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038716908117909155835260049091529020613b8790613ff3565b60405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b60008184841115613c595760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156137b0578181015183820152602001613798565b505050900390565b613c6b8282613ffc565b6000818152600d60205260409020546002600019610100600184161502019091160415612cd0576000818152600d60205260408120612cd09161424a565b6000613cbd846001600160a01b0316613f5b565b613cc957506001612c5c565b600060606001600160a01b0386167f150b7a0200000000000000000000000000000000000000000000000000000000613d0061309a565b89888860405160240180856001600160a01b03166001600160a01b03168152602001846001600160a01b03166001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015613d79578181015183820152602001613d61565b50505050905090810190601f168015613da65780820380516001836020036101000a031916815260200191505b5060408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909a16999099178952518151919890975087965094509250829150849050835b60208310613e3b5780518252601f199092019160209182019101613e1c565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114613e9d576040519150601f19603f3d011682016040523d82523d6000602084013e613ea2565b606091505b509150915081613ef357805115613ebc5780518082602001fd5b60405162461bcd60e51b81526004018080602001828103825260328152602001806142d06032913960400191505060405180910390fd5b6000818060200190516020811015613f0a57600080fd5b50517fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149350612c5c92505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590612c5c575050151592915050565b6000818152600360205260409020546001600160a01b031615612f06576000908152600360205260409020805473ffffffffffffffffffffffffffffffffffffffff19169055565b8054613fef90600163ffffffff6133cb16565b9055565b80546001019055565b6140068282614028565b6140108282613952565b600081815260076020526040812055612cd08161410c565b816001600160a01b031661403b82611769565b6001600160a01b0316146140805760405162461bcd60e51b815260040180806020018281038252602581526020018061466c6025913960400191505060405180910390fd5b61408981613f94565b6001600160a01b03821660009081526004602052604090206140aa90613fdc565b600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19169055518291906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60085460009061412390600163ffffffff6133cb16565b6000838152600960205260408120546008805493945090928490811061414557fe5b90600052602060002001549050806008838154811061416057fe5b60009182526020808320909101929092558281526009909152604090208290556008805490614193906000198301614226565b50505060009182525060096020526040812055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106141e957805160ff1916838001178555614216565b82800160010185558215614216579182015b828111156142165782518255916020019190600101906141fb565b5061422292915061428a565b5090565b8154818355818111156113025760008381526020902061130291810190830161428a565b50805460018160011615610100020316600290046000825580601f106142705750612f06565b601f016020900490600052602060002090810190612f0691905b610cdc91905b80821115614222576000815560010161429056fe455243373231456e756d657261626c653a206f776e657220696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734552433732313a207472616e7366657220746f20746865207a65726f20616464726573735661756c7420646f6573206e6f74206861766520656e6f75676820636f6c6c61746572616c4552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e626f72726f77546f6b656e3a2043616e6e6f74206d696e74206f76657220617661696c61626c6520737570706c792e546f6b656e2062616c616e636520746f6f206c6f7720746f20706179206f6666206f75747374616e64696e6720646562744552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c5661756c742064656274206c657373207468616e20616d6f756e7420746f20706179206261636b4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573735661756c7420646562742063616e277420626520756e646572206d696e446562744552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e5769746864726177616c20776f756c6420707574207661756c742062656c6f77206d696e696d756d20636f6c6c61746572616c2070657263656e74616765536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e426f72726f7720776f756c6420707574207661756c742062656c6f77206d696e696d756d20636f6c6c61746572616c2070657263656e746167654552433732313a20617070726f76616c20746f2063757272656e74206f776e65725661756c74206973206e6f742062656c6f77206d696e696d756d20636f6c6c61746572616c2070657263656e746167654552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243373231456e756d657261626c653a20676c6f62616c20696e646578206f7574206f6620626f756e64734552433732313a206275726e206f6620746f6b656e2074686174206973206e6f74206f776e5361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565646c69717569646174696f6e2069732064697361626c656420666f72207075626c6963a265627a7a72315820d602f4eed95b1797695381020ce58478eee2d1dd542d30fc272d02d0ef8458e864736f6c6343000511003200000000000000000000000013e3ee699d1909e989722e753853ae30b17e08c5000000000000000000000000000000000000000000000000000000000000008200000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000140000000000000000000000000dfa46478f9e5ea86d57387849598dbfb2e964b0200000000000000000000000082af49447d8a07e3bd95bd0d56f35241523fbab1000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000000235772617070656420457468657265756d204f7074696d69736d204d4149205661756c740000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000657454f4d565400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d56697551556e7157444c3735505633444e714c664d384743764c6f7542726256653253684c63647178527a520000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106104065760003560e01c806385e290a31161021a578063cd44db1b11610135578063e0df5b6f116100c8578063eb6a887d11610097578063f17336d71161007c578063f17336d714610bb3578063f2fde38b14610bbb578063ffc73da714610be157610406565b8063eb6a887d14610b73578063ece1373214610b9057610406565b8063e0df5b6f14610a8f578063e5f4dc9214610b35578063e985e9c514610b3d578063eac989f814610b6b57610406565b8063d310f49b11610104578063d310f49b14610a30578063d4a9b2c514610a4d578063d8dfeb4514610a6a578063df98784614610a7257610406565b8063cd44db1b14610a10578063cdfedd6314610a18578063cea55f5714610a20578063cf41d6f814610a2857610406565b8063a22cb465116101ad578063b86f6aef1161017c578063b86f6aef14610908578063b88d4fde14610925578063c71abb32146109eb578063c87b56dd146109f357610406565b8063a22cb465146108a4578063a5e98837146108d2578063a7c6a100146108da578063b165ff0b146108e257610406565b806394cd4ba7116101e957806394cd4ba71461086657806395d89b411461086e57806398c3f2db1461087657806398d721e01461087e57610406565b806385e290a31461081c5780638da5cb5b146108395780638f32d59b1461084157806390cf0bba1461084957610406565b806342f371c61161032557806361d027b3116102b857806370a0823111610287578063715018a61161026c578063715018a6146107ce578063767a7b05146107d657806385af3c16146107f957610406565b806370a082311461078b5780637139c929146107b157610406565b806361d027b3146107415780636234dc21146107495780636352211e146107665780636c0360eb1461078357610406565b806354fd4d50116102f457806354fd4d50146106f657806356572ac014610714578063570b2b84146107315780635d12928b1461073957610406565b806342f371c6146106ac5780634c19386c146106b45780634f558e79146106bc5780634f6ccce7146106d957610406565b806318160ddd1161039d578063311f392a1161036c578063311f392a14610634578063385362751461063c57806342842e0e1461065957806342966c681461068f57610406565b806318160ddd146105c25780631c883e7b146105ca57806323b872dd146105d25780632f745c591461060857610406565b8063081812fc116103d9578063081812fc1461052757806308ec592714610544578063095ea7b31461056757806311b4a8321461059357610406565b806301ffc9a71461040b578063048c661d1461045e57806306fdde031461048257806307960532146104ff575b600080fd5b61044a6004803603602081101561042157600080fd5b50357fffffffff0000000000000000000000000000000000000000000000000000000016610bfe565b604080519115158252519081900360200190f35b610466610c39565b604080516001600160a01b039092168252519081900360200190f35b61048a610c48565b6040805160208082528351818301528351919283929083019185019080838360005b838110156104c45781810151838201526020016104ac565b50505050905090810190601f1680156104f15780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6105256004803603602081101561051557600080fd5b50356001600160a01b0316610cdf565b005b6104666004803603602081101561053d57600080fd5b5035610d67565b6105256004803603604081101561055a57600080fd5b5080359060200135610dc9565b6105256004803603604081101561057d57600080fd5b506001600160a01b03813516906020013561108c565b6105b0600480360360208110156105a957600080fd5b50356111c1565b60408051918252519081900360200190f35b6105b061129f565b6105b06112a5565b610525600480360360608110156105e857600080fd5b506001600160a01b038135811691602081013590911690604001356112ab565b6105b06004803603604081101561061e57600080fd5b506001600160a01b038135169060200135611307565b6105b0611387565b6105256004803603602081101561065257600080fd5b503561138d565b6105256004803603606081101561066f57600080fd5b506001600160a01b038135811691602081013590911690604001356113eb565b610525600480360360208110156106a557600080fd5b5035611406565b6104666114f7565b6105b0611506565b61044a600480360360208110156106d257600080fd5b503561150c565b6105b0600480360360208110156106ef57600080fd5b5035611517565b6106fe61157d565b6040805160ff9092168252519081900360200190f35b6105b06004803603602081101561072a57600080fd5b5035611586565b610466611688565b6105b0611697565b6105b0611705565b6105256004803603602081101561075f57600080fd5b503561170b565b6104666004803603602081101561077c57600080fd5b5035611769565b61048a6117bd565b6105b0600480360360208110156107a157600080fd5b50356001600160a01b031661181e565b610525600480360360208110156107c757600080fd5b5035611886565b610525611935565b610525600480360360408110156107ec57600080fd5b50803590602001356119e5565b6105256004803603604081101561080f57600080fd5b5080359060200135611c4f565b6105256004803603602081101561083257600080fd5b5035611f1c565b610466612145565b61044a612154565b6105256004803603602081101561085f57600080fd5b503561217a565b6105b061255b565b61048a6125d7565b6105b0612638565b6105256004803603602081101561089457600080fd5b50356001600160a01b03166126bb565b610525600480360360408110156108ba57600080fd5b506001600160a01b0381351690602001351515612743565b6105b0612848565b6105b061284e565b6105b0600480360360208110156108f857600080fd5b50356001600160a01b0316612854565b61044a6004803603602081101561091e57600080fd5b5035612865565b6105256004803603608081101561093b57600080fd5b6001600160a01b0382358116926020810135909116916040820135919081019060808101606082013564010000000081111561097657600080fd5b82018360208201111561098857600080fd5b803590602001918460018302840111640100000000831117156109aa57600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061294c945050505050565b6105b06129aa565b61048a60048036036020811015610a0957600080fd5b50356129b0565b6105b0612a56565b6105b0612a5c565b6105b0612a62565b610525612a68565b6105b060048036036020811015610a4657600080fd5b5035612b68565b6105b060048036036020811015610a6357600080fd5b5035612b7a565b610466612b8c565b6105b060048036036020811015610a8857600080fd5b5035612b9b565b61052560048036036020811015610aa557600080fd5b810190602081018135640100000000811115610ac057600080fd5b820183602082011115610ad257600080fd5b80359060200191846001830284011164010000000083111715610af457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550612c64945050505050565b6105b0612cd4565b61044a60048036036040811015610b5357600080fd5b506001600160a01b0381358116916020013516612cda565b61048a612d08565b61052560048036036020811015610b8957600080fd5b5035612d96565b61052560048036036040811015610ba657600080fd5b5080359060200135612df4565b6105b0612e9e565b61052560048036036020811015610bd157600080fd5b50356001600160a01b0316612ea4565b61052560048036036020811015610bf757600080fd5b5035612f09565b7fffffffff00000000000000000000000000000000000000000000000000000000811660009081526001602052604090205460ff165b919050565b601a546001600160a01b031681565b600a8054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610cd45780601f10610ca957610100808354040283529160200191610cd4565b820191906000526020600020905b815481529060010190602001808311610cb757829003601f168201915b505050505090505b90565b610ce7612154565b610d38576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600f805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000610d7282612f67565b610dad5760405162461bcd60e51b815260040180806020018281038252602c81526020018061452f602c913960400191505060405180910390fd5b506000908152600360205260409020546001600160a01b031690565b81610dd381612f67565b610e1b576040805162461bcd60e51b815260206004820152601460248201527315985d5b1d08191bd95cc81b9bdd08195e1a5cdd60621b604482015290519081900360640190fd5b33610e2582611769565b6001600160a01b031614610e80576040805162461bcd60e51b815260206004820152601960248201527f5661756c74206973206e6f74206f776e656420627920796f7500000000000000604482015290519081900360640190fd5b60008211610ed5576040805162461bcd60e51b815260206004820152601b60248201527f4d75737420626f72726f77206e6f6e2d7a65726f20616d6f756e740000000000604482015290519081900360640190fd5b610edd61255b565b821115610f1b5760405162461bcd60e51b815260040180806020018281038252602f81526020018061439d602f913960400191505060405180910390fd5b600083815260176020526040812054610f3a908463ffffffff612f8416565b6000858152601760205260409020549091508111610f5457fe5b600084815260166020526040902054610f6d9082612fe5565b610fa85760405162461bcd60e51b815260040180806020018281038252603a815260200180614584603a913960400191505060405180910390fd5b601354600085815260176020526040902054610fca908563ffffffff612f8416565b10156110075760405162461bcd60e51b81526004018080602001828103825260218152602001806144866021913960400191505060405180910390fd5b6000848152601760205260409020819055601c54611035906001600160a01b0316338563ffffffff61301a16565b601e54611048908463ffffffff612f8416565b601e55604080518581526020810185905281517f3e08df88d8e28f37df9bf227d3142ac506a364403445661a60891a49ed6792ca929181900390910190a150505050565b600061109782611769565b9050806001600160a01b0316836001600160a01b031614156110ea5760405162461bcd60e51b81526004018080602001828103825260218152602001806145be6021913960400191505060405180910390fd5b806001600160a01b03166110fc61309a565b6001600160a01b0316148061111d575061111d8161111861309a565b612cda565b6111585760405162461bcd60e51b81526004018080602001828103825260388152602001806143fd6038913960400191505060405180910390fd5b600082815260036020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60008181526016602052604081205415806111e85750600082815260176020526040902054155b806111f957506111f782612865565b155b1561120657506000610c34565b6000828152601660209081526040808320546017909252822054829161122b9161309e565b91509150806000141561124357600092505050610c34565b6000611255838363ffffffff61325416565b905061126f601d54600a0a8361325490919063ffffffff16565b915060006112886018548461325490919063ffffffff16565b905060135481116112965750815b95945050505050565b60085490565b60125481565b6112bc6112b661309a565b82613296565b6112f75760405162461bcd60e51b815260040180806020018281038252603181526020018061460f6031913960400191505060405180910390fd5b611302838383613332565b505050565b60006113128361181e565b821061134f5760405162461bcd60e51b815260040180806020018281038252602b8152602001806142a5602b913960400191505060405180910390fd5b6001600160a01b038316600090815260066020526040902080548390811061137357fe5b906000526020600020015490505b92915050565b60195481565b611395612154565b6113e6576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b601055565b6113028383836040518060200160405280600081525061294c565b61140e612154565b61145f576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b601c54604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152600160048201526024810184905290516001600160a01b039092169163a9059cbb916044808201926020929091908290030181600087803b1580156114cd57600080fd5b505af11580156114e1573d6000803e3d6000fd5b505050506040513d602081101561130257600080fd5b600f546001600160a01b031681565b601e5481565b600061138182612f67565b600061152161129f565b821061155e5760405162461bcd60e51b815260040180806020018281038252602c815260200180614640602c913960400191505060405180910390fd5b6008828154811061156b57fe5b90600052602060002001549050919050565b601f5460ff1681565b60008181526016602052604081205415806115a757506115a582612865565b155b156115b457506000610c34565b600082815260166020908152604080832054601790925282205482916115d99161309e565b9150915060006115f46018548361325490919063ffffffff16565b9050806116075760009350505050610c34565b601354601d54611621908390600a0a63ffffffff61325416565b1161166257611658611631612638565b61164c6103e861164c6019548761335190919063ffffffff16565b9063ffffffff61325416565b9350505050610c34565b61165861166d612638565b61164c6103e861164c6019548661335190919063ffffffff16565b601c546001600160a01b031681565b6011546000906116ae81600163ffffffff612f8416565b60118190558111156116bc57fe5b6116c633826133aa565b6040805182815233602082015281517f8b6c1d05c678fa59695e26465a85918ce0fc63a88f74af53d1daef8f0a9c7804929181900390910190a1905090565b60145481565b611713612154565b611764576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b601355565b6000818152600260205260408120546001600160a01b0316806113815760405162461bcd60e51b81526004018080602001828103825260298152602001806144a76029913960400191505060405180910390fd5b600c8054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610cd45780601f10610ca957610100808354040283529160200191610cd4565b60006001600160a01b0382166118655760405162461bcd60e51b815260040180806020018281038252602a81526020018061445c602a913960400191505060405180910390fd5b6001600160a01b0382166000908152600460205260409020611381906133c7565b61188e612154565b6118df576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6118e881612f67565b611930576040805162461bcd60e51b815260206004820152601460248201527315985d5b1d08191bd95cc81b9bdd08195e1a5cdd60621b604482015290519081900360640190fd5b601455565b61193d612154565b61198e576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6021546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36021805473ffffffffffffffffffffffffffffffffffffffff19169055565b816119ef81612f67565b611a37576040805162461bcd60e51b815260206004820152601460248201527315985d5b1d08191bd95cc81b9bdd08195e1a5cdd60621b604482015290519081900360640190fd5b33611a4182611769565b6001600160a01b031614611a9c576040805162461bcd60e51b815260206004820152601960248201527f5661756c74206973206e6f74206f776e656420627920796f7500000000000000604482015290519081900360640190fd5b60005460ff16611af3576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6000805460ff1916815583815260166020526040902054821115611b485760405162461bcd60e51b815260040180806020018281038252602581526020018061434c6025913960400191505060405180910390fd5b600083815260166020526040812054611b67908463ffffffff6133cb16565b60008581526017602052604090205490915015611bd357600084815260176020526040902054611b98908290612fe5565b611bd35760405162461bcd60e51b815260040180806020018281038252603e8152602001806144d0603e913960400191505060405180910390fd5b6000848152601660205260409020819055601b54611c01906001600160a01b0316338563ffffffff61301a16565b604080518581526020810185905281517f6c0ea3bea9dd66afa8f9d39d6eb93d833466190330813b42835efc650dca4cb9929181900390910190a150506000805460ff191660011790555050565b601c54604080516370a0823160e01b8152336004820152905183926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015611c9957600080fd5b505afa158015611cad573d6000803e3d6000fd5b505050506040513d6020811015611cc357600080fd5b50511015611d18576040805162461bcd60e51b815260206004820152601560248201527f546f6b656e2062616c616e636520746f6f206c6f770000000000000000000000604482015290519081900360640190fd5b600082815260176020526040902054811115611d655760405162461bcd60e51b81526004018080602001828103825260278152602001806144356027913960400191505060405180910390fd5b601354600083815260176020526040902054611d87908363ffffffff6133cb16565b101580611da1575060008281526017602052604090205481145b611ddc5760405162461bcd60e51b81526004018080602001828103825260218152602001806144866021913960400191505060405180910390fd5b6000611e1a611dfb612710611def612638565b9063ffffffff61335116565b61164c611e06612a56565b601254611def90879063ffffffff61335116565b601c54909150611e3b906001600160a01b031633308563ffffffff61340d16565b600083815260176020526040902054611e5a908363ffffffff6133cb16565b600084815260176020908152604080832093909355601690522054611e85908263ffffffff6133cb16565b6000848152601660205260408082209290925560145481522054611eaf908263ffffffff612f8416565b601454600090815260166020526040902055601e54611ed4908363ffffffff6133cb16565b601e55604080518481526020810184905280820183905290517f31f96762af4051f367185773cc2f55bfb112a6c114b3407ded1f321a9eb199ac9181900360600190a1505050565b80611f2681612f67565b611f6e576040805162461bcd60e51b815260206004820152601460248201527315985d5b1d08191bd95cc81b9bdd08195e1a5cdd60621b604482015290519081900360640190fd5b33611f7882611769565b6001600160a01b031614611fd3576040805162461bcd60e51b815260206004820152601960248201527f5661756c74206973206e6f74206f776e656420627920796f7500000000000000604482015290519081900360640190fd5b60005460ff1661202a576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6000805460ff191681558281526017602052604090205415612093576040805162461bcd60e51b815260206004820152601a60248201527f5661756c7420686173206f75747374616e64696e672064656274000000000000604482015290519081900360640190fd5b600082815260166020526040902054156120db576120db6120b383611769565b600084815260166020526040902054601b546001600160a01b0316919063ffffffff61301a16565b6120e482613495565b60008281526016602090815260408083208390556017825280832092909255815184815291517f4fe08624ee65b341c38ab9693d216b909d4ddee1bc8d3fe0fea14026c361b4659281900390910190a150506000805460ff19166001179055565b6021546001600160a01b031690565b6021546000906001600160a01b031661216b61309a565b6001600160a01b031614905090565b61218381612f67565b6121cb576040805162461bcd60e51b815260206004820152601460248201527315985d5b1d08191bd95cc81b9bdd08195e1a5cdd60621b604482015290519081900360640190fd5b601a546001600160a01b031615806121ed5750601a546001600160a01b031633145b6122285760405162461bcd60e51b81526004018080602001828103825260228152602001806146bb6022913960400191505060405180910390fd5b6000818152601660209081526040808320546017909252822054829161224d9161309e565b90925090506000612264838363ffffffff61325416565b905060105481106122a65760405162461bcd60e51b81526004018080602001828103825260308152602001806145df6030913960400191505060405180910390fd5b601d546122bd908390600a0a63ffffffff61325416565b915060006122d66018548461325490919063ffffffff16565b905060135481116122e45750815b601c54604080516370a0823160e01b8152336004820152905183926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561232e57600080fd5b505afa158015612342573d6000803e3d6000fd5b505050506040513d602081101561235857600080fd5b505110156123975760405162461bcd60e51b81526004018080602001828103825260318152602001806143cc6031913960400191505060405180910390fd5b601c546123b5906001600160a01b031633308463ffffffff61340d16565b601e546123c8908263ffffffff6133cb16565b601e5560006123d686611586565b6000878152601760205260409020549091506123f8908363ffffffff6133cb16565b60008781526017602052604081209190915561243a61241b612710611def612638565b61164c612426612a56565b601254611def90889063ffffffff61335116565b60008881526016602052604090205490915061245c908263ffffffff6133cb16565b6000888152601660205260408082209290925560145481522054612486908263ffffffff612f8416565b6014546000908152601660205260408082209290925588815220546124b1908363ffffffff6133cb16565b600088815260166020908152604080832093909355338252805220546124dd908363ffffffff612f8416565b3360009081526020805260409020557f4d151d3a98b83151d51917640c221f8c8e3c054422ea1b48dcbbd57e3f4210d58761251781611769565b604080519283526001600160a01b0390911660208301523382820152606082018690526080820185905260a08201849052519081900360c00190a150505050505050565b601c54604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156125a657600080fd5b505afa1580156125ba573d6000803e3d6000fd5b505050506040513d60208110156125d057600080fd5b5051905090565b600b8054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610cd45780601f10610ca957610100808354040283529160200191610cd4565b600080600f60009054906101000a90046001600160a01b03166001600160a01b03166350d25bcd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561268957600080fd5b505afa15801561269d573d6000803e3d6000fd5b505050506040513d60208110156126b357600080fd5b505191505090565b6126c3612154565b612714576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b601a805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b61274b61309a565b6001600160a01b0316826001600160a01b031614156127b1576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b80600560006127be61309a565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff19169215159290921790915561280261309a565b60408051841515815290516001600160a01b0392909216917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319181900360200190a35050565b60125490565b60115481565b602080526000908152604090205481565b600061287082612f67565b6128b8576040805162461bcd60e51b815260206004820152601460248201527315985d5b1d08191bd95cc81b9bdd08195e1a5cdd60621b604482015290519081900360640190fd5b60008281526016602052604090205415806128df5750600082815260176020526040902054155b156128ec57506000610c34565b600082815260166020908152604080832054601790925282205482916129119161309e565b90925090506000612928838363ffffffff61325416565b90506010548110156129405760019350505050610c34565b60009350505050610c34565b61295d61295761309a565b83613296565b6129985760405162461bcd60e51b815260040180806020018281038252603181526020018061460f6031913960400191505060405180910390fd5b6129a4848484846134a7565b50505050565b601d5481565b60606129bb82612f67565b6129c457600080fd5b600e805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015612a4a5780601f10612a1f57610100808354040283529160200191612a4a565b820191906000526020600020905b815481529060010190602001808311612a2d57829003601f168201915b50505050509050919050565b60155490565b60155481565b60185481565b60005460ff16612abf576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6000805460ff19168155338152602080526040902054612b26576040805162461bcd60e51b815260206004820152601c60248201527f446f6e2774206861766520616e797468696e6720666f7220796f752e00000000604482015290519081900360640190fd5b33600081815260208052604081208054919055601b549091612b58916001600160a01b0316908363ffffffff61301a16565b506000805460ff19166001179055565b60176020526000908152604090205481565b60166020526000908152604090205481565b601b546001600160a01b031681565b6000612ba682612f67565b612bee576040805162461bcd60e51b815260206004820152601460248201527315985d5b1d08191bd95cc81b9bdd08195e1a5cdd60621b604482015290519081900360640190fd5b6000828152601660205260409020541580612c155750600082815260176020526040902054155b15612c2257506000610c34565b60008281526016602090815260408083205460179092528220548291612c479161309e565b9092509050612c5c828263ffffffff61325416565b949350505050565b612c6c612154565b612cbd576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b8051612cd090600e9060208401906141a8565b5050565b60105481565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b600e805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015612d8e5780601f10612d6357610100808354040283529160200191612d8e565b820191906000526020600020905b815481529060010190602001808311612d7157829003601f168201915b505050505081565b612d9e612154565b612def576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b601855565b601b54612e12906001600160a01b031633308463ffffffff61340d16565b600082815260166020526040812054612e31908363ffffffff612f8416565b600084815260166020526040902054909150811015612e4c57fe5b600083815260166020908152604091829020839055815185815290810184905281517f52c4e7127ec34e8fc95f09ce2d06b4f00acca12ccbcdfb246ef67ee6aefe068d929181900390910190a1505050565b60135481565b612eac612154565b612efd576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b612f06816134f9565b50565b612f11612154565b612f62576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b601955565b6000908152600260205260409020546001600160a01b0316151590565b600082820183811015612fde576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6000806000612ff4858561309e565b9092509050600061300b838363ffffffff61325416565b60105411159695505050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790526113029084906135a7565b3390565b6000806130a9612638565b6130af57fe5b6130b7612a56565b6130bd57fe5b60006131f96131de601b60009054906101000a90046001600160a01b03166001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b15801561311357600080fd5b505afa158015613127573d6000803e3d6000fd5b505050506040513d602081101561313d57600080fd5b5051601c54604080517f313ce567000000000000000000000000000000000000000000000000000000008152905160ff909316926001600160a01b039092169163313ce56791600480820192602092909190829003018186803b1580156131a357600080fd5b505afa1580156131b7573d6000803e3d6000fd5b505050506040513d60208110156131cd57600080fd5b505160ff169063ffffffff6133cb16565b600a0a611def6131ec612638565b889063ffffffff61335116565b90508481101561320557fe5b600061321f613212612a56565b869063ffffffff61335116565b90508481101561322b57fe5b600061323e83606463ffffffff61335116565b905082811161324957fe5b969095509350505050565b6000612fde83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061375f565b60006132a182612f67565b6132dc5760405162461bcd60e51b815260040180806020018281038252602c815260200180614371602c913960400191505060405180910390fd5b60006132e783611769565b9050806001600160a01b0316846001600160a01b031614806133225750836001600160a01b031661331784610d67565b6001600160a01b0316145b80612c5c5750612c5c8185612cda565b61333d838383613801565b6133478382613952565b6113028282613a47565b60008261336057506000611381565b8282028284828161336d57fe5b0414612fde5760405162461bcd60e51b815260040180806020018281038252602181526020018061450e6021913960400191505060405180910390fd5b6133b48282613a85565b6133be8282613a47565b612cd081613bc3565b5490565b6000612fde83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250613c07565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd000000000000000000000000000000000000000000000000000000001790526129a49085906135a7565b612f066134a182611769565b82613c61565b6134b2848484613332565b6134be84848484613ca9565b6129a45760405162461bcd60e51b81526004018080602001828103825260328152602001806142d06032913960400191505060405180910390fd5b6001600160a01b03811661353e5760405162461bcd60e51b81526004018080602001828103825260268152602001806143026026913960400191505060405180910390fd5b6021546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a36021805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6135b9826001600160a01b0316613f5b565b61360a576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106136485780518252601f199092019160209182019101613629565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146136aa576040519150601f19603f3d011682016040523d82523d6000602084013e6136af565b606091505b509150915081613706576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b8051156129a45780806020019051602081101561372257600080fd5b50516129a45760405162461bcd60e51b815260040180806020018281038252602a815260200180614691602a913960400191505060405180910390fd5b600081836137eb5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156137b0578181015183820152602001613798565b50505050905090810190601f1680156137dd5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816137f757fe5b0495945050505050565b826001600160a01b031661381482611769565b6001600160a01b0316146138595760405162461bcd60e51b815260040180806020018281038252602981526020018061455b6029913960400191505060405180910390fd5b6001600160a01b03821661389e5760405162461bcd60e51b81526004018080602001828103825260248152602001806143286024913960400191505060405180910390fd5b6138a781613f94565b6001600160a01b03831660009081526004602052604090206138c890613fdc565b6001600160a01b03821660009081526004602052604090206138e990613ff3565b600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b03821660009081526006602052604081205461397c90600163ffffffff6133cb16565b600083815260076020526040902054909150808214613a17576001600160a01b03841660009081526006602052604081208054849081106139b957fe5b906000526020600020015490508060066000876001600160a01b03166001600160a01b0316815260200190815260200160002083815481106139f757fe5b600091825260208083209091019290925591825260079052604090208190555b6001600160a01b0384166000908152600660205260409020805490613a40906000198301614226565b5050505050565b6001600160a01b0390911660009081526006602081815260408084208054868652600784529185208290559282526001810183559183529091200155565b6001600160a01b038216613ae0576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b613ae981612f67565b15613b3b576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b6000818152600260209081526040808320805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b038716908117909155835260049091529020613b8790613ff3565b60405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b60008184841115613c595760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156137b0578181015183820152602001613798565b505050900390565b613c6b8282613ffc565b6000818152600d60205260409020546002600019610100600184161502019091160415612cd0576000818152600d60205260408120612cd09161424a565b6000613cbd846001600160a01b0316613f5b565b613cc957506001612c5c565b600060606001600160a01b0386167f150b7a0200000000000000000000000000000000000000000000000000000000613d0061309a565b89888860405160240180856001600160a01b03166001600160a01b03168152602001846001600160a01b03166001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015613d79578181015183820152602001613d61565b50505050905090810190601f168015613da65780820380516001836020036101000a031916815260200191505b5060408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909a16999099178952518151919890975087965094509250829150849050835b60208310613e3b5780518252601f199092019160209182019101613e1c565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114613e9d576040519150601f19603f3d011682016040523d82523d6000602084013e613ea2565b606091505b509150915081613ef357805115613ebc5780518082602001fd5b60405162461bcd60e51b81526004018080602001828103825260328152602001806142d06032913960400191505060405180910390fd5b6000818060200190516020811015613f0a57600080fd5b50517fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149350612c5c92505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590612c5c575050151592915050565b6000818152600360205260409020546001600160a01b031615612f06576000908152600360205260409020805473ffffffffffffffffffffffffffffffffffffffff19169055565b8054613fef90600163ffffffff6133cb16565b9055565b80546001019055565b6140068282614028565b6140108282613952565b600081815260076020526040812055612cd08161410c565b816001600160a01b031661403b82611769565b6001600160a01b0316146140805760405162461bcd60e51b815260040180806020018281038252602581526020018061466c6025913960400191505060405180910390fd5b61408981613f94565b6001600160a01b03821660009081526004602052604090206140aa90613fdc565b600081815260026020526040808220805473ffffffffffffffffffffffffffffffffffffffff19169055518291906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b60085460009061412390600163ffffffff6133cb16565b6000838152600960205260408120546008805493945090928490811061414557fe5b90600052602060002001549050806008838154811061416057fe5b60009182526020808320909101929092558281526009909152604090208290556008805490614193906000198301614226565b50505060009182525060096020526040812055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106141e957805160ff1916838001178555614216565b82800160010185558215614216579182015b828111156142165782518255916020019190600101906141fb565b5061422292915061428a565b5090565b8154818355818111156113025760008381526020902061130291810190830161428a565b50805460018160011615610100020316600290046000825580601f106142705750612f06565b601f016020900490600052602060002090810190612f0691905b610cdc91905b80821115614222576000815560010161429056fe455243373231456e756d657261626c653a206f776e657220696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734552433732313a207472616e7366657220746f20746865207a65726f20616464726573735661756c7420646f6573206e6f74206861766520656e6f75676820636f6c6c61746572616c4552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e626f72726f77546f6b656e3a2043616e6e6f74206d696e74206f76657220617661696c61626c6520737570706c792e546f6b656e2062616c616e636520746f6f206c6f7720746f20706179206f6666206f75747374616e64696e6720646562744552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c5661756c742064656274206c657373207468616e20616d6f756e7420746f20706179206261636b4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573735661756c7420646562742063616e277420626520756e646572206d696e446562744552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e5769746864726177616c20776f756c6420707574207661756c742062656c6f77206d696e696d756d20636f6c6c61746572616c2070657263656e74616765536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e426f72726f7720776f756c6420707574207661756c742062656c6f77206d696e696d756d20636f6c6c61746572616c2070657263656e746167654552433732313a20617070726f76616c20746f2063757272656e74206f776e65725661756c74206973206e6f742062656c6f77206d696e696d756d20636f6c6c61746572616c2070657263656e746167654552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564455243373231456e756d657261626c653a20676c6f62616c20696e646578206f7574206f6620626f756e64734552433732313a206275726e206f6620746f6b656e2074686174206973206e6f74206f776e5361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565646c69717569646174696f6e2069732064697361626c656420666f72207075626c6963a265627a7a72315820d602f4eed95b1797695381020ce58478eee2d1dd542d30fc272d02d0ef8458e864736f6c63430005110032
Deployed Bytecode Sourcemap
148001:1841:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;148001:1841:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38449:135;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;38449:135:0;;;;:::i;:::-;;;;;;;;;;;;;;;;;;134609:28;;;:::i;:::-;;;;-1:-1:-1;;;;;134609:28:0;;;;;;;;;;;;;;66276:85;;;:::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;66276:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;148841:174;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;148841:174:0;-1:-1:-1;;;;;148841:174:0;;:::i;:::-;;43417:204;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;43417:204:0;;:::i;140368:938::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;140368:938:0;;;;;;;:::i;42699:425::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;42699:425:0;;;;;;;;:::i;142646:883::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;142646:883:0;;:::i;:::-;;;;;;;;;;;;;;;;57856:96;;;:::i;134308:25::-;;;:::i;45100:292::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;45100:292:0;;;;;;;;;;;;;;;;;:::i;57465:232::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;57465:232:0;;;;;;;;:::i;134576:24::-;;;:::i;149131:187::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;149131:187:0;;:::i;46054:134::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;46054:134:0;;;;;;;;;;;;;;;;;:::i;149619:125::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;149619:125:0;;:::i;134106:34::-;;;:::i;134758:28::-;;;:::i;136713:104::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;136713:104:0;;:::i;58298:199::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;58298:199:0;;:::i;134795:24::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;143537:863;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;143537:863:0;;:::i;134684:24::-;;;:::i;138389:271::-;;;:::i;134373:23::-;;;:::i;149326:117::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;149326:117:0;;:::i;42040:228::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;42040:228:0;;:::i;68529:91::-;;;:::i;41603:211::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;41603:211:0;-1:-1:-1;;;;;41603:211:0;;:::i;149451:160::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;149451:160:0;;:::i;3041:140::-;;;:::i;139604:756::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;139604:756:0;;;;;;;:::i;141314:1052::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;141314:1052:0;;;;;;;:::i;138668:530::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;138668:530:0;;:::i;2230:79::-;;;:::i;2596:94::-;;;:::i;145714:2172::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;145714:2172:0;;:::i;136595:110::-;;;:::i;66476:89::-;;;:::i;137029:146::-;;;:::i;149023:100::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;149023:100:0;-1:-1:-1;;;;;149023:100:0;;:::i;43922:254::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;43922:254:0;;;;;;;;;;:::i;136825:93::-;;;:::i;134276:25::-;;;:::i;135466:44::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;135466:44:0;-1:-1:-1;;;;;135466:44:0;;:::i;144992:714::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;144992:714:0;;:::i;46925:272::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;46925:272:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;46925:272:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;46925:272:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;46925:272:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;46925:272:0;;-1:-1:-1;46925:272:0;;-1:-1:-1;;;;;46925:272:0:i;134717:34::-;;;:::i;70155:138::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;70155:138:0;;:::i;136926:95::-;;;:::i;134403:23::-;;;:::i;134545:24::-;;;:::i;142374:264::-;;;:::i;134492:44::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;134492:44:0;;:::i;134435:50::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;134435:50:0;;:::i;134646:31::-;;;:::i;144408:576::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;144408:576:0;;:::i;149752:87::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;149752:87:0;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;149752:87:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;149752:87:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;149752:87:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;149752:87:0;;-1:-1:-1;149752:87:0;;-1:-1:-1;;;;;149752:87:0:i;134224:43::-;;;:::i;44506:147::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;44506:147:0;;;;;;;;;;:::i;69963:17::-;;;:::i;148731:102::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;148731:102:0;;:::i;139206:390::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;139206:390:0;;;;;;;:::i;134342:22::-;;;:::i;3336:109::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;3336:109:0;-1:-1:-1;;;;;3336:109:0;;:::i;148621:102::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;148621:102:0;;:::i;38449:135::-;38543:33;;;38519:4;38543:33;;;:20;:33;;;;;;;;38449:135;;;;:::o;134609:28::-;;;-1:-1:-1;;;;;134609:28:0;;:::o;66276:85::-;66348:5;66341:12;;;;;;;;-1:-1:-1;;66341:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;66315:13;;66341:12;;66348:5;;66341:12;;66348:5;66341:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;66276:85;;:::o;148841:174::-;2442:9;:7;:9::i;:::-;2434:54;;;;;-1:-1:-1;;;2434:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;148955:14;:52;;-1:-1:-1;;148955:52:0;-1:-1:-1;;;;;148955:52:0;;;;;;;;;;148841:174::o;43417:204::-;43476:7;43504:16;43512:7;43504;:16::i;:::-;43496:73;;;;-1:-1:-1;;;43496:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;43589:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;43589:24:0;;43417:204::o;140368:938::-;140464:7;136447:16;136455:7;136447;:16::i;:::-;136439:49;;;;;-1:-1:-1;;;136439:49:0;;;;;;;;;;;;-1:-1:-1;;;136439:49:0;;;;;;;;;;;;;;;136527:10;136507:16;136515:7;136507;:16::i;:::-;-1:-1:-1;;;;;136507:30:0;;136499:68;;;;;-1:-1:-1;;;136499:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;140506:1;140497:6;:10;140489:50;;;;;-1:-1:-1;;;140489:50:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;140582:16;:14;:16::i;:::-;140572:6;:26;;140550:123;;;;-1:-1:-1;;;140550:123:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;140686:15;140704:18;;;:9;:18;;;;;;:30;;140727:6;140704:30;:22;:30;:::i;:::-;140764:18;;;;:9;:18;;;;;;140686:48;;-1:-1:-1;140754:28:0;;140747:36;;;;140836:24;;;;:15;:24;;;;;;140818:52;;140862:7;140818:17;:52::i;:::-;140796:160;;;;-1:-1:-1;;;140796:160:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;141027:7;;140992:18;;;;:9;:18;;;;;;140991:32;;141016:6;140991:32;:24;:32;:::i;:::-;:43;;140969:127;;;;-1:-1:-1;;;140969:127:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;141109:18;;;;:9;:18;;;;;:28;;;141166:3;;:36;;-1:-1:-1;;;;;141166:3:0;141183:10;141195:6;141166:36;:16;:36;:::i;:::-;141229:13;;:25;;141247:6;141229:25;:17;:25;:::i;:::-;141213:13;:41;141270:28;;;;;;;;;;;;;;;;;;;;;;;;;136578:1;140368:938;;;:::o;42699:425::-;42763:13;42779:16;42787:7;42779;:16::i;:::-;42763:32;;42820:5;-1:-1:-1;;;;;42814:11:0;:2;-1:-1:-1;;;;;42814:11:0;;;42806:57;;;;-1:-1:-1;;;42806:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42900:5;-1:-1:-1;;;;;42884:21:0;:12;:10;:12::i;:::-;-1:-1:-1;;;;;42884:21:0;;:62;;;;42909:37;42926:5;42933:12;:10;:12::i;:::-;42909:16;:37::i;:::-;42876:154;;;;-1:-1:-1;;;42876:154:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43043:24;;;;:15;:24;;;;;;:29;;-1:-1:-1;;43043:29:0;-1:-1:-1;;;;;43043:29:0;;;;;;;;;43088:28;;43043:24;;43088:28;;;;;;;42699:425;;;:::o;142646:883::-;142703:7;142741:24;;;:15;:24;;;;;;:29;;:69;;-1:-1:-1;142787:18:0;;;;:9;:18;;;;;;:23;142741:69;:112;;;;142828:25;142845:7;142828:16;:25::i;:::-;142827:26;142741:112;142723:177;;;-1:-1:-1;142887:1:0;142880:8;;142723:177;142927:31;143052:24;;;:15;:24;;;;;;;;;143095:9;:18;;;;;;142927:31;;143004:124;;:29;:124::i;:::-;142912:216;;;;143145:9;143158:1;143145:14;143141:55;;;143183:1;143176:8;;;;;;143141:55;143208:28;143239:38;:23;143267:9;143239:38;:27;:38;:::i;:::-;143208:69;;143302:38;143320:19;;143316:2;:23;143302:9;:13;;:38;;;;:::i;:::-;143290:50;;143353:16;143372:24;143386:9;;143372;:13;;:24;;;;:::i;:::-;143353:43;;143438:7;;143428:8;:17;143425:67;;-1:-1:-1;143471:9:0;143425:67;143512:8;142646:883;-1:-1:-1;;;;;142646:883:0:o;57856:96::-;57927:10;:17;57856:96;:::o;134308:25::-;;;;:::o;45100:292::-;45244:41;45263:12;:10;:12::i;:::-;45277:7;45244:18;:41::i;:::-;45236:103;;;;-1:-1:-1;;;45236:103:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45352:32;45366:4;45372:2;45376:7;45352:13;:32::i;:::-;45100:292;;;:::o;57465:232::-;57545:7;57581:16;57591:5;57581:9;:16::i;:::-;57573:5;:24;57565:80;;;;-1:-1:-1;;;57565:80:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;57663:19:0;;;;;;:12;:19;;;;;:26;;57683:5;;57663:26;;;;;;;;;;;;;;57656:33;;57465:232;;;;;:::o;134576:24::-;;;;:::o;149131:187::-;2442:9;:7;:9::i;:::-;2434:54;;;;;-1:-1:-1;;;2434:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;149252:28;:58;149131:187::o;46054:134::-;46141:39;46158:4;46164:2;46168:7;46141:39;;;;;;;;;;;;:16;:39::i;149619:125::-;2442:9;:7;:9::i;:::-;2434:54;;;;;-1:-1:-1;;;2434:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;149699:3;;:37;;;;;;:3;:37;;;;;;;;;;;;-1:-1:-1;;;;;149699:3:0;;;;:12;;:37;;;;;;;;;;;;;;;:3;;:37;;;5:2:-1;;;;30:1;27;20:12;5:2;149699:37:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;149699:37:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;134106:34:0;;;-1:-1:-1;;;;;134106:34:0;;:::o;134758:28::-;;;;:::o;136713:104::-;136769:4;136793:16;136801:7;136793;:16::i;58298:199::-;58356:7;58392:13;:11;:13::i;:::-;58384:5;:21;58376:78;;;;-1:-1:-1;;;58376:78:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58472:10;58483:5;58472:17;;;;;;;;;;;;;;;;58465:24;;58298:199;;;:::o;134795:24::-;;;;;;:::o;143537:863::-;143597:7;143621:24;;;:15;:24;;;;;;:29;;:59;;;143655:25;143672:7;143655:16;:25::i;:::-;143654:26;143621:59;143617:100;;;-1:-1:-1;143704:1:0;143697:8;;143617:100;143744:31;143869:24;;;:15;:24;;;;;;;;;143912:9;:18;;;;;;143744:31;;143821:124;;:29;:124::i;:::-;143729:216;;;;143958:16;143977:24;143991:9;;143977;:13;;:24;;;;:::i;:::-;143958:43;-1:-1:-1;144034:13:0;144030:54;;144071:1;144064:8;;;;;;;144030:54;144140:7;;144118:19;;144099:39;;144100:8;;144114:2;:23;144099:39;:14;:39;:::i;:::-;:48;144096:297;;144226:59;144265:19;:17;:19::i;:::-;144226:34;144255:4;144226:24;144240:9;;144226;:13;;:24;;;;:::i;:::-;:28;:34;:28;:34;:::i;:59::-;144219:66;;;;;;;144096:297;144323:58;144361:19;:17;:19::i;:::-;144323:33;144351:4;144323:23;144336:9;;144323:8;:12;;:23;;;;:::i;134684:24::-;;;-1:-1:-1;;;;;134684:24:0;;:::o;138389:271::-;138463:10;;138430:7;;138497:17;138463:10;138512:1;138497:17;:14;:17;:::i;:::-;138484:10;:30;;;138534:16;-1:-1:-1;138534:16:0;138527:24;;;;138564:21;138570:10;138582:2;138564:5;:21::i;:::-;138603:27;;;;;;138619:10;138603:27;;;;;;;;;;;;;;;;;138650:2;-1:-1:-1;138389:271:0;:::o;134373:23::-;;;;:::o;149326:117::-;2442:9;:7;:9::i;:::-;2434:54;;;;;-1:-1:-1;;;2434:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;149417:7;:18;149326:117::o;42040:228::-;42095:7;42131:20;;;:11;:20;;;;;;-1:-1:-1;;;;;42131:20:0;42170:19;42162:73;;;;-1:-1:-1;;;42162:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;68529:91;68604:8;68597:15;;;;;;;;-1:-1:-1;;68597:15:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;68571:13;;68597:15;;68604:8;;68597:15;;68604:8;68597:15;;;;;;;;;;;;;;;;;;;;;;;;41603:211;41658:7;-1:-1:-1;;;;;41686:19:0;;41678:74;;;;-1:-1:-1;;;41678:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;41772:24:0;;;;;;:17;:24;;;;;:34;;:32;:34::i;149451:160::-;2442:9;:7;:9::i;:::-;2434:54;;;;;-1:-1:-1;;;2434:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;149529:18;149537:9;149529:7;:18::i;:::-;149521:51;;;;;-1:-1:-1;;;149521:51:0;;;;;;;;;;;;-1:-1:-1;;;149521:51:0;;;;;;;;;;;;;;;149583:8;:20;149451:160::o;3041:140::-;2442:9;:7;:9::i;:::-;2434:54;;;;;-1:-1:-1;;;2434:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3124:6;;3103:40;;3140:1;;-1:-1:-1;;;;;3124:6:0;;3103:40;;3140:1;;3103:40;3154:6;:19;;-1:-1:-1;;3154:19:0;;;3041:140::o;139604:756::-;139707:7;136447:16;136455:7;136447;:16::i;:::-;136439:49;;;;;-1:-1:-1;;;136439:49:0;;;;;;;;;;;;-1:-1:-1;;;136439:49:0;;;;;;;;;;;;;;;136527:10;136507:16;136515:7;136507;:16::i;:::-;-1:-1:-1;;;;;136507:30:0;;136499:68;;;;;-1:-1:-1;;;136499:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;31108:11;;;;31100:55;;;;;-1:-1:-1;;;31100:55:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;31247:5;31233:19;;-1:-1:-1;;31233:19:0;;;139776:24;;;:15;:24;;;;;;:34;-1:-1:-1;139776:34:0;139754:121;;;;-1:-1:-1;;;139754:121:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;139888:21;139912:24;;;:15;:24;;;;;;:36;;139941:6;139912:36;:28;:36;:::i;:::-;139965:18;;;;:9;:18;;;;;;139888:60;;-1:-1:-1;139965:23:0;139961:232;;140064:18;;;;:9;:18;;;;;;140031:52;;140049:13;;140031:17;:52::i;:::-;140005:176;;;;-1:-1:-1;;;140005:176:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;140205:24;;;;:15;:24;;;;;:40;;;140256:10;;:43;;-1:-1:-1;;;;;140256:10:0;140280;140292:6;140256:43;:23;:43;:::i;:::-;140317:35;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;31413:11:0;:18;;-1:-1:-1;;31413:18:0;31427:4;31413:18;;;-1:-1:-1;;139604:756:0:o;141314:1052::-;141397:3;;:25;;;-1:-1:-1;;;141397:25:0;;141411:10;141397:25;;;;;;141426:6;;-1:-1:-1;;;;;141397:3:0;;:13;;:25;;;;;;;;;;;;;;:3;:25;;;5:2:-1;;;;30:1;27;20:12;5:2;141397:25:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;141397:25:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;141397:25:0;:35;;141389:69;;;;;-1:-1:-1;;;141389:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;141493:18;;;;:9;:18;;;;;;:28;-1:-1:-1;141493:28:0;141471:117;;;;-1:-1:-1;;;141471:117:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;141657:7;;141622:18;;;;:9;:18;;;;;;141621:32;;141646:6;141621:32;:24;:32;:::i;:::-;:43;;:110;;;-1:-1:-1;141712:18:0;;;;:9;:18;;;;;;141701:30;;141621:110;141599:194;;;;-1:-1:-1;;;141599:194:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;141806:19;141828:111;141908:30;141932:5;141908:19;:17;:19::i;:::-;:23;:30;:23;:30;:::i;:::-;141843:49;141870:21;:19;:21::i;:::-;141854:10;;141843:22;;:6;;:22;:10;:22;:::i;141828:111::-;141967:3;;141806:133;;-1:-1:-1;141967:55:0;;-1:-1:-1;;;;;141967:3:0;141988:10;142008:4;142015:6;141967:55;:20;:55;:::i;:::-;142056:18;;;;:9;:18;;;;;;:30;;142079:6;142056:30;:22;:30;:::i;:::-;142035:18;;;;:9;:18;;;;;;;;:51;;;;142124:15;:24;;;;:41;;142153:11;142124:41;:28;:41;:::i;:::-;142097:24;;;;:15;:24;;;;;;:68;;;;142220:8;;142204:25;;;;:42;;142234:11;142204:42;:29;:42;:::i;:::-;142192:8;;142176:25;;;;:15;:25;;;;;:70;142275:13;;:25;;142293:6;142275:25;:17;:25;:::i;:::-;142259:13;:41;142316:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;141314:1052;;;:::o;138668:530::-;138749:7;136447:16;136455:7;136447;:16::i;:::-;136439:49;;;;;-1:-1:-1;;;136439:49:0;;;;;;;;;;;;-1:-1:-1;;;136439:49:0;;;;;;;;;;;;;;;136527:10;136507:16;136515:7;136507;:16::i;:::-;-1:-1:-1;;;;;136507:30:0;;136499:68;;;;;-1:-1:-1;;;136499:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;31108:11;;;;31100:55;;;;;-1:-1:-1;;;31100:55:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;31247:5;31233:19;;-1:-1:-1;;31233:19:0;;;138804:18;;;:9;:18;;;;;;:23;138796:62;;;;;-1:-1:-1;;;138796:62:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;138875:24;;;;:15;:24;;;;;;:29;138871:174;;138966:67;138990:16;138998:7;138990;:16::i;:::-;139008:24;;;;:15;:24;;;;;;138966:10;;-1:-1:-1;;;;;138966:10:0;;:67;;:23;:67;:::i;:::-;139057:14;139063:7;139057:5;:14::i;:::-;139091:24;;;;:15;:24;;;;;;;;139084:31;;;139133:9;:18;;;;;139126:25;;;;139169:21;;;;;;;;;;;;;;;;;-1:-1:-1;;31413:11:0;:18;;-1:-1:-1;;31413:18:0;31427:4;31413:18;;;138668:530::o;2230:79::-;2295:6;;-1:-1:-1;;;;;2295:6:0;2230:79;:::o;2596:94::-;2676:6;;2636:4;;-1:-1:-1;;;;;2676:6:0;2660:12;:10;:12::i;:::-;-1:-1:-1;;;;;2660:22:0;;2653:29;;2596:94;:::o;145714:2172::-;145783:16;145791:7;145783;:16::i;:::-;145775:49;;;;;-1:-1:-1;;;145775:49:0;;;;;;;;;;;;-1:-1:-1;;;145775:49:0;;;;;;;;;;;;;;;145857:13;;-1:-1:-1;;;;;145857:13:0;:27;;:58;;-1:-1:-1;145902:13:0;;-1:-1:-1;;;;;145902:13:0;145888:10;:27;145857:58;145835:142;;;;-1:-1:-1;;;145835:142:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;146005:31;146130:24;;;:15;:24;;;;;;;;;146173:9;:18;;;;;;146005:31;;146082:124;;:29;:124::i;:::-;145990:216;;-1:-1:-1;145990:216:0;-1:-1:-1;146219:28:0;146250:38;145990:216;;146250:38;:27;:38;:::i;:::-;146219:69;;146346:28;;146323:20;:51;146301:149;;;;-1:-1:-1;;;146301:149:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;146493:19;;146475:38;;:9;;146489:2;:23;146475:38;:13;:38;:::i;:::-;146463:50;;146526:16;146545:24;146559:9;;146545;:13;;:24;;;;:::i;:::-;146526:43;;146611:7;;146601:8;:17;146598:66;;-1:-1:-1;146643:9:0;146598:66;146698:3;;:25;;;-1:-1:-1;;;146698:25:0;;146712:10;146698:25;;;;;;146727:8;;-1:-1:-1;;;;;146698:3:0;;:13;;:25;;;;;;;;;;;;;;:3;:25;;;5:2:-1;;;;30:1;27;20:12;5:2;146698:25:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;146698:25:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;146698:25:0;:37;;146676:136;;;;-1:-1:-1;;;146676:136:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;146840:3;;:57;;-1:-1:-1;;;;;146840:3:0;146861:10;146881:4;146888:8;146840:57;:20;:57;:::i;:::-;146924:13;;:27;;146942:8;146924:27;:17;:27;:::i;:::-;146908:13;:43;146964:20;146987:21;147000:7;146987:12;:21::i;:::-;147042:18;;;;:9;:18;;;;;;146964:44;;-1:-1:-1;147042:32:0;;147065:8;147042:32;:22;:32;:::i;:::-;147021:18;;;;:9;:18;;;;;:53;;;;147143:113;147225:30;147249:5;147225:19;:17;:19::i;:30::-;147158:51;147187:21;:19;:21::i;:::-;147171:10;;147158:24;;:8;;:24;:12;:24;:::i;147143:113::-;147296:24;;;;:15;:24;;;;;;147121:135;;-1:-1:-1;147296:41:0;;147121:135;147296:41;:28;:41;:::i;:::-;147269:24;;;;:15;:24;;;;;;:68;;;;147392:8;;147376:25;;;;:42;;147406:11;147376:42;:29;:42;:::i;:::-;147364:8;;147348:25;;;;:15;:25;;;;;;:70;;;;147516:24;;;;;:42;;147545:12;147516:42;:28;:42;:::i;:::-;147489:24;;;;:15;:24;;;;;;;;:69;;;;147652:10;147642:21;;;;;;:39;;147668:12;147642:39;:25;:39;:::i;:::-;147628:10;147618:21;;;;:9;:21;;;;;:63;147699:179;147728:7;147750:16;147728:7;147750;:16::i;:::-;147699:179;;;;;;-1:-1:-1;;;;;147699:179:0;;;;;;;147781:10;147699:179;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;145714:2172;;;;;;;:::o;136595:110::-;136669:3;;:28;;;-1:-1:-1;;;136669:28:0;;136691:4;136669:28;;;;;;136642:7;;-1:-1:-1;;;;;136669:3:0;;:13;;:28;;;;;;;;;;;;;;:3;:28;;;5:2:-1;;;;30:1;27;20:12;5:2;136669:28:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;136669:28:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;136669:28:0;;-1:-1:-1;136595:110:0;:::o;66476:89::-;66550:7;66543:14;;;;;;;;-1:-1:-1;;66543:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;66517:13;;66543:14;;66550:7;;66543:14;;66550:7;66543:14;;;;;;;;;;;;;;;;;;;;;;;;137029:146;137079:7;137099:13;137115:14;;;;;;;;;-1:-1:-1;;;;;137115:14:0;-1:-1:-1;;;;;137115:27:0;;:29;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;137115:29:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;137115:29:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;137115:29:0;;-1:-1:-1;;137029:146:0;:::o;149023:100::-;2442:9;:7;:9::i;:::-;2434:54;;;;;-1:-1:-1;;;2434:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;149094:13;:21;;-1:-1:-1;;149094:21:0;-1:-1:-1;;;;;149094:21:0;;;;;;;;;;149023:100::o;43922:254::-;44008:12;:10;:12::i;:::-;-1:-1:-1;;;;;44002:18:0;:2;-1:-1:-1;;;;;44002:18:0;;;43994:56;;;;;-1:-1:-1;;;43994:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;44102:8;44063:18;:32;44082:12;:10;:12::i;:::-;-1:-1:-1;;;;;44063:32:0;;;;;;;;;;;;;;;;;-1:-1:-1;44063:32:0;;;:36;;;;;;;;;;;;:47;;-1:-1:-1;;44063:47:0;;;;;;;;;;;44141:12;:10;:12::i;:::-;44126:42;;;;;;;;;;-1:-1:-1;;;;;44126:42:0;;;;;;;;;;;;;;43922:254;;:::o;136825:93::-;136900:10;;136825:93;:::o;134276:25::-;;;;:::o;135466:44::-;;;;;;;;;;;;;:::o;144992:714::-;145056:4;145081:16;145089:7;145081;:16::i;:::-;145073:49;;;;;-1:-1:-1;;;145073:49:0;;;;;;;;;;;;-1:-1:-1;;;145073:49:0;;;;;;;;;;;;;;;145139:24;;;;:15;:24;;;;;;:29;;:56;;-1:-1:-1;145172:18:0;;;;:9;:18;;;;;;:23;145139:56;145135:101;;;-1:-1:-1;145219:5:0;145212:12;;145135:101;145263:31;145388:24;;;:15;:24;;;;;;;;;145431:9;:18;;;;;;145263:31;;145340:124;;:29;:124::i;:::-;145248:216;;-1:-1:-1;145248:216:0;-1:-1:-1;145477:28:0;145508:38;145248:216;;145508:38;:27;:38;:::i;:::-;145477:69;;145586:28;;145563:20;:51;145559:140;;;145638:4;145631:11;;;;;;;145559:140;145682:5;145675:12;;;;;;;46925:272;47040:41;47059:12;:10;:12::i;:::-;47073:7;47040:18;:41::i;:::-;47032:103;;;;-1:-1:-1;;;47032:103:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47146:43;47164:4;47170:2;47174:7;47183:5;47146:17;:43::i;:::-;46925:272;;;;:::o;134717:34::-;;;;:::o;70155:138::-;70211:13;70245:16;70253:7;70245;:16::i;:::-;70237:25;;;;;;70282:3;70275:10;;;;;;;;;;;;;-1:-1:-1;;70275:10:0;;;;;;;;;;;;;;;;;;;;;;;;;;;70282:3;70275:10;;70282:3;70275:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;70155:138;;;:::o;136926:95::-;137005:8;;136926:95;:::o;134403:23::-;;;;:::o;134545:24::-;;;;:::o;142374:264::-;31108:11;;;;31100:55;;;;;-1:-1:-1;;;31100:55:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;31247:5;31233:19;;-1:-1:-1;;31233:19:0;;;142442:10;142432:21;;:9;:21;;;;;;142424:67;;;;;-1:-1:-1;;;142424:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;142529:10;142502:14;142519:21;;;:9;:21;;;;;;;142551:25;;;142587:10;;142519:21;;142587:43;;-1:-1:-1;;;;;142587:10:0;;142519:21;142587:43;:23;:43;:::i;:::-;-1:-1:-1;31413:11:0;:18;;-1:-1:-1;;31413:18:0;31427:4;31413:18;;;142374:264::o;134492:44::-;;;;;;;;;;;;;:::o;134435:50::-;;;;;;;;;;;;;:::o;134646:31::-;;;-1:-1:-1;;;;;134646:31:0;;:::o;144408:576::-;144508:7;144541:16;144549:7;144541;:16::i;:::-;144533:49;;;;;-1:-1:-1;;;144533:49:0;;;;;;;;;;;;-1:-1:-1;;;144533:49:0;;;;;;;;;;;;;;;144599:24;;;;:15;:24;;;;;;:29;;:56;;-1:-1:-1;144632:18:0;;;;:9;:18;;;;;;:23;144599:56;144595:97;;;-1:-1:-1;144679:1:0;144672:8;;144595:97;144717:31;144842:24;;;:15;:24;;;;;;;;;144885:9;:18;;;;;;144717:31;;144794:124;;:29;:124::i;:::-;144702:216;;-1:-1:-1;144702:216:0;-1:-1:-1;144938:38:0;144702:216;;144938:38;:27;:38;:::i;:::-;144931:45;144408:576;-1:-1:-1;;;;144408:576:0:o;149752:87::-;2442:9;:7;:9::i;:::-;2434:54;;;;;-1:-1:-1;;;2434:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;149821:10;;;;:3;;:10;;;;;:::i;:::-;;149752:87;:::o;134224:43::-;;;;:::o;44506:147::-;-1:-1:-1;;;;;44610:25:0;;;44586:4;44610:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;44506:147::o;69963:17::-;;;;;;;;;;;;;;;-1:-1:-1;;69963:17:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;148731:102::-;2442:9;:7;:9::i;:::-;2434:54;;;;;-1:-1:-1;;;2434:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;148803:9;:22;148731:102::o;139206:390::-;139286:10;;:62;;-1:-1:-1;;;;;139286:10:0;139314;139334:4;139341:6;139286:62;:27;:62;:::i;:::-;139361:21;139385:24;;;:15;:24;;;;;;:36;;139414:6;139385:36;:28;:36;:::i;:::-;139458:24;;;;:15;:24;;;;;;139361:60;;-1:-1:-1;139441:41:0;;;139434:49;;;;139496:24;;;;:15;:24;;;;;;;;;:40;;;139554:34;;;;;;;;;;;;;;;;;;;;;;;;139206:390;;;:::o;134342:22::-;;;;:::o;3336:109::-;2442:9;:7;:9::i;:::-;2434:54;;;;;-1:-1:-1;;;2434:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3409:28;3428:8;3409:18;:28::i;:::-;3336:109;:::o;148621:102::-;2442:9;:7;:9::i;:::-;2434:54;;;;;-1:-1:-1;;;2434:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;148693:9;:22;148621:102::o;48390:155::-;48447:4;48480:20;;;:11;:20;;;;;;-1:-1:-1;;;;;48480:20:0;48518:19;;;48390:155::o;7596:181::-;7654:7;7686:5;;;7710:6;;;;7702:46;;;;;-1:-1:-1;;;7702:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;7768:1;7596:181;-1:-1:-1;;;7596:181:0:o;137948:433::-;138058:4;138095:31;138141:17;138172:47;138202:10;138214:4;138172:29;:47::i;:::-;138080:139;;-1:-1:-1;138080:139:0;-1:-1:-1;138232:28:0;138263:38;138080:139;;138263:38;:27;:38;:::i;:::-;138345:28;;-1:-1:-1;138321:52:0;;137948:433;-1:-1:-1;;;;;;137948:433:0:o;15941:176::-;16050:58;;;-1:-1:-1;;;;;16050:58:0;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;16050:58:0;;;;;;;;25:18:-1;;61:17;;16050:58:0;182:15:-1;16073:23:0;179:29:-1;160:49;;16024:85:0;;16043:5;;16024:18;:85::i;928:98::-;1008:10;928:98;:::o;137183:757::-;137307:7;137316;137348:19;:17;:19::i;:::-;137341:32;;;;137391:21;:19;:21::i;:::-;137384:34;;;;137431:23;137457:131;137517:59;137553:10;;;;;;;;;-1:-1:-1;;;;;137553:10:0;-1:-1:-1;;;;;137553:19:0;;:21;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;137553:21:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;137553:21:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;137553:21:0;137525:3;;:14;;;;;;;;137545:30;;;;;-1:-1:-1;;;;;137525:3:0;;;;:12;;:14;;;;;137553:21;;137525:14;;;;;;;;:3;:14;;;5:2:-1;;;;30:1;27;20:12;5:2;137525:14:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;137525:14:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;137525:14:0;137517:23;;;:59;:27;:59;:::i;:::-;137512:2;:65;137457:36;137473:19;:17;:19::i;:::-;137457:11;;:36;:15;:36;:::i;:131::-;137431:157;;137627:11;137608:15;:30;;137601:38;;;;137652:17;137672:32;137682:21;:19;:21::i;:::-;137672:5;;:32;:9;:32;:::i;:::-;137652:52;;137737:5;137724:9;:18;;137717:26;;;;137756:31;137790:24;:15;137810:3;137790:24;:19;:24;:::i;:::-;137756:58;;137860:15;137834:23;:41;137827:49;;;;137897:23;137922:9;;-1:-1:-1;137183:757:0;-1:-1:-1;;;;137183:757:0:o;9907:132::-;9965:7;9992:39;9996:1;9999;9992:39;;;;;;;;;;;;;;;;;:3;:39::i;48915:333::-;49000:4;49025:16;49033:7;49025;:16::i;:::-;49017:73;;;;-1:-1:-1;;;49017:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49101:13;49117:16;49125:7;49117;:16::i;:::-;49101:32;;49163:5;-1:-1:-1;;;;;49152:16:0;:7;-1:-1:-1;;;;;49152:16:0;;:51;;;;49196:7;-1:-1:-1;;;;;49172:31:0;:20;49184:7;49172:11;:20::i;:::-;-1:-1:-1;;;;;49172:31:0;;49152:51;:87;;;;49207:32;49224:5;49231:7;49207:16;:32::i;58881:245::-;58967:38;58987:4;58993:2;58997:7;58967:19;:38::i;:::-;59018:47;59051:4;59057:7;59018:32;:47::i;:::-;59078:40;59106:2;59110:7;59078:27;:40::i;8968:471::-;9026:7;9271:6;9267:47;;-1:-1:-1;9301:1:0;9294:8;;9267:47;9338:5;;;9342:1;9338;:5;:1;9362:5;;;;;:10;9354:56;;;;-1:-1:-1;;;9354:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;59391:202;59455:24;59467:2;59471:7;59455:11;:24::i;:::-;59492:40;59520:2;59524:7;59492:27;:40::i;:::-;59545;59577:7;59545:31;:40::i;37032:114::-;37124:14;;37032:114::o;8052:136::-;8110:7;8137:43;8141:1;8144;8137:43;;;;;;;;;;;;;;;;;:3;:43::i;16125:204::-;16252:68;;;-1:-1:-1;;;;;16252:68:0;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;16252:68:0;;;;;;;;25:18:-1;;61:17;;16252:68:0;182:15:-1;16275:27:0;179:29:-1;160:49;;16226:95:0;;16245:5;;16226:18;:95::i;52133:92::-;52185:32;52191:16;52199:7;52191;:16::i;:::-;52209:7;52185:5;:32::i;47916:272::-;48026:32;48040:4;48046:2;48050:7;48026:13;:32::i;:::-;48077:48;48100:4;48106:2;48110:7;48119:5;48077:22;:48::i;:::-;48069:111;;;;-1:-1:-1;;;48069:111:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3551:229;-1:-1:-1;;;;;3625:22:0;;3617:73;;;;-1:-1:-1;;;3617:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3727:6;;3706:38;;-1:-1:-1;;;;;3706:38:0;;;;3727:6;;3706:38;;3727:6;;3706:38;3755:6;:17;;-1:-1:-1;;3755:17:0;-1:-1:-1;;;;;3755:17:0;;;;;;;;;;3551:229::o;17980:1114::-;18584:27;18592:5;-1:-1:-1;;;;;18584:25:0;;:27::i;:::-;18576:71;;;;;-1:-1:-1;;;18576:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;18721:12;18735:23;18770:5;-1:-1:-1;;;;;18762:19:0;18782:4;18762: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;;;18762: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;;18720:67:0;;;;18806:7;18798:52;;;;;-1:-1:-1;;;18798:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18867:17;;:21;18863:224;;19009:10;18998:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;18998:30:0;18990:85;;;;-1:-1:-1;;;18990:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10569:345;10655:7;10757:12;10750:5;10742:28;;;;-1:-1:-1;;;10742:28: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;10742:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10781:9;10797:1;10793;:5;;;;;;;10569:345;-1:-1:-1;;;;;10569:345:0:o;52611:459::-;52725:4;-1:-1:-1;;;;;52705:24:0;:16;52713:7;52705;:16::i;:::-;-1:-1:-1;;;;;52705:24:0;;52697:78;;;;-1:-1:-1;;;52697:78:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;52794:16:0;;52786:65;;;;-1:-1:-1;;;52786:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52864:23;52879:7;52864:14;:23::i;:::-;-1:-1:-1;;;;;52900:23:0;;;;;;:17;:23;;;;;:35;;:33;:35::i;:::-;-1:-1:-1;;;;;52946:21:0;;;;;;:17;:21;;;;;:33;;:31;:33::i;:::-;52992:20;;;;:11;:20;;;;;;:25;;-1:-1:-1;;52992:25:0;-1:-1:-1;;;;;52992:25:0;;;;;;;;;53035:27;;52992:20;;53035:27;;;;;;;52611:459;;;:::o;62066:1148::-;-1:-1:-1;;;;;62357:18:0;;62332:22;62357:18;;;:12;:18;;;;;:25;:32;;62387:1;62357:32;:29;:32;:::i;:::-;62400:18;62421:26;;;:17;:26;;;;;;62332:57;;-1:-1:-1;62554:28:0;;;62550:328;;-1:-1:-1;;;;;62621:18:0;;62599:19;62621:18;;;:12;:18;;;;;:34;;62640:14;;62621:34;;;;;;;;;;;;;;62599:56;;62705:11;62672:12;:18;62685:4;-1:-1:-1;;;;;62672:18:0;-1:-1:-1;;;;;62672:18:0;;;;;;;;;;;;62691:10;62672:30;;;;;;;;;;;;;;;;;;;:44;;;;62789:30;;;:17;:30;;;;;:43;;;62550:328;-1:-1:-1;;;;;62967:18:0;;;;;;:12;:18;;;;;:27;;;;;-1:-1:-1;;62967:27:0;;;:::i;:::-;;62066:1148;;;;:::o;60888:186::-;-1:-1:-1;;;;;61002:16:0;;;;;;;:12;:16;;;;;;;;:23;;60973:26;;;:17;:26;;;;;:52;;;61036:16;;;39:1:-1;23:18;;45:23;;61036:30:0;;;;;;;;60888:186::o;51000:335::-;-1:-1:-1;;;;;51072:16:0;;51064:61;;;;;-1:-1:-1;;;51064:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51145:16;51153:7;51145;:16::i;:::-;51144:17;51136:58;;;;;-1:-1:-1;;;51136:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;51207:20;;;;:11;:20;;;;;;;;:25;;-1:-1:-1;;51207:25:0;-1:-1:-1;;;;;51207:25:0;;;;;;;;51243:21;;:17;:21;;;;;:33;;:31;:33::i;:::-;51294;;51319:7;;-1:-1:-1;;;;;51294:33:0;;;51311:1;;51294:33;;51311:1;;51294:33;51000:335;;:::o;61275:164::-;61379:10;:17;;61352:24;;;;:15;:24;;;;;:44;;;39:1:-1;23:18;;45:23;;61407:24:0;;;;;;;61275:164::o;8525:192::-;8611:7;8647:12;8639:6;;;;8631:29;;;;-1:-1:-1;;;8631:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;8631:29:0;-1:-1:-1;;;8683:5:0;;;8525:192::o;68922:247::-;68989:27;69001:5;69008:7;68989:11;:27::i;:::-;69075:19;;;;:10;:19;;;;;69069:33;;-1:-1:-1;;69069:33:0;;;;;;;;;;;:38;69065:97;;69131:19;;;;:10;:19;;;;;69124:26;;;:::i;53722:1079::-;53844:4;53871:15;:2;-1:-1:-1;;;;;53871:13:0;;:15::i;:::-;53866:60;;-1:-1:-1;53910:4:0;53903:11;;53866:60;53997:12;54011:23;-1:-1:-1;;;;;54038:7:0;;54083:45;54143:12;:10;:12::i;:::-;54170:4;54189:7;54211:5;54046:181;;;;;;-1:-1:-1;;;;;54046:181:0;-1:-1:-1;;;;;54046:181:0;;;;;;-1:-1:-1;;;;;54046:181:0;-1:-1:-1;;;;;54046:181: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;54046:181:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;54046:181:0;;;-1:-1:-1;;26:21;;;22:32;6:49;;54046:181:0;;;49:4:-1;25:18;;61:17;;54046:181:0;182:15:-1;54046:181:0;;;;179:29:-1;;;;160:49;;54038:190:0;;;54046:181;;54038:190;;-1:-1:-1;54038:190:0;;-1:-1:-1;25:18;-1:-1;54038:190:0;-1:-1:-1;54038:190:0;;-1:-1:-1;54038:190:0;;-1:-1:-1;25:18;36:153;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;54038:190: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;;53996:232:0;;;;54244:7;54239:555;;54272:17;;:21;54268:384;;54440:10;54434:17;54501:15;54488:10;54484:2;54480:19;54473:44;54388:148;54576:60;;-1:-1:-1;;;54576:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54239:555;54684:13;54711:10;54700:32;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;54700:32:0;54755:26;;54765:16;54755:26;;-1:-1:-1;54747:35:0;;-1:-1:-1;;;54747:35:0;12964:619;13024:4;13492:20;;13335:66;13532:23;;;;;;:42;;-1:-1:-1;;13559:15:0;;;12964:619;-1:-1:-1;;12964:619:0:o;54969:175::-;55069:1;55033:24;;;:15;:24;;;;;;-1:-1:-1;;;;;55033:24:0;:38;55029:108;;55123:1;55088:24;;;:15;:24;;;;;:37;;-1:-1:-1;;55088:37:0;;;54969:175::o;37343:110::-;37424:14;;:21;;37443:1;37424:21;:18;:21;:::i;:::-;37407:38;;37343:110::o;37154:181::-;37308:19;;37326:1;37308:19;;;37154:181::o;59877:372::-;59944:27;59956:5;59963:7;59944:11;:27::i;:::-;59984:48;60017:5;60024:7;59984:32;:48::i;:::-;60182:1;60153:26;;;:17;:26;;;;;:30;60196:45;60171:7;60196:36;:45::i;51612:333::-;51707:5;-1:-1:-1;;;;;51687:25:0;:16;51695:7;51687;:16::i;:::-;-1:-1:-1;;;;;51687:25:0;;51679:75;;;;-1:-1:-1;;;51679:75:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51767:23;51782:7;51767:14;:23::i;:::-;-1:-1:-1;;;;;51803:24:0;;;;;;:17;:24;;;;;:36;;:34;:36::i;:::-;51881:1;51850:20;;;:11;:20;;;;;;:33;;-1:-1:-1;;51850:33:0;;;51901:36;51862:7;;51881:1;-1:-1:-1;;;;;51901:36:0;;;;;51881:1;;51901:36;51612:333;;:::o;63509:1082::-;63787:10;:17;63762:22;;63787:24;;63809:1;63787:24;:21;:24;:::i;:::-;63822:18;63843:24;;;:15;:24;;;;;;64216:10;:26;;63762:49;;-1:-1:-1;63843:24:0;;63762:49;;64216:26;;;;;;;;;;;;;;64194:48;;64280:11;64255:10;64266;64255:22;;;;;;;;;;;;;;;;;;;:36;;;;64360:28;;;:15;:28;;;;;;:41;;;64525:10;:19;;;;;-1:-1:-1;;64525:19:0;;;:::i;:::-;-1:-1:-1;;;64582:1:0;64555:24;;;-1:-1:-1;64555:15:0;:24;;;;;:28;63509:1082::o;148001:1841::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;148001:1841:0;;;-1:-1:-1;148001:1841:0;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Swarm Source
bzzr://d602f4eed95b1797695381020ce58478eee2d1dd542d30fc272d02d0ef8458e8
[ 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.