Skip to content
Verified contractExactMIT

RecoverFundss

Address0xa56b49db164d37be2f5df2830db0c666380cea66
Balance

0 ETH

 

Transactions

299

 

Compiler

solc 0.8.26

 

Same code

2 more contracts

 

Details

Compiler
solc 0.8.26+commit.8a97fa7a
Language
solidity
Optimization
No
License
MIT
Match
Exactcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
24,739,943
Creation transaction
0x69c997a49b…6eccd5a7ac

recovery.sol

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

contract RecoverFundss {
    address payable public owner;

    constructor() {
        owner = payable(msg.sender);
    }

    // Call this to get all BNB back
    function withdrawBNB() public {
        require(msg.sender == owner, "Not owner");
        owner.transfer(address(this).balance);
    }

    // Call this if you have tokens (like USDT/BUSD)
    function withdrawToken(address _token) public {
        require(msg.sender == owner, "Not owner");
        uint256 balance = IERC20(_token).balanceOf(address(this));
        IERC20(_token).transfer(owner, balance);
    }
}

interface IERC20 {
    function balanceOf(address account) external view returns (uint256);
    function transfer(address to, uint256 amount) external returns (bool);
}
Compiler settingsShow
{
  "optimizer": {
    "runs": 200,
    "enabled": false
  },
  "remappings": []
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.