tsarbuig / WalletHunter

The first Copytrading crypto bot in the World - for Uniswap & Pancakeswap
21 stars 8 forks source link

[Bug] BUY_SEVERAL_TIME_SAME_TOKEN : false not working for block, and multiple addresses tracked #39

Closed AdamB2023 closed 1 year ago

AdamB2023 commented 1 year ago

While BUY_SEVERAL_TIME_SAME_TOKEN : false, and two addresses buy same coin in same block, WH is buying twice.


02-13 21:39:55.3955  Tx _ID_ from #27: _ID_ - id: 2644

2644 -- PRE-CHECKS BEFORE Tx ----------------------------------------
02-13 21:39:55.3955  2644 - TX GAS CONTROL ------- Tx GAS = 53.334507529 and current GAS price = 22.423918703  --> let's continue
02-13 21:39:55.3955  2644 - MIN_MAX_MARKETCAP ---- liquidity = 10496.60$ --> let's buy
02-13 21:39:55.3955  2644 - AMOUNT CONTROL ------- MINIMUM_BUY_AMOUNT_IN_BASE (0.012) <= your buyAmount (0.1) <= MAXIMUM_BUY_AMOUNT_IN_BASE (0.1) --> let's buy
02-13 21:39:55.3955  2644 - GAS CALCULATION ------ Tx GAS = ...
02-13 21:39:55.3955  2644 - HONEYPOT / TAX CHECK - Honeypot: false | BuyTax: 5% | SellTax: 10% - Check made in: 0.00251s

-- SWAP DETECTED -----------------------------------------------
02-13 21:39:55.3955  Tx _ID_ from #28: _ID_ - id: 8c84

8c84 -- PRE-CHECKS BEFORE Tx ----------------------------------------
02-13 21:39:55.3955  8c84 - TX GAS CONTROL ------- Tx GAS = 53.334507529 and current GAS price = 22.423918703  --> let's continue
02-13 21:39:55.3955  8c84 - MIN_MAX_MARKETCAP ---- liquidity = 10496.60$ --> let's buy
02-13 21:39:55.3955  8c84 - AMOUNT CONTROL ------- MINIMUM_BUY_AMOUNT_IN_BASE (0.012) <= your buyAmount (0.1) <= MAXIMUM_BUY_AMOUNT_IN_BASE (0.1) --> let's buy
02-13 21:39:55.3955  8c84 - GAS CALCULATION ------ Tx GAS = ...
02-13 21:39:55.3955  8c84 - HONEYPOT / TAX CHECK - Honeypot: false | BuyTax: 5% | SellTax: 10% - Check made in: 0.00222s

2644 -- COPY SWAP ---------------------------------------------------
02-13 21:39:55.3955  2644 - BUY Tx - Novus Ordo Seclorum - _ID_ - Case 1 - Swap sent in: 0.02456s

2644 -- CONTROLS AFTER Tx -------------------------------------------

8c84 -- COPY SWAP ---------------------------------------------------
02-13 21:39:55.3955  8c84 - BUY Tx - Novus Ordo Seclorum - _ID_ - Case 1 - Swap sent in: 0.01972s```
tsarbuig commented 1 year ago

yes, current way wait to check if you REALLY bought the token before impeaching you to buy twice...

if you want to block on SAME BLOCK, use this parameter : ONLY_1_BUY_PER_BLOCK = true