Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 8,393 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer | 21683416 | 1 hr ago | IN | 0.29 ETH | 0.00025009 | ||||
Transfer | 21680844 | 10 hrs ago | IN | 0.301 ETH | 0.00124903 | ||||
Transfer | 21679119 | 16 hrs ago | IN | 0.033 ETH | 0.00033732 | ||||
Transfer | 21678093 | 19 hrs ago | IN | 0.06 ETH | 0.00031684 | ||||
Withdraw | 21674249 | 32 hrs ago | IN | 0 ETH | 0.00057964 | ||||
Transfer | 21673249 | 35 hrs ago | IN | 0.015 ETH | 0.00056624 | ||||
Transfer | 21671090 | 42 hrs ago | IN | 1 ETH | 0.00033852 | ||||
Transfer | 21670111 | 46 hrs ago | IN | 0.085 ETH | 0.00051144 | ||||
Transfer | 21669098 | 2 days ago | IN | 0.106 ETH | 0.00059722 | ||||
Withdraw | 21666607 | 2 days ago | IN | 0 ETH | 0.00108913 | ||||
Transfer | 21666428 | 2 days ago | IN | 0.2 ETH | 0.00128031 | ||||
Transfer | 21666313 | 2 days ago | IN | 0.714 ETH | 0.00133142 | ||||
Transfer | 21665904 | 2 days ago | IN | 2 ETH | 0.00104558 | ||||
Transfer | 21663169 | 2 days ago | IN | 0.02 ETH | 0.00089602 | ||||
Transfer | 21655732 | 3 days ago | IN | 0.036 ETH | 0.00042322 | ||||
Approved Withdra... | 21652950 | 4 days ago | IN | 0 ETH | 0.00055058 | ||||
Approved Withdra... | 21652922 | 4 days ago | IN | 0 ETH | 0.00067013 | ||||
Approved Withdra... | 21652542 | 4 days ago | IN | 0 ETH | 0.00119091 | ||||
Approved Withdra... | 21652446 | 4 days ago | IN | 0 ETH | 0.00101309 | ||||
Withdraw | 21651941 | 4 days ago | IN | 0 ETH | 0.00035152 | ||||
Transfer | 21651653 | 4 days ago | IN | 0.539 ETH | 0.00042611 | ||||
Transfer | 21650048 | 4 days ago | IN | 0.2 ETH | 0.00042978 | ||||
Transfer | 21648610 | 4 days ago | IN | 0.00908715 ETH | 0.00048648 | ||||
Transfer | 21648327 | 4 days ago | IN | 0.084 ETH | 0.00022315 | ||||
Transfer | 21648055 | 5 days ago | IN | 0.224 ETH | 0.00025942 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
21683420 | 1 hr ago | 0.00415816 ETH | ||||
21683420 | 1 hr ago | 0.28383183 ETH | ||||
21680847 | 10 hrs ago | 0.0162661 ETH | ||||
21680847 | 10 hrs ago | 0.28273389 ETH | ||||
21679124 | 16 hrs ago | 0.0055416 ETH | ||||
21679124 | 16 hrs ago | 0.02545839 ETH | ||||
21678096 | 19 hrs ago | 0.00568452 ETH | ||||
21678096 | 19 hrs ago | 0.05231547 ETH | ||||
21674249 | 32 hrs ago | 0.006 ETH | ||||
21671092 | 42 hrs ago | 0.01157623 ETH | ||||
21671092 | 42 hrs ago | 0.98642376 ETH | ||||
21670114 | 46 hrs ago | 0.00716396 ETH | ||||
21670114 | 46 hrs ago | 0.07583603 ETH | ||||
21669100 | 2 days ago | 0.01113421 ETH | ||||
21669100 | 2 days ago | 0.09286578 ETH | ||||
21666607 | 2 days ago | 0.01 ETH | ||||
21666431 | 2 days ago | 0.01599396 ETH | ||||
21666431 | 2 days ago | 0.18200603 ETH | ||||
21666316 | 2 days ago | 0.04008229 ETH | ||||
21666316 | 2 days ago | 0.6719177 ETH | ||||
21665909 | 2 days ago | 0.03333104 ETH | ||||
21665909 | 2 days ago | 1.96466895 ETH | ||||
21663171 | 2 days ago | 0.01665355 ETH | ||||
21663171 | 2 days ago | 0.00134644 ETH | ||||
21655736 | 3 days ago | 0.00657951 ETH |
Loading...
Loading
Contract Name:
vETH
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 2000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: NONE pragma solidity ^0.8.15; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/interfaces/IERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@uniswap/v2-periphery/contracts/interfaces/IWETH.sol"; import "./IvETH.sol"; /** * @title vETH * @author Riley - Two Brothers Crypto ([email protected]) * @notice Holds Ethereum on behalf of end users to be used in ToadSwap operations without subsequent approvals being required. * In essence, a privileged version of WETH9. Implements the WETH9 spec, but with extra functions. */ contract vETH is Ownable, IvETH { mapping(address => uint256) amounts; mapping(address => bool) fullApprovals; address public immutable WETH9; modifier onlyApproved { require(fullApprovals[msg.sender], "Not approved."); _; } constructor(address weth) { WETH9 = weth; } receive() external payable { // Attempt to reject contracts from sending ETH require(!Address.isContract(msg.sender), "Contracts cannot deposit to vETH via receive fallback."); amounts[msg.sender] += msg.value; } function balanceOf(address account) public view override returns (uint) { return amounts[account]; } function deposit() external payable override { // Allow contracts to send ETH via this method, because if you're doing this you should know how to withdraw (and this technically fulfils the IWETH interface) amounts[msg.sender] += msg.value; } function withdraw(uint wad) public override { // Because of Solidity 0.8 SafeMath we can require then do an unchecked subtract require(amounts[msg.sender] >= wad, "Not enough balance to withdraw."); unchecked { amounts[msg.sender] -= wad; } // Use Address senders Address.sendValue(payable(msg.sender), wad); } function convertFromWETH9(uint256 amount, address recipient) external override { bool resp = IERC20(WETH9).transferFrom(msg.sender, address(this), amount); require(resp, "Failed to transfer."); // Withdraw IWETH(WETH9).withdraw(amount); // Now add the correct amount to balance amounts[recipient] += amount; } function convertToWETH9(uint256 amount, address recipient) external override { // Subtract balance now require(amounts[msg.sender] >= amount, "Not enough balance to withdraw."); unchecked { amounts[msg.sender] -= amount; } // Deposit into WETH9 IWETH(WETH9).deposit{value: amount}(); // Send to recipient bool resp = IERC20(WETH9).transfer(recipient, amount); require(resp, "Failed to transfer."); } function addToFullApproval(address account) external override onlyOwner { fullApprovals[account] = true; } function removeFromFullApproval(address account) external override onlyOwner { fullApprovals[account] = false; } /** * Performs a WETH9->vETH conversion with pre-deposited WETH9 * @param amount amount to convert * @param recipient recipient to credit */ function approvedConvertFromWETH9(uint256 amount, address recipient) external override onlyApproved { IERC20 w9 = IERC20(WETH9); require(w9.balanceOf(address(this)) >= amount, "Can't convert what we don't have."); IWETH(WETH9).withdraw(amount); amounts[recipient] += amount; } /** * Performs a vETH->WETH9 conversion on behalf of a user. Approved contracts only. * @param user user to perform on behalf of * @param amount amount to convert * @param recipient recipient wallet to send to */ function approvedConvertToWETH9(address user, uint256 amount, address recipient) external override onlyApproved { // Subtract balance now require(amounts[user] >= amount, "Not enough balance to withdraw."); unchecked { amounts[user] -= amount; } IWETH w9 = IWETH(WETH9); w9.deposit{value: amount}(); bool resp = w9.transfer(recipient, amount); require(resp, "Failed to transfer."); } function approvedTransferFrom(address user, uint256 amount, address recipient) external override onlyApproved { require(amounts[user] >= amount, "Not enough balance to transfer."); unchecked { amounts[user] -= amount; amounts[recipient] += amount; } } function transfer(address to, uint value) public override { require(amounts[_msgSender()] >= value, "Not enough balance to transfer."); unchecked { amounts[_msgSender()] -= value; amounts[to] += value; } } /** * Performs a withdrawal on behalf of a user. Approved contracts only. * @param user user to perform on behalf of * @param amount amount to withdraw * @param recipient recipient wallet to send to */ function approvedWithdraw(address user, uint256 amount, address recipient) external override onlyApproved { // Because of Solidity 0.8 SafeMath we can require then do an unchecked subtract require(amounts[user] >= amount, "Not enough balance to withdraw."); unchecked { amounts[user] -= amount; } // Use Address senders Address.sendValue(payable(recipient), amount); } }
// 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: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol) pragma solidity ^0.8.0; import "../token/ERC20/IERC20.sol";
// 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.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 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; } }
pragma solidity >=0.5.0; interface IWETH { function deposit() external payable; function transfer(address to, uint value) external returns (bool); function withdraw(uint) external; }
// SPDX-License-Identifier: NONE pragma solidity ^0.8.15; /** * @title vETH * @author Riley - Two Brothers Crypto ([email protected]) * @notice Holds Ethereum on behalf of end users to be used in ToadSwap operations without subsequent approvals being required. * In essence, a privileged version of WETH9. Implements the WETH9 spec, but with extra functions. */ abstract contract IvETH { function balanceOf(address account) public virtual view returns (uint); function deposit() external virtual payable; function withdraw(uint wad) public virtual; function convertFromWETH9(uint256 amount, address recipient) external virtual; function convertToWETH9(uint256 amount, address recipient) external virtual; function addToFullApproval(address account) external virtual; function removeFromFullApproval(address account) external virtual; /** * Performs a WETH9->vETH conversion with pre-deposited WETH9 * @param amount amount to convert * @param recipient recipient to credit */ function approvedConvertFromWETH9(uint256 amount, address recipient) external virtual; /** * Performs a vETH->WETH9 conversion on behalf of a user. Approved contracts only. * @param user user to perform on behalf of * @param amount amount to convert * @param recipient recipient wallet to send to */ function approvedConvertToWETH9(address user, uint256 amount, address recipient) external virtual; /** * Performs a withdrawal on behalf of a user. Approved contracts only. * @param user user to perform on behalf of * @param amount amount to withdraw * @param recipient recipient wallet to send to */ function approvedWithdraw(address user, uint256 amount, address recipient) external virtual; function approvedTransferFrom(address user, uint256 amount, address recipient) external virtual; function transfer(address to, uint value) public virtual; }
{ "optimizer": { "enabled": true, "runs": 2000 }, "viaIR": true, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
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"},{"inputs":[],"name":"WETH9","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addToFullApproval","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"approvedConvertFromWETH9","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"approvedConvertToWETH9","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"approvedTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"approvedWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"convertFromWETH9","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"convertToWETH9","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"removeFromFullApproval","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60a0346100c357601f61104c38819003918201601f19168301916001600160401b038311848410176100c8578084926020946040528339810103126100c357516001600160a01b039081811681036100c3576000543360018060a01b0319821617600055604051923391167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3608052610f6d90816100df82396080518181816101b1015281816106510152818161081b0152818161095d0152610a0a0152f35b600080fd5b634e487b7160e01b600052604160045260246000fdfe6040608081526004803610156100a5575b361561001b57600080fd5b333b61003d5750336000526001602052600020610039348254610c5f565b9055005b6020608492519162461bcd60e51b8352820152603660248201527f436f6e7472616374732063616e6e6f74206465706f73697420746f207645544860448201527f2076696120726563656976652066616c6c6261636b2e000000000000000000006064820152fd5b6000803560e01c80630ac9c8de146109c75780632e1a7d4d146109815780634aa4a4fc1461093d5780634b6c0f2c146107bc5780634c6ef41414610751578063606683d8146106255780636f651c1a146105e557806370a08231146105ae578063715018a61461053957806388853ca4146104d55780638da5cb5b146104af578063a9059cbb14610452578063a9181a711461040f578063d0e30db0146103e8578063f2fde38b146102f25763f3f01a45146101615750610010565b9190346102ee57816003193601126102ee5780359061017e610ba2565b338552600160205261019583858720541015610c82565b3385526001602052838520838154039055846001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001692833b156102ea5785517fd0e30db00000000000000000000000000000000000000000000000000000000081528281838189895af180156102e0576102bf575b50916020939161026595938751968795869485937fa9059cbb0000000000000000000000000000000000000000000000000000000085528401602090939291936001600160a01b0360408201951681520152565b03925af19081156102b35761028292508391610285575b50610e56565b80f35b6102a6915060203d81116102ac575b61029e8183610cf7565b810190610e3e565b3861027c565b503d610294565b505051903d90823e3d90fd5b916102ce819694929593610ccd565b6102dc579193909238610211565b8480fd5b87513d85823e3d90fd5b5080fd5b8280fd5b509190346102ee5760206003193601126102ee5761030e610bbd565b90610317610c07565b6001600160a01b0380921692831561037f575050600054827fffffffffffffffffffffffff0000000000000000000000000000000000000000821617600055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a380f35b906020608492519162461bcd60e51b8352820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152fd5b5082816003193601126102ea573382526001602052812061040a348254610c5f565b905580f35b5082346102ea5760206003193601126102ea576001600160a01b03610432610bbd565b61043a610c07565b16825260026020528120600160ff1982541617905580f35b5082346102ea57806003193601126102ea5761046c610bbd565b906001600160a01b0360243592338552600160205261049084848720541015610eec565b3385526001602052828520848154039055168352822090815401905580f35b5082346102ea57816003193601126102ea576001600160a01b0360209254169051908152f35b5082346102ea57610282906104e936610bd3565b9092338652600260205261050260ff8288205416610ea1565b6001600160a01b03809316808752600160205261052485838920541015610c82565b86526001602052852083815403905516610d1a565b50346105ab57806003193601126105ab57610552610c07565b60006001600160a01b0381547fffffffffffffffffffffffff000000000000000000000000000000000000000081168355167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b80fd5b5082346102ea5760206003193601126102ea57806020926001600160a01b036105d5610bbd565b1681526001845220549051908152f35b5082346102ea5760206003193601126102ea576001600160a01b03610608610bbd565b610610610c07565b1682526002602052812060ff19815416905580f35b509190346102ee57816003193601126102ee57803591610643610ba2565b91846001600160a01b0391827f0000000000000000000000000000000000000000000000000000000000000000169084517f23b872dd000000000000000000000000000000000000000000000000000000008152338282015230602482015287604482015260208160648187875af190811561074757906106ca9185916102855750610e56565b813b156102ee57866024849283885195869485937f2e1a7d4d0000000000000000000000000000000000000000000000000000000085528401525af1801561073d57610729575b505061040a9216845260016020528320918254610c5f565b61073290610ccd565b6102dc578438610711565b84513d84823e3d90fd5b86513d86823e3d90fd5b5082346102ea5761076136610bd3565b92919092338552600260205261077c60ff8487205416610ea1565b6001600160a01b03809216808652600160205261079e85858820541015610eec565b85526001602052828520848154039055168352822090815401905580f35b509190346102ee576107cd36610bd3565b919290338652602093600285526107e960ff8789205416610ea1565b6001600160a01b038091168088526001865261080a83888a20541015610c82565b8752600185528587208281540390557f000000000000000000000000000000000000000000000000000000000000000016803b15610939578551937fd0e30db0000000000000000000000000000000000000000000000000000000008552878086868187875af194851561092d578795610915575b6108cd96508851968795869485937fa9059cbb0000000000000000000000000000000000000000000000000000000085528401602090939291936001600160a01b0360408201951681520152565b03925af191821561090857610282935084926108eb575b5050610e56565b6109019250803d106102ac5761029e8183610cf7565b38806108e4565b50505051903d90823e3d90fd5b94506109218196610ccd565b6102dc5784869461087f565b508751903d90823e3d90fd5b8680fd5b5082346102ea57816003193601126102ea57602090516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168152f35b5091346102ee5760206003193601126102ee5761028291359033845260016020526109b182828620541015610c82565b3384526001602052832081815403905533610d1a565b5091346102ee57806003193601126102ee578135916109e4610ba2565b90338552602091600283526109fe60ff8588205416610ea1565b6001600160a01b0391827f0000000000000000000000000000000000000000000000000000000000000000169085517f70a0823100000000000000000000000000000000000000000000000000000000815230828201528581602481865afa908115610b98579088918a91610b63575b5010610afb578790823b156102ea576024889183895195869485937f2e1a7d4d0000000000000000000000000000000000000000000000000000000085528401525af18015610af157610ad3575b501684526001905282208054909161040a91610c5f565b9161040a94939196610ae6600194610ccd565b969193945091610abc565b85513d89823e3d90fd5b6084908587519162461bcd60e51b8352820152602160248201527f43616e277420636f6e76657274207768617420776520646f6e2774206861766560448201527f2e000000000000000000000000000000000000000000000000000000000000006064820152fd5b809250878092503d8311610b91575b610b7c8183610cf7565b81010312610b8d5787905138610a6e565b8880fd5b503d610b72565b87513d8b823e3d90fd5b602435906001600160a01b0382168203610bb857565b600080fd5b600435906001600160a01b0382168203610bb857565b6003196060910112610bb8576001600160a01b036004358181168103610bb85791602435916044359081168103610bb85790565b6001600160a01b03600054163303610c1b57565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b91908201809211610c6c57565b634e487b7160e01b600052601160045260246000fd5b15610c8957565b606460405162461bcd60e51b815260206004820152601f60248201527f4e6f7420656e6f7567682062616c616e636520746f2077697468647261772e006044820152fd5b67ffffffffffffffff8111610ce157604052565b634e487b7160e01b600052604160045260246000fd5b90601f601f19910116810190811067ffffffffffffffff821117610ce157604052565b814710610dfa576001600160a01b0390600080809481948294165af1903d15610df4573d9067ffffffffffffffff8211610de05760405191610d666020601f19601f8401160184610cf7565b825260203d92013e5b15610d7657565b608460405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152fd5b80634e487b7160e01b602492526041600452fd5b50610d6f565b606460405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152fd5b90816020910312610bb857518015158103610bb85790565b15610e5d57565b606460405162461bcd60e51b815260206004820152601360248201527f4661696c656420746f207472616e736665722e000000000000000000000000006044820152fd5b15610ea857565b606460405162461bcd60e51b815260206004820152600d60248201527f4e6f7420617070726f7665642e000000000000000000000000000000000000006044820152fd5b15610ef357565b606460405162461bcd60e51b815260206004820152601f60248201527f4e6f7420656e6f7567682062616c616e636520746f207472616e736665722e006044820152fdfea264697066735822122018773fadda493037f3c13c4e5717ec3b95b8ff6feca402522378700bcae3beec64736f6c63430008110033000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Deployed Bytecode
0x6040608081526004803610156100a5575b361561001b57600080fd5b333b61003d5750336000526001602052600020610039348254610c5f565b9055005b6020608492519162461bcd60e51b8352820152603660248201527f436f6e7472616374732063616e6e6f74206465706f73697420746f207645544860448201527f2076696120726563656976652066616c6c6261636b2e000000000000000000006064820152fd5b6000803560e01c80630ac9c8de146109c75780632e1a7d4d146109815780634aa4a4fc1461093d5780634b6c0f2c146107bc5780634c6ef41414610751578063606683d8146106255780636f651c1a146105e557806370a08231146105ae578063715018a61461053957806388853ca4146104d55780638da5cb5b146104af578063a9059cbb14610452578063a9181a711461040f578063d0e30db0146103e8578063f2fde38b146102f25763f3f01a45146101615750610010565b9190346102ee57816003193601126102ee5780359061017e610ba2565b338552600160205261019583858720541015610c82565b3385526001602052838520838154039055846001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc21692833b156102ea5785517fd0e30db00000000000000000000000000000000000000000000000000000000081528281838189895af180156102e0576102bf575b50916020939161026595938751968795869485937fa9059cbb0000000000000000000000000000000000000000000000000000000085528401602090939291936001600160a01b0360408201951681520152565b03925af19081156102b35761028292508391610285575b50610e56565b80f35b6102a6915060203d81116102ac575b61029e8183610cf7565b810190610e3e565b3861027c565b503d610294565b505051903d90823e3d90fd5b916102ce819694929593610ccd565b6102dc579193909238610211565b8480fd5b87513d85823e3d90fd5b5080fd5b8280fd5b509190346102ee5760206003193601126102ee5761030e610bbd565b90610317610c07565b6001600160a01b0380921692831561037f575050600054827fffffffffffffffffffffffff0000000000000000000000000000000000000000821617600055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a380f35b906020608492519162461bcd60e51b8352820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152fd5b5082816003193601126102ea573382526001602052812061040a348254610c5f565b905580f35b5082346102ea5760206003193601126102ea576001600160a01b03610432610bbd565b61043a610c07565b16825260026020528120600160ff1982541617905580f35b5082346102ea57806003193601126102ea5761046c610bbd565b906001600160a01b0360243592338552600160205261049084848720541015610eec565b3385526001602052828520848154039055168352822090815401905580f35b5082346102ea57816003193601126102ea576001600160a01b0360209254169051908152f35b5082346102ea57610282906104e936610bd3565b9092338652600260205261050260ff8288205416610ea1565b6001600160a01b03809316808752600160205261052485838920541015610c82565b86526001602052852083815403905516610d1a565b50346105ab57806003193601126105ab57610552610c07565b60006001600160a01b0381547fffffffffffffffffffffffff000000000000000000000000000000000000000081168355167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b80fd5b5082346102ea5760206003193601126102ea57806020926001600160a01b036105d5610bbd565b1681526001845220549051908152f35b5082346102ea5760206003193601126102ea576001600160a01b03610608610bbd565b610610610c07565b1682526002602052812060ff19815416905580f35b509190346102ee57816003193601126102ee57803591610643610ba2565b91846001600160a01b0391827f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2169084517f23b872dd000000000000000000000000000000000000000000000000000000008152338282015230602482015287604482015260208160648187875af190811561074757906106ca9185916102855750610e56565b813b156102ee57866024849283885195869485937f2e1a7d4d0000000000000000000000000000000000000000000000000000000085528401525af1801561073d57610729575b505061040a9216845260016020528320918254610c5f565b61073290610ccd565b6102dc578438610711565b84513d84823e3d90fd5b86513d86823e3d90fd5b5082346102ea5761076136610bd3565b92919092338552600260205261077c60ff8487205416610ea1565b6001600160a01b03809216808652600160205261079e85858820541015610eec565b85526001602052828520848154039055168352822090815401905580f35b509190346102ee576107cd36610bd3565b919290338652602093600285526107e960ff8789205416610ea1565b6001600160a01b038091168088526001865261080a83888a20541015610c82565b8752600185528587208281540390557f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc216803b15610939578551937fd0e30db0000000000000000000000000000000000000000000000000000000008552878086868187875af194851561092d578795610915575b6108cd96508851968795869485937fa9059cbb0000000000000000000000000000000000000000000000000000000085528401602090939291936001600160a01b0360408201951681520152565b03925af191821561090857610282935084926108eb575b5050610e56565b6109019250803d106102ac5761029e8183610cf7565b38806108e4565b50505051903d90823e3d90fd5b94506109218196610ccd565b6102dc5784869461087f565b508751903d90823e3d90fd5b8680fd5b5082346102ea57816003193601126102ea57602090516001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2168152f35b5091346102ee5760206003193601126102ee5761028291359033845260016020526109b182828620541015610c82565b3384526001602052832081815403905533610d1a565b5091346102ee57806003193601126102ee578135916109e4610ba2565b90338552602091600283526109fe60ff8588205416610ea1565b6001600160a01b0391827f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2169085517f70a0823100000000000000000000000000000000000000000000000000000000815230828201528581602481865afa908115610b98579088918a91610b63575b5010610afb578790823b156102ea576024889183895195869485937f2e1a7d4d0000000000000000000000000000000000000000000000000000000085528401525af18015610af157610ad3575b501684526001905282208054909161040a91610c5f565b9161040a94939196610ae6600194610ccd565b969193945091610abc565b85513d89823e3d90fd5b6084908587519162461bcd60e51b8352820152602160248201527f43616e277420636f6e76657274207768617420776520646f6e2774206861766560448201527f2e000000000000000000000000000000000000000000000000000000000000006064820152fd5b809250878092503d8311610b91575b610b7c8183610cf7565b81010312610b8d5787905138610a6e565b8880fd5b503d610b72565b87513d8b823e3d90fd5b602435906001600160a01b0382168203610bb857565b600080fd5b600435906001600160a01b0382168203610bb857565b6003196060910112610bb8576001600160a01b036004358181168103610bb85791602435916044359081168103610bb85790565b6001600160a01b03600054163303610c1b57565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b91908201809211610c6c57565b634e487b7160e01b600052601160045260246000fd5b15610c8957565b606460405162461bcd60e51b815260206004820152601f60248201527f4e6f7420656e6f7567682062616c616e636520746f2077697468647261772e006044820152fd5b67ffffffffffffffff8111610ce157604052565b634e487b7160e01b600052604160045260246000fd5b90601f601f19910116810190811067ffffffffffffffff821117610ce157604052565b814710610dfa576001600160a01b0390600080809481948294165af1903d15610df4573d9067ffffffffffffffff8211610de05760405191610d666020601f19601f8401160184610cf7565b825260203d92013e5b15610d7657565b608460405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152fd5b80634e487b7160e01b602492526041600452fd5b50610d6f565b606460405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152fd5b90816020910312610bb857518015158103610bb85790565b15610e5d57565b606460405162461bcd60e51b815260206004820152601360248201527f4661696c656420746f207472616e736665722e000000000000000000000000006044820152fd5b15610ea857565b606460405162461bcd60e51b815260206004820152600d60248201527f4e6f7420617070726f7665642e000000000000000000000000000000000000006044820152fd5b15610ef357565b606460405162461bcd60e51b815260206004820152601f60248201527f4e6f7420656e6f7567682062616c616e636520746f207472616e736665722e006044820152fdfea264697066735822122018773fadda493037f3c13c4e5717ec3b95b8ff6feca402522378700bcae3beec64736f6c63430008110033
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 |
---|---|---|---|---|---|
ETH | Ether (ETH) | 100.00% | $3,248.7 | 13.2753 | $43,127.4 |
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.