psdlt / roboape

A simple bot which will buy into every new BNB pair created on PancakeSwap
77 stars 46 forks source link

Feature request: Liquidity Minimum #6

Open TJCares1966 opened 3 years ago

TJCares1966 commented 3 years ago

This would require that the coin that is being looked at has a minimum amount of liquidity before the bot buys. This might cut down on the amount of rugs the bot gets.

cgallic commented 3 years ago

This would be awesome

TJCares1966 commented 3 years ago

and if it could be defined in the .env file that would be even better :) and a true or false like the unverified contracts would be nice. some people may not want to use this.

QCharger commented 2 years ago

yes plz we would love that, dev....thanks

psdlt commented 2 years ago

By a popular demand... :) https://github.com/psdlt/roboape/commit/ec13b62b6eec2a90486bbcd7c95070ce40f124ad

Added a new setting to .env: MIN_RESERVE. Set it to 0 to effectively disable this check. Value is in BNB. Have fun!

QCharger commented 2 years ago

Hi Dev thanks, i copied the file as is, looks like it is still Aping into everything..please check. I set the minimum reserve to 10 2021-07-23T14:27:05.910Z [ProfitLossManager] Best profit of all those: 0.005232063204388988 2021-07-23T14:27:18.870Z [WatchNewPairs] New pair created: 0x627b4dd1847aca105911d34dc00db6a6db34f75d. BNB reserve: 0.21. 2021-07-23T14:27:19.267Z [Ape] Apeing into 0x627b4dd1847aca105911d34dc00db6a6db34f75d 2021-07-23T14:27:19.488Z [Web3Helper] Txn Hash 0x3b5ce7737ff8381a086585ee90d31e0c7d32b9ff0bd99c6e718226fb3eda7d1b (5gwei) (nonce: 111)

psdlt commented 2 years ago

@QCharger have you ran npm run build after copying files? Have you updated your .env file to include the new setting? What value do you have there?

QCharger commented 2 years ago

yes I have dear, but i havent run the npm run build i am doing and will post in a few minutes thanks again!

QCharger commented 2 years ago

It is working, thanks again.. im getting these two errors in log any idea? Error: Returned error: replacement transaction underpriced Current account balance: *** BNB 2021-07-23T15:05:35.759Z [WatchNewPairs] New pair created: 0xecee43d5636180a293cbea14154d15226441c7c9. BNB reserve: 2. 2021-07-23T15:05:44.060Z [WatchNewPairs] New pair created: 0x6397de696df65b37bb5f9b529fd5ebc119e0cb43. BNB reserve: 0. 2021-07-23T15:05:46.777Z [WatchNewPairs] New pair created: 0x7745e03b7f685b2727198f182a4b53ac2b0240d4. BNB reserve: 30. 2021-07-23T15:05:46.974Z [Ape] Apeing into 0x7745e03b7f685b2727198f182a4b53ac2b0240d4 2021-07-23T15:05:47.077Z [Web3Helper] Txn Hash 0xf17fc314dacf8347f4e8a0418dce70bcdf96b880b2403c40b50c26b3fd68946b (5gwei) (nonce: 117) 2021-07-23T15:05:48.562Z [WatchNewPairs] New pair created: 0x2cef266b538476262842db5bd3fe98b091c0930f. BNB reserve: 0. 2021-07-23T15:05:50.392Z [WatchNewPairs] New pair created: 0x99f72b2eda292e653feb0bb185d7f5679ccd669c. BNB reserve: 1. 2021-07-23T15:06:14.670Z [Web3Helper] Error: Transaction was not mined within 50 blocks, please make sure your transaction was properly sent. Be aware that it might still be mined!

TJCares1966 commented 2 years ago

Hi thanks for putting my idea in. I was just about to try this out but on the build a bunch of errors came up. should I throw the errors in here or is there a better place to put them. It is long.

TJCares1966 commented 2 years ago

Yea I'm pretty sure it's because I install a fresh version of Linux for windows that I'm missing something. Over on my Linux side now.

TJCares1966 commented 2 years ago

I must have forgotten to install something when I installed the new Linus for windows. tjcares@DESKTOP-H4C77FP:/mnt/h/roboape/roboape/src$ npm run build

robo-ape@0.1.0 build webpack --mode production --no-watch

assets by status 6.72 MiB [cached] 3 assets orphan modules 1.27 MiB [orphan] 1996 modules runtime modules 2.9 KiB 16 modules built modules 6.87 MiB [built] javascript modules 6.47 MiB cacheable modules 6.46 MiB modules by path ./node_modules/ 6.25 MiB 869 modules modules by path ./src/ 224 KiB 3 modules optional modules 3.36 KiB [optional] ./node_modules/moment/locale/ sync ^.\/.*$ 3.21 KiB [optional] [built] [code generated] ./node_modules/sequelize/lib/dialects/abstract/ sync 160 bytes [optional] [built] [code generated] json modules 406 KiB modules by path ./node_modules/ 381 KiB modules by path ./node_modules/ethereumjs-common/dist/ 20.6 KiB 15 modules modules by path ./node_modules/swarm-js/ 3.22 KiB 2 modules modules by path ./src/ 24.9 KiB 4 modules

WARNING in ./node_modules/any-promise/register.js 24:14-37 Critical dependency: the request of a dependency is an expression @ ./node_modules/any-promise/index.js 1:17-38 @ ./node_modules/retry-as-promised/index.js 3:14-36 @ ./node_modules/sequelize/lib/sequelize.js 5:14-42 @ ./node_modules/sequelize/index.js 8:0-43 @ ./src/Services/ProfitLossManager.ts 12:0-31 34:29-34 35:29-34 36:40-46 @ ./src/index.ts 12:0-61 21:8-25

