GithubHelp home page GithubHelp logo

b10c77 / honeypotchecker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 0xdaebak/honeypotchecker

0.0 0.0 0.0 16 KB

โšฑ๏ธ ๐Ÿ’Š ๐Ÿ” #1st Time On Internet - Check If Token is honeypot or not ๐Ÿฅ‡

License: MIT License

Solidity 100.00%

honeypotchecker's Introduction

๐Ÿฉบ HoneyPotChecker

#๐Ÿฅ‡1st Time On Internet

Complete Open Source HoneyPot Checker For BSC

Supports WBNB,BUSD,USDT

Contract Address : 0x77Dd873ad58418c40974016EbB792D2c20A1ABCA

It is a smart contract on bsc. You can check if token contract is honeypot or not.

HOW TO USE

  • Always use callStatic or eth_call to perform the operation because if you don't then you might loose some fund because we want to simulate the buy and sell so static call will just simulate the transaction and return the result without changing any state.
  • Make sure you have some funds in your wallet to perform the operation.
  • Use try & catch to make sure you won't mess your project runtime.
ROUTER = DEX ROUTER ADDRESS
BASE = EX. WBNB, USDT, BUSD
TOKEN = TOKEN CONTRACT ADDRESS

 _.callStatic.isHoneyPot(ROUTER,BASE,TOKEN, {
        value: AMOUNT
});

RESPONSE =
[
  false,
  '...',
  '...',
  BigNumber { _hex: '0x07c5afd2', _isBigNumber: true },
  BigNumber { _hex: '0x07129d70', _isBigNumber: true },
  BigNumber { _hex: '0x0c9195e6e59aa589', _isBigNumber: true },
  BigNumber { _hex: '0x0b42767a8d31f2ec', _isBigNumber: true },
  BigNumber { _hex: '0x0234fe', _isBigNumber: true },
  BigNumber { _hex: '0x067d50', _isBigNumber: true },
  isHoneyPot: false,
  base: '...',
  token: '...',
  estimatedBuy: BigNumber { _hex: '0x07c5afd2', _isBigNumber: true },
  buyAmount: BigNumber { _hex: '0x07129d70', _isBigNumber: true },
  estimatedSell: BigNumber { _hex: '0x0c9195e6e59aa589', _isBigNumber: true },
  sellAmount: BigNumber { _hex: '0x0b42767a8d31f2ec', _isBigNumber: true },
  buyGas: BigNumber { _hex: '0x0234fe', _isBigNumber: true },
  sellGas: BigNumber { _hex: '0x067d50', _isBigNumber: true }
]

let buyTax = Math.round(((parseInt(RESPONSE.estimatedBuy) - parseInt(RESPONSE.buyAmount)) / parseInt(RESPONSE.estimatedBuy)) * 100);
let sellTax = Math.round(((parseInt(RESPONSE.estimatedSell) - parseInt(RESPONSE.sellAmount)) / parseInt(RESPONSE.estimatedSell)) * 100);
        
//RESPONSE BREAKDOWN 
estimatedBuy = estimated amount of token bought
buyAmount = actual amount of token bought
estimatedSell = estimated amount of token sold
sellAmount = actual amount of token sold
buyGas = gas required to buy the token
sellGas = gas required to sell the token

Warning

  • ALWAYS use callstatic or eth_call to perform the operation.
  • Try this at your own risk. I'm not responsible if you lost your funds. This contract checks only the current state.
  • Nothing is perfect. This repo is constantly under development.
  • Contract does not hold any token or balance.
  • I'm not an expert. I'm always learning and improving myself so if you find any bugs, problems or issues then feel free to contact me.

Authors

License

MIT License

honeypotchecker's People

Contributors

0xdaebak avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.