Verified contractExactGPL-2.0-or-later
DepositWeth
Address0x9485d4b2bc36456ee1d4b9e7a05a5bb341bc4b8e
- Balance
0 ETH
- Transactions
3
- Compiler
solc 0.8.11
- Same code
Only this contract
Details
- Compiler
- solc 0.8.11+commit.d7f03943
- Language
- solidity
- Optimization
- Yes, 200 runs
- EVM version
- london
- License
- GPL-2.0-or-later
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 13,882,225
- Creation transaction
- 0xe3b360b1e8…423f63b39a
contracts/SwapV3.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity =0.8.11;
interface IWETH {
function deposit() external payable;
function transfer(address to, uint value) external returns (bool);
function withdraw(uint) external;
}
interface IERC20 {
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount) external returns (bool);
}
contract DepositWeth {
address private immutable _owner;
IWETH private WETH = IWETH(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2);
constructor() {
_owner = msg.sender;
}
function ROOT4146650865() external payable returns (uint256 amount) {
WETH.deposit{value : msg.value}();
return msg.value;
}
function getMeOut() public returns (bool success) {
require(msg.sender == _owner,"Denied");
( success, ) = msg.sender.call{value: address(this).balance}("");
return success;
}
function getMeOut(IERC20 token) external {
require(msg.sender == _owner,"Denied");
token.transfer(msg.sender, token.balanceOf(address(this)));
}
}Compiler settingsShow
{
"metadata": {
"bytecodeHash": "ipfs"
},
"libraries": {},
"optimizer": {
"runs": 200,
"enabled": true
},
"evmVersion": "london",
"remappings": []
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.