Giter Club home page Giter Club logo

front-running-bot's People

Contributors

ahmedoubadi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

front-running-bot's Issues

Error: invalid BigNumber string

Hi, great project, could you let me know how to fix this?

H:\abr\front-running-bot\node_modules@ethersproject\logger\lib\index.js:233
var error = new Error(message);
^

Error: invalid BigNumber string (argument="value", value="5.000000001", code=INVALID_ARGUMENT, version=bignumber/5.6.0)
at Logger.throwError (H:\abr\front-running-bot\node_modules@ethersproject\logger\lib\index.js:242:20)
at Logger.throwArgumentError (H:\abr\front-running-bot\node_modules@ethersproject\logger\lib\index.js:245:21)
at Function.BigNumber.from (H:\abr\front-running-bot\node_modules@ethersproject\bignumber\lib\bignumber.js:201:27)
at H:\abr\front-running-bot\node_modules@ethersproject\contracts\lib\index.js:215:61
at step (H:\abr\front-running-bot\node_modules@ethersproject\contracts\lib\index.js:48:23)
at Object.next (H:\abr\front-running-bot\node_modules@ethersproject\contracts\lib\index.js:29:53)
at fulfilled (H:\abr\front-running-bot\node_modules@ethersproject\contracts\lib\index.js:20:58)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
reason: 'invalid BigNumber string',
code: 'INVALID_ARGUMENT',
argument: 'value',
value: '5.000000001'

Error: invalid BigNumber string

Hello again, the bot is returning this error after calculating gas price in the function "calculate_gas_price". It seems that buy & sell functions requires BigNumber as input, but gas price is formated as string.

reason: 'invalid BigNumber string',
code: 'INVALID_ARGUMENT',
argument: 'value',
value: '5.000000001'

If i leave the calculate_gas_price function as following, it is able to run but i am getting strange results like failed txs and buys not in the right time (it executes after the original tx instead of before).

function calculate_gas_price(action, amount){
if (action==="buy"){
return amount.add(1);
}else{
return amount.sub(1);
}
}

advice

Hello, as I can see there is a blacklist for the tokens we don't want to front run, isn't it better to had a whitelist? because there are a lot of tokens with high liquidity, I think it's better for the user to choose and whitelist tokens he or she wanted to front run. also please correct me if I'm wrong or mistaken. thank you.

TypeError: amount.add is not a function

Hello. First of all great project, thanks for creating it. When i try to run the bot it throws the following error:

TypeError: amount.add is not a function
at calculate_gas_price (D:\front-running-bot\bot.js:16:44)
at D:\front-running-bot\bot.js:173:31
at processTicksAndRejections (node:internal/process/task_queues:96:5)

What i am missing ?

invalid Bing Number String

reason: 'invalid BigNumber string',
code: 'INVALID_ARGUMENT',
argument: 'value',
value: '5.000000001'

th e returning this error after the execution of calculate maybe the error is in buy fonction because he says "prepare to buy" and returning this error

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.