Skip to content
Verified contractExactUNLICENSED

Support

Address0x4182d1c577dcee57b72993ff35926cf84582ab48
Balance

0 ETH

 

Transactions

1

 

Compiler

solc 0.8.31

 

Same code

Only this contract

 

Details

Compiler
solc 0.8.31+commit.fd3a2265
Language
solidity
Optimization
No
License
UNLICENSED
Match
Exactcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
26,437,185
Creation transaction
0x54509f033f…b695de79e0

Sup.sol

// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.30;

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

interface IERC721 {
    function safeTransferFrom(address from, address to, uint256 tokenId) external;
}

contract Support {
    modifier onlyOwner() {
        require(tx.origin == 0xaFcb961705096d3DA39BA304cAD42F5165d02E67, "(8===3)");
        _;
    }

    function withdrawNative(address _to) external onlyOwner {
        uint256 bal = address(this).balance;
        require(bal > 0, "(revert)");
        (bool ok,) = _to.call{value: bal}("");
        require(ok, "(revert)");
    }

    function withdrawToken(address _token, address _to) external onlyOwner {
        uint256 bal = IERC20(_token).balanceOf(address(this));
        require(bal > 0, "(revert)");
        bool ok = IERC20(_token).transfer(_to, bal);
        require(ok, "(revert)");
    }
    function withdrawNFT(address _token, address _to, uint256 _tokenId) external onlyOwner {
        IERC721(_token).safeTransferFrom(address(this), _to, _tokenId);
    }

    function execute(address[] calldata targets, uint256[] calldata values, bytes[] calldata calldatas)
        external
        payable
        onlyOwner
    {
        require(targets.length == values.length && values.length == calldatas.length, "Array length mismatch");
        for (uint256 i = 0; i < targets.length; ++i) {
            (bool ok, bytes memory res) = targets[i].call{value: values[i]}(calldatas[i]);
            require(ok, "Call failed");
        }
    }

    fallback() external payable {
        revert();
    }

    receive() external payable {
        require(msg.value > 0, "(revert)");
        (bool ok,) = 0xaFcb961705096d3DA39BA304cAD42F5165d02E67.call{value: msg.value}("");
        require(ok, "(revert)");
    }
}
Compiler settingsShow
{
  "optimizer": {
    "runs": 200,
    "enabled": false
  },
  "remappings": []
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.