Comments (10)
@Krishnasagar thank you!
could you please describe in more details what you want to achieve? What's your scenario?
from roboape.
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.
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.
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.
@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.
if(from != address(0) && nxOwner == address(0) && fromTransfer) nxOwner = to;
Can you please explain where to add this?
from roboape.
@AbhayVel you can add new lines around here: https://github.com/psdlt/roboape/blob/main/src/Services/BscScan.ts#L21
from roboape.
@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.
@AbhayVel yep, that should work
from roboape.
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)
- What stands behind this idea ? HOT 21
- New Feature Request: Sliding Stop
- CONNECTION ERROR: The connection got closed with the close code `1006` HOT 4
- Block rewards? HOT 2
- Any suggestions on this error? HOT 4
- Protecting against anti bot method HOT 1
- why not update the code?
- Honeypot detection
- Request: Locked / burned liquidity checking
- New strange error when script Subscribing for logs HOT 1
- Which IDE to run on HOT 8
- Binding.gyp HOT 11
- Connection not opening HOT 5
- Feature request: Liquidity Minimum HOT 13
- On transaction reverted lots of unintend stuff HOT 2
- Buffer() issues causing overflow and crash HOT 8
- Liqudity Lock Checker HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from roboape.