Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Sponsored
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
IvTokenUsdt
Compiler Version
v0.8.15+commit.e14f2714
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-08-17 */ // File: contracts/libraries/errors/IporErrors.sol pragma solidity 0.8.15; library IporErrors { // 000-199 - general codes /// @notice General problem, address is wrong string public constant WRONG_ADDRESS = "IPOR_000"; /// @notice General problem. Wrong decimals string public constant WRONG_DECIMALS = "IPOR_001"; string public constant ADDRESSES_MISMATCH = "IPOR_002"; //@notice Trader doesnt have enought tokens to execute transaction string public constant ASSET_BALANCE_TOO_LOW = "IPOR_003"; string public constant VALUE_NOT_GREATER_THAN_ZERO = "IPOR_004"; string public constant INPUT_ARRAYS_LENGTH_MISMATCH = "IPOR_005"; //@notice Amount is too low to transfer string public constant NOT_ENOUGH_AMOUNT_TO_TRANSFER = "IPOR_006"; //@notice msg.sender is not an appointed owner, so cannot confirm his appointment to be an owner of a specific smart contract string public constant SENDER_NOT_APPOINTED_OWNER = "IPOR_007"; //only milton can have access to function string public constant CALLER_NOT_MILTON = "IPOR_008"; string public constant CHUNK_SIZE_EQUAL_ZERO = "IPOR_009"; string public constant CHUNK_SIZE_TOO_BIG = "IPOR_010"; } // File: contracts/libraries/errors/StanleyErrors.sol pragma solidity 0.8.15; library StanleyErrors { // 500-599-stanley string public constant ASSET_MISMATCH = "IPOR_500"; // only stanley can have access to function string public constant CALLER_NOT_STANLEY = "IPOR_501"; string public constant INCORRECT_TREASURY_ADDRESS = "IPOR_502"; //@notice amount should be > 0 string public constant IV_TOKEN_MINT_AMOUNT_TOO_LOW = "IPOR_503"; //@notice amount should be > 0 string public constant IV_TOKEN_BURN_AMOUNT_TOO_LOW = "IPOR_504"; // only Treasury Manager can have access to function string public constant CALLER_NOT_TREASURY_MANAGER = "IPOR_505"; } // File: @openzeppelin/contracts/utils/math/SafeMath.sol // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // 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 (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @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) { return a + b; } /** * @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 a - b; } /** * @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) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting 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 a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting 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. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * 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, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } } // File: @openzeppelin/contracts/utils/Address.sol // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: @openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); } // File: @openzeppelin/contracts/utils/Context.sol // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.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. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * 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. */ abstract 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() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the 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 virtual onlyOwner { _transferOwnership(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 virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File: contracts/security/IporOwnable.sol pragma solidity 0.8.15; contract IporOwnable is Ownable { address private _appointedOwner; event AppointedToTransferOwnership(address indexed appointedOwner); function transferOwnership(address appointedOwner) public override onlyOwner { require(appointedOwner != address(0), IporErrors.WRONG_ADDRESS); _appointedOwner = appointedOwner; emit AppointedToTransferOwnership(appointedOwner); } function confirmTransferOwnership() external onlyAppointedOwner { _appointedOwner = address(0); _transferOwnership(_msgSender()); } modifier onlyAppointedOwner() { require(_appointedOwner == _msgSender(), IporErrors.SENDER_NOT_APPOINTED_OWNER); _; } } // File: @openzeppelin/contracts/token/ERC20/IERC20.sol // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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); /** * @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 `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount ) external returns (bool); } // File: contracts/interfaces/IIvToken.sol pragma solidity 0.8.15; /// @title Interface of IvToken, which is IPOR Vault Token managed by Stanley in IPOR Protocol for a given asset. interface IIvToken is IERC20 { /// @notice Gets asset / stablecoin address which is assocciated with this IvToken smart contract instance /// @return asset / stablecoin address function getAsset() external view returns (address); /// @notice Sets Stanley address by Owner /// @dev only Stanley can mind or burn IV Tokens. Emits {StanleyChanged} event. /// @param newStanley Stanley address function setStanley(address newStanley) external; /// @notice Creates ivTokens in the given `amount` and assigns them to the `account` /// @dev Emits {Transfer} from ERC20 asset and {Mint} event from ivToken /// @param account to which the created ivTokens are being assigned /// @param amount volume of ivTokens being created function mint(address account, uint256 amount) external; /// @notice Destroys ivTokens in the given `amount` assigned to the `account`, reducing the total supply /// @dev Emits {Transfer} event from ERC20 asset and {Burn} event from ivToken /// @param account from which the destroyed ivTokens are being taken /// @param amount volume of ivTokens being destroyed function burn(address account, uint256 amount) external; /// @notice Emmited when `amount` of ivTokens were minted and transferred to the`account`. /// @param account address where ivTokens are transferred after minting /// @param amount volume of ivTokens which will are being minted event Mint(address indexed account, uint256 amount); /// @notice Emmited when the `amount` of ivTokens from `account` was burnt. /// @param account address from where ivTokens are being burned /// @param amount of ivTokens being burned event Burn(address indexed account, uint256 amount); /// @notice Emmited when Stanley's address is changed by the owner. /// @param changedBy account address of entity that has changed Stanley's address /// @param oldStanley Stanley's old address /// @param newStanley Stanley's new address event StanleyChanged( address indexed changedBy, address indexed oldStanley, address indexed newStanley ); } // File: @openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.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 IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } // File: @openzeppelin/contracts/token/ERC20/ERC20.sol // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.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 {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, 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}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This 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: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; } _balances[to] += amount; emit Transfer(from, to, amount); _afterTokenTransfer(from, to, 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: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} } // File: contracts/tokens/IvToken.sol pragma solidity 0.8.15; contract IvToken is IporOwnable, IIvToken, ERC20 { using SafeERC20 for IERC20; uint8 private immutable _decimals; address private immutable _asset; address private _stanley; modifier onlyStanley() { require(_msgSender() == _stanley, StanleyErrors.CALLER_NOT_STANLEY); _; } constructor( string memory name, string memory symbol, address asset ) ERC20(name, symbol) { require(address(0) != asset, IporErrors.WRONG_ADDRESS); _asset = asset; _decimals = 18; } function getAsset() external view override returns (address) { return _asset; } function setStanley(address newStanley) external override onlyOwner { require(newStanley != address(0), IporErrors.WRONG_ADDRESS); address oldStanley = _stanley; _stanley = newStanley; emit StanleyChanged(_msgSender(), oldStanley, newStanley); } function mint(address account, uint256 amount) external override onlyStanley { require(amount > 0, StanleyErrors.IV_TOKEN_MINT_AMOUNT_TOO_LOW); _mint(account, amount); emit Mint(account, amount); } function burn(address account, uint256 amount) external override onlyStanley { require(amount > 0, StanleyErrors.IV_TOKEN_BURN_AMOUNT_TOO_LOW); _burn(account, amount); emit Burn(account, amount); } function decimals() public view override returns (uint8) { return _decimals; } } contract IvTokenUsdt is IvToken { constructor( string memory name, string memory symbol, address asset ) IvToken(name, symbol, asset) {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"asset","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"appointedOwner","type":"address"}],"name":"AppointedToTransferOwnership","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"changedBy","type":"address"},{"indexed":true,"internalType":"address","name":"oldStanley","type":"address"},{"indexed":true,"internalType":"address","name":"newStanley","type":"address"}],"name":"StanleyChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"confirmTransferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAsset","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newStanley","type":"address"}],"name":"setStanley","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"appointedOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c06040523480156200001157600080fd5b506040516200157e3803806200157e8339810160408190526200003491620001ff565b82828282826200004433620000d5565b60056200005283826200031b565b5060066200006182826200031b565b5050604080518082019091526008815267049504f525f3030360c41b602082015290506001600160a01b038216620000b75760405162461bcd60e51b8152600401620000ae9190620003e7565b60405180910390fd5b506001600160a01b031660a05250506012608052506200041c915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620001585781810151838201526020016200013e565b8381111562000168576000848401525b50505050565b600082601f8301126200018057600080fd5b81516001600160401b03808211156200019d576200019d62000125565b604051601f8301601f19908116603f01168101908282118183101715620001c857620001c862000125565b81604052838152866020858801011115620001e257600080fd5b620001f58460208301602089016200013b565b9695505050505050565b6000806000606084860312156200021557600080fd5b83516001600160401b03808211156200022d57600080fd5b6200023b878388016200016e565b945060208601519150808211156200025257600080fd5b5062000261868287016200016e565b604086015190935090506001600160a01b03811681146200028157600080fd5b809150509250925092565b600181811c90821680620002a157607f821691505b602082108103620002c257634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200031657600081815260208120601f850160051c81016020861015620002f15750805b601f850160051c820191505b818110156200031257828155600101620002fd565b5050505b505050565b81516001600160401b0381111562000337576200033762000125565b6200034f816200034884546200028c565b84620002c8565b602080601f8311600181146200038757600084156200036e5750858301515b600019600386901b1c1916600185901b17855562000312565b600085815260208120601f198616915b82811015620003b85788860151825594840194600190910190840162000397565b5085821015620003d75787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6020815260008251806020840152620004088160408501602087016200013b565b601f01601f19169190910160400192915050565b60805160a05161113c62000442600039600061022a015260006101c3015261113c6000f3fe608060405234801561001057600080fd5b50600436106101515760003560e01c806370a08231116100cd578063a457c2d711610081578063cc29516a11610066578063cc29516a146102e5578063dd62ed3e146102ed578063f2fde38b1461032657600080fd5b8063a457c2d7146102bf578063a9059cbb146102d257600080fd5b80638da5cb5b116100b25780638da5cb5b1461029357806395d89b41146102a45780639dc29fac146102ac57600080fd5b806370a0823114610262578063715018a61461028b57600080fd5b8063313ce56711610124578063407c359d11610109578063407c359d1461020057806340c10f19146102155780635c222bad1461022857600080fd5b8063313ce567146101bc57806339509351146101ed57600080fd5b806306fdde0314610156578063095ea7b31461017457806318160ddd1461019757806323b872dd146101a9575b600080fd5b61015e610339565b60405161016b9190610f5b565b60405180910390f35b610187610182366004610fcc565b6103cb565b604051901515815260200161016b565b6004545b60405190815260200161016b565b6101876101b7366004610ff6565b6103e3565b60405160ff7f000000000000000000000000000000000000000000000000000000000000000016815260200161016b565b6101876101fb366004610fcc565b610407565b61021361020e366004611032565b610446565b005b610213610223366004610fcc565b610500565b7f00000000000000000000000000000000000000000000000000000000000000005b6040516001600160a01b03909116815260200161016b565b61019b610270366004611032565b6001600160a01b031660009081526002602052604090205490565b6102136105fb565b6000546001600160a01b031661024a565b61015e61060f565b6102136102ba366004610fcc565b61061e565b6101876102cd366004610fcc565b61070d565b6101876102e0366004610fcc565b6107b7565b6102136107c5565b61019b6102fb366004611054565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b610213610334366004611032565b61083f565b60606005805461034890611087565b80601f016020809104026020016040519081016040528092919081815260200182805461037490611087565b80156103c15780601f10610396576101008083540402835291602001916103c1565b820191906000526020600020905b8154815290600101906020018083116103a457829003601f168201915b5050505050905090565b6000336103d98185856108d8565b5060019392505050565b6000336103f18582856109fd565b6103fc858585610a8f565b506001949350505050565b3360008181526003602090815260408083206001600160a01b03871684529091528120549091906103d990829086906104419087906110d7565b6108d8565b61044e610c8c565b604080518082019091526008815267049504f525f3030360c41b60208201526001600160a01b03821661049d5760405162461bcd60e51b81526004016104949190610f5b565b60405180910390fd5b50600780546001600160a01b038381166001600160a01b0319831681179093551690816104c73390565b6001600160a01b03167f1219962e3ba0a26ae37520e06b4c5702e1060aba93ef6af115033985c6ae1c0160405160405180910390a45050565b6007546001600160a01b0316336001600160a01b0316146040518060400160405280600881526020016749504f525f35303160c01b815250906105565760405162461bcd60e51b81526004016104949190610f5b565b5060408051808201909152600881527f49504f525f3530330000000000000000000000000000000000000000000000006020820152816105a95760405162461bcd60e51b81526004016104949190610f5b565b506105b48282610ce6565b816001600160a01b03167f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885826040516105ef91815260200190565b60405180910390a25050565b610603610c8c565b61060d6000610dc5565b565b60606006805461034890611087565b6007546001600160a01b0316336001600160a01b0316146040518060400160405280600881526020016749504f525f35303160c01b815250906106745760405162461bcd60e51b81526004016104949190610f5b565b5060408051808201909152600881527f49504f525f3530340000000000000000000000000000000000000000000000006020820152816106c75760405162461bcd60e51b81526004016104949190610f5b565b506106d28282610e15565b816001600160a01b03167fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5826040516105ef91815260200190565b3360008181526003602090815260408083206001600160a01b0387168452909152812054909190838110156107aa5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610494565b6103fc82868684036108d8565b6000336103d9818585610a8f565b60015460408051808201909152600881527f49504f525f3030370000000000000000000000000000000000000000000000006020820152906001600160a01b031633146108255760405162461bcd60e51b81526004016104949190610f5b565b50600180546001600160a01b031916905561060d33610dc5565b610847610c8c565b604080518082019091526008815267049504f525f3030360c41b60208201526001600160a01b03821661088d5760405162461bcd60e51b81526004016104949190610f5b565b50600180546001600160a01b0319166001600160a01b0383169081179091556040517f3ec7bb1d452f3c36260fa8ef678a597fd97574d8ec42f6dc98ffce3dbc91228f90600090a250565b6001600160a01b03831661093a5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610494565b6001600160a01b03821661099b5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610494565b6001600160a01b0383811660008181526003602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038381166000908152600360209081526040808320938616835292905220546000198114610a895781811015610a7c5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610494565b610a8984848484036108d8565b50505050565b6001600160a01b038316610b0b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610494565b6001600160a01b038216610b6d5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610494565b6001600160a01b03831660009081526002602052604090205481811015610bfc5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610494565b6001600160a01b03808516600090815260026020526040808220858503905591851681529081208054849290610c339084906110d7565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610c7f91815260200190565b60405180910390a3610a89565b6000546001600160a01b0316331461060d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610494565b6001600160a01b038216610d3c5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610494565b8060046000828254610d4e91906110d7565b90915550506001600160a01b03821660009081526002602052604081208054839290610d7b9084906110d7565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038216610e755760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610494565b6001600160a01b03821660009081526002602052604090205481811015610ee95760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610494565b6001600160a01b0383166000908152600260205260408120838303905560048054849290610f189084906110ef565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020016109f0565b600060208083528351808285015260005b81811015610f8857858101830151858201604001528201610f6c565b81811115610f9a576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b0381168114610fc757600080fd5b919050565b60008060408385031215610fdf57600080fd5b610fe883610fb0565b946020939093013593505050565b60008060006060848603121561100b57600080fd5b61101484610fb0565b925061102260208501610fb0565b9150604084013590509250925092565b60006020828403121561104457600080fd5b61104d82610fb0565b9392505050565b6000806040838503121561106757600080fd5b61107083610fb0565b915061107e60208401610fb0565b90509250929050565b600181811c9082168061109b57607f821691505b6020821081036110bb57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156110ea576110ea6110c1565b500190565b600082821015611101576111016110c1565b50039056fea2646970667358221220d8b6e6c0c5405f097a0c145727aec82b6609b7099ce4a1f0264100902ea762ba64736f6c634300080f0033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000000000000000000000000000000000000000000007495620555344540000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000066976555344540000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101515760003560e01c806370a08231116100cd578063a457c2d711610081578063cc29516a11610066578063cc29516a146102e5578063dd62ed3e146102ed578063f2fde38b1461032657600080fd5b8063a457c2d7146102bf578063a9059cbb146102d257600080fd5b80638da5cb5b116100b25780638da5cb5b1461029357806395d89b41146102a45780639dc29fac146102ac57600080fd5b806370a0823114610262578063715018a61461028b57600080fd5b8063313ce56711610124578063407c359d11610109578063407c359d1461020057806340c10f19146102155780635c222bad1461022857600080fd5b8063313ce567146101bc57806339509351146101ed57600080fd5b806306fdde0314610156578063095ea7b31461017457806318160ddd1461019757806323b872dd146101a9575b600080fd5b61015e610339565b60405161016b9190610f5b565b60405180910390f35b610187610182366004610fcc565b6103cb565b604051901515815260200161016b565b6004545b60405190815260200161016b565b6101876101b7366004610ff6565b6103e3565b60405160ff7f000000000000000000000000000000000000000000000000000000000000001216815260200161016b565b6101876101fb366004610fcc565b610407565b61021361020e366004611032565b610446565b005b610213610223366004610fcc565b610500565b7f000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec75b6040516001600160a01b03909116815260200161016b565b61019b610270366004611032565b6001600160a01b031660009081526002602052604090205490565b6102136105fb565b6000546001600160a01b031661024a565b61015e61060f565b6102136102ba366004610fcc565b61061e565b6101876102cd366004610fcc565b61070d565b6101876102e0366004610fcc565b6107b7565b6102136107c5565b61019b6102fb366004611054565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b610213610334366004611032565b61083f565b60606005805461034890611087565b80601f016020809104026020016040519081016040528092919081815260200182805461037490611087565b80156103c15780601f10610396576101008083540402835291602001916103c1565b820191906000526020600020905b8154815290600101906020018083116103a457829003601f168201915b5050505050905090565b6000336103d98185856108d8565b5060019392505050565b6000336103f18582856109fd565b6103fc858585610a8f565b506001949350505050565b3360008181526003602090815260408083206001600160a01b03871684529091528120549091906103d990829086906104419087906110d7565b6108d8565b61044e610c8c565b604080518082019091526008815267049504f525f3030360c41b60208201526001600160a01b03821661049d5760405162461bcd60e51b81526004016104949190610f5b565b60405180910390fd5b50600780546001600160a01b038381166001600160a01b0319831681179093551690816104c73390565b6001600160a01b03167f1219962e3ba0a26ae37520e06b4c5702e1060aba93ef6af115033985c6ae1c0160405160405180910390a45050565b6007546001600160a01b0316336001600160a01b0316146040518060400160405280600881526020016749504f525f35303160c01b815250906105565760405162461bcd60e51b81526004016104949190610f5b565b5060408051808201909152600881527f49504f525f3530330000000000000000000000000000000000000000000000006020820152816105a95760405162461bcd60e51b81526004016104949190610f5b565b506105b48282610ce6565b816001600160a01b03167f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885826040516105ef91815260200190565b60405180910390a25050565b610603610c8c565b61060d6000610dc5565b565b60606006805461034890611087565b6007546001600160a01b0316336001600160a01b0316146040518060400160405280600881526020016749504f525f35303160c01b815250906106745760405162461bcd60e51b81526004016104949190610f5b565b5060408051808201909152600881527f49504f525f3530340000000000000000000000000000000000000000000000006020820152816106c75760405162461bcd60e51b81526004016104949190610f5b565b506106d28282610e15565b816001600160a01b03167fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5826040516105ef91815260200190565b3360008181526003602090815260408083206001600160a01b0387168452909152812054909190838110156107aa5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610494565b6103fc82868684036108d8565b6000336103d9818585610a8f565b60015460408051808201909152600881527f49504f525f3030370000000000000000000000000000000000000000000000006020820152906001600160a01b031633146108255760405162461bcd60e51b81526004016104949190610f5b565b50600180546001600160a01b031916905561060d33610dc5565b610847610c8c565b604080518082019091526008815267049504f525f3030360c41b60208201526001600160a01b03821661088d5760405162461bcd60e51b81526004016104949190610f5b565b50600180546001600160a01b0319166001600160a01b0383169081179091556040517f3ec7bb1d452f3c36260fa8ef678a597fd97574d8ec42f6dc98ffce3dbc91228f90600090a250565b6001600160a01b03831661093a5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610494565b6001600160a01b03821661099b5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610494565b6001600160a01b0383811660008181526003602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038381166000908152600360209081526040808320938616835292905220546000198114610a895781811015610a7c5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610494565b610a8984848484036108d8565b50505050565b6001600160a01b038316610b0b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610494565b6001600160a01b038216610b6d5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610494565b6001600160a01b03831660009081526002602052604090205481811015610bfc5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610494565b6001600160a01b03808516600090815260026020526040808220858503905591851681529081208054849290610c339084906110d7565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610c7f91815260200190565b60405180910390a3610a89565b6000546001600160a01b0316331461060d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610494565b6001600160a01b038216610d3c5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610494565b8060046000828254610d4e91906110d7565b90915550506001600160a01b03821660009081526002602052604081208054839290610d7b9084906110d7565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038216610e755760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610494565b6001600160a01b03821660009081526002602052604090205481811015610ee95760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610494565b6001600160a01b0383166000908152600260205260408120838303905560048054849290610f189084906110ef565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020016109f0565b600060208083528351808285015260005b81811015610f8857858101830151858201604001528201610f6c565b81811115610f9a576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b0381168114610fc757600080fd5b919050565b60008060408385031215610fdf57600080fd5b610fe883610fb0565b946020939093013593505050565b60008060006060848603121561100b57600080fd5b61101484610fb0565b925061102260208501610fb0565b9150604084013590509250925092565b60006020828403121561104457600080fd5b61104d82610fb0565b9392505050565b6000806040838503121561106757600080fd5b61107083610fb0565b915061107e60208401610fb0565b90509250929050565b600181811c9082168061109b57607f821691505b6020821081036110bb57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156110ea576110ea6110c1565b500190565b600082821015611101576111016110c1565b50039056fea2646970667358221220d8b6e6c0c5405f097a0c145727aec82b6609b7099ce4a1f0264100902ea762ba64736f6c634300080f0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000000000000000000000000000000000000000000007495620555344540000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000066976555344540000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): IV USDT
Arg [1] : symbol (string): ivUSDT
Arg [2] : asset (address): 0xdAC17F958D2ee523a2206206994597C13D831ec7
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [4] : 4956205553445400000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [6] : 6976555344540000000000000000000000000000000000000000000000000000
Deployed Bytecode Sourcemap
49439:176:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37013:100;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;39364:201;;;;;;:::i;:::-;;:::i;:::-;;;1241:14:1;;1234:22;1216:41;;1204:2;1189:18;39364:201:0;1076:187:1;38133:108:0;38221:12;;38133:108;;;1414:25:1;;;1402:2;1387:18;38133:108:0;1268:177:1;40145:295:0;;;;;;:::i;:::-;;:::i;49340:92::-;;;1955:4:1;49415:9:0;1943:17:1;1925:36;;1913:2;1898:18;49340:92:0;1783:184:1;40849:238:0;;;;;;:::i;:::-;;:::i;48572:286::-;;;;;;:::i;:::-;;:::i;:::-;;48866:229;;;;;;:::i;:::-;;:::i;48471:93::-;48550:6;48471:93;;;-1:-1:-1;;;;;2327:55:1;;;2309:74;;2297:2;2282:18;48471:93:0;2163:226:1;38304:127:0;;;;;;:::i;:::-;-1:-1:-1;;;;;38405:18:0;38378:7;38405:18;;;:9;:18;;;;;;;38304:127;22727:103;;;:::i;22079:87::-;22125:7;22152:6;-1:-1:-1;;;;;22152:6:0;22079:87;;37232:104;;;:::i;49103:229::-;;;;;;:::i;:::-;;:::i;41590:436::-;;;;;;:::i;:::-;;:::i;38637:193::-;;;;;;:::i;:::-;;:::i;24048:154::-;;;:::i;38893:151::-;;;;;;:::i;:::-;-1:-1:-1;;;;;39009:18:0;;;38982:7;39009:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;38893:151;23778:262;;;;;;:::i;:::-;;:::i;37013:100::-;37067:13;37100:5;37093:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37013:100;:::o;39364:201::-;39447:4;20710:10;39503:32;20710:10;39519:7;39528:6;39503:8;:32::i;:::-;-1:-1:-1;39553:4:0;;39364:201;-1:-1:-1;;;39364:201:0:o;40145:295::-;40276:4;20710:10;40334:38;40350:4;20710:10;40365:6;40334:15;:38::i;:::-;40383:27;40393:4;40399:2;40403:6;40383:9;:27::i;:::-;-1:-1:-1;40428:4:0;;40145:295;-1:-1:-1;;;;40145:295:0:o;40849:238::-;20710:10;40937:4;39009:18;;;:11;:18;;;;;;;;-1:-1:-1;;;;;39009:27:0;;;;;;;;;;40937:4;;20710:10;40993:64;;20710:10;;39009:27;;41018:38;;41046:10;;41018:38;:::i;:::-;40993:8;:64::i;48572:286::-;21965:13;:11;:13::i;:::-;48685:24:::1;::::0;;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;;;48685:24:0::1;::::0;::::1;::::0;-1:-1:-1;;;;;48659:24:0;::::1;48651:59;;;;-1:-1:-1::0;;;48651:59:0::1;;;;;;;;:::i;:::-;;;;;;;;;-1:-1:-1::0;48742:8:0::1;::::0;;-1:-1:-1;;;;;48761:21:0;;::::1;-1:-1:-1::0;;;;;;48761:21:0;::::1;::::0;::::1;::::0;;;48742:8:::1;::::0;;48813:12:::1;20710:10:::0;;20630:98;48813:12:::1;-1:-1:-1::0;;;;;48798:52:0::1;;;;;;;;;;;48640:218;48572:286:::0;:::o;48866:229::-;48146:8;;-1:-1:-1;;;;;48146:8:0;20710:10;-1:-1:-1;;;;;48130:24:0;;48156:32;;;;;;;;;;;;;-1:-1:-1;;;48156:32:0;;;48122:67;;;;;-1:-1:-1;;;48122:67:0;;;;;;;;:::i;:::-;-1:-1:-1;48974:42:0::1;::::0;;;;::::1;::::0;;;::::1;::::0;;::::1;;::::0;::::1;::::0;48962:10;48954:63:::1;;;;-1:-1:-1::0;;;48954:63:0::1;;;;;;;;:::i;:::-;;49028:22;49034:7;49043:6;49028:5;:22::i;:::-;49071:7;-1:-1:-1::0;;;;;49066:21:0::1;;49080:6;49066:21;;;;1414:25:1::0;;1402:2;1387:18;;1268:177;49066:21:0::1;;;;;;;;48866:229:::0;;:::o;22727:103::-;21965:13;:11;:13::i;:::-;22792:30:::1;22819:1;22792:18;:30::i;:::-;22727:103::o:0;37232:104::-;37288:13;37321:7;37314:14;;;;;:::i;49103:229::-;48146:8;;-1:-1:-1;;;;;48146:8:0;20710:10;-1:-1:-1;;;;;48130:24:0;;48156:32;;;;;;;;;;;;;-1:-1:-1;;;48156:32:0;;;48122:67;;;;;-1:-1:-1;;;48122:67:0;;;;;;;;:::i;:::-;-1:-1:-1;49211:42:0::1;::::0;;;;::::1;::::0;;;::::1;::::0;;::::1;;::::0;::::1;::::0;49199:10;49191:63:::1;;;;-1:-1:-1::0;;;49191:63:0::1;;;;;;;;:::i;:::-;;49265:22;49271:7;49280:6;49265:5;:22::i;:::-;49308:7;-1:-1:-1::0;;;;;49303:21:0::1;;49317:6;49303:21;;;;1414:25:1::0;;1402:2;1387:18;;1268:177;41590:436:0;20710:10;41683:4;39009:18;;;:11;:18;;;;;;;;-1:-1:-1;;;;;39009:27:0;;;;;;;;;;41683:4;;20710:10;41830:15;41810:16;:35;;41802:85;;;;-1:-1:-1;;;41802:85:0;;3511:2:1;41802:85:0;;;3493:21:1;3550:2;3530:18;;;3523:30;3589:34;3569:18;;;3562:62;3660:7;3640:18;;;3633:35;3685:19;;41802:85:0;3309:401:1;41802:85:0;41923:60;41932:5;41939:7;41967:15;41948:16;:34;41923:8;:60::i;38637:193::-;38716:4;20710:10;38772:28;20710:10;38789:2;38793:6;38772:9;:28::i;24048:154::-;24259:15;;24292:37;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;24259:15:0;20710:10;24259:31;24251:79;;;;-1:-1:-1;;;24251:79:0;;;;;;;;:::i;:::-;-1:-1:-1;24123:15:0::1;:28:::0;;-1:-1:-1;;;;;;24123:28:0::1;::::0;;24162:32:::1;20710:10:::0;24162:18:::1;:32::i;23778:262::-:0;21965:13;:11;:13::i;:::-;23904:24:::1;::::0;;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;;;23904:24:0::1;::::0;::::1;::::0;-1:-1:-1;;;;;23874:28:0;::::1;23866:63;;;;-1:-1:-1::0;;;23866:63:0::1;;;;;;;;:::i;:::-;-1:-1:-1::0;23940:15:0::1;:32:::0;;-1:-1:-1;;;;;;23940:32:0::1;-1:-1:-1::0;;;;;23940:32:0;::::1;::::0;;::::1;::::0;;;23988:44:::1;::::0;::::1;::::0;-1:-1:-1;;23988:44:0::1;23778:262:::0;:::o;45215:380::-;-1:-1:-1;;;;;45351:19:0;;45343:68;;;;-1:-1:-1;;;45343:68:0;;3917:2:1;45343:68:0;;;3899:21:1;3956:2;3936:18;;;3929:30;3995:34;3975:18;;;3968:62;-1:-1:-1;;;4046:18:1;;;4039:34;4090:19;;45343:68:0;3715:400:1;45343:68:0;-1:-1:-1;;;;;45430:21:0;;45422:68;;;;-1:-1:-1;;;45422:68:0;;4322:2:1;45422:68:0;;;4304:21:1;4361:2;4341:18;;;4334:30;4400:34;4380:18;;;4373:62;-1:-1:-1;;;4451:18:1;;;4444:32;4493:19;;45422:68:0;4120:398:1;45422:68:0;-1:-1:-1;;;;;45503:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;45555:32;;1414:25:1;;;45555:32:0;;1387:18:1;45555:32:0;;;;;;;;45215:380;;;:::o;45886:453::-;-1:-1:-1;;;;;39009:18:0;;;46021:24;39009:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;-1:-1:-1;;46088:37:0;;46084:248;;46170:6;46150:16;:26;;46142:68;;;;-1:-1:-1;;;46142:68:0;;4725:2:1;46142:68:0;;;4707:21:1;4764:2;4744:18;;;4737:30;4803:31;4783:18;;;4776:59;4852:18;;46142:68:0;4523:353:1;46142:68:0;46254:51;46263:5;46270:7;46298:6;46279:16;:25;46254:8;:51::i;:::-;46010:329;45886:453;;;:::o;42496:671::-;-1:-1:-1;;;;;42627:18:0;;42619:68;;;;-1:-1:-1;;;42619:68:0;;5083:2:1;42619:68:0;;;5065:21:1;5122:2;5102:18;;;5095:30;5161:34;5141:18;;;5134:62;5232:7;5212:18;;;5205:35;5257:19;;42619:68:0;4881:401:1;42619:68:0;-1:-1:-1;;;;;42706:16:0;;42698:64;;;;-1:-1:-1;;;42698:64:0;;5489:2:1;42698:64:0;;;5471:21:1;5528:2;5508:18;;;5501:30;5567:34;5547:18;;;5540:62;-1:-1:-1;;;5618:18:1;;;5611:33;5661:19;;42698:64:0;5287:399:1;42698:64:0;-1:-1:-1;;;;;42848:15:0;;42826:19;42848:15;;;:9;:15;;;;;;42882:21;;;;42874:72;;;;-1:-1:-1;;;42874:72:0;;5893:2:1;42874:72:0;;;5875:21:1;5932:2;5912:18;;;5905:30;5971:34;5951:18;;;5944:62;6042:8;6022:18;;;6015:36;6068:19;;42874:72:0;5691:402:1;42874:72:0;-1:-1:-1;;;;;42982:15:0;;;;;;;:9;:15;;;;;;43000:20;;;42982:38;;43042:13;;;;;;;;:23;;43014:6;;42982:15;43042:23;;43014:6;;43042:23;:::i;:::-;;;;;;;;43098:2;-1:-1:-1;;;;;43083:26:0;43092:4;-1:-1:-1;;;;;43083:26:0;;43102:6;43083:26;;;;1414:25:1;;1402:2;1387:18;;1268:177;43083:26:0;;;;;;;;43122:37;44186:591;22244:132;22125:7;22152:6;-1:-1:-1;;;;;22152:6:0;20710:10;22308:23;22300:68;;;;-1:-1:-1;;;22300:68:0;;6300:2:1;22300:68:0;;;6282:21:1;;;6319:18;;;6312:30;6378:34;6358:18;;;6351:62;6430:18;;22300:68:0;6098:356:1;43454:399:0;-1:-1:-1;;;;;43538:21:0;;43530:65;;;;-1:-1:-1;;;43530:65:0;;6661:2:1;43530:65:0;;;6643:21:1;6700:2;6680:18;;;6673:30;6739:33;6719:18;;;6712:61;6790:18;;43530:65:0;6459:355:1;43530:65:0;43686:6;43670:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;43703:18:0;;;;;;:9;:18;;;;;:28;;43725:6;;43703:18;:28;;43725:6;;43703:28;:::i;:::-;;;;-1:-1:-1;;43747:37:0;;1414:25:1;;;-1:-1:-1;;;;;43747:37:0;;;43764:1;;43747:37;;1402:2:1;1387:18;43747:37:0;;;;;;;43454:399;;:::o;23346:191::-;23420:16;23439:6;;-1:-1:-1;;;;;23456:17:0;;;-1:-1:-1;;;;;;23456:17:0;;;;;;23489:40;;23439:6;;;;;;;23489:40;;23420:16;23489:40;23409:128;23346:191;:::o;44186:591::-;-1:-1:-1;;;;;44270:21:0;;44262:67;;;;-1:-1:-1;;;44262:67:0;;7021:2:1;44262:67:0;;;7003:21:1;7060:2;7040:18;;;7033:30;7099:34;7079:18;;;7072:62;-1:-1:-1;;;7150:18:1;;;7143:31;7191:19;;44262:67:0;6819:397:1;44262:67:0;-1:-1:-1;;;;;44429:18:0;;44404:22;44429:18;;;:9;:18;;;;;;44466:24;;;;44458:71;;;;-1:-1:-1;;;44458:71:0;;7423:2:1;44458:71:0;;;7405:21:1;7462:2;7442:18;;;7435:30;7501:34;7481:18;;;7474:62;-1:-1:-1;;;7552:18:1;;;7545:32;7594:19;;44458:71:0;7221:398:1;44458:71:0;-1:-1:-1;;;;;44565:18:0;;;;;;:9;:18;;;;;44586:23;;;44565:44;;44631:12;:22;;44603:6;;44565:18;44631:22;;44603:6;;44631:22;:::i;:::-;;;;-1:-1:-1;;44671:37:0;;1414:25:1;;;44697:1:0;;-1:-1:-1;;;;;44671:37:0;;;;;1402:2:1;1387:18;44671:37:0;1268:177:1;14:597;126:4;155:2;184;173:9;166:21;216:6;210:13;259:6;254:2;243:9;239:18;232:34;284:1;294:140;308:6;305:1;302:13;294:140;;;403:14;;;399:23;;393:30;369:17;;;388:2;365:26;358:66;323:10;;294:140;;;452:6;449:1;446:13;443:91;;;522:1;517:2;508:6;497:9;493:22;489:31;482:42;443:91;-1:-1:-1;595:2:1;574:15;-1:-1:-1;;570:29:1;555:45;;;;602:2;551:54;;14:597;-1:-1:-1;;;14:597:1:o;616:196::-;684:20;;-1:-1:-1;;;;;733:54:1;;723:65;;713:93;;802:1;799;792:12;713:93;616:196;;;:::o;817:254::-;885:6;893;946:2;934:9;925:7;921:23;917:32;914:52;;;962:1;959;952:12;914:52;985:29;1004:9;985:29;:::i;:::-;975:39;1061:2;1046:18;;;;1033:32;;-1:-1:-1;;;817:254:1:o;1450:328::-;1527:6;1535;1543;1596:2;1584:9;1575:7;1571:23;1567:32;1564:52;;;1612:1;1609;1602:12;1564:52;1635:29;1654:9;1635:29;:::i;:::-;1625:39;;1683:38;1717:2;1706:9;1702:18;1683:38;:::i;:::-;1673:48;;1768:2;1757:9;1753:18;1740:32;1730:42;;1450:328;;;;;:::o;1972:186::-;2031:6;2084:2;2072:9;2063:7;2059:23;2055:32;2052:52;;;2100:1;2097;2090:12;2052:52;2123:29;2142:9;2123:29;:::i;:::-;2113:39;1972:186;-1:-1:-1;;;1972:186:1:o;2394:260::-;2462:6;2470;2523:2;2511:9;2502:7;2498:23;2494:32;2491:52;;;2539:1;2536;2529:12;2491:52;2562:29;2581:9;2562:29;:::i;:::-;2552:39;;2610:38;2644:2;2633:9;2629:18;2610:38;:::i;:::-;2600:48;;2394:260;;;;;:::o;2659:380::-;2738:1;2734:12;;;;2781;;;2802:61;;2856:4;2848:6;2844:17;2834:27;;2802:61;2909:2;2901:6;2898:14;2878:18;2875:38;2872:161;;2955:10;2950:3;2946:20;2943:1;2936:31;2990:4;2987:1;2980:15;3018:4;3015:1;3008:15;2872:161;;2659:380;;;:::o;3044:127::-;3105:10;3100:3;3096:20;3093:1;3086:31;3136:4;3133:1;3126:15;3160:4;3157:1;3150:15;3176:128;3216:3;3247:1;3243:6;3240:1;3237:13;3234:39;;;3253:18;;:::i;:::-;-1:-1:-1;3289:9:1;;3176:128::o;7624:125::-;7664:4;7692:1;7689;7686:8;7683:34;;;7697:18;;:::i;:::-;-1:-1:-1;7734:9:1;;7624:125::o
Swarm Source
ipfs://d8b6e6c0c5405f097a0c145727aec82b6609b7099ce4a1f0264100902ea762ba
Loading...
Loading
Loading...
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.