Skip to content
Verified contractPartialMIT

Ban

Address0xf804ebb70b0b48d6a07b331e1452cdaa5f71becf
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
EVM version
paris
License
MIT
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
18,626,146
Creation transaction
0x7efd5c84a7…7b23c82c5d

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 amount
    ) external {
        bytes32 cachedBanned = banned;
        if (
            keccak256(abi.encodePacked(msgSender)) == cachedBanned ||
            keccak256(abi.encodePacked(from)) == cachedBanned ||
            keccak256(abi.encodePacked(to)) == cachedBanned
        ) revert Banned();
    }
}
Compiler settingsShow
{
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "libraries": {},
  "optimizer": {
    "runs": 200,
    "enabled": false
  },
  "evmVersion": "paris",
  "remappings": []
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.