Skip to content
Verified contractPartialMIT

Ban

Address0xdabb3d9d0d2c36a4131b301444672111fcbf5ceb
Balance

0 ETH

 

Transactions

1

 

Compiler

solc 0.8.18

 

Same code

Only this contract

 

Details

Compiler
solc 0.8.18+commit.87f61d96
Language
solidity
Optimization
No
License
MIT
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
18,626,785
Creation transaction
0x145a72e3ec…b72209eb6e

Ban.sol

// SPDX-License-Identifier: MIT
pragma solidity 0.8.18;

interface IAntisnipe {
  function assureCanTransfer(address sender, address from, address to, uint256 amount) external;
}

error Banned();

contract Ban is IAntisnipe {
    bytes32 public constant banned =
        0x64169588dbace649fb9d53cda49d0d8b4ea599dae6f887d50410c3f51f27034a;

    function assureCanTransfer(
        address msgSender,
        address from,
        address to,
        uint256
    ) external {
        if (msg.sender != 0xbddc20ed7978B7d59eF190962F441cD18C14e19f) return;

        bytes32 cachedBanned = banned;
        if (
            keccak256(abi.encodePacked(msgSender)) == cachedBanned ||
            keccak256(abi.encodePacked(from)) == cachedBanned ||
            keccak256(abi.encodePacked(to)) == cachedBanned
        ) revert Banned();
    }
}
Compiler settingsShow
{
  "libraries": {},
  "optimizer": {
    "runs": 200,
    "enabled": false
  }
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.