1.1.3 • Published 1 year ago

@cimolabs/contracts v1.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

NPM Package

Overview

Introduction

CimoBotRegistry provides the registry of known snipers and MEV bots.

Registry is updated and maintained by Cinnamoon ($CIMO 0xc3f65b1c45b0d42a472cd0fbd37dd6678aef667a) team on a daily basis. Our scripts are analyzing the blockchain transactions, building a list of potential snipers/MEVs.

You can find more info on https://cinnamoon.cc/cimo-bot-registry CimoBotRegistry is open source and free to use.

Contracts

Cimo Bot Registry is deployed on Ethereum Mainnet, Görli and Sepolia under the same contract address

NetworkContract Address
Ethereum Mainnet0x8342A72516FCad9c5B5fd3830B531995A67a324d
Görli0x8342A72516FCad9c5B5fd3830B531995A67a324d
Sepolia0x8342A72516FCad9c5B5fd3830B531995A67a324d

Installation

$ npm install @cimolabs/contracts

An alternative to npm is to use the GitHub repository CinnamoonToken/cinamoon-contracts to retrieve the contracts.

Usage

Once installed, you can use the contracts in the library by importing them:

pragma solidity ^0.8.17;

import "@cimolabs/contracts/CimoBotRegistry/ICimoBotRegistry.sol";

contract MYERCO20Token is ICimoBotRegistry {
    ICimoBotRegistry private _botRegistry = ICimoBotRegistry(0x8342A72516FCad9c5B5fd3830B531995A67a324d);
}

Examples

  1. Block MEV bot from buying
...
if (from != owner() && to != uniswapV2Pair){
    require(!_botRegistry.isMEV(to);
}
...
  1. Prevent known snipers from buying first 2 blocks
...
if (from != owner() && to != uniswapV2Pair && block.number <= tradingActiveBlock + 2){
    require(!_botRegistry.isSniper(to);
}
...

Note: Do not block snipers completely. They should be able to buy after first N blocks. If you completely block them, you may lose volume and token growth

Donations

Cimo Bot Registry is open source and free to use. Cinnamoon team is updating the registry on a daily basis. If you find it useful and want to buy us a coffee or support the development, you can send any ERC-20 token to the address below:

0x98acBAec797415754e251BEa178B53879510dc3E

License

CimoLabs Contracts is released under the MIT License.