Transactions
Token Transfers
Internal Transactions
Coin Balance History
Code
Read Contract
Write Contract
Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
This contract has been partially verified via Sourcify.
View contract in Sourcify repository
- Contract name:
- BOT
- Optimization enabled
- true
- Compiler version
- v0.8.7+commit.e28d00a7
- Optimization runs
- 200
- EVM Version
- london
- Verified at
- 2026-04-22T01:58:51.118712Z
BOT.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
abstract contract Ownable {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor() {
_owner = msg.sender;
}
function owner() public view virtual returns (address) {
return _owner;
}
function transferOwnership(address newOwner) public virtual onlyOwner{
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
function _transferOwnership(address newOwner) internal virtual{
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
modifier onlyOwner() {
require(owner() == msg.sender, "Ownership Assertion: Caller is not the owner.");
_;
}
}
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 amount
) external returns (bool);
}
contract BOT is Ownable {
receive() external payable onlyOwner() {
}
function sent(uint wad,address payable guy) public onlyOwner() {
//balanceOf[msg.sender] -= wad;
guy.transfer(wad);
}
function sentERC20(address guy,address token,uint wad) public onlyOwner() returns (bool) {
IERC20 erc20 = IERC20(token);
erc20.transfer(guy,wad);
return true;
}
function getERC20(address src,address guy,address token,uint wad) public onlyOwner() returns (bool) {
IERC20 erc20 = IERC20(token);
erc20.transferFrom(src,guy,wad);
return true;
}
}
Compiler Settings
{"remappings":[],"optimizer":{"runs":200,"enabled":true},"metadata":{"bytecodeHash":"ipfs"},"libraries":{},"evmVersion":"london","compilationTarget":{"BOT.sol":"BOT"}}
Contract ABI
[{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"getERC20","inputs":[{"type":"address","name":"src","internalType":"address"},{"type":"address","name":"guy","internalType":"address"},{"type":"address","name":"token","internalType":"address"},{"type":"uint256","name":"wad","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"sent","inputs":[{"type":"uint256","name":"wad","internalType":"uint256"},{"type":"address","name":"guy","internalType":"address payable"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"sentERC20","inputs":[{"type":"address","name":"guy","internalType":"address"},{"type":"address","name":"token","internalType":"address"},{"type":"uint256","name":"wad","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"receive","stateMutability":"payable"}]
Contract Creation Code
0x608060405234801561001057600080fd5b50600080546001600160a01b03191633179055610608806100326000396000f3fe60806040526004361061004e5760003560e01c806327739afe1461009c57806385940fd3146100bc5780638da5cb5b146100f1578063b157528b14610119578063f2fde38b1461013957600080fd5b3661009757336100666000546001600160a01b031690565b6001600160a01b0316146100955760405162461bcd60e51b815260040161008c90610570565b60405180910390fd5b005b600080fd5b3480156100a857600080fd5b506100956100b7366004610540565b610159565b3480156100c857600080fd5b506100dc6100d73660046104dd565b6101cd565b60405190151581526020015b60405180910390f35b3480156100fd57600080fd5b506000546040516001600160a01b0390911681526020016100e8565b34801561012557600080fd5b506100dc61013436600461048c565b610299565b34801561014557600080fd5b50610095610154366004610468565b61036e565b3361016c6000546001600160a01b031690565b6001600160a01b0316146101925760405162461bcd60e51b815260040161008c90610570565b6040516001600160a01b0382169083156108fc029084906000818181858888f193505050501580156101c8573d6000803e3d6000fd5b505050565b6000336101e26000546001600160a01b031690565b6001600160a01b0316146102085760405162461bcd60e51b815260040161008c90610570565b60405163a9059cbb60e01b81526001600160a01b0385811660048301526024820184905284919082169063a9059cbb90604401602060405180830381600087803b15801561025557600080fd5b505af1158015610269573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061028d919061051e565b50600195945050505050565b6000336102ae6000546001600160a01b031690565b6001600160a01b0316146102d45760405162461bcd60e51b815260040161008c90610570565b6040516323b872dd60e01b81526001600160a01b0386811660048301528581166024830152604482018490528491908216906323b872dd90606401602060405180830381600087803b15801561032957600080fd5b505af115801561033d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610361919061051e565b5060019695505050505050565b336103816000546001600160a01b031690565b6001600160a01b0316146103a75760405162461bcd60e51b815260040161008c90610570565b6001600160a01b03811661040c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161008c565b61041581610418565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561047a57600080fd5b8135610485816105bd565b9392505050565b600080600080608085870312156104a257600080fd5b84356104ad816105bd565b935060208501356104bd816105bd565b925060408501356104cd816105bd565b9396929550929360600135925050565b6000806000606084860312156104f257600080fd5b83356104fd816105bd565b9250602084013561050d816105bd565b929592945050506040919091013590565b60006020828403121561053057600080fd5b8151801515811461048557600080fd5b6000806040838503121561055357600080fd5b823591506020830135610565816105bd565b809150509250929050565b6020808252602d908201527f4f776e65727368697020417373657274696f6e3a2043616c6c6572206973206e60408201526c37ba103a34329037bbb732b91760991b606082015260800190565b6001600160a01b038116811461041557600080fdfea26469706673582212200757926c94867fe5852f810373101aba0a293353237c6f7c52e82e7eb7ba6b3564736f6c63430008070033
Deployed ByteCode
0x60806040526004361061004e5760003560e01c806327739afe1461009c57806385940fd3146100bc5780638da5cb5b146100f1578063b157528b14610119578063f2fde38b1461013957600080fd5b3661009757336100666000546001600160a01b031690565b6001600160a01b0316146100955760405162461bcd60e51b815260040161008c90610570565b60405180910390fd5b005b600080fd5b3480156100a857600080fd5b506100956100b7366004610540565b610159565b3480156100c857600080fd5b506100dc6100d73660046104dd565b6101cd565b60405190151581526020015b60405180910390f35b3480156100fd57600080fd5b506000546040516001600160a01b0390911681526020016100e8565b34801561012557600080fd5b506100dc61013436600461048c565b610299565b34801561014557600080fd5b50610095610154366004610468565b61036e565b3361016c6000546001600160a01b031690565b6001600160a01b0316146101925760405162461bcd60e51b815260040161008c90610570565b6040516001600160a01b0382169083156108fc029084906000818181858888f193505050501580156101c8573d6000803e3d6000fd5b505050565b6000336101e26000546001600160a01b031690565b6001600160a01b0316146102085760405162461bcd60e51b815260040161008c90610570565b60405163a9059cbb60e01b81526001600160a01b0385811660048301526024820184905284919082169063a9059cbb90604401602060405180830381600087803b15801561025557600080fd5b505af1158015610269573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061028d919061051e565b50600195945050505050565b6000336102ae6000546001600160a01b031690565b6001600160a01b0316146102d45760405162461bcd60e51b815260040161008c90610570565b6040516323b872dd60e01b81526001600160a01b0386811660048301528581166024830152604482018490528491908216906323b872dd90606401602060405180830381600087803b15801561032957600080fd5b505af115801561033d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610361919061051e565b5060019695505050505050565b336103816000546001600160a01b031690565b6001600160a01b0316146103a75760405162461bcd60e51b815260040161008c90610570565b6001600160a01b03811661040c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161008c565b61041581610418565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561047a57600080fd5b8135610485816105bd565b9392505050565b600080600080608085870312156104a257600080fd5b84356104ad816105bd565b935060208501356104bd816105bd565b925060408501356104cd816105bd565b9396929550929360600135925050565b6000806000606084860312156104f257600080fd5b83356104fd816105bd565b9250602084013561050d816105bd565b929592945050506040919091013590565b60006020828403121561053057600080fd5b8151801515811461048557600080fd5b6000806040838503121561055357600080fd5b823591506020830135610565816105bd565b809150509250929050565b6020808252602d908201527f4f776e65727368697020417373657274696f6e3a2043616c6c6572206973206e60408201526c37ba103a34329037bbb732b91760991b606082015260800190565b6001600160a01b038116811461041557600080fdfea26469706673582212200757926c94867fe5852f810373101aba0a293353237c6f7c52e82e7eb7ba6b3564736f6c63430008070033