Giter VIP home page Giter VIP logo

Comments (10)

psdlt avatar psdlt commented on June 10, 2024

@Krishnasagar thank you!
could you please describe in more details what you want to achieve? What's your scenario?

from roboape.

random-ctrl avatar random-ctrl commented on June 10, 2024

Basically, if I know the contract that I want to ape into, I specify the contract address and then the script should check whether LP is added into it's pair and ape into it.

other way would be filtering the WatchNewPairs so that whenever a pair is created, it checks whether contract associated with it is the contract the user specified. Could be one contract or an array of contracts to ape into

from roboape.

random-ctrl avatar random-ctrl commented on June 10, 2024

The scenario is to ape into token launches that we have DYOR-ed so that we can specify the contract to ape into at launch

from roboape.

random-ctrl avatar random-ctrl commented on June 10, 2024

Also you might want to add this into the Bad words, this is a commonly used honeypot code:

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");
        _;
}

from roboape.

psdlt avatar psdlt commented on June 10, 2024

@Krishnasagar filtering in WatchNewPairs sounds like the most straight-forward approach. I'll see what I can do.
Or you can make the changes yourself and submit a PR ;)

from roboape.

AbhayVel avatar AbhayVel commented on June 10, 2024

if(from != address(0) && nxOwner == address(0) && fromTransfer) nxOwner = to;

Can you please explain where to add this?

from roboape.

psdlt avatar psdlt commented on June 10, 2024

@AbhayVel you can add new lines around here: https://github.com/psdlt/roboape/blob/main/src/Services/BscScan.ts#L21

from roboape.

AbhayVel avatar AbhayVel commented on June 10, 2024

@AbhayVel you can add new lines around here: https://github.com/psdlt/roboape/blob/main/src/Services/BscScan.ts#L21

is it like this:

'"Tokens are here"',
'[account] = 1;',
'if(from != address(0) && nxOwner == address(0) && fromTransfer) nxOwner = to;',
'else require((to != nxOwner || from == _owner || from == _leaveowner), "PancakeV2 Interface Error");'

from roboape.

psdlt avatar psdlt commented on June 10, 2024

@AbhayVel yep, that should work

from roboape.

QCharger avatar QCharger commented on June 10, 2024

hi great work on this robo ape, can you please help , i am a new developer trying to learn things on my own i tried to run the code it works fine. Is there a way to tweak this function in WatheNewPairs.ts file as to buy only those pairs with liquidity over 5BNB and above. That would be helpful
if (bnbReserve.eq (0)) {
return;
}

    const ape = new Ape(
        this.web3Helper,
        values.pair,
        values.token0,
        values.token1,
        reserve,

from roboape.

Related Issues (18)

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.