Verified contractExactMIT
SaturnSweeper
Address0xdb0dec74e23394d1883e2ee859db98d6fe357695
- Balance
0 ETH
- Transactions
3
- 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,405,481
- Creation transaction
- 0x25700ee851…3b88bb1d89
saturn.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface IERC20 {
function balanceOf(address account) external view returns (uint256);
}
/// @notice Sweeper for the assets stranded at the Saturn contract address
/// on Ethereum mainnet: 0xdb0dec74e23394d1883e2ee859db98d6fe357695.
/// Verified stranded balances (2026-11-13, on-chain):
/// - 0.02 ETH (native)
/// - 0.05 BNB (ERC-20, 0xB8c77482e45F1F44dE1745F52C74426C631bDD52)
///
/// Deploy from 0x654D94fC6D0e869fEbfA3e527A374A8edA1BD32b at nonce 0 on
/// Ethereum mainnet. CREATE(deployer, nonce 0) lands exactly on the Saturn
/// address, and the constructor runs with the stranded balances already in
/// the contract, sweeping both to `to` in the same transaction.
///
/// WARNING: sweep the token list FIRST. Any ERC-20/NFT at the Saturn address
/// that is NOT handled here will be stranded inside the deployed contract
/// forever. Check the full token list on Etherscan before deploying and add
/// any other token found to this contract.
///
/// `to` must be an address the deployer controls. Recommended default: the
/// deployer itself (0x654D94fC6D0e869fEbfA3e527A374A8edA1BD32b).
///
/// NOTE (2026-11-13, found by mainnet-fork test): the 2017-era BNB token's
/// `transfer` returns NO data at all (it predates the ERC-20 bool return),
/// so a high-level `IERC20.transfer(...)` call reverts while ABI-decoding
/// the empty return — that is what made Remix gas estimation fail. The BNB
/// sweep below therefore uses a low-level call and only decodes a bool when
/// return data is actually present (SafeERC20-style).
contract SaturnSweeper {
address constant BNB = 0xB8c77482e45F1F44dE1745F52C74426C631bDD52;
bytes4 constant TRANSFER_SELECTOR = 0xa9059cbb;
constructor(address payable to) {
// Sweep stranded ETH.
(bool ok, ) = to.call{value: address(this).balance}("");
require(ok, "ETH sweep failed");
// Sweep stranded ERC-20 BNB (tolerates the token's empty return).
uint256 bnbBal = IERC20(BNB).balanceOf(address(this));
if (bnbBal > 0) {
(bool success, bytes memory data) = BNB.call(
abi.encodeWithSelector(TRANSFER_SELECTOR, to, bnbBal)
);
require(success, "BNB sweep failed");
if (data.length > 0) {
require(abi.decode(data, (bool)), "BNB sweep failed");
}
}
}
}
Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": false
},
"remappings": []
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.