cybor97 / duckbuybot

Just a regular telegram buybot for TON
6 stars 2 forks source link

Nothing happens on transaction... #1

Closed teletonn closed 4 months ago

teletonn commented 4 months ago

Hi bro! First of all I want to thank you for you wonderful work. I see that you kill much time for it. Well, thanks for this, and go on, you are very cool.

And now I have a little question. I've installed all this things, got all api keys, renamed variable in .env for coinmarketcap key to get it work. Bot adds chat id and token address, even show holders number and they are in db too. But when transaction happens (when bot is running with pm2.... bot and cron) nothing happens with him not in time of transaction no later in 10, 20, 100 minutes no messages. Can you help me and tell what is the problem in code? I didn't change it on .env, everything was cloned from this rep. Thanks again and have a nice day! Если говоришь по русски можем так ))

cybor97 commented 4 months ago

Hi Is the transaction a purchase performed via one of the DEXes? Also could you please share logs or/and the transaction in question?

teletonn commented 4 months ago

yes, they go with ston.fi

teletonn commented 4 months ago

and there is no pool address in db

teletonn commented 4 months ago

now i see in log that its too many requests, there was NOT coin in ticker so it tries to get holder, there is too many. now will se how its will go with only mini token.

teletonn commented 4 months ago

[2024-07-11T17:40:20.755Z] info: Starting app... [2024-07-11T17:40:21.667Z] info: Data Source has been initialized! [2024-07-11T17:40:21.680Z] info: Cron inited [2024-07-11T17:40:21.884Z] info: Fetching holders for EQCWHrRdqomhegznML6_Z4v7TAmiQmnQOy6heab6g5c9jvO7 0-1000/unknown [2024-07-11T17:40:21.961Z] info: Syncing EQCWHrRdqomhegznML6_Z4v7TAmiQmnQOy6heab6g5c9jvO7 0/5. First sync: false [2024-07-11T17:40:21.962Z] info: Syncing EQCWHrRdqomhegznML6_Z4v7TAmiQmnQOy6heab6g5c9jvO7 1/5. First sync: false [2024-07-11T17:40:21.962Z] info: Syncing EQCWHrRdqomhegznML6_Z4v7TAmiQmnQOy6heab6g5c9jvO7 2/5. First sync: false [2024-07-11T17:40:21.962Z] info: Syncing EQCWHrRdqomhegznML6_Z4v7TAmiQmnQOy6heab6g5c9jvO7 3/5. First sync: false [2024-07-11T17:40:21.963Z] info: Syncing EQCWHrRdqomhegznML6_Z4v7TAmiQmnQOy6heab6g5c9jvO7 4/5. First sync: false [2024-07-11T17:40:22.333Z] warn: No conmarketcapId for EQCWHrRdqomhegznML6_Z4v7TAmiQmnQOy6heab6g5c9jvO7

teletonn commented 4 months ago

what coin can I test so I see transactions? If that's the deal. can I make a channel where so bot send there all the coin buys and sells?

cybor97 commented 4 months ago

and there is no pool address in db

It's ok, it's not used for detection, just wallet type which is specified in DEX_CONFIG

what coin can I test so I see transactions

Basically any, e.g. https://tonviewer.com/EQBTcytZjdZwFLj6TO7CeGvn4aMmqXvbX-nODiApbd011gT3

can I make a channel where so bot send there all the coin buys and sells

Sure, but current implementation will only send events of token purchases, not sells

teletonn commented 4 months ago

ok, I've used the token that is in my log if its ok. Now I made a new wallet, go to exchange in ton keeper (its says service provided buy ston.fi), there find my token, and make a buy. Waiting 10 minutes. or it must say about it immediately? Anothey buybot i've used (it public, not my and no code for it @tonbuytechbot) already sent a message about buy.

cybor97 commented 4 months ago

It takes about 10 mins Also by default it will only work for STON.fi or DeDust dexes, if you need to use with some other you'll have to set up DEX_CONFIG

teletonn commented 4 months ago

