gas111-bot / gaspump-sdk

Apache License 2.0
30 stars 7 forks source link

Liquidity is calculated wrong #2

Open amin3378 opened 3 months ago

amin3378 commented 3 months ago

I analyzed jetton master addresses on your platform and the amount of ton accumulated there is far more than the trading fees, which are 0.3 ton per sell, even if you consider 0.3 trading fee for buys it is still a lot more, there is just 9000 tons for example in this address: https://tonviewer.com/EQDD21KQbeC4wIKChGisYQ1_LHRED7qfT6OMMoUESngAd3ne you can see even after launching on dedust there is 96 tons left on the jetton master address, the fees are seen when selling which is around 30 times --> 9 tons, even if you consider buys and sells together it would be around 100 txs --> 30 ton these funds are accumulated because there is certainly a problem in your algorithm calculating the remaining liquidity which you can see on every coin for example: https://tonviewer.com/EQBWqEJJGyeKBQl3x1VtIJAnrwVvnHFUAhiLoymlEbfNzcKj you can see 7.5 tons left on the address, 18 sells --> 6 tons --> actuall liquidty=1.5 tons, but in the app it says 0.93 ton liquidity left I contacted support multiple times and they said these are fees which clearly are not

amin3378 commented 3 months ago

i the file GasPumpJetton.ts it is clearly stated that there is only a 0.3 fee for sell which you stated most of it will be refunded

karfly commented 2 months ago

Hi! Thank you for a detailed question with examples.

My initial guess is that some small amount of TON gas is accumulated on contract in addition to commissions. We'll check what really happens and why

amin3378 commented 2 months ago

Yes if there is a problem it can be critical, please take this in account carefully, I have an excel sheet extracted that I can send you of 10000 tokens like these with total amount of 9000 ton

karfly commented 2 months ago

I missed one thing. When token is launched on DeDust we take fixed 50 TON commission (just like pump.fun) and you can see it on the contract as addition to balance.

amin3378 commented 2 months ago

most of the tokens i'm talking about are tokens that never made it to dedust and most of them everybody sold, but the difference in the wallet balance is seen there too and it's a lot

amin3378 commented 2 months ago

maybe a portion of this 50 ton comission you are talking about is applied every time somebody buys and sells, this 50 ton should be taken only after the token launched on dedust.

amin3378 commented 2 months ago

I sent the excel file to your email

amin3378 commented 2 months ago

Hi any updates on the matter?

ggauzin commented 2 months ago

uhm bro they take commitions from those .3 ton

amin3378 commented 2 months ago

This is not about 0.3 TON, this is about funds taken more than that

ggauzin commented 2 months ago

i didn't really get it then