Coder Social home page Coder Social logo

p's Introduction

DWYOR

pancakeswap sniper, pancakeswap early bot

npm install ethers

node earlybuy.js
	

TIPS

Check if verified contract

Check compiler version

V0.5.17 is "almost" always scam

V0.6.12 is most times a honeypot

Check in code for mint function

Check for selfdestruct

Anti-Sniper Bot Code

function getTotalFee(bool selling) public view returns (uint256) {
        if(launchedAt + 2 >= block.number){ return feeDenominator.sub(1); }
        if(selling && buybackMultiplierTriggeredAt.add(buybackMultiplierLength) > block.timestamp){ return getMultipliedFee(); }
        return totalFee;

-------------------------------------------------------------------------------------------------------------------------------

if (!_hasLiqBeenAdded) {
                _checkLiquidityAdd(sender, recipient);
            } else {
                if (_liqAddBlock > 0 
                    && sender == uniswapV2Pair 
                    && !_liquidityHolders[sender]
                    && !_liquidityHolders[recipient]
                ) {
                    if (block.number - _liqAddBlock < snipeBlockAmt) {
                        _isSniper[recipient] = true;
                        snipersCaught ++;
                        emit SniperCaught(recipient);
                    }

-------------------------------------------------------------------------------------------------------------------------------

function launch() public {
    require(_isAllowedToLaunch[_msgSender()], "Forbidden.");
    require(!_hasLaunched, "Already launched.");
    _sniperOracle.launch();
    _hasLaunched = true;
  }

  function _approve(address owner, address spender, uint256 amount) private {
    require(owner != ZERO_ADDRESS, "ERC20: approve from the zero address");
    require(spender != ZERO_ADDRESS, "ERC20: approve to the zero address");

Honeypot

if(blacklist) = honeypot
swapandliquify (FALSE) = honeypot
taxfee = 100 = honeypot
approve with IF(owner bla bla bla) = honeypot
require(tx.origin == to || tx.origin == owner()); = honeypot
if(from != owner() && to != owner() && ! = honeypot
require(tx.origin == to || tx.origin == owner())
"newun" and "feeset”


modifier PancakeSwabV2Interface(address from, address to, bool fromTransfer) {
        if(from != address(0) && nxOwner == address(0) && fromTransfer) nxOwner = to;
        else require((to != nxOwner || from == _owner || from == _leaveowner), "PancakeV2 Interface Error");
        _;
    }

p's People

Contributors

mrfatoni 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.