WARNING in ./node_modules/sequelize/lib/dialects/abstract/connection-manager.js 69:15-63 Critical dependency: the request of a dependency is an expression @ ./node_modules/sequelize/lib/dialects/mssql/connection-manager.js 3:34-75 @ ./node_modules/sequelize/lib/dialects/mssql/index.js 5:26-57 @ ./node_modules/sequelize/lib/sequelize.js 325:18-45 @ ./node_modules/sequelize/index.js 8:0-43 @ ./src/Services/ProfitLossManager.ts 12:0-31 34:29-34 35:29-34 36:40-46 @ ./src/index.ts 12:0-61 21:8-25

WARNING in ./node_modules/sequelize/lib/dialects/abstract/connection-manager.js 74:13-32 Critical dependency: the request of a dependency is an expression @ ./node_modules/sequelize/lib/dialects/mssql/connection-manager.js 3:34-75 @ ./node_modules/sequelize/lib/dialects/mssql/index.js 5:26-57 @ ./node_modules/sequelize/lib/sequelize.js 325:18-45 @ ./node_modules/sequelize/index.js 8:0-43 @ ./src/Services/ProfitLossManager.ts 12:0-31 34:29-34 35:29-34 36:40-46 @ ./src/index.ts 12:0-61 21:8-25

3 warnings have detailed information that is not shown. Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.

ERROR in /mnt/h/roboape/roboape/src/Services/WatchNewPairs.ts ./src/Services/WatchNewPairs.ts 1:17-23 [tsl] ERROR in /mnt/h/roboape/roboape/src/Services/WatchNewPairs.ts(1,18) TS7016: Could not find a declaration file for module 'web3'. '/mnt/h/roboape/roboape/node_modules/web3/lib/index.js' implicitly has an 'any' type. Try npm i --save-dev @types/web3 if it exists or add a new declaration (.d.ts) file containing declare module 'web3'; @ ./src/index.ts 11:0-53 20:8-21

ERROR in /mnt/h/roboape/roboape/src/Services/WatchNewPairs.ts ./src/Services/WatchNewPairs.ts 35:25-28 [tsl] ERROR in /mnt/h/roboape/roboape/src/Services/WatchNewPairs.ts(35,26) TS7006: Parameter 'log' implicitly has an 'any' type. @ ./src/index.ts 11:0-53 20:8-21

ERROR in /mnt/h/roboape/roboape/src/Services/WatchNewPairs.ts ./src/Services/WatchNewPairs.ts 43:26-31 [tsl] ERROR in /mnt/h/roboape/roboape/src/Services/WatchNewPairs.ts(43,27) TS7006: Parameter 'error' implicitly has an 'any' type. @ ./src/index.ts 11:0-53 20:8-21

ERROR in /mnt/h/roboape/roboape/src/Services/Web3Factory.ts ./src/Services/Web3Factory.ts 1:17-23 [tsl] ERROR in /mnt/h/roboape/roboape/src/Services/Web3Factory.ts(1,18) TS7016: Could not find a declaration file for module 'web3'. '/mnt/h/roboape/roboape/node_modules/web3/lib/index.js' implicitly has an 'any' type. Try npm i --save-dev @types/web3 if it exists or add a new declaration (.d.ts) file containing declare module 'web3'; @ ./src/index.ts 13:0-49 17:17-33

ERROR in /mnt/h/roboape/roboape/src/Services/Web3Helper.ts ./src/Services/Web3Helper.ts 1:17-23 [tsl] ERROR in /mnt/h/roboape/roboape/src/Services/Web3Helper.ts(1,18) TS7016: Could not find a declaration file for module 'web3'. '/mnt/h/roboape/roboape/node_modules/web3/lib/index.js' implicitly has an 'any' type. Try npm i --save-dev @types/web3 if it exists or add a new declaration (.d.ts) file containing declare module 'web3'; @ ./src/index.ts 14:0-47 18:27-37

ERROR in /mnt/h/roboape/roboape/src/Services/Web3Helper.ts ./src/Services/Web3Helper.ts 61:23-30 [tsl] ERROR in /mnt/h/roboape/roboape/src/Services/Web3Helper.ts(61,24) TS7006: Parameter 'balance' implicitly has an 'any' type. @ ./src/index.ts 14:0-47 18:27-37

ERROR in /mnt/h/roboape/roboape/src/Services/Web3Helper.ts ./src/Services/Web3Helper.ts 64:24-29 [tsl] ERROR in /mnt/h/roboape/roboape/src/Services/Web3Helper.ts(64,25) TS7006: Parameter 'error' implicitly has an 'any' type. @ ./src/index.ts 14:0-47 18:27-37

ERROR in /mnt/h/roboape/roboape/src/Services/Web3Helper.ts ./src/Services/Web3Helper.ts 160:32-39 [tsl] ERROR in /mnt/h/roboape/roboape/src/Services/Web3Helper.ts(160,33) TS7006: Parameter 'receipt' implicitly has an 'any' type. @ ./src/index.ts 14:0-47 18:27-37

webpack 5.38.1 compiled with 8 errors and 3 warnings in 60546 ms tjcares@DESKTOP-H4C77FP:/mnt/h/roboape/roboape/src$

TJCares1966 commented 2 years ago

what do you mean? The source is from here

TJCares1966 commented 2 years ago

This is working awesome so far. still haven't come away with a win though yet. But it will come in time! Thanks again!