Verified contractExactMIT
Antidrain
Address0x0000004a25e070e8ca902cb5d6cb7c90dfd00000
- Balance
0 ETH
- Transactions
116
- Compiler
solc 0.8.34
- Same code
Only this contract
Details
- Compiler
- solc 0.8.34+commit.80d5c536
- Language
- solidity
- Optimization
- Yes, 200 runs
- EVM version
- cancun
- License
- MIT
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 24,866,852
- Creation transaction
- 0x4fa74654ef…985012c4b7
Read16
- BPS_DENOM() → (uint256)
- FEE_BPS() → (uint256)
- MAX_TOKENS() → (uint256)
- NAME() → (string)
- VERSION() → (string)
- accountNonces(address,address) → (uint256)
- blocked(address) → (bool)
- feeWallet() → (address)
- getNonce(address,address) → (uint256)
- isValidSignature(bytes32,bytes) → (bytes4)
- onERC1155BatchReceived(address,address,uint256[],uint256[],bytes) → (bytes4)
- onERC1155Received(address,address,uint256,uint256,bytes) → (bytes4)
- onERC721Received(address,address,uint256,bytes) → (bytes4)
- owner() → (address)
- paused() → (bool)
- supportsInterface(bytes4) → (bool)
Write10
- blockAccount(address)
- executeMoveERC20(address,address[],address)
- executeRescue(address,address[],address,bytes,address)
- moveERC20(address,address,address[],uint256,bytes)
- pause()
- rescue(address,address,address[],address,bytes,uint256,bytes)
- setFeeWallet(address)
- transferOwnership(address)
- unblockAccount(address)
- unpause()
Events7
- AccountBlocked(address)
- AccountUnblocked(address)
- FeeWalletUpdated(address,address)
- OwnershipTransferred(address,address)
- Paused(address)
- Rescued(address,address,address,uint256,uint256)
- Unpaused(address)
Errors16
- AccountIsBlocked()
- ClaimFailed()
- ContractPaused()
- ExecuteFailed(bytes)
- InvalidClaimTarget()
- InvalidRecipient()
- InvalidSignature()
- InvalidToken()
- NoBalance()
- NotDelegatedToAntidrain()
- Reentrancy()
- SelfRecipient()
- SignatureExpired()
- TooManyTokens()
- TransferFailed()
- Unauthorized()
ABI as JSON
[
{
"type": "constructor",
"inputs": [
{
"name": "initialOwner",
"type": "address",
"internalType": "address"
},
{
"name": "initialFeeWallet",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "nonpayable"
},
{
"name": "AccountIsBlocked",
"type": "error",
"inputs": []
},
{
"name": "ClaimFailed",
"type": "error",
"inputs": []
},
{
"name": "ContractPaused",
"type": "error",
"inputs": []
},
{
"name": "ExecuteFailed",
"type": "error",
"inputs": [
{
"name": "reason",
"type": "bytes",
"internalType": "bytes"
}
]
},
{
"name": "InvalidClaimTarget",
"type": "error",
"inputs": []
},
{
"name": "InvalidRecipient",
"type": "error",
"inputs": []
},
{
"name": "InvalidSignature",
"type": "error",
"inputs": []
},
{
"name": "InvalidToken",
"type": "error",
"inputs": []
},
{
"name": "NoBalance",
"type": "error",
"inputs": []
},
{
"name": "NotDelegatedToAntidrain",
"type": "error",
"inputs": []
},
{
"name": "Reentrancy",
"type": "error",
"inputs": []
},
{
"name": "SelfRecipient",
"type": "error",
"inputs": []
},
{
"name": "SignatureExpired",
"type": "error",
"inputs": []
},
{
"name": "TooManyTokens",
"type": "error",
"inputs": []
},
{
"name": "TransferFailed",
"type": "error",
"inputs": []
},
{
"name": "Unauthorized",
"type": "error",
"inputs": []
},
{
"name": "AccountBlocked",
"type": "event",
"inputs": [
{
"name": "account",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "AccountUnblocked",
"type": "event",
"inputs": [
{
"name": "account",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "FeeWalletUpdated",
"type": "event",
"inputs": [
{
"name": "previousFeeWallet",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "newFeeWallet",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "OwnershipTransferred",
"type": "event",
"inputs": [
{
"name": "previousOwner",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "newOwner",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "Paused",
"type": "event",
"inputs": [
{
"name": "account",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "Rescued",
"type": "event",
"inputs": [
{
"name": "account",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "safeRecipient",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "token",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "userAmount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "feeAmount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "Unpaused",
"type": "event",
"inputs": [
{
"name": "account",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "fallback",
"stateMutability": "payable"
},
{
"name": "BPS_DENOM",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "FEE_BPS",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "MAX_TOKENS",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "NAME",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "string",
"internalType": "string"
}
],
"stateMutability": "view"
},
{
"name": "VERSION",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "string",
"internalType": "string"
}
],
"stateMutability": "view"
},
{
"name": "accountNonces",
"type": "function",
"inputs": [
{
"name": "account",
"type": "address",
"internalType": "address"
},
{
"name": "sponsor",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "blockAccount",
"type": "function",
"inputs": [
{
"name": "account",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "blocked",
"type": "function",
"inputs": [
{
"name": "account",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "executeMoveERC20",
"type": "function",
"inputs": [
{
"name": "safeRecipient",
"type": "address",
"internalType": "address"
},
{
"name": "tokens",
"type": "address[]",
"internalType": "address[]"
},
{
"name": "fw",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "executeRescue",
"type": "function",
"inputs": [
{
"name": "safeRecipient",
"type": "address",
"internalType": "address"
},
{
"name": "tokens",
"type": "address[]",
"internalType": "address[]"
},
{
"name": "claimTarget",
"type": "address",
"internalType": "address"
},
{
"name": "claimData",
"type": "bytes",
"internalType": "bytes"
},
{
"name": "fw",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "payable"
},
{
"name": "feeWallet",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "getNonce",
"type": "function",
"inputs": [
{
"name": "account",
"type": "address",
"internalType": "address"
},
{
"name": "sponsor",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "isValidSignature",
"type": "function",
"inputs": [
{
"name": "hash",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "signature",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [
{
"name": "",
"type": "bytes4",
"internalType": "bytes4"
}
],
"stateMutability": "view"
},
{
"name": "moveERC20",
"type": "function",
"inputs": [
{
"name": "account",
"type": "address",
"internalType": "address"
},
{
"name": "safeRecipient",
"type": "address",
"internalType": "address"
},
{
"name": "tokens",
"type": "address[]",
"internalType": "address[]"
},
{
"name": "deadline",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "signature",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "onERC1155BatchReceived",
"type": "function",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
},
{
"name": "",
"type": "address",
"internalType": "address"
},
{
"name": "",
"type": "uint256[]",
"internalType": "uint256[]"
},
{
"name": "",
"type": "uint256[]",
"internalType": "uint256[]"
},
{
"name": "",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [
{
"name": "",
"type": "bytes4",
"internalType": "bytes4"
}
],
"stateMutability": "view"
},
{
"name": "onERC1155Received",
"type": "function",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
},
{
"name": "",
"type": "address",
"internalType": "address"
},
{
"name": "",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [
{
"name": "",
"type": "bytes4",
"internalType": "bytes4"
}
],
"stateMutability": "view"
},
{
"name": "onERC721Received",
"type": "function",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
},
{
"name": "",
"type": "address",
"internalType": "address"
},
{
"name": "",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [
{
"name": "",
"type": "bytes4",
"internalType": "bytes4"
}
],
"stateMutability": "view"
},
{
"name": "owner",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "pause",
"type": "function",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "paused",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "rescue",
"type": "function",
"inputs": [
{
"name": "account",
"type": "address",
"internalType": "address"
},
{
"name": "safeRecipient",
"type": "address",
"internalType": "address"
},
{
"name": "tokens",
"type": "address[]",
"internalType": "address[]"
},
{
"name": "claimTarget",
"type": "address",
"internalType": "address"
},
{
"name": "claimData",
"type": "bytes",
"internalType": "bytes"
},
{
"name": "deadline",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "signature",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [],
"stateMutability": "payable"
},
{
"name": "setFeeWallet",
"type": "function",
"inputs": [
{
"name": "newFeeWallet",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "supportsInterface",
"type": "function",
"inputs": [
{
"name": "interfaceId",
"type": "bytes4",
"internalType": "bytes4"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "pure"
},
{
"name": "transferOwnership",
"type": "function",
"inputs": [
{
"name": "newOwner",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "unblockAccount",
"type": "function",
"inputs": [
{
"name": "account",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "unpause",
"type": "function",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "receive",
"stateMutability": "payable"
}
]Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.