Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 816 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Batch Swap With ... | 17412662 | 519 days ago | IN | 0.053 ETH | 0.0050509 | ||||
Batch Swap With ... | 17134905 | 558 days ago | IN | 0.063 ETH | 0.01564349 | ||||
Batch Swap With ... | 17132205 | 558 days ago | IN | 0.0886 ETH | 0.06282441 | ||||
Batch Swap With ... | 17132202 | 558 days ago | IN | 0.0098 ETH | 0.01251544 | ||||
Batch Swap With ... | 17100219 | 563 days ago | IN | 0.023899 ETH | 0.0116414 | ||||
Batch Swap With ... | 17028607 | 573 days ago | IN | 1.5915 ETH | 0.05852079 | ||||
Batch Swap With ... | 17028605 | 573 days ago | IN | 0.8253 ETH | 0.02992961 | ||||
Batch Swap With ... | 17028603 | 573 days ago | IN | 1.49128 ETH | 0.0601405 | ||||
Batch Swap With ... | 17026611 | 573 days ago | IN | 0.197 ETH | 0.02819587 | ||||
Batch Swap With ... | 17025811 | 574 days ago | IN | 0.0481 ETH | 0.02020457 | ||||
Batch Swap With ... | 17022523 | 574 days ago | IN | 0.022 ETH | 0.01254616 | ||||
Batch Swap With ... | 16951318 | 584 days ago | IN | 0.0455 ETH | 0.01882957 | ||||
Batch Swap With ... | 16923160 | 588 days ago | IN | 4.414097 ETH | 0.0503162 | ||||
Batch Swap With ... | 16923145 | 588 days ago | IN | 4.544329 ETH | 0.06682225 | ||||
Batch Swap With ... | 16914097 | 589 days ago | IN | 0.0104 ETH | 0.00725935 | ||||
Batch Swap With ... | 16907613 | 590 days ago | IN | 0.0096 ETH | 0.00390669 | ||||
Batch Swap With ... | 16907486 | 590 days ago | IN | 0.0198 ETH | 0.00665672 | ||||
Batch Swap With ... | 16900794 | 591 days ago | IN | 1.139899 ETH | 0.04024647 | ||||
Batch Swap With ... | 16900376 | 591 days ago | IN | 1.094755 ETH | 0.05601677 | ||||
Batch Swap With ... | 16900342 | 591 days ago | IN | 0.89985 ETH | 0.05038544 | ||||
Batch Swap With ... | 16900331 | 591 days ago | IN | 0.9763 ETH | 0.04995096 | ||||
Batch Swap With ... | 16871872 | 595 days ago | IN | 0.3222 ETH | 0.04176532 | ||||
Batch Swap With ... | 16871865 | 595 days ago | IN | 0.23024 ETH | 0.04076684 | ||||
Batch Swap With ... | 16871851 | 595 days ago | IN | 0.21409999 ETH | 0.00158204 | ||||
Batch Swap With ... | 16871844 | 595 days ago | IN | 0.20924 ETH | 0.04241353 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
17412662 | 519 days ago | 0.053 ETH | ||||
17134905 | 558 days ago | 0.033 ETH | ||||
17134905 | 558 days ago | 0.03 ETH | ||||
17132205 | 558 days ago | 0.0098 ETH | ||||
17132205 | 558 days ago | 0.0098 ETH | ||||
17132205 | 558 days ago | 0.0688 ETH | ||||
17132205 | 558 days ago | 0.0099 ETH | ||||
17132205 | 558 days ago | 0.0099 ETH | ||||
17132202 | 558 days ago | 0.0098 ETH | ||||
17100219 | 563 days ago | 0.011999 ETH | ||||
17100219 | 563 days ago | 0.0119 ETH | ||||
17028607 | 573 days ago | 1.5115 ETH | ||||
17028607 | 573 days ago | 0.08 ETH | ||||
17028605 | 573 days ago | 0.7473 ETH | ||||
17028605 | 573 days ago | 0.078 ETH | ||||
17028603 | 573 days ago | 1.33729 ETH | ||||
17028603 | 573 days ago | 0.077 ETH | ||||
17028603 | 573 days ago | 0.07699 ETH | ||||
17026611 | 573 days ago | 0.131 ETH | ||||
17026611 | 573 days ago | 0.066 ETH | ||||
17025811 | 574 days ago | 0.016 ETH | ||||
17025811 | 574 days ago | 0.0154 ETH | ||||
17025811 | 574 days ago | 0.0167 ETH | ||||
17022523 | 574 days ago | 0.0055 ETH | ||||
17022523 | 574 days ago | 0.0055 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:
AstroSwap
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 20000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT //.___________. __ .__ __. ____ ____ ___ _______..___________..______ ______ //| || | | \ | | \ \ / / / \ / || || _ \ / __ \ //`---| |----`| | | \| | \ \/ / / ^ \ | (----``---| |----`| |_) | | | | | // | | | | | . ` | \_ _/ / /_\ \ \ \ | | | / | | | | // | | | | | |\ | | | / _____ \ .----) | | | | |\ \----.| `--' | // |__| |__| |__| \__| |__| /__/ \__\ |_______/ |__| | _| `._____| \______/ pragma solidity ^0.8.14; import {SafeTransferLib} from "@rari-capital/solmate/src/utils/SafeTransferLib.sol"; import {ERC20} from "@rari-capital/solmate/src/tokens/ERC20.sol"; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; import {Pausable} from "@openzeppelin/contracts/security/Pausable.sol"; import {ReentrancyGuard} from "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import {IERC721} from "@openzeppelin/contracts/interfaces/IERC721.sol"; import {IERC1155} from "@openzeppelin/contracts/interfaces/IERC1155.sol"; import {IWETH} from "./interfaces/IWETH.sol"; contract AstroSwap is Ownable, Pausable, ReentrancyGuard { struct ProxyInput { address proxy; bytes data; } struct ERC20Token { ERC20 asset; uint256 amount; } event ProxyUpdated(address proxy, bool isRemoval); IWETH public immutable weth; mapping(address => bool) public proxies; constructor(address _weth) { weth = IWETH(_weth); } function setPaused(bool paused) external onlyOwner { paused ? _pause() : _unpause(); } function updateProxies(address[] calldata toAdd, address[] calldata toRemove) external onlyOwner { for (uint256 i = 0; i < toAdd.length; ) { proxies[toAdd[i]] = true; emit ProxyUpdated(toAdd[i], false); unchecked { ++i; } } for (uint256 i = 0; i < toRemove.length; ) { delete proxies[toRemove[i]]; emit ProxyUpdated(toRemove[i], true); unchecked { ++i; } } } function batchSwapWithETH(ProxyInput[] memory proxyInputs) external payable whenNotPaused nonReentrant { _executeProxyInput(proxyInputs); // Refund remaining ETH _refundETH(); } function batchSwapWithERC20( ERC20Token[] calldata erc20Tokens, ProxyInput[] memory proxyInputs, uint256 amountToEth, uint256 amountToWeth ) external payable whenNotPaused nonReentrant { // Collect ERC20 tokens before trading _collectERC20Tokens(erc20Tokens); // Convert ETH <=> WETH _convertWrappedNative(amountToEth, amountToWeth); _executeProxyInput(proxyInputs); // Refund remaining ERC20 tokens _refundERC20Tokens(erc20Tokens); // Refund remaining ETH _refundETH(); } function _executeProxyInput(ProxyInput[] memory inputs) internal { for (uint256 i = 0; i < inputs.length; ) { address proxy = inputs[i].proxy; require(proxies[proxy], "Invalid proxy"); _performDelegatecall(proxy, inputs[i].data); unchecked { ++i; } } } function _performDelegatecall(address to, bytes memory data) internal { (bool success, ) = to.delegatecall(data); if (!success) { assembly { returndatacopy(0, 0, returndatasize()) revert(0, returndatasize()) } } } function _convertWrappedNative(uint256 amountToEth, uint256 amountToWeth) internal { if (amountToEth > 0) { weth.withdraw(amountToEth); } if (amountToWeth > 0) { weth.deposit{value: amountToWeth}(); } } /*////////////////////////////////////////////////////////////// RECEIVERS //////////////////////////////////////////////////////////////*/ receive() external payable {} function onERC1155Received( address, address, uint256, uint256, bytes calldata ) external pure returns (bytes4) { return this.onERC1155Received.selector; } function onERC1155BatchReceived( address, address, uint256[] calldata, uint256[] calldata, bytes calldata ) external pure returns (bytes4) { return this.onERC1155BatchReceived.selector; } function onERC721Received( address, address, uint256, bytes calldata ) external pure returns (bytes4) { return this.onERC721Received.selector; } /*////////////////////////////////////////////////////////////// TOKEN TRANSFERS //////////////////////////////////////////////////////////////*/ function _transferETH(address to, uint256 amount) internal { (bool success, ) = to.call{value: amount}(""); require(success, "Unable to transfer eth"); } // Refund remaining ETH to the caller function _refundETH() internal { uint256 amount = address(this).balance; if (amount > 0) { _transferETH(msg.sender, amount); } } // Transfer and approval ERC20 tokens to the contract before swapping function _collectERC20Tokens(ERC20Token[] calldata erc20Tokens) internal { for (uint256 i = 0; i < erc20Tokens.length; ) { // Collect ERC20 tokens from provided by the caller, need approval first. if (erc20Tokens[i].amount > 0) { SafeTransferLib.safeTransferFrom(erc20Tokens[i].asset, msg.sender, address(this), erc20Tokens[i].amount); } unchecked { ++i; } } } // Refund remaining ERC20 back to the caller function _refundERC20Tokens(ERC20Token[] calldata erc20Tokens) internal { for (uint256 i = 0; i < erc20Tokens.length; ) { // Refund remaining ERC20 tokens back the the caller. uint256 amount = erc20Tokens[i].asset.balanceOf(address(this)); if (amount > 0) { SafeTransferLib.safeTransfer(erc20Tokens[i].asset, msg.sender, amount); } unchecked { ++i; } } } function transferETH(address to, uint256 amount) external onlyOwner { _transferETH(to, amount); } function transferERC20( address asset, address to, uint256 amount ) external onlyOwner { SafeTransferLib.safeTransfer(ERC20(asset), to, amount); } function transferERC721( address asset, address to, uint256[] calldata tokenIds ) external onlyOwner { for (uint256 i = 0; i < tokenIds.length; ) { IERC721(asset).transferFrom(address(this), to, tokenIds[i]); unchecked { ++i; } } } function transferERC1155( address asset, address to, uint256[] calldata tokenIds, uint256[] calldata amounts ) external onlyOwner { for (uint256 i = 0; i < tokenIds.length; ) { IERC1155(asset).safeTransferFrom(address(this), to, tokenIds[i], amounts[i], ""); unchecked { ++i; } } } function approveERC20( address asset, address spender, uint256 amount ) external onlyOwner { SafeTransferLib.safeApprove(ERC20(asset), spender, amount); } }
// SPDX-License-Identifier: GNU pragma solidity >=0.5.0; interface IWETH { function deposit() external payable; function withdraw(uint256) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC1155.sol) pragma solidity ^0.8.0; import "../token/ERC1155/IERC1155.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC721.sol) pragma solidity ^0.8.0; import "../token/ERC721/IERC721.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @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); } }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; /// @notice Modern and gas efficient ERC20 + EIP-2612 implementation. /// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC20.sol) /// @author Modified from Uniswap (https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2ERC20.sol) /// @dev Do not manually set balances without updating totalSupply, as the sum of all user balances must not exceed it. abstract contract ERC20 { /*////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event Transfer(address indexed from, address indexed to, uint256 amount); event Approval(address indexed owner, address indexed spender, uint256 amount); /*////////////////////////////////////////////////////////////// METADATA STORAGE //////////////////////////////////////////////////////////////*/ string public name; string public symbol; uint8 public immutable decimals; /*////////////////////////////////////////////////////////////// ERC20 STORAGE //////////////////////////////////////////////////////////////*/ uint256 public totalSupply; mapping(address => uint256) public balanceOf; mapping(address => mapping(address => uint256)) public allowance; /*////////////////////////////////////////////////////////////// EIP-2612 STORAGE //////////////////////////////////////////////////////////////*/ uint256 internal immutable INITIAL_CHAIN_ID; bytes32 internal immutable INITIAL_DOMAIN_SEPARATOR; mapping(address => uint256) public nonces; /*////////////////////////////////////////////////////////////// CONSTRUCTOR //////////////////////////////////////////////////////////////*/ constructor( string memory _name, string memory _symbol, uint8 _decimals ) { name = _name; symbol = _symbol; decimals = _decimals; INITIAL_CHAIN_ID = block.chainid; INITIAL_DOMAIN_SEPARATOR = computeDomainSeparator(); } /*////////////////////////////////////////////////////////////// ERC20 LOGIC //////////////////////////////////////////////////////////////*/ function approve(address spender, uint256 amount) public virtual returns (bool) { allowance[msg.sender][spender] = amount; emit Approval(msg.sender, spender, amount); return true; } function transfer(address to, uint256 amount) public virtual returns (bool) { balanceOf[msg.sender] -= amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(msg.sender, to, amount); return true; } function transferFrom( address from, address to, uint256 amount ) public virtual returns (bool) { uint256 allowed = allowance[from][msg.sender]; // Saves gas for limited approvals. if (allowed != type(uint256).max) allowance[from][msg.sender] = allowed - amount; balanceOf[from] -= amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(from, to, amount); return true; } /*////////////////////////////////////////////////////////////// EIP-2612 LOGIC //////////////////////////////////////////////////////////////*/ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) public virtual { require(deadline >= block.timestamp, "PERMIT_DEADLINE_EXPIRED"); // Unchecked because the only math done is incrementing // the owner's nonce which cannot realistically overflow. unchecked { address recoveredAddress = ecrecover( keccak256( abi.encodePacked( "\x19\x01", DOMAIN_SEPARATOR(), keccak256( abi.encode( keccak256( "Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)" ), owner, spender, value, nonces[owner]++, deadline ) ) ) ), v, r, s ); require(recoveredAddress != address(0) && recoveredAddress == owner, "INVALID_SIGNER"); allowance[recoveredAddress][spender] = value; } emit Approval(owner, spender, value); } function DOMAIN_SEPARATOR() public view virtual returns (bytes32) { return block.chainid == INITIAL_CHAIN_ID ? INITIAL_DOMAIN_SEPARATOR : computeDomainSeparator(); } function computeDomainSeparator() internal view virtual returns (bytes32) { return keccak256( abi.encode( keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"), keccak256(bytes(name)), keccak256("1"), block.chainid, address(this) ) ); } /*////////////////////////////////////////////////////////////// INTERNAL MINT/BURN LOGIC //////////////////////////////////////////////////////////////*/ function _mint(address to, uint256 amount) internal virtual { totalSupply += amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(address(0), to, amount); } function _burn(address from, uint256 amount) internal virtual { balanceOf[from] -= amount; // Cannot underflow because a user's balance // will never be larger than the total supply. unchecked { totalSupply -= amount; } emit Transfer(from, address(0), amount); } }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; import {ERC20} from "../tokens/ERC20.sol"; /// @notice Safe ETH and ERC20 transfer library that gracefully handles missing return values. /// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/utils/SafeTransferLib.sol) /// @dev Use with caution! Some functions in this library knowingly create dirty bits at the destination of the free memory pointer. /// @dev Note that none of the functions in this library check that a token has code at all! That responsibility is delegated to the caller. library SafeTransferLib { /*////////////////////////////////////////////////////////////// ETH OPERATIONS //////////////////////////////////////////////////////////////*/ function safeTransferETH(address to, uint256 amount) internal { bool success; assembly { // Transfer the ETH and store if it succeeded or not. success := call(gas(), to, amount, 0, 0, 0, 0) } require(success, "ETH_TRANSFER_FAILED"); } /*////////////////////////////////////////////////////////////// ERC20 OPERATIONS //////////////////////////////////////////////////////////////*/ function safeTransferFrom( ERC20 token, address from, address to, uint256 amount ) internal { bool success; assembly { // Get a pointer to some free memory. let freeMemoryPointer := mload(0x40) // Write the abi-encoded calldata into memory, beginning with the function selector. mstore(freeMemoryPointer, 0x23b872dd00000000000000000000000000000000000000000000000000000000) mstore(add(freeMemoryPointer, 4), from) // Append the "from" argument. mstore(add(freeMemoryPointer, 36), to) // Append the "to" argument. mstore(add(freeMemoryPointer, 68), amount) // Append the "amount" argument. success := and( // Set success to whether the call reverted, if not we check it either // returned exactly 1 (can't just be non-zero data), or had no return data. or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())), // We use 100 because the length of our calldata totals up like so: 4 + 32 * 3. // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space. // Counterintuitively, this call must be positioned second to the or() call in the // surrounding and() call or else returndatasize() will be zero during the computation. call(gas(), token, 0, freeMemoryPointer, 100, 0, 32) ) } require(success, "TRANSFER_FROM_FAILED"); } function safeTransfer( ERC20 token, address to, uint256 amount ) internal { bool success; assembly { // Get a pointer to some free memory. let freeMemoryPointer := mload(0x40) // Write the abi-encoded calldata into memory, beginning with the function selector. mstore(freeMemoryPointer, 0xa9059cbb00000000000000000000000000000000000000000000000000000000) mstore(add(freeMemoryPointer, 4), to) // Append the "to" argument. mstore(add(freeMemoryPointer, 36), amount) // Append the "amount" argument. success := and( // Set success to whether the call reverted, if not we check it either // returned exactly 1 (can't just be non-zero data), or had no return data. or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())), // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2. // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space. // Counterintuitively, this call must be positioned second to the or() call in the // surrounding and() call or else returndatasize() will be zero during the computation. call(gas(), token, 0, freeMemoryPointer, 68, 0, 32) ) } require(success, "TRANSFER_FAILED"); } function safeApprove( ERC20 token, address to, uint256 amount ) internal { bool success; assembly { // Get a pointer to some free memory. let freeMemoryPointer := mload(0x40) // Write the abi-encoded calldata into memory, beginning with the function selector. mstore(freeMemoryPointer, 0x095ea7b300000000000000000000000000000000000000000000000000000000) mstore(add(freeMemoryPointer, 4), to) // Append the "to" argument. mstore(add(freeMemoryPointer, 36), amount) // Append the "amount" argument. success := and( // Set success to whether the call reverted, if not we check it either // returned exactly 1 (can't just be non-zero data), or had no return data. or(and(eq(mload(0), 1), gt(returndatasize(), 31)), iszero(returndatasize())), // We use 68 because the length of our calldata totals up like so: 4 + 32 * 2. // We use 0 and 32 to copy up to 32 bytes of return data into the scratch space. // Counterintuitively, this call must be positioned second to the or() call in the // surrounding and() call or else returndatasize() will be zero during the computation. call(gas(), token, 0, freeMemoryPointer, 68, 0, 32) ) } require(success, "APPROVE_FAILED"); } }
// SPDX-License-Identifier: MIT // 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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.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: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * 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.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; }
// 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); }
{ "optimizer": { "enabled": true, "runs": 20000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_weth","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"proxy","type":"address"},{"indexed":false,"internalType":"bool","name":"isRemoval","type":"bool"}],"name":"ProxyUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approveERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"contract ERC20","name":"asset","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct AstroSwap.ERC20Token[]","name":"erc20Tokens","type":"tuple[]"},{"components":[{"internalType":"address","name":"proxy","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct AstroSwap.ProxyInput[]","name":"proxyInputs","type":"tuple[]"},{"internalType":"uint256","name":"amountToEth","type":"uint256"},{"internalType":"uint256","name":"amountToWeth","type":"uint256"}],"name":"batchSwapWithERC20","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"proxy","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct AstroSwap.ProxyInput[]","name":"proxyInputs","type":"tuple[]"}],"name":"batchSwapWithETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"proxies","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"paused","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"transferERC1155","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"transferERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"toAdd","type":"address[]"},{"internalType":"address[]","name":"toRemove","type":"address[]"}],"name":"updateProxies","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"weth","outputs":[{"internalType":"contract IWETH","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60a06040523480156200001157600080fd5b5060405162001e0f38038062001e0f8339810160408190526200003491620000b2565b6200003f3362000062565b6000805460ff60a01b19169055600180556001600160a01b0316608052620000e4565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208284031215620000c557600080fd5b81516001600160a01b0381168114620000dd57600080fd5b9392505050565b608051611d016200010e6000396000818161022801528181610f180152610f920152611d016000f3fe60806040526004361061012d5760003560e01c80637b1a4909116100a5578063a8e5e4aa11610074578063c455279111610059578063c4552791146103d9578063f23a6e6114610409578063f2fde38b1461044f57600080fd5b8063a8e5e4aa14610371578063bc197c811461039157600080fd5b80637b1a4909146102e65780638ca5e396146103065780638da5cb5b146103265780639db5dbe41461035157600080fd5b80633fc8cef3116100fc578063715018a6116100e1578063715018a6146102ab57806374cdcb34146102c057806379265025146102d357600080fd5b80633fc8cef3146102165780635c975abb1461026f57600080fd5b8063087197a214610139578063150b7a021461015b57806316c38b3c146101d65780631cb56859146101f657600080fd5b3661013457005b600080fd5b34801561014557600080fd5b5061015961015436600461155f565b61046f565b005b34801561016757600080fd5b506101a061017636600461162f565b7f150b7a020000000000000000000000000000000000000000000000000000000095945050505050565b6040517fffffffff0000000000000000000000000000000000000000000000000000000090911681526020015b60405180910390f35b3480156101e257600080fd5b506101596101f13660046116a2565b610688565b34801561020257600080fd5b506101596102113660046116cb565b6106a8565b34801561022257600080fd5b5061024a7f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101cd565b34801561027b57600080fd5b5060005474010000000000000000000000000000000000000000900460ff165b60405190151581526020016101cd565b3480156102b757600080fd5b506101596107c2565b6101596102ce366004611962565b6107d6565b6101596102e136600461199f565b61086c565b3480156102f257600080fd5b50610159610301366004611a48565b61091f565b34801561031257600080fd5b50610159610321366004611a74565b610935565b34801561033257600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff1661024a565b34801561035d57600080fd5b5061015961036c366004611acd565b610a17565b34801561037d57600080fd5b5061015961038c366004611acd565b610a2f565b34801561039d57600080fd5b506101a06103ac366004611b0e565b7fbc197c810000000000000000000000000000000000000000000000000000000098975050505050505050565b3480156103e557600080fd5b5061029b6103f4366004611bcd565b60026020526000908152604090205460ff1681565b34801561041557600080fd5b506101a0610424366004611bea565b7ff23a6e61000000000000000000000000000000000000000000000000000000009695505050505050565b34801561045b57600080fd5b5061015961046a366004611bcd565b610a42565b610477610af6565b60005b838110156105805760016002600087878581811061049a5761049a611c54565b90506020020160208101906104af9190611bcd565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169115159190911790557fa635e790ff250e5a7440683e04bde42006935942ade57d0c5367820473c148fa85858381811061053557610535611c54565b905060200201602081019061054a9190611bcd565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252600060208301520160405180910390a160010161047a565b5060005b8181101561068157600260008484848181106105a2576105a2611c54565b90506020020160208101906105b79190611bcd565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557fa635e790ff250e5a7440683e04bde42006935942ade57d0c5367820473c148fa83838381811061063657610636611c54565b905060200201602081019061064b9190611bcd565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252600160208301520160405180910390a1600101610584565b5050505050565b610690610af6565b806106a05761069d610b77565b50565b61069d610bf4565b6106b0610af6565b60005b838110156107b9578673ffffffffffffffffffffffffffffffffffffffff1663f242432a30888888868181106106eb576106eb611c54565b9050602002013587878781811061070457610704611c54565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e089901b16815273ffffffffffffffffffffffffffffffffffffffff968716600482015295909416602486015250604484019190915260209091020135606482015260a06084820152600060a482015260c401600060405180830381600087803b15801561079657600080fd5b505af11580156107aa573d6000803e3d6000fd5b505050508060010190506106b3565b50505050505050565b6107ca610af6565b6107d46000610c63565b565b6107de610cd8565b60026001540361084f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b600260015561085d81610d5d565b610865610e4d565b5060018055565b610874610cd8565b6002600154036108e0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610846565b60026001556108ef8585610e5e565b6108f98282610ee3565b61090283610d5d565b61090c858561100c565b610914610e4d565b505060018055505050565b610927610af6565b6109318282611114565b5050565b61093d610af6565b60005b81811015610681578473ffffffffffffffffffffffffffffffffffffffff166323b872dd308686868681811061097857610978611c54565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e088901b16815273ffffffffffffffffffffffffffffffffffffffff958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b1580156109f457600080fd5b505af1158015610a08573d6000803e3d6000fd5b50505050806001019050610940565b610a1f610af6565b610a2a8383836111de565b505050565b610a37610af6565b610a2a83838361129d565b610a4a610af6565b73ffffffffffffffffffffffffffffffffffffffff8116610aed576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610846565b61069d81610c63565b60005473ffffffffffffffffffffffffffffffffffffffff1633146107d4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610846565b610b7f611356565b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b610bfc610cd8565b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610bca3390565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60005474010000000000000000000000000000000000000000900460ff16156107d4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610846565b60005b8151811015610931576000828281518110610d7d57610d7d611c54565b6020908102919091018101515173ffffffffffffffffffffffffffffffffffffffff81166000908152600290925260409091205490915060ff16610e1d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f496e76616c69642070726f7879000000000000000000000000000000000000006044820152606401610846565b610e4481848481518110610e3357610e33611c54565b6020026020010151602001516113da565b50600101610d60565b47801561069d5761069d3382611114565b60005b81811015610a2a576000838383818110610e7d57610e7d611c54565b905060400201602001351115610edb57610edb838383818110610ea257610ea2611c54565b610eb89260206040909202019081019150611bcd565b3330868686818110610ecc57610ecc611c54565b90506040020160200135611454565b600101610e61565b8115610f8a576040517f2e1a7d4d000000000000000000000000000000000000000000000000000000008152600481018390527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1690632e1a7d4d90602401600060405180830381600087803b158015610f7157600080fd5b505af1158015610f85573d6000803e3d6000fd5b505050505b8015610931577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b158015610ff857600080fd5b505af11580156107b9573d6000803e3d6000fd5b60005b81811015610a2a57600083838381811061102b5761102b611c54565b6110419260206040909202019081019150611bcd565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff91909116906370a0823190602401602060405180830381865afa1580156110ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110d19190611c83565b9050801561110b5761110b8484848181106110ee576110ee611c54565b6111049260206040909202019081019150611bcd565b33836111de565b5060010161100f565b60008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d806000811461116e576040519150601f19603f3d011682016040523d82523d6000602084013e611173565b606091505b5050905080610a2a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f556e61626c6520746f207472616e7366657220657468000000000000000000006044820152606401610846565b60006040517fa9059cbb000000000000000000000000000000000000000000000000000000008152836004820152826024820152602060006044836000895af13d15601f3d1160016000511416171691505080611297576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f5452414e534645525f4641494c454400000000000000000000000000000000006044820152606401610846565b50505050565b60006040517f095ea7b3000000000000000000000000000000000000000000000000000000008152836004820152826024820152602060006044836000895af13d15601f3d1160016000511416171691505080611297576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f415050524f56455f4641494c45440000000000000000000000000000000000006044820152606401610846565b60005474010000000000000000000000000000000000000000900460ff166107d4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610846565b60008273ffffffffffffffffffffffffffffffffffffffff16826040516114019190611c9c565b600060405180830381855af49150503d806000811461143c576040519150601f19603f3d011682016040523d82523d6000602084013e611441565b606091505b5050905080610a2a573d6000803e3d6000fd5b60006040517f23b872dd0000000000000000000000000000000000000000000000000000000081528460048201528360248201528260448201526020600060648360008a5af13d15601f3d1160016000511416171691505080610681576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5452414e534645525f46524f4d5f4641494c45440000000000000000000000006044820152606401610846565b60008083601f84011261152557600080fd5b50813567ffffffffffffffff81111561153d57600080fd5b6020830191508360208260051b850101111561155857600080fd5b9250929050565b6000806000806040858703121561157557600080fd5b843567ffffffffffffffff8082111561158d57600080fd5b61159988838901611513565b909650945060208701359150808211156115b257600080fd5b506115bf87828801611513565b95989497509550505050565b73ffffffffffffffffffffffffffffffffffffffff8116811461069d57600080fd5b60008083601f8401126115ff57600080fd5b50813567ffffffffffffffff81111561161757600080fd5b60208301915083602082850101111561155857600080fd5b60008060008060006080868803121561164757600080fd5b8535611652816115cb565b94506020860135611662816115cb565b935060408601359250606086013567ffffffffffffffff81111561168557600080fd5b611691888289016115ed565b969995985093965092949392505050565b6000602082840312156116b457600080fd5b813580151581146116c457600080fd5b9392505050565b600080600080600080608087890312156116e457600080fd5b86356116ef816115cb565b955060208701356116ff816115cb565b9450604087013567ffffffffffffffff8082111561171c57600080fd5b6117288a838b01611513565b9096509450606089013591508082111561174157600080fd5b5061174e89828a01611513565b979a9699509497509295939492505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040805190810167ffffffffffffffff811182821017156117b2576117b2611760565b60405290565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156117ff576117ff611760565b604052919050565b6000601f838184011261181957600080fd5b8235602067ffffffffffffffff8083111561183657611836611760565b8260051b6118458382016117b8565b938452868101830193838101908986111561185f57600080fd5b84890192505b858310156119555782358481111561187d5760008081fd5b890160407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0828d0381018213156118b45760008081fd5b6118bc61178f565b888401356118c9816115cb565b815283830135888111156118dd5760008081fd5b8085019450508d603f8501126118f35760008081fd5b888401358881111561190757611907611760565b6119168a848e840116016117b8565b92508083528e8482870101111561192d5760008081fd5b808486018b85013760009083018a015280890191909152845250509184019190840190611865565b9998505050505050505050565b60006020828403121561197457600080fd5b813567ffffffffffffffff81111561198b57600080fd5b61199784828501611807565b949350505050565b6000806000806000608086880312156119b757600080fd5b853567ffffffffffffffff808211156119cf57600080fd5b818801915088601f8301126119e357600080fd5b8135818111156119f257600080fd5b8960208260061b8501011115611a0757600080fd5b602092830197509550908701359080821115611a2257600080fd5b50611a2f88828901611807565b9598949750949560408101359550606001359392505050565b60008060408385031215611a5b57600080fd5b8235611a66816115cb565b946020939093013593505050565b60008060008060608587031215611a8a57600080fd5b8435611a95816115cb565b93506020850135611aa5816115cb565b9250604085013567ffffffffffffffff811115611ac157600080fd5b6115bf87828801611513565b600080600060608486031215611ae257600080fd5b8335611aed816115cb565b92506020840135611afd816115cb565b929592945050506040919091013590565b60008060008060008060008060a0898b031215611b2a57600080fd5b8835611b35816115cb565b97506020890135611b45816115cb565b9650604089013567ffffffffffffffff80821115611b6257600080fd5b611b6e8c838d01611513565b909850965060608b0135915080821115611b8757600080fd5b611b938c838d01611513565b909650945060808b0135915080821115611bac57600080fd5b50611bb98b828c016115ed565b999c989b5096995094979396929594505050565b600060208284031215611bdf57600080fd5b81356116c4816115cb565b60008060008060008060a08789031215611c0357600080fd5b8635611c0e816115cb565b95506020870135611c1e816115cb565b94506040870135935060608701359250608087013567ffffffffffffffff811115611c4857600080fd5b61174e89828a016115ed565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600060208284031215611c9557600080fd5b5051919050565b6000825160005b81811015611cbd5760208186018101518583015201611ca3565b50600092019182525091905056fea2646970667358221220c670caa7c25475f28c91699ad386c6c72c1da06082dbb010e849d6c34f6e135e64736f6c63430008110033000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Deployed Bytecode
0x60806040526004361061012d5760003560e01c80637b1a4909116100a5578063a8e5e4aa11610074578063c455279111610059578063c4552791146103d9578063f23a6e6114610409578063f2fde38b1461044f57600080fd5b8063a8e5e4aa14610371578063bc197c811461039157600080fd5b80637b1a4909146102e65780638ca5e396146103065780638da5cb5b146103265780639db5dbe41461035157600080fd5b80633fc8cef3116100fc578063715018a6116100e1578063715018a6146102ab57806374cdcb34146102c057806379265025146102d357600080fd5b80633fc8cef3146102165780635c975abb1461026f57600080fd5b8063087197a214610139578063150b7a021461015b57806316c38b3c146101d65780631cb56859146101f657600080fd5b3661013457005b600080fd5b34801561014557600080fd5b5061015961015436600461155f565b61046f565b005b34801561016757600080fd5b506101a061017636600461162f565b7f150b7a020000000000000000000000000000000000000000000000000000000095945050505050565b6040517fffffffff0000000000000000000000000000000000000000000000000000000090911681526020015b60405180910390f35b3480156101e257600080fd5b506101596101f13660046116a2565b610688565b34801561020257600080fd5b506101596102113660046116cb565b6106a8565b34801561022257600080fd5b5061024a7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101cd565b34801561027b57600080fd5b5060005474010000000000000000000000000000000000000000900460ff165b60405190151581526020016101cd565b3480156102b757600080fd5b506101596107c2565b6101596102ce366004611962565b6107d6565b6101596102e136600461199f565b61086c565b3480156102f257600080fd5b50610159610301366004611a48565b61091f565b34801561031257600080fd5b50610159610321366004611a74565b610935565b34801561033257600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff1661024a565b34801561035d57600080fd5b5061015961036c366004611acd565b610a17565b34801561037d57600080fd5b5061015961038c366004611acd565b610a2f565b34801561039d57600080fd5b506101a06103ac366004611b0e565b7fbc197c810000000000000000000000000000000000000000000000000000000098975050505050505050565b3480156103e557600080fd5b5061029b6103f4366004611bcd565b60026020526000908152604090205460ff1681565b34801561041557600080fd5b506101a0610424366004611bea565b7ff23a6e61000000000000000000000000000000000000000000000000000000009695505050505050565b34801561045b57600080fd5b5061015961046a366004611bcd565b610a42565b610477610af6565b60005b838110156105805760016002600087878581811061049a5761049a611c54565b90506020020160208101906104af9190611bcd565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169115159190911790557fa635e790ff250e5a7440683e04bde42006935942ade57d0c5367820473c148fa85858381811061053557610535611c54565b905060200201602081019061054a9190611bcd565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252600060208301520160405180910390a160010161047a565b5060005b8181101561068157600260008484848181106105a2576105a2611c54565b90506020020160208101906105b79190611bcd565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557fa635e790ff250e5a7440683e04bde42006935942ade57d0c5367820473c148fa83838381811061063657610636611c54565b905060200201602081019061064b9190611bcd565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252600160208301520160405180910390a1600101610584565b5050505050565b610690610af6565b806106a05761069d610b77565b50565b61069d610bf4565b6106b0610af6565b60005b838110156107b9578673ffffffffffffffffffffffffffffffffffffffff1663f242432a30888888868181106106eb576106eb611c54565b9050602002013587878781811061070457610704611c54565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e089901b16815273ffffffffffffffffffffffffffffffffffffffff968716600482015295909416602486015250604484019190915260209091020135606482015260a06084820152600060a482015260c401600060405180830381600087803b15801561079657600080fd5b505af11580156107aa573d6000803e3d6000fd5b505050508060010190506106b3565b50505050505050565b6107ca610af6565b6107d46000610c63565b565b6107de610cd8565b60026001540361084f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b600260015561085d81610d5d565b610865610e4d565b5060018055565b610874610cd8565b6002600154036108e0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610846565b60026001556108ef8585610e5e565b6108f98282610ee3565b61090283610d5d565b61090c858561100c565b610914610e4d565b505060018055505050565b610927610af6565b6109318282611114565b5050565b61093d610af6565b60005b81811015610681578473ffffffffffffffffffffffffffffffffffffffff166323b872dd308686868681811061097857610978611c54565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e088901b16815273ffffffffffffffffffffffffffffffffffffffff958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b1580156109f457600080fd5b505af1158015610a08573d6000803e3d6000fd5b50505050806001019050610940565b610a1f610af6565b610a2a8383836111de565b505050565b610a37610af6565b610a2a83838361129d565b610a4a610af6565b73ffffffffffffffffffffffffffffffffffffffff8116610aed576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610846565b61069d81610c63565b60005473ffffffffffffffffffffffffffffffffffffffff1633146107d4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610846565b610b7f611356565b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390a1565b610bfc610cd8565b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16740100000000000000000000000000000000000000001790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610bca3390565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60005474010000000000000000000000000000000000000000900460ff16156107d4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610846565b60005b8151811015610931576000828281518110610d7d57610d7d611c54565b6020908102919091018101515173ffffffffffffffffffffffffffffffffffffffff81166000908152600290925260409091205490915060ff16610e1d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f496e76616c69642070726f7879000000000000000000000000000000000000006044820152606401610846565b610e4481848481518110610e3357610e33611c54565b6020026020010151602001516113da565b50600101610d60565b47801561069d5761069d3382611114565b60005b81811015610a2a576000838383818110610e7d57610e7d611c54565b905060400201602001351115610edb57610edb838383818110610ea257610ea2611c54565b610eb89260206040909202019081019150611bcd565b3330868686818110610ecc57610ecc611c54565b90506040020160200135611454565b600101610e61565b8115610f8a576040517f2e1a7d4d000000000000000000000000000000000000000000000000000000008152600481018390527f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff1690632e1a7d4d90602401600060405180830381600087803b158015610f7157600080fd5b505af1158015610f85573d6000803e3d6000fd5b505050505b8015610931577f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff1663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b158015610ff857600080fd5b505af11580156107b9573d6000803e3d6000fd5b60005b81811015610a2a57600083838381811061102b5761102b611c54565b6110419260206040909202019081019150611bcd565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff91909116906370a0823190602401602060405180830381865afa1580156110ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110d19190611c83565b9050801561110b5761110b8484848181106110ee576110ee611c54565b6111049260206040909202019081019150611bcd565b33836111de565b5060010161100f565b60008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d806000811461116e576040519150601f19603f3d011682016040523d82523d6000602084013e611173565b606091505b5050905080610a2a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f556e61626c6520746f207472616e7366657220657468000000000000000000006044820152606401610846565b60006040517fa9059cbb000000000000000000000000000000000000000000000000000000008152836004820152826024820152602060006044836000895af13d15601f3d1160016000511416171691505080611297576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f5452414e534645525f4641494c454400000000000000000000000000000000006044820152606401610846565b50505050565b60006040517f095ea7b3000000000000000000000000000000000000000000000000000000008152836004820152826024820152602060006044836000895af13d15601f3d1160016000511416171691505080611297576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f415050524f56455f4641494c45440000000000000000000000000000000000006044820152606401610846565b60005474010000000000000000000000000000000000000000900460ff166107d4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610846565b60008273ffffffffffffffffffffffffffffffffffffffff16826040516114019190611c9c565b600060405180830381855af49150503d806000811461143c576040519150601f19603f3d011682016040523d82523d6000602084013e611441565b606091505b5050905080610a2a573d6000803e3d6000fd5b60006040517f23b872dd0000000000000000000000000000000000000000000000000000000081528460048201528360248201528260448201526020600060648360008a5af13d15601f3d1160016000511416171691505080610681576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5452414e534645525f46524f4d5f4641494c45440000000000000000000000006044820152606401610846565b60008083601f84011261152557600080fd5b50813567ffffffffffffffff81111561153d57600080fd5b6020830191508360208260051b850101111561155857600080fd5b9250929050565b6000806000806040858703121561157557600080fd5b843567ffffffffffffffff8082111561158d57600080fd5b61159988838901611513565b909650945060208701359150808211156115b257600080fd5b506115bf87828801611513565b95989497509550505050565b73ffffffffffffffffffffffffffffffffffffffff8116811461069d57600080fd5b60008083601f8401126115ff57600080fd5b50813567ffffffffffffffff81111561161757600080fd5b60208301915083602082850101111561155857600080fd5b60008060008060006080868803121561164757600080fd5b8535611652816115cb565b94506020860135611662816115cb565b935060408601359250606086013567ffffffffffffffff81111561168557600080fd5b611691888289016115ed565b969995985093965092949392505050565b6000602082840312156116b457600080fd5b813580151581146116c457600080fd5b9392505050565b600080600080600080608087890312156116e457600080fd5b86356116ef816115cb565b955060208701356116ff816115cb565b9450604087013567ffffffffffffffff8082111561171c57600080fd5b6117288a838b01611513565b9096509450606089013591508082111561174157600080fd5b5061174e89828a01611513565b979a9699509497509295939492505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040805190810167ffffffffffffffff811182821017156117b2576117b2611760565b60405290565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156117ff576117ff611760565b604052919050565b6000601f838184011261181957600080fd5b8235602067ffffffffffffffff8083111561183657611836611760565b8260051b6118458382016117b8565b938452868101830193838101908986111561185f57600080fd5b84890192505b858310156119555782358481111561187d5760008081fd5b890160407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0828d0381018213156118b45760008081fd5b6118bc61178f565b888401356118c9816115cb565b815283830135888111156118dd5760008081fd5b8085019450508d603f8501126118f35760008081fd5b888401358881111561190757611907611760565b6119168a848e840116016117b8565b92508083528e8482870101111561192d5760008081fd5b808486018b85013760009083018a015280890191909152845250509184019190840190611865565b9998505050505050505050565b60006020828403121561197457600080fd5b813567ffffffffffffffff81111561198b57600080fd5b61199784828501611807565b949350505050565b6000806000806000608086880312156119b757600080fd5b853567ffffffffffffffff808211156119cf57600080fd5b818801915088601f8301126119e357600080fd5b8135818111156119f257600080fd5b8960208260061b8501011115611a0757600080fd5b602092830197509550908701359080821115611a2257600080fd5b50611a2f88828901611807565b9598949750949560408101359550606001359392505050565b60008060408385031215611a5b57600080fd5b8235611a66816115cb565b946020939093013593505050565b60008060008060608587031215611a8a57600080fd5b8435611a95816115cb565b93506020850135611aa5816115cb565b9250604085013567ffffffffffffffff811115611ac157600080fd5b6115bf87828801611513565b600080600060608486031215611ae257600080fd5b8335611aed816115cb565b92506020840135611afd816115cb565b929592945050506040919091013590565b60008060008060008060008060a0898b031215611b2a57600080fd5b8835611b35816115cb565b97506020890135611b45816115cb565b9650604089013567ffffffffffffffff80821115611b6257600080fd5b611b6e8c838d01611513565b909850965060608b0135915080821115611b8757600080fd5b611b938c838d01611513565b909650945060808b0135915080821115611bac57600080fd5b50611bb98b828c016115ed565b999c989b5096995094979396929594505050565b600060208284031215611bdf57600080fd5b81356116c4816115cb565b60008060008060008060a08789031215611c0357600080fd5b8635611c0e816115cb565b95506020870135611c1e816115cb565b94506040870135935060608701359250608087013567ffffffffffffffff811115611c4857600080fd5b61174e89828a016115ed565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600060208284031215611c9557600080fd5b5051919050565b6000825160005b81811015611cbd5760208186018101518583015201611ca3565b50600092019182525091905056fea2646970667358221220c670caa7c25475f28c91699ad386c6c72c1da06082dbb010e849d6c34f6e135e64736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
-----Decoded View---------------
Arg [0] : _weth (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ 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.