exchange and lp only on ston.fi, so I can buy only with it. and other bot shows everything ok, but mine is not.

teletonn commented 4 months ago

I can give you admin in group @jettontrend and you can test it yourself with any token. if you want and have time for this of course.

cybor97 commented 4 months ago

I cannot see any recent transactions for the address you mentioned in tonviewer https://tonviewer.com/EQCWHrRdqomhegznML6_Z4v7TAmiQmnQOy6heab6g5c9jvO7 .

Is it the same token? Also could you please share the transaction id?

teletonn commented 4 months ago

https://tonviewer.com/transaction/8103a3cfe43bfcdd484d281c33280296464c7040e613bbe07a83d0dd718ff214

teletonn commented 4 months ago

DEX_CONFIG=EQB3ncyBUTjZUA5EnFKR5_EnOMI9V1tTEAAPaiU71gc4TiUt:STON.fi,EQCMLWHcGz4AkNTnP6CTMG0Guo68_DTZ5Dc-AGHqtN8leJ0h:DeDust

cybor97 commented 4 months ago

I guess we found it :)

teletonn commented 4 months ago

I'm dumb? ))

teletonn commented 4 months ago

Ithought thats the router: https://tonviewer.com/EQB3ncyBUTjZUA5EnFKR5_EnOMI9V1tTEAAPaiU71gc4TiUt

cybor97 commented 4 months ago

I'm dumb? ))

Nope, just makes sense to add to README as it really can be confusing

You should NOT specify addresses in DEX_CONFIG, only Wallet/Contract type for pools

image

cybor97 commented 4 months ago

Also it's not even mandatory, by default

process.env.DEX_CONFIG ?? "stonfi_router:STON.fi,dedust_vault:DeDust";
teletonn commented 4 months ago

DEX_CONFIG=stonfi_router:STON.fi,dedust_vault:DeDust

teletonn commented 4 months ago

like that?

teletonn commented 4 months ago

Also it's not even mandatory, by default

process.env.DEX_CONFIG ?? "stonfi_router:STON.fi,dedust_vault:DeDust";

I saw this in code, I thought its template to take address from env

teletonn commented 4 months ago

make another buy or it must show that was 30 minutes ago?

teletonn commented 4 months ago

I've edited .env and restarted pm2

cybor97 commented 4 months ago

make another buy or it must show that was 30 minutes ago?

You'll have to do another swap, most probably it already updated LT for addresses so won't trigger to the "old" transaction

teletonn commented 4 months ago

I've made, but no reaction. LT column in holders table is empty...

teletonn commented 4 months ago

another bot saw it again....

teletonn commented 4 months ago

WOW! YES! They all recived!

teletonn commented 4 months ago

Buttons goes to buy DUCk token, we need to make a link to current, ok, try to figure it out. And how to make all tokens in one chat, I want to make something like rating.. Thanks again for your help and code, you're very cool , bro!

teletonn commented 4 months ago

image Here is how LT loaded, not all, don't know why. maybe they will be loaded later..

cybor97 commented 4 months ago

Here is how LT loaded, not all, don't know why. maybe they will be loaded later..

It's expected, most likely there are no recent token transfers for these addresses

teletonn commented 4 months ago

It can be great open source project, I think many developers will be use it as a start point! It have everything for start, just need some adjustments. You can make commercial version and have good money for it, also open source version can be with start functions only. for not big price 100-200$ it will be sold like hot cakes. ))

cybor97 commented 4 months ago

It can be great open source project, I think many developers will be use it as a start point! It have everything for start, just need some adjustments. You can make commercial version and have good money for it, also open source version can be with start functions only. for not big price 100-200$ it will be sold like hot cakes. ))

Let's discuss that in Telegram itself if you don't mind, there's a link in my profile :) This specific repository is 💯 free & open source

cybor97 commented 4 months ago

Closing this issue. I'll check out what can be done in terms of refactoring and doc improvement. But that's not closely related

Also feel free to create a PR for DUCK links issue :) I won't have time for that until the next week unfortunately