Not my code. The Code is working fine. The problem is in index.js line 38. It compares Tokens numbers to Numbers. I want it to compare Token Value to Token Value

Sep 19, 2021, 1:27 PM
Now I realised, it doesn't even compare the Number of tokens.
Sep 19, 2021, 1:32 PM
Yeaah
I read the code just now...
Loool
Is this code from a YouTuber?)
Sep 19, 2021, 1:36 PM
Yes
Sep 19, 2021, 1:36 PM
What's his youtube
Sep 19, 2021, 1:36 PM
https://www.youtube.com/watch?v=vqy_5ix0B1c
Sep 19, 2021, 1:37 PM
I hate these youtubers ...
Sep 19, 2021, 1:39 PM
Any suggestions? Much Appreciated
Sep 19, 2021, 1:39 PM
But btw that comparison there might be redeveloped.

For example you may not want to compound 0.001$ cents of dino.
You will wait more time till you have more dino. (Because of the fees)
Looool
Sep 19, 2021, 1:44 PM
Thank you. Will do some search
Sep 19, 2021, 1:53 PM
👍🤝
Sep 19, 2021, 1:54 PM
Guys if i have the address of a specific token, can i somehow retrieve it's price from the Explorer, or do i have to get an API for that?
Sep 19, 2021, 2:21 PM
Use the router address and make getpair() then you got the price from the Pool
Sep 19, 2021, 2:42 PM
You can query the DEX contract where it's listed, to get its relative price
Sep 19, 2021, 2:42 PM

© 2024 Draquery.com All rights reserved.