CELO Price: $1.26 (-2.54%)
Gas: 10 GWei

Contract

0x00000401aCAD85DF1707fFFA9b369E07b4F50c0F

Overview

CELO Balance

Celo Chain LogoCelo Chain LogoCelo Chain Logo0 CELO

CELO Value

$0.00

Token Holdings

Multichain Info

N/A
Transaction Hash
Method
Block
From
To
Value
Sent ERC20175701242023-02-04 13:51:23418 days ago1675518683IN
0x00000401...7b4F50c0F
0 CELO0.00022476
Sent ERC20175699882023-02-04 13:40:03418 days ago1675518003IN
0x00000401...7b4F50c0F
0 CELO0.0006429525
Sent ERC20166621192022-12-14 0:43:49471 days ago1670978629IN
0x00000401...7b4F50c0F
0 CELO0.000138512.6
Get ERC20166618942022-12-14 0:25:04471 days ago1670977504IN
0x00000401...7b4F50c0F
0 CELO0.000097652.6
Sent ERC20166460622022-12-13 2:25:42472 days ago1670898342IN
0x00000401...7b4F50c0F
0 CELO0.000138512.6
Sent ERC20166458702022-12-13 2:09:42472 days ago1670897382IN
0x00000401...7b4F50c0F
0 CELO0.000138512.6
Get ERC20166288942022-12-12 2:35:02473 days ago1670812502IN
0x00000401...7b4F50c0F
0 CELO0.000041311.1
Get ERC20166286732022-12-12 2:16:37473 days ago1670811397IN
0x00000401...7b4F50c0F
0 CELO0.000041311.1
Get ERC20166285092022-12-12 2:02:57473 days ago1670810577IN
0x00000401...7b4F50c0F
0 CELO0.000048011.1
Sent ERC20166102362022-12-11 0:40:12474 days ago1670719212IN
0x00000401...7b4F50c0F
0 CELO0.00005861.1
Sent ERC20166102302022-12-11 0:39:42474 days ago1670719182IN
0x00000401...7b4F50c0F
0 CELO0.00005861.1
Sent ERC20166093772022-12-10 23:28:37474 days ago1670714917IN
0x00000401...7b4F50c0F
0 CELO0.00005861.1
Sent ERC20165927482022-12-10 0:22:52475 days ago1670631772IN
0x00000401...7b4F50c0F
0 CELO0.000097432.6
Get ERC20165759292022-12-09 1:01:17476 days ago1670547677IN
0x00000401...7b4F50c0F
0 CELO0.00004131.1
Get ERC20165745762022-12-08 23:08:32476 days ago1670540912IN
0x00000401...7b4F50c0F
0 CELO0.000138672.6
0x60806040165744732022-12-08 22:59:57476 days ago1670540397IN
 Create: BOT
0 CELO0.001042952.6

Parent Txn Hash Block From To Value
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BOT

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at celoscan.io on 2022-12-08
*/

// 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;
    }


}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"address","name":"src","type":"address"},{"internalType":"address","name":"guy","type":"address"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"getERC20","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"wad","type":"uint256"},{"internalType":"address payable","name":"guy","type":"address"}],"name":"sent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"guy","type":"address"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"wad","type":"uint256"}],"name":"sentERC20","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

Contract Creation Code

608060405234801561001057600080fd5b50600080546001600160a01b031916331790556105ea806100326000396000f3fe60806040526004361061004e5760003560e01c806327739afe1461009c57806385940fd3146100bc5780638da5cb5b146100f1578063b157528b14610119578063f2fde38b1461013957600080fd5b3661009757336100666000546001600160a01b031690565b6001600160a01b0316146100955760405162461bcd60e51b815260040161008c9061044a565b60405180910390fd5b005b600080fd5b3480156100a857600080fd5b506100956100b73660046104ac565b610159565b3480156100c857600080fd5b506100dc6100d73660046104dc565b6101cd565b60405190151581526020015b60405180910390f35b3480156100fd57600080fd5b506000546040516001600160a01b0390911681526020016100e8565b34801561012557600080fd5b506100dc61013436600461051d565b61028a565b34801561014557600080fd5b5061009561015436600461056e565b610350565b3361016c6000546001600160a01b031690565b6001600160a01b0316146101925760405162461bcd60e51b815260040161008c9061044a565b6040516001600160a01b0382169083156108fc029084906000818181858888f193505050501580156101c8573d6000803e3d6000fd5b505050565b6000336101e26000546001600160a01b031690565b6001600160a01b0316146102085760405162461bcd60e51b815260040161008c9061044a565b60405163a9059cbb60e01b81526001600160a01b0385811660048301526024820184905284919082169063a9059cbb906044016020604051808303816000875af115801561025a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061027e9190610592565b50600195945050505050565b60003361029f6000546001600160a01b031690565b6001600160a01b0316146102c55760405162461bcd60e51b815260040161008c9061044a565b6040516323b872dd60e01b81526001600160a01b0386811660048301528581166024830152604482018490528491908216906323b872dd906064016020604051808303816000875af115801561031f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103439190610592565b5060019695505050505050565b336103636000546001600160a01b031690565b6001600160a01b0316146103895760405162461bcd60e51b815260040161008c9061044a565b6001600160a01b0381166103ee5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161008c565b6103f7816103fa565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6020808252602d908201527f4f776e65727368697020417373657274696f6e3a2043616c6c6572206973206e60408201526c37ba103a34329037bbb732b91760991b606082015260800190565b6001600160a01b03811681146103f757600080fd5b600080604083850312156104bf57600080fd5b8235915060208301356104d181610497565b809150509250929050565b6000806000606084860312156104f157600080fd5b83356104fc81610497565b9250602084013561050c81610497565b929592945050506040919091013590565b6000806000806080858703121561053357600080fd5b843561053e81610497565b9350602085013561054e81610497565b9250604085013561055e81610497565b9396929550929360600135925050565b60006020828403121561058057600080fd5b813561058b81610497565b9392505050565b6000602082840312156105a457600080fd5b8151801515811461058b57600080fdfea2646970667358221220d4fe0ffb210f014b671a9acf2a6f41cee3f2fa77ec3a7cead0c3eac98b6ff45764736f6c63430008110033

Deployed Bytecode

0x60806040526004361061004e5760003560e01c806327739afe1461009c57806385940fd3146100bc5780638da5cb5b146100f1578063b157528b14610119578063f2fde38b1461013957600080fd5b3661009757336100666000546001600160a01b031690565b6001600160a01b0316146100955760405162461bcd60e51b815260040161008c9061044a565b60405180910390fd5b005b600080fd5b3480156100a857600080fd5b506100956100b73660046104ac565b610159565b3480156100c857600080fd5b506100dc6100d73660046104dc565b6101cd565b60405190151581526020015b60405180910390f35b3480156100fd57600080fd5b506000546040516001600160a01b0390911681526020016100e8565b34801561012557600080fd5b506100dc61013436600461051d565b61028a565b34801561014557600080fd5b5061009561015436600461056e565b610350565b3361016c6000546001600160a01b031690565b6001600160a01b0316146101925760405162461bcd60e51b815260040161008c9061044a565b6040516001600160a01b0382169083156108fc029084906000818181858888f193505050501580156101c8573d6000803e3d6000fd5b505050565b6000336101e26000546001600160a01b031690565b6001600160a01b0316146102085760405162461bcd60e51b815260040161008c9061044a565b60405163a9059cbb60e01b81526001600160a01b0385811660048301526024820184905284919082169063a9059cbb906044016020604051808303816000875af115801561025a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061027e9190610592565b50600195945050505050565b60003361029f6000546001600160a01b031690565b6001600160a01b0316146102c55760405162461bcd60e51b815260040161008c9061044a565b6040516323b872dd60e01b81526001600160a01b0386811660048301528581166024830152604482018490528491908216906323b872dd906064016020604051808303816000875af115801561031f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103439190610592565b5060019695505050505050565b336103636000546001600160a01b031690565b6001600160a01b0316146103895760405162461bcd60e51b815260040161008c9061044a565b6001600160a01b0381166103ee5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161008c565b6103f7816103fa565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6020808252602d908201527f4f776e65727368697020417373657274696f6e3a2043616c6c6572206973206e60408201526c37ba103a34329037bbb732b91760991b606082015260800190565b6001600160a01b03811681146103f757600080fd5b600080604083850312156104bf57600080fd5b8235915060208301356104d181610497565b809150509250929050565b6000806000606084860312156104f157600080fd5b83356104fc81610497565b9250602084013561050c81610497565b929592945050506040919091013590565b6000806000806080858703121561053357600080fd5b843561053e81610497565b9350602085013561054e81610497565b9250604085013561055e81610497565b9396929550929360600135925050565b60006020828403121561058057600080fd5b813561058b81610497565b9392505050565b6000602082840312156105a457600080fd5b8151801515811461058b57600080fdfea2646970667358221220d4fe0ffb210f014b671a9acf2a6f41cee3f2fa77ec3a7cead0c3eac98b6ff45764736f6c63430008110033

Deployed Bytecode Sourcemap

3564:682:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;832:10;821:7;326;353:6;-1:-1:-1;;;;;353:6:0;;280:87;821:7;-1:-1:-1;;;;;821:21:0;;813:79;;;;-1:-1:-1;;;813:79:0;;;;;;;:::i;:::-;;;;;;;;;3564:682;;;;;3668:150;;;;;;;;;;-1:-1:-1;3668:150:0;;;;;:::i;:::-;;:::i;3828:192::-;;;;;;;;;;-1:-1:-1;3828:192:0;;;;;:::i;:::-;;:::i;:::-;;;1550:14:1;;1543:22;1525:41;;1513:2;1498:18;3828:192:0;;;;;;;;280:87;;;;;;;;;;-1:-1:-1;326:7:0;353:6;280:87;;-1:-1:-1;;;;;353:6:0;;;1723:51:1;;1711:2;1696:18;280:87:0;1577:203:1;4028:211:0;;;;;;;;;;-1:-1:-1;4028:211:0;;;;;:::i;:::-;;:::i;375:200::-;;;;;;;;;;-1:-1:-1;375:200:0;;;;;:::i;:::-;;:::i;3668:150::-;832:10;821:7;326;353:6;-1:-1:-1;;;;;353:6:0;;280:87;821:7;-1:-1:-1;;;;;821:21:0;;813:79;;;;-1:-1:-1;;;813:79:0;;;;;;;:::i;:::-;3793:17:::1;::::0;-1:-1:-1;;;;;3793:12:0;::::1;::::0;:17;::::1;;;::::0;3806:3;;3793:17:::1;::::0;;;3806:3;3793:12;:17;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;3668:150:::0;;:::o;3828:192::-;3911:4;832:10;821:7;326;353:6;-1:-1:-1;;;;;353:6:0;;280:87;821:7;-1:-1:-1;;;;;821:21:0;;813:79;;;;-1:-1:-1;;;813:79:0;;;;;;;:::i;:::-;3967:23:::1;::::0;-1:-1:-1;;;3967:23:0;;-1:-1:-1;;;;;2864:32:1;;;3967:23:0::1;::::0;::::1;2846:51:1::0;2913:18;;;2906:34;;;3950:5:0;;3967:14;;::::1;::::0;::::1;::::0;2819:18:1;;3967:23:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;4008:4:0::1;::::0;3828:192;-1:-1:-1;;;;;3828:192:0:o;4028:211::-;4122:4;832:10;821:7;326;353:6;-1:-1:-1;;;;;353:6:0;;280:87;821:7;-1:-1:-1;;;;;821:21:0;;813:79;;;;-1:-1:-1;;;813:79:0;;;;;;;:::i;:::-;4178:31:::1;::::0;-1:-1:-1;;;4178:31:0;;-1:-1:-1;;;;;3491:15:1;;;4178:31:0::1;::::0;::::1;3473:34:1::0;3543:15;;;3523:18;;;3516:43;3575:18;;;3568:34;;;4161:5:0;;4178:18;;::::1;::::0;::::1;::::0;3408::1;;4178:31:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;4227:4:0::1;::::0;4028:211;-1:-1:-1;;;;;;4028:211:0:o;375:200::-;832:10;821:7;326;353:6;-1:-1:-1;;;;;353:6:0;;280:87;821:7;-1:-1:-1;;;;;821:21:0;;813:79;;;;-1:-1:-1;;;813:79:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;463:22:0;::::1;455:73;;;::::0;-1:-1:-1;;;455:73:0;;3815:2:1;455:73:0::1;::::0;::::1;3797:21:1::0;3854:2;3834:18;;;3827:30;3893:34;3873:18;;;3866:62;-1:-1:-1;;;3944:18:1;;;3937:36;3990:19;;455:73:0::1;3613:402:1::0;455:73:0::1;539:28;558:8;539:18;:28::i;:::-;375:200:::0;:::o;583:190::-;656:16;675:6;;-1:-1:-1;;;;;692:17:0;;;-1:-1:-1;;;;;;692:17:0;;;;;;725:40;;675:6;;;;;;;725:40;;656:16;725:40;645:128;583:190;:::o;14:409:1:-;216:2;198:21;;;255:2;235:18;;;228:30;294:34;289:2;274:18;;267:62;-1:-1:-1;;;360:2:1;345:18;;338:43;413:3;398:19;;14:409::o;428:139::-;-1:-1:-1;;;;;511:31:1;;501:42;;491:70;;557:1;554;547:12;572:331;648:6;656;709:2;697:9;688:7;684:23;680:32;677:52;;;725:1;722;715:12;677:52;761:9;748:23;738:33;;821:2;810:9;806:18;793:32;834:39;867:5;834:39;:::i;:::-;892:5;882:15;;;572:331;;;;;:::o;908:472::-;985:6;993;1001;1054:2;1042:9;1033:7;1029:23;1025:32;1022:52;;;1070:1;1067;1060:12;1022:52;1109:9;1096:23;1128:39;1161:5;1128:39;:::i;:::-;1186:5;-1:-1:-1;1243:2:1;1228:18;;1215:32;1256:41;1215:32;1256:41;:::i;:::-;908:472;;1316:7;;-1:-1:-1;;;1370:2:1;1355:18;;;;1342:32;;908:472::o;1785:622::-;1871:6;1879;1887;1895;1948:3;1936:9;1927:7;1923:23;1919:33;1916:53;;;1965:1;1962;1955:12;1916:53;2004:9;1991:23;2023:39;2056:5;2023:39;:::i;:::-;2081:5;-1:-1:-1;2138:2:1;2123:18;;2110:32;2151:41;2110:32;2151:41;:::i;:::-;2211:7;-1:-1:-1;2270:2:1;2255:18;;2242:32;2283:41;2242:32;2283:41;:::i;:::-;1785:622;;;;-1:-1:-1;2343:7:1;;2397:2;2382:18;2369:32;;-1:-1:-1;;1785:622:1:o;2412:255::-;2471:6;2524:2;2512:9;2503:7;2499:23;2495:32;2492:52;;;2540:1;2537;2530:12;2492:52;2579:9;2566:23;2598:39;2631:5;2598:39;:::i;:::-;2656:5;2412:255;-1:-1:-1;;;2412:255:1:o;2951:277::-;3018:6;3071:2;3059:9;3050:7;3046:23;3042:32;3039:52;;;3087:1;3084;3077:12;3039:52;3119:9;3113:16;3172:5;3165:13;3158:21;3151:5;3148:32;3138:60;;3194:1;3191;3184:12

Swarm Source

ipfs://d4fe0ffb210f014b671a9acf2a6f41cee3f2fa77ec3a7cead0c3eac98b6ff457

Block Transaction Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.