Skip to content
Verified contractPartialMIT

Aaa

Address0x66ed87902c3cdf511da6435ea255c483a78cf6fc
Balance

0 ETH

 

Transactions

1

 

Compiler

solc 0.8.20

 

Same code

Only this contract

 

Details

Compiler
solc 0.8.20+commit.a1b79de6
Language
solidity
Optimization
No
License
MIT
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
23,991,816
Creation transaction
0x0e247c28d8…4ed03e4368

Aaa.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

interface IERC20 {
    function transfer(address to, uint256 amount) external returns (bool);
    function balanceOf(address account) external view returns (uint256);
}

contract Aaa {
    address constant OWNER = 0x0200d4D4cbE9Ba4ed322E9e5b8229fbEdead0000;

    modifier onlyOwner() {
        require(msg.sender == OWNER, "error");
        _;
    }

    function transferToken(address token, address recipient) external onlyOwner {
        uint256 bal = IERC20(token).balanceOf(address(this));
        require(bal > 0, "error");
        IERC20(token).transfer(recipient, bal);
    }

    function transferNative(address recipient) external onlyOwner {
        uint256 bal = address(this).balance;
        require(bal > 0, "error");
        payable(recipient).transfer(bal);
    }

    receive() external payable {}
}
Compiler settingsShow
{
  "libraries": {},
  "optimizer": {
    "runs": 200,
    "enabled": false
  }
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.