Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Latest 13 internal transactions
Advanced mode:
Parent Transaction Hash | Method | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|---|
Transfer | 20373064 | 261 days ago | 0.01 ETH | ||||
Transfer | 20373049 | 261 days ago | 0.01 ETH | ||||
Transfer | 20373043 | 261 days ago | 0.01 ETH | ||||
Transfer | 20373043 | 261 days ago | 0.01 ETH | ||||
Transfer | 20373022 | 261 days ago | 0.01 ETH | ||||
Transfer | 20360007 | 263 days ago | 1 wei | ||||
Transfer | 20360007 | 263 days ago | 1 wei | ||||
Transfer | 20359852 | 263 days ago | 0.009 ETH | ||||
Transfer | 20359852 | 263 days ago | 0.009 ETH | ||||
Transfer | 20359842 | 263 days ago | 0.00977966 ETH | ||||
Transfer | 20359449 | 263 days ago | 0.00535452 ETH | ||||
Transfer | 20359449 | 263 days ago | 0.00535452 ETH | ||||
Transfer | 20359438 | 263 days ago | 0.00566966 ETH |
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
EthDepositLogic
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 200 runs
Other Settings:
istanbul EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.20; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; import "@openzeppelin/contracts/utils/Address.sol"; /** * @title EthDepositLogic * @notice The main contract logic for deposit ether. */ contract EthDepositLogic { using SafeERC20 for IERC20; using Address for address payable; /** * @notice Cold Address to which any eth sent to this contract will be forwarded * @dev This is only set in EthDepositLogic (this) contract's storage. * It should be a cold wallet. */ address payable public coldAddress; /** * @notice Minimum eth price for deposit * @dev This attribute is required for all future versions, as it is * accessed directly from EthDepositLogic contract */ uint256 public minimumEthInput; /** * @notice Whether the contract is allowed to receive funds and * auto-forwarding to the cold wallet or not. * @dev This parameter is used to avoid users miss-sending the * fund on the blockchain that not allowed deposit. * Should be initialized in constructor. * false: allow Deposit * true: not allow Deposit, * it means transferring ETH to the contract will be forbidden; * Also, the transaction will be reverted and return the ETH back to the sender. */ bool public isDisableDeposit; /** * @notice The address of the addition logic contract * @dev This is only set in EthDepositLogic (this) contract's storage. * Also, forwarding logic to this address via DELEGATECALL is disabled when * this contract is killed (coldAddress == address(0)). */ address payable public implementation; /** * @dev This is only set in EthDepositLogic (this) contract's storage. * It has the ability to change the isDisableDeposit status, minInput amount, * and return back funds function * It's supposed to be a hot wallet. */ address public operatorAddress; /** * @dev This is only set in EthDepositLogic (this) contract's storage. * It has the ability to kill the contract and disable addition logic forwarding, * and change the coldAddress, operatorAddress and implementation address storages. * It should be a cold wallet. */ address public immutable adminAddress; /** * @dev The address of EthDepositLogic (use to check whether the context is delegate call or not) */ address payable private immutable thisAddress; /** * @notice Create the contract, and sets the inital value of coldAddress, * adminAddress, operatorAddress, minimumEthInput, and thisAddress * @param coldAddr See coldAddress * @param adminAddr See adminAddress * @param operatorAddr See operatorAddress * @param miniEthInput See minimumEthInput * @param isDisableDepo See isDisableDeposit */ constructor( address payable coldAddr, address adminAddr, address operatorAddr, uint256 miniEthInput, bool isDisableDepo ) { require(coldAddr != address(0), "0x0 is an invalid address"); require(adminAddr != address(0), "0x0 is an invalid address"); require(operatorAddr != address(0), "0x0 is an invalid address"); coldAddress = coldAddr; adminAddress = adminAddr; operatorAddress = operatorAddr; minimumEthInput = miniEthInput; // set the EthDepositLogic contract address to immutable thisAddress = payable(address(this)); isDisableDeposit = isDisableDepo; } /** * @notice Event used to log the proxy address and amount every time eth was forwarded * @param proxyReceiver The proxy address from which eth was forwarded * @param amount The amount of eth which was forwarded */ event Deposit(address indexed proxyReceiver, uint256 amount); /** * @notice Event used to log the receiver address, operator address, and amount when the returnBackEth was called * @param toAddr The receiver address to return eth * @param operatorAddr The operator address which calls the function * @param fromAddr The address which returnback Eth * @param amount The amount of the eth which was returned */ event ReturnBackEth( address indexed toAddr, address indexed operatorAddr, address indexed fromAddr, uint256 amount ); /** * @notice Event used to log the receiver address, token address, operator address, and amount when the returnBackErc20 was called * @param toAddr The receiver address of the returned erc20 token * @param tokenAddr The token address of the erc20 token * @param operatorAddr The operator address which calls the function * @param fromAddr The address which returnback Erc21 * @param amount The amount of the erc20 token which was returned */ event ReturnBackErc20( address indexed toAddr, address indexed tokenAddr, address operatorAddr, address indexed fromAddr, uint256 amount ); /** * @notice Event used to log the receiver address, token address, operator address, and tokenId when the returnBackErc721 was called * @param toAddr The receiver address of the returned erc721 token * @param tokenAddr The token address of the erc721 token * @param operatorAddr The operator address which calls the function * @param fromAddr The address which returnback Erc721 * @param tokenId The tokenId of the erc721 token which was returned */ event ReturnBackErc721( address indexed toAddr, address indexed tokenAddr, address operatorAddr, address indexed fromAddr, uint256 tokenId ); /** * @notice Event used to log the receiver address, token address, operator address, and tokenId when the returnBackErc1155 was called * @param toAddr The receiver address of the returned erc1155 token * @param tokenAddr The token address of the erc1155 token * @param operatorAddr The operator address which calls the function * @param fromAddr The address which returnback erc1155 * @param tokenId The tokenId of the erc1155 token which was returned * @param amount The amount of the erc1155 tokenId token which was returned */ event ReturnBackErc1155( address indexed toAddr, address indexed tokenAddr, address operatorAddr, address indexed fromAddr, uint256 tokenId, uint256 amount ); /** * @param newColdAddr The cold address after changed * @param oldColdAddr The cold address before changed */ event ChangeColdAddress( address indexed newColdAddr, address indexed oldColdAddr ); /** * @param newOperatorAddr The operator address after changed * @param oldOperatorAddr The operator address before changed */ event ChangeOperatorAddress( address indexed newOperatorAddr, address indexed oldOperatorAddr ); /** * @param operatorAddr The operator address * @param newMinimumEthInput The minimumEthInput after changed * @param oldMinimumEthInput The minimumEthInput before changed */ event ChangeMinEthInput( address indexed operatorAddr, uint256 newMinimumEthInput, uint256 oldMinimumEthInput ); /** * @param newImplAddr The implementation after changed * @param oldImplAddr The implementation before changed */ event ChangeImplAddress( address indexed newImplAddr, address indexed oldImplAddr ); /** * @dev This internal function checks if the current context is the main * EthDepositLogic contract or one of the proxies (delegatecall). * @return bool Whether this is EthDepositLogic or not */ function isEthDepositLogic() internal view returns (bool) { return thisAddress == address(this); } /** * @dev Get an instance of EthDepositLogic for the main contract * @return EthDepositLogic instance (main contract of the system) */ function getEthDepositLogic() internal view returns (EthDepositLogic) { // If this context is EthDepositLogic, use `this`, else use exDepositorAddr return isEthDepositLogic() ? this : EthDepositLogic(thisAddress); } /** * @dev Internal function for getting the implementation address. * This is needed because we don't know whether the current context is * the EthDepositLogic contract or a proxy contract. * @return implementation address of the EthDepositLogic */ function getImplAddress() internal view returns (address payable) { return isEthDepositLogic() ? implementation : EthDepositLogic(thisAddress).implementation(); } /** * @dev Internal function for getting the operation address. * This is needed because we don't know whether the current context is * the EthDepositLogic contract or a proxy contract. * @return operatorAddress of the EthDepositLogic */ function getOperatorAddress() internal view returns (address) { // Use ethDepositLogic to perform logic for finding operation address EthDepositLogic ethDepositLogic = getEthDepositLogic(); address operatorAddr = ethDepositLogic.operatorAddress(); return operatorAddr; } /** * @dev Modifier that will execute internal code block only if the sender is the admin account */ modifier onlyAdmin() { require(msg.sender == adminAddress, "Unauthorized admin"); _; } /** * @dev Modifier that will execute internal code block only if the sender is the operator account */ modifier onlyOperator() { address operatorAddr = getOperatorAddress(); require(msg.sender == operatorAddr, "Unauthorized Operator"); _; } /** * @dev Modifier that will execute internal code block only if not killed */ modifier onlyAlive() { require(getEthDepositLogic().coldAddress() != address(0), "is killed"); _; } /** * @notice check whether the contract be called directly or not * @dev Modifier that will execute internal code block only if called directly * (Not via delegatecall) */ modifier onlyEthDepositLogic() { require(isEthDepositLogic(), "delegatecall is not allowed"); _; } /** * @notice External function for returning Erc20 token to specific address * @dev Should be called by operator account * @param erc20Addr The address of the erc20 token contract * @param to The target address which received the erc20 token * @param amount The amount of the erc20 token to return */ function returnBackErc20( IERC20 erc20Addr, address to, uint256 amount ) external onlyOperator { require(amount != 0, "0 is an invalid amount"); require(to != address(0), "0x0 is an invalid address"); uint256 erc20Balance = erc20Addr.balanceOf(address(this)); require(erc20Balance >= amount, "amount is invalid"); erc20Addr.safeTransfer(to, amount); emit ReturnBackErc20( to, address(erc20Addr), msg.sender, address(this), amount ); } /** * @notice External function for returning ETH to specific address when the Eth is able to deposit * @dev It is also possible our addresses receive funds from another contract's selfdestruct. * @param to The target address to return Eth * @param amount The amount of Eth to return */ function returnBackEth(address payable to, uint256 amount) external onlyOperator { require(amount != 0, "0 is an invalid amount"); require(to != address(0), "0x0 is an invalid address"); uint256 balance = address(this).balance; require(balance >= amount, "amount is invalid"); (bool result, ) = to.call{value: amount}(""); // trasfer eth to specific address require(result, "Could not return back ETH"); emit ReturnBackEth(to, msg.sender, address(this), amount); } /** * @notice External function for returning erc721 token to specific address * @dev Should be called by operator account, * use transferFrom to make sure it can be returned to all specific contract addresses * @param erc721Addr The address of the erc721 token contract * @param to The target address which received the erc721 token * @param tokenId The tokenId of the erc721 token to return */ function returnBackErc721( IERC721 erc721Addr, address to, uint256 tokenId ) external onlyOperator { require(to != address(0), "0x0 is an invalid address"); address owner = erc721Addr.ownerOf(tokenId); require(owner == address(this), "sender is not tokenId owner"); erc721Addr.transferFrom(address(this), to, tokenId); // transfer Erc721 to specific address emit ReturnBackErc721( to, address(erc721Addr), msg.sender, address(this), tokenId ); } /** * @notice External function for returning erc1155 token to specific address * @dev Should be called by operator account * @param erc1155Addr The address of the erc1155 token contract * @param to The target address which received the erc1155 token * @param tokenId The tokenId of the erc1155 token to return * @param amount The amount of the erc1155 tokenId token to return * @param data Additional data with no specified format that can use for own purpose */ function returnBackErc1155( IERC1155 erc1155Addr, address to, uint256 tokenId, uint256 amount, bytes calldata data ) external onlyOperator { require(to != address(0), "0x0 is an invalid address"); uint256 erc1155Balance = erc1155Addr.balanceOf(address(this), tokenId); require(erc1155Balance >= amount, "amount is invalid"); erc1155Addr.safeTransferFrom(address(this), to, tokenId, amount, data); // transfer Erc1155 to specific address emit ReturnBackErc1155( to, address(erc1155Addr), msg.sender, address(this), tokenId, amount ); } /** * @notice External function for changing ColdAddress to newColdAddress * @param newColdAddress The new address for coldAddress */ function changeColdAddress(address payable newColdAddress) external onlyEthDepositLogic onlyAlive onlyAdmin { require(newColdAddress != address(0), "0x0 is an invalid address"); address payable oldColdAddress = coldAddress; coldAddress = newColdAddress; emit ChangeColdAddress(coldAddress, oldColdAddress); } /** * @notice External function for changing the operatorAddress * @param newOperatorAddress The new address for operatorAddress */ function changeOperatorAddress(address newOperatorAddress) external onlyEthDepositLogic onlyAlive onlyAdmin { require(newOperatorAddress != address(0), "0x0 is an invalid address"); address oldOperatorAddress = operatorAddress; operatorAddress = newOperatorAddress; emit ChangeOperatorAddress(operatorAddress, oldOperatorAddress); } /** * @notice External function for changing implementation to newAddress * @dev newImplAddress can be address(0) (to disable extra implementations) * @param newImplAddress The new address for implementation */ function changeImplAddress(address payable newImplAddress) external onlyEthDepositLogic onlyAlive onlyAdmin { require( newImplAddress == address(0) || newImplAddress.isContract(), "implementation must be contract" ); address payable oldImplAddress = implementation; implementation = newImplAddress; emit ChangeImplAddress(implementation, oldImplAddress); } /** * @notice External function for changing minimumEthInput to newMinInput. * @param newMinInput The new minimumEthInput */ function changeMinEthInput(uint256 newMinInput) external onlyEthDepositLogic onlyAlive onlyOperator { uint256 oldMinEthInput = minimumEthInput; minimumEthInput = newMinInput; emit ChangeMinEthInput(msg.sender, minimumEthInput, oldMinEthInput); } /** * @notice External function for changing the status of switchDepositability * @param disableDeposit boolen */ function switchDepositability(bool disableDeposit) external onlyEthDepositLogic onlyAlive onlyAdmin { require( isDisableDeposit != disableDeposit, "nothing to change with isDisableDeposit" ); isDisableDeposit = disableDeposit; } /** * @notice External function for killing the contract * @dev Setting cold address to 0, terminate the forwardingSwitch and changeXXX function. */ function kill() external onlyEthDepositLogic onlyAlive onlyAdmin { coldAddress = payable(address(0)); } /** * @notice forwarding Eth to cold address when there is no calldata * Forward any ETH value to the coldAddress * @dev This receive() type fallback means msg.data will be empty. * Disable deposits when killed. * Security note: Please check the Deposit event every time */ receive() external payable { // Using a simplified version of onlyAlive // since we know that any call here has no calldata // this saves a large amount of gas due to the fact we know // that this can only be called from the EthDepositLogic context require(coldAddress != address(0), "Contract is killed"); require(msg.value >= minimumEthInput, "Amount too small"); require(isDisableDeposit == false, "Not able to Deposit"); (bool success, ) = coldAddress.call{value: msg.value}(""); require(success, "Forwarding funds failed"); emit Deposit(msg.sender, msg.value); } /** * @notice Forward calldata to supplemental implementation address. * @dev This fallback() type fallback will be called when there is some * call data, and this contract is alive. * It forwards to the implementation contract via DELEGATECALL. */ fallback() external payable onlyAlive { address payable toAddr = getImplAddress(); require(toAddr != address(0), "No fallback contract"); (bool success, ) = toAddr.delegatecall(msg.data); // Forword the calldata the the implementation contract require(success, "Fallback contract execution failed"); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.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 functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or 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 { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/draft-IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' 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"); } } }
// SPDX-License-Identifier: MIT // 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); }
// SPDX-License-Identifier: MIT // 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "istanbul", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address payable","name":"coldAddr","type":"address"},{"internalType":"address","name":"adminAddr","type":"address"},{"internalType":"address","name":"operatorAddr","type":"address"},{"internalType":"uint256","name":"miniEthInput","type":"uint256"},{"internalType":"bool","name":"isDisableDepo","type":"bool"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newColdAddr","type":"address"},{"indexed":true,"internalType":"address","name":"oldColdAddr","type":"address"}],"name":"ChangeColdAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newImplAddr","type":"address"},{"indexed":true,"internalType":"address","name":"oldImplAddr","type":"address"}],"name":"ChangeImplAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operatorAddr","type":"address"},{"indexed":false,"internalType":"uint256","name":"newMinimumEthInput","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"oldMinimumEthInput","type":"uint256"}],"name":"ChangeMinEthInput","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newOperatorAddr","type":"address"},{"indexed":true,"internalType":"address","name":"oldOperatorAddr","type":"address"}],"name":"ChangeOperatorAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"proxyReceiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"toAddr","type":"address"},{"indexed":true,"internalType":"address","name":"tokenAddr","type":"address"},{"indexed":false,"internalType":"address","name":"operatorAddr","type":"address"},{"indexed":true,"internalType":"address","name":"fromAddr","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ReturnBackErc1155","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"toAddr","type":"address"},{"indexed":true,"internalType":"address","name":"tokenAddr","type":"address"},{"indexed":false,"internalType":"address","name":"operatorAddr","type":"address"},{"indexed":true,"internalType":"address","name":"fromAddr","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ReturnBackErc20","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"toAddr","type":"address"},{"indexed":true,"internalType":"address","name":"tokenAddr","type":"address"},{"indexed":false,"internalType":"address","name":"operatorAddr","type":"address"},{"indexed":true,"internalType":"address","name":"fromAddr","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ReturnBackErc721","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"toAddr","type":"address"},{"indexed":true,"internalType":"address","name":"operatorAddr","type":"address"},{"indexed":true,"internalType":"address","name":"fromAddr","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ReturnBackEth","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"adminAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"newColdAddress","type":"address"}],"name":"changeColdAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"newImplAddress","type":"address"}],"name":"changeImplAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMinInput","type":"uint256"}],"name":"changeMinEthInput","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOperatorAddress","type":"address"}],"name":"changeOperatorAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"coldAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"implementation","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isDisableDeposit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"kill","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minimumEthInput","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operatorAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC1155","name":"erc1155Addr","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"returnBackErc1155","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"erc20Addr","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"returnBackErc20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC721","name":"erc721Addr","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"returnBackErc721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"returnBackEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"disableDeposit","type":"bool"}],"name":"switchDepositability","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60c06040523480156200001157600080fd5b50604051620020763803806200207683398101604081905262000034916200017b565b6001600160a01b0385166200007f5760405162461bcd60e51b815260206004820152601960248201526000805160206200205683398151915260448201526064015b60405180910390fd5b6001600160a01b038416620000c65760405162461bcd60e51b8152602060048201526019602482015260008051602062002056833981519152604482015260640162000076565b6001600160a01b0383166200010d5760405162461bcd60e51b8152602060048201526019602482015260008051602062002056833981519152604482015260640162000076565b600080546001600160a01b03199081166001600160a01b03978816179091559385166080526003805490941692909416919091179091556001553060a0526002805460ff1916911515919091179055620001f3565b6001600160a01b03811681146200017857600080fd5b50565b600080600080600060a086880312156200019457600080fd5b8551620001a18162000162565b6020870151909550620001b48162000162565b6040870151909450620001c78162000162565b6060870151608088015191945092508015158114620001e557600080fd5b809150509295509295909350565b60805160a051611e0c6200024a600039600081816106a5015281816106dc015261169f01526000818161067201528181610b4101528181610c50015281816110f40152818161126e01526113e20152611e0c6000f3fe6080604052600436106100f75760003560e01c80637972d8a31161008a578063c3c54a1f11610059578063c3c54a1f14610600578063cb56d18e14610620578063f5e3b06e14610640578063fc6f946814610660576102b6565b80637972d8a314610572578063ab413f1c14610596578063bb0392a4146105b6578063bdbe8a26146105e0576102b6565b80635c60da1b116100c65780635c60da1b146104ed5780636296aa3f14610512578063662c3b55146105325780636c2fc18e14610552576102b6565b8063127effb21461045b5780631a85038f14610498578063237b79ff146104b857806341c0e1b5146104d8576102b6565b366102b6576000546001600160a01b031661014e5760405162461bcd60e51b815260206004820152601260248201527110dbdb9d1c9858dd081a5cc81ada5b1b195960721b60448201526064015b60405180910390fd5b6001543410156101935760405162461bcd60e51b815260206004820152601060248201526f105b5bdd5b9d081d1bdbc81cdb585b1b60821b6044820152606401610145565b60025460ff16156101dc5760405162461bcd60e51b8152602060048201526013602482015272139bdd0818589b19481d1bc811195c1bdcda5d606a1b6044820152606401610145565b600080546040516001600160a01b039091169034908381818185875af1925050503d8060008114610229576040519150601f19603f3d011682016040523d82523d6000602084013e61022e565b606091505b505090508061027f5760405162461bcd60e51b815260206004820152601760248201527f466f7277617264696e672066756e6473206661696c65640000000000000000006044820152606401610145565b60405134815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9060200160405180910390a2005b60006102c0610694565b6001600160a01b031663ab413f1c6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156102fd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103219190611a15565b6001600160a01b0316036103475760405162461bcd60e51b815260040161014590611a32565b60006103516106cc565b90506001600160a01b0381166103a05760405162461bcd60e51b8152602060048201526014602482015273139bc819985b1b189858dac818dbdb9d1c9858dd60621b6044820152606401610145565b6000816001600160a01b03166000366040516103bd929190611a55565b600060405180830381855af49150503d80600081146103f8576040519150601f19603f3d011682016040523d82523d6000602084013e6103fd565b606091505b50509050806104595760405162461bcd60e51b815260206004820152602260248201527f46616c6c6261636b20636f6e747261637420657865637574696f6e206661696c604482015261195960f21b6064820152608401610145565b005b34801561046757600080fd5b5060035461047b906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156104a457600080fd5b506104596104b3366004611a65565b610776565b3480156104c457600080fd5b506104596104d3366004611a7e565b6108a7565b3480156104e457600080fd5b50610459610a81565b3480156104f957600080fd5b5060025461047b9061010090046001600160a01b031681565b34801561051e57600080fd5b5061045961052d366004611abf565b610b90565b34801561053e57600080fd5b5061045961054d366004611adc565b610d02565b34801561055e57600080fd5b5061045961056d366004611a7e565b610ea8565b34801561057e57600080fd5b5061058860015481565b60405190815260200161048f565b3480156105a257600080fd5b5060005461047b906001600160a01b031681565b3480156105c257600080fd5b506002546105d09060ff1681565b604051901515815260200161048f565b3480156105ec57600080fd5b506104596105fb366004611b16565b611034565b34801561060c57600080fd5b5061045961061b366004611abf565b6111ae565b34801561062c57600080fd5b5061045961063b366004611abf565b611322565b34801561064c57600080fd5b5061045961065b366004611b33565b6114ed565b34801561066c57600080fd5b5061047b7f000000000000000000000000000000000000000000000000000000000000000081565b600061069e61169d565b6106c757507f000000000000000000000000000000000000000000000000000000000000000090565b503090565b60006106d661169d565b610761577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610738573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061075c9190611a15565b905090565b5060025461010090046001600160a01b031690565b61077e61169d565b61079a5760405162461bcd60e51b815260040161014590611bdd565b60006107a4610694565b6001600160a01b031663ab413f1c6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156107e1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108059190611a15565b6001600160a01b03160361082b5760405162461bcd60e51b815260040161014590611a32565b60006108356116cc565b9050336001600160a01b0382161461085f5760405162461bcd60e51b815260040161014590611c14565b6001805490839055604080518481526020810183905233917f5a0d48a2b268120194c484b970cbf730e0001289b9193a79202dc0c870c17acc910160405180910390a2505050565b60006108b16116cc565b9050336001600160a01b038216146108db5760405162461bcd60e51b815260040161014590611c14565b6001600160a01b0383166109015760405162461bcd60e51b815260040161014590611c43565b6040516331a9108f60e11b8152600481018390526000906001600160a01b03861690636352211e90602401602060405180830381865afa158015610949573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061096d9190611a15565b90506001600160a01b03811630146109c75760405162461bcd60e51b815260206004820152601b60248201527f73656e646572206973206e6f7420746f6b656e4964206f776e657200000000006044820152606401610145565b6040516323b872dd60e01b81523060048201526001600160a01b038581166024830152604482018590528616906323b872dd90606401600060405180830381600087803b158015610a1757600080fd5b505af1158015610a2b573d6000803e3d6000fd5b505060408051338152602081018790523093506001600160a01b0389811693508816917f5ddb8b9e0d76da174491e2bdbf7d90407e21eb412970c5478254d52d7826783991015b60405180910390a45050505050565b610a8961169d565b610aa55760405162461bcd60e51b815260040161014590611bdd565b6000610aaf610694565b6001600160a01b031663ab413f1c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610aec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b109190611a15565b6001600160a01b031603610b365760405162461bcd60e51b815260040161014590611a32565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610b7e5760405162461bcd60e51b815260040161014590611c7a565b600080546001600160a01b0319169055565b610b9861169d565b610bb45760405162461bcd60e51b815260040161014590611bdd565b6000610bbe610694565b6001600160a01b031663ab413f1c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610bfb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c1f9190611a15565b6001600160a01b031603610c455760405162461bcd60e51b815260040161014590611a32565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c8d5760405162461bcd60e51b815260040161014590611c7a565b6001600160a01b038116610cb35760405162461bcd60e51b815260040161014590611c43565b600080546001600160a01b031981166001600160a01b03848116918217845560405192169283927f70f23fbc25c6e3b83e63ab8a19ac40c694dddf3fdf4d5aeace57bcb018929e419190a35050565b6000610d0c6116cc565b9050336001600160a01b03821614610d365760405162461bcd60e51b815260040161014590611c14565b81600003610d7f5760405162461bcd60e51b81526020600482015260166024820152750c081a5cc8185b881a5b9d985b1a5908185b5bdd5b9d60521b6044820152606401610145565b6001600160a01b038316610da55760405162461bcd60e51b815260040161014590611c43565b4782811015610dc65760405162461bcd60e51b815260040161014590611ca6565b6000846001600160a01b03168460405160006040518083038185875af1925050503d8060008114610e13576040519150601f19603f3d011682016040523d82523d6000602084013e610e18565b606091505b5050905080610e695760405162461bcd60e51b815260206004820152601960248201527f436f756c64206e6f742072657475726e206261636b20455448000000000000006044820152606401610145565b604051848152309033906001600160a01b038816907f5f8ca1e0cbe4742ca9256bfb62ceae9fc3408baa420918d969947e5c9486ef5290602001610a72565b6000610eb26116cc565b9050336001600160a01b03821614610edc5760405162461bcd60e51b815260040161014590611c14565b81600003610f255760405162461bcd60e51b81526020600482015260166024820152750c081a5cc8185b881a5b9d985b1a5908185b5bdd5b9d60521b6044820152606401610145565b6001600160a01b038316610f4b5760405162461bcd60e51b815260040161014590611c43565b6040516370a0823160e01b81523060048201526000906001600160a01b038616906370a0823190602401602060405180830381865afa158015610f92573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fb69190611cd1565b905082811015610fd85760405162461bcd60e51b815260040161014590611ca6565b610fec6001600160a01b0386168585611744565b604080513381526020810185905230916001600160a01b0388811692908816917fe079ba49aadde83b2aaa4e713bfcc226cd5f935cebd8d61b93254a50c78787b39101610a72565b61103c61169d565b6110585760405162461bcd60e51b815260040161014590611bdd565b6000611062610694565b6001600160a01b031663ab413f1c6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561109f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110c39190611a15565b6001600160a01b0316036110e95760405162461bcd60e51b815260040161014590611a32565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146111315760405162461bcd60e51b815260040161014590611c7a565b60025481151560ff90911615150361119b5760405162461bcd60e51b815260206004820152602760248201527f6e6f7468696e6720746f206368616e6765207769746820697344697361626c6560448201526611195c1bdcda5d60ca1b6064820152608401610145565b6002805460ff1916911515919091179055565b6111b661169d565b6111d25760405162461bcd60e51b815260040161014590611bdd565b60006111dc610694565b6001600160a01b031663ab413f1c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611219573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061123d9190611a15565b6001600160a01b0316036112635760405162461bcd60e51b815260040161014590611a32565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146112ab5760405162461bcd60e51b815260040161014590611c7a565b6001600160a01b0381166112d15760405162461bcd60e51b815260040161014590611c43565b600380546001600160a01b038381166001600160a01b03198316811790935560405191169182917f70801db00a35bb6fcc99ca3b3a4fd44912a7d7561a424c49b950c4989ab216d690600090a35050565b61132a61169d565b6113465760405162461bcd60e51b815260040161014590611bdd565b6000611350610694565b6001600160a01b031663ab413f1c6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561138d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113b19190611a15565b6001600160a01b0316036113d75760405162461bcd60e51b815260040161014590611a32565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461141f5760405162461bcd60e51b815260040161014590611c7a565b6001600160a01b038116158061143e57506001600160a01b0381163b15155b61148a5760405162461bcd60e51b815260206004820152601f60248201527f696d706c656d656e746174696f6e206d75737420626520636f6e7472616374006044820152606401610145565b600280546001600160a01b03838116610100908102610100600160a81b031984161793849055604051928190048216938493919004909116907f52443f3ca7be96c0986c8d18d8e2f05adedfbc0ee18ffdd597ed60dafc8fd19b90600090a35050565b60006114f76116cc565b9050336001600160a01b038216146115215760405162461bcd60e51b815260040161014590611c14565b6001600160a01b0386166115475760405162461bcd60e51b815260040161014590611c43565b604051627eeac760e11b8152306004820152602481018690526000906001600160a01b0389169062fdd58e90604401602060405180830381865afa158015611593573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115b79190611cd1565b9050848110156115d95760405162461bcd60e51b815260040161014590611ca6565b604051637921219560e11b81526001600160a01b0389169063f242432a9061160f9030908b908b908b908b908b90600401611cea565b600060405180830381600087803b15801561162957600080fd5b505af115801561163d573d6000803e3d6000fd5b505060408051338152602081018a90529081018890523092506001600160a01b038b811692508a16907f364306d40e0bc1bb412cfd6a8ff384884c5bb24e094fc698ee053929db6ab0b79060600160405180910390a45050505050505050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316301490565b6000806116d7610694565b90506000816001600160a01b031663127effb26040518163ffffffff1660e01b8152600401602060405180830381865afa158015611719573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061173d9190611a15565b9392505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261179690849061179b565b505050565b60006117f0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661186d9092919063ffffffff16565b805190915015611796578080602001905181019061180e9190611d46565b6117965760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610145565b606061187c8484600085611884565b949350505050565b6060824710156118e55760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610145565b600080866001600160a01b031685876040516119019190611d87565b60006040518083038185875af1925050503d806000811461193e576040519150601f19603f3d011682016040523d82523d6000602084013e611943565b606091505b50915091506119548783838761195f565b979650505050505050565b606083156119ce5782516000036119c7576001600160a01b0385163b6119c75760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610145565b508161187c565b61187c83838151156119e35781518083602001fd5b8060405162461bcd60e51b81526004016101459190611da3565b6001600160a01b0381168114611a1257600080fd5b50565b600060208284031215611a2757600080fd5b815161173d816119fd565b6020808252600990820152681a5cc81ada5b1b195960ba1b604082015260600190565b8183823760009101908152919050565b600060208284031215611a7757600080fd5b5035919050565b600080600060608486031215611a9357600080fd5b8335611a9e816119fd565b92506020840135611aae816119fd565b929592945050506040919091013590565b600060208284031215611ad157600080fd5b813561173d816119fd565b60008060408385031215611aef57600080fd5b8235611afa816119fd565b946020939093013593505050565b8015158114611a1257600080fd5b600060208284031215611b2857600080fd5b813561173d81611b08565b60008060008060008060a08789031215611b4c57600080fd5b8635611b57816119fd565b95506020870135611b67816119fd565b94506040870135935060608701359250608087013567ffffffffffffffff80821115611b9257600080fd5b818901915089601f830112611ba657600080fd5b813581811115611bb557600080fd5b8a6020828501011115611bc757600080fd5b6020830194508093505050509295509295509295565b6020808252601b908201527f64656c656761746563616c6c206973206e6f7420616c6c6f7765640000000000604082015260600190565b6020808252601590820152742ab730baba3437b934bd32b21027b832b930ba37b960591b604082015260600190565b60208082526019908201527f30783020697320616e20696e76616c6964206164647265737300000000000000604082015260600190565b6020808252601290820152712ab730baba3437b934bd32b21030b236b4b760711b604082015260600190565b602080825260119082015270185b5bdd5b9d081a5cc81a5b9d985b1a59607a1b604082015260600190565b600060208284031215611ce357600080fd5b5051919050565b6001600160a01b03878116825286166020820152604081018590526060810184905260a06080820181905281018290526000828460c0840137600060c0848401015260c0601f19601f8501168301019050979650505050505050565b600060208284031215611d5857600080fd5b815161173d81611b08565b60005b83811015611d7e578181015183820152602001611d66565b50506000910152565b60008251611d99818460208701611d63565b9190910192915050565b6020815260008251806020840152611dc2816040850160208701611d63565b601f01601f1916919091016040019291505056fea2646970667358221220742c353a494bca237d61f69c025eb4b7e2058f42d2078f3619b775bfa82ac61164736f6c6343000814003330783020697320616e20696e76616c69642061646472657373000000000000000000000000000000000000002aaaa41204775d158f993007b6b710f319ec2e5e00000000000000000000000045c2673794e9d3729e87ce4ce27ba47b97312958000000000000000000000000b00850c869ef98370ba9b2942e429acfc8b5df0200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106100f75760003560e01c80637972d8a31161008a578063c3c54a1f11610059578063c3c54a1f14610600578063cb56d18e14610620578063f5e3b06e14610640578063fc6f946814610660576102b6565b80637972d8a314610572578063ab413f1c14610596578063bb0392a4146105b6578063bdbe8a26146105e0576102b6565b80635c60da1b116100c65780635c60da1b146104ed5780636296aa3f14610512578063662c3b55146105325780636c2fc18e14610552576102b6565b8063127effb21461045b5780631a85038f14610498578063237b79ff146104b857806341c0e1b5146104d8576102b6565b366102b6576000546001600160a01b031661014e5760405162461bcd60e51b815260206004820152601260248201527110dbdb9d1c9858dd081a5cc81ada5b1b195960721b60448201526064015b60405180910390fd5b6001543410156101935760405162461bcd60e51b815260206004820152601060248201526f105b5bdd5b9d081d1bdbc81cdb585b1b60821b6044820152606401610145565b60025460ff16156101dc5760405162461bcd60e51b8152602060048201526013602482015272139bdd0818589b19481d1bc811195c1bdcda5d606a1b6044820152606401610145565b600080546040516001600160a01b039091169034908381818185875af1925050503d8060008114610229576040519150601f19603f3d011682016040523d82523d6000602084013e61022e565b606091505b505090508061027f5760405162461bcd60e51b815260206004820152601760248201527f466f7277617264696e672066756e6473206661696c65640000000000000000006044820152606401610145565b60405134815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9060200160405180910390a2005b60006102c0610694565b6001600160a01b031663ab413f1c6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156102fd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103219190611a15565b6001600160a01b0316036103475760405162461bcd60e51b815260040161014590611a32565b60006103516106cc565b90506001600160a01b0381166103a05760405162461bcd60e51b8152602060048201526014602482015273139bc819985b1b189858dac818dbdb9d1c9858dd60621b6044820152606401610145565b6000816001600160a01b03166000366040516103bd929190611a55565b600060405180830381855af49150503d80600081146103f8576040519150601f19603f3d011682016040523d82523d6000602084013e6103fd565b606091505b50509050806104595760405162461bcd60e51b815260206004820152602260248201527f46616c6c6261636b20636f6e747261637420657865637574696f6e206661696c604482015261195960f21b6064820152608401610145565b005b34801561046757600080fd5b5060035461047b906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156104a457600080fd5b506104596104b3366004611a65565b610776565b3480156104c457600080fd5b506104596104d3366004611a7e565b6108a7565b3480156104e457600080fd5b50610459610a81565b3480156104f957600080fd5b5060025461047b9061010090046001600160a01b031681565b34801561051e57600080fd5b5061045961052d366004611abf565b610b90565b34801561053e57600080fd5b5061045961054d366004611adc565b610d02565b34801561055e57600080fd5b5061045961056d366004611a7e565b610ea8565b34801561057e57600080fd5b5061058860015481565b60405190815260200161048f565b3480156105a257600080fd5b5060005461047b906001600160a01b031681565b3480156105c257600080fd5b506002546105d09060ff1681565b604051901515815260200161048f565b3480156105ec57600080fd5b506104596105fb366004611b16565b611034565b34801561060c57600080fd5b5061045961061b366004611abf565b6111ae565b34801561062c57600080fd5b5061045961063b366004611abf565b611322565b34801561064c57600080fd5b5061045961065b366004611b33565b6114ed565b34801561066c57600080fd5b5061047b7f00000000000000000000000045c2673794e9d3729e87ce4ce27ba47b9731295881565b600061069e61169d565b6106c757507f000000000000000000000000e773ae5f8b6713bacd7e7908ed85c513b771b4c490565b503090565b60006106d661169d565b610761577f000000000000000000000000e773ae5f8b6713bacd7e7908ed85c513b771b4c46001600160a01b0316635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610738573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061075c9190611a15565b905090565b5060025461010090046001600160a01b031690565b61077e61169d565b61079a5760405162461bcd60e51b815260040161014590611bdd565b60006107a4610694565b6001600160a01b031663ab413f1c6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156107e1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108059190611a15565b6001600160a01b03160361082b5760405162461bcd60e51b815260040161014590611a32565b60006108356116cc565b9050336001600160a01b0382161461085f5760405162461bcd60e51b815260040161014590611c14565b6001805490839055604080518481526020810183905233917f5a0d48a2b268120194c484b970cbf730e0001289b9193a79202dc0c870c17acc910160405180910390a2505050565b60006108b16116cc565b9050336001600160a01b038216146108db5760405162461bcd60e51b815260040161014590611c14565b6001600160a01b0383166109015760405162461bcd60e51b815260040161014590611c43565b6040516331a9108f60e11b8152600481018390526000906001600160a01b03861690636352211e90602401602060405180830381865afa158015610949573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061096d9190611a15565b90506001600160a01b03811630146109c75760405162461bcd60e51b815260206004820152601b60248201527f73656e646572206973206e6f7420746f6b656e4964206f776e657200000000006044820152606401610145565b6040516323b872dd60e01b81523060048201526001600160a01b038581166024830152604482018590528616906323b872dd90606401600060405180830381600087803b158015610a1757600080fd5b505af1158015610a2b573d6000803e3d6000fd5b505060408051338152602081018790523093506001600160a01b0389811693508816917f5ddb8b9e0d76da174491e2bdbf7d90407e21eb412970c5478254d52d7826783991015b60405180910390a45050505050565b610a8961169d565b610aa55760405162461bcd60e51b815260040161014590611bdd565b6000610aaf610694565b6001600160a01b031663ab413f1c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610aec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b109190611a15565b6001600160a01b031603610b365760405162461bcd60e51b815260040161014590611a32565b336001600160a01b037f00000000000000000000000045c2673794e9d3729e87ce4ce27ba47b973129581614610b7e5760405162461bcd60e51b815260040161014590611c7a565b600080546001600160a01b0319169055565b610b9861169d565b610bb45760405162461bcd60e51b815260040161014590611bdd565b6000610bbe610694565b6001600160a01b031663ab413f1c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610bfb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c1f9190611a15565b6001600160a01b031603610c455760405162461bcd60e51b815260040161014590611a32565b336001600160a01b037f00000000000000000000000045c2673794e9d3729e87ce4ce27ba47b973129581614610c8d5760405162461bcd60e51b815260040161014590611c7a565b6001600160a01b038116610cb35760405162461bcd60e51b815260040161014590611c43565b600080546001600160a01b031981166001600160a01b03848116918217845560405192169283927f70f23fbc25c6e3b83e63ab8a19ac40c694dddf3fdf4d5aeace57bcb018929e419190a35050565b6000610d0c6116cc565b9050336001600160a01b03821614610d365760405162461bcd60e51b815260040161014590611c14565b81600003610d7f5760405162461bcd60e51b81526020600482015260166024820152750c081a5cc8185b881a5b9d985b1a5908185b5bdd5b9d60521b6044820152606401610145565b6001600160a01b038316610da55760405162461bcd60e51b815260040161014590611c43565b4782811015610dc65760405162461bcd60e51b815260040161014590611ca6565b6000846001600160a01b03168460405160006040518083038185875af1925050503d8060008114610e13576040519150601f19603f3d011682016040523d82523d6000602084013e610e18565b606091505b5050905080610e695760405162461bcd60e51b815260206004820152601960248201527f436f756c64206e6f742072657475726e206261636b20455448000000000000006044820152606401610145565b604051848152309033906001600160a01b038816907f5f8ca1e0cbe4742ca9256bfb62ceae9fc3408baa420918d969947e5c9486ef5290602001610a72565b6000610eb26116cc565b9050336001600160a01b03821614610edc5760405162461bcd60e51b815260040161014590611c14565b81600003610f255760405162461bcd60e51b81526020600482015260166024820152750c081a5cc8185b881a5b9d985b1a5908185b5bdd5b9d60521b6044820152606401610145565b6001600160a01b038316610f4b5760405162461bcd60e51b815260040161014590611c43565b6040516370a0823160e01b81523060048201526000906001600160a01b038616906370a0823190602401602060405180830381865afa158015610f92573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fb69190611cd1565b905082811015610fd85760405162461bcd60e51b815260040161014590611ca6565b610fec6001600160a01b0386168585611744565b604080513381526020810185905230916001600160a01b0388811692908816917fe079ba49aadde83b2aaa4e713bfcc226cd5f935cebd8d61b93254a50c78787b39101610a72565b61103c61169d565b6110585760405162461bcd60e51b815260040161014590611bdd565b6000611062610694565b6001600160a01b031663ab413f1c6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561109f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110c39190611a15565b6001600160a01b0316036110e95760405162461bcd60e51b815260040161014590611a32565b336001600160a01b037f00000000000000000000000045c2673794e9d3729e87ce4ce27ba47b9731295816146111315760405162461bcd60e51b815260040161014590611c7a565b60025481151560ff90911615150361119b5760405162461bcd60e51b815260206004820152602760248201527f6e6f7468696e6720746f206368616e6765207769746820697344697361626c6560448201526611195c1bdcda5d60ca1b6064820152608401610145565b6002805460ff1916911515919091179055565b6111b661169d565b6111d25760405162461bcd60e51b815260040161014590611bdd565b60006111dc610694565b6001600160a01b031663ab413f1c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611219573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061123d9190611a15565b6001600160a01b0316036112635760405162461bcd60e51b815260040161014590611a32565b336001600160a01b037f00000000000000000000000045c2673794e9d3729e87ce4ce27ba47b9731295816146112ab5760405162461bcd60e51b815260040161014590611c7a565b6001600160a01b0381166112d15760405162461bcd60e51b815260040161014590611c43565b600380546001600160a01b038381166001600160a01b03198316811790935560405191169182917f70801db00a35bb6fcc99ca3b3a4fd44912a7d7561a424c49b950c4989ab216d690600090a35050565b61132a61169d565b6113465760405162461bcd60e51b815260040161014590611bdd565b6000611350610694565b6001600160a01b031663ab413f1c6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561138d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113b19190611a15565b6001600160a01b0316036113d75760405162461bcd60e51b815260040161014590611a32565b336001600160a01b037f00000000000000000000000045c2673794e9d3729e87ce4ce27ba47b97312958161461141f5760405162461bcd60e51b815260040161014590611c7a565b6001600160a01b038116158061143e57506001600160a01b0381163b15155b61148a5760405162461bcd60e51b815260206004820152601f60248201527f696d706c656d656e746174696f6e206d75737420626520636f6e7472616374006044820152606401610145565b600280546001600160a01b03838116610100908102610100600160a81b031984161793849055604051928190048216938493919004909116907f52443f3ca7be96c0986c8d18d8e2f05adedfbc0ee18ffdd597ed60dafc8fd19b90600090a35050565b60006114f76116cc565b9050336001600160a01b038216146115215760405162461bcd60e51b815260040161014590611c14565b6001600160a01b0386166115475760405162461bcd60e51b815260040161014590611c43565b604051627eeac760e11b8152306004820152602481018690526000906001600160a01b0389169062fdd58e90604401602060405180830381865afa158015611593573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115b79190611cd1565b9050848110156115d95760405162461bcd60e51b815260040161014590611ca6565b604051637921219560e11b81526001600160a01b0389169063f242432a9061160f9030908b908b908b908b908b90600401611cea565b600060405180830381600087803b15801561162957600080fd5b505af115801561163d573d6000803e3d6000fd5b505060408051338152602081018a90529081018890523092506001600160a01b038b811692508a16907f364306d40e0bc1bb412cfd6a8ff384884c5bb24e094fc698ee053929db6ab0b79060600160405180910390a45050505050505050565b7f000000000000000000000000e773ae5f8b6713bacd7e7908ed85c513b771b4c46001600160a01b0316301490565b6000806116d7610694565b90506000816001600160a01b031663127effb26040518163ffffffff1660e01b8152600401602060405180830381865afa158015611719573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061173d9190611a15565b9392505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261179690849061179b565b505050565b60006117f0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661186d9092919063ffffffff16565b805190915015611796578080602001905181019061180e9190611d46565b6117965760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610145565b606061187c8484600085611884565b949350505050565b6060824710156118e55760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610145565b600080866001600160a01b031685876040516119019190611d87565b60006040518083038185875af1925050503d806000811461193e576040519150601f19603f3d011682016040523d82523d6000602084013e611943565b606091505b50915091506119548783838761195f565b979650505050505050565b606083156119ce5782516000036119c7576001600160a01b0385163b6119c75760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610145565b508161187c565b61187c83838151156119e35781518083602001fd5b8060405162461bcd60e51b81526004016101459190611da3565b6001600160a01b0381168114611a1257600080fd5b50565b600060208284031215611a2757600080fd5b815161173d816119fd565b6020808252600990820152681a5cc81ada5b1b195960ba1b604082015260600190565b8183823760009101908152919050565b600060208284031215611a7757600080fd5b5035919050565b600080600060608486031215611a9357600080fd5b8335611a9e816119fd565b92506020840135611aae816119fd565b929592945050506040919091013590565b600060208284031215611ad157600080fd5b813561173d816119fd565b60008060408385031215611aef57600080fd5b8235611afa816119fd565b946020939093013593505050565b8015158114611a1257600080fd5b600060208284031215611b2857600080fd5b813561173d81611b08565b60008060008060008060a08789031215611b4c57600080fd5b8635611b57816119fd565b95506020870135611b67816119fd565b94506040870135935060608701359250608087013567ffffffffffffffff80821115611b9257600080fd5b818901915089601f830112611ba657600080fd5b813581811115611bb557600080fd5b8a6020828501011115611bc757600080fd5b6020830194508093505050509295509295509295565b6020808252601b908201527f64656c656761746563616c6c206973206e6f7420616c6c6f7765640000000000604082015260600190565b6020808252601590820152742ab730baba3437b934bd32b21027b832b930ba37b960591b604082015260600190565b60208082526019908201527f30783020697320616e20696e76616c6964206164647265737300000000000000604082015260600190565b6020808252601290820152712ab730baba3437b934bd32b21030b236b4b760711b604082015260600190565b602080825260119082015270185b5bdd5b9d081a5cc81a5b9d985b1a59607a1b604082015260600190565b600060208284031215611ce357600080fd5b5051919050565b6001600160a01b03878116825286166020820152604081018590526060810184905260a06080820181905281018290526000828460c0840137600060c0848401015260c0601f19601f8501168301019050979650505050505050565b600060208284031215611d5857600080fd5b815161173d81611b08565b60005b83811015611d7e578181015183820152602001611d66565b50506000910152565b60008251611d99818460208701611d63565b9190910192915050565b6020815260008251806020840152611dc2816040850160208701611d63565b601f01601f1916919091016040019291505056fea2646970667358221220742c353a494bca237d61f69c025eb4b7e2058f42d2078f3619b775bfa82ac61164736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000002aaaa41204775d158f993007b6b710f319ec2e5e00000000000000000000000045c2673794e9d3729e87ce4ce27ba47b97312958000000000000000000000000b00850c869ef98370ba9b2942e429acfc8b5df0200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : coldAddr (address): 0x2AaAa41204775D158F993007B6B710f319Ec2E5E
Arg [1] : adminAddr (address): 0x45c2673794E9D3729e87CE4Ce27ba47b97312958
Arg [2] : operatorAddr (address): 0xB00850c869Ef98370ba9b2942E429ACfC8b5Df02
Arg [3] : miniEthInput (uint256): 0
Arg [4] : isDisableDepo (bool): False
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000002aaaa41204775d158f993007b6b710f319ec2e5e
Arg [1] : 00000000000000000000000045c2673794e9d3729e87ce4ce27ba47b97312958
Arg [2] : 000000000000000000000000b00850c869ef98370ba9b2942e429acfc8b5df02
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.