CRYPTO NEWS

MoneyLaundry

#MoneyLaundry #TheSupremeTeam
Artist Name: MoneyLaundry

Who are you?

Grow fans , likes etc

Where are you from?

Columbus Ohio Rap , R&B

How can we follow you?

Song Title: NeroDaDon feat TY – GreenLight

Listen to MoneyLaundry:

Source: https://supremepr.us/

SushiSwapRouter. getAmountsOut. 1inch / dai. Incorrect price

I’m interract with SushiSwapRouter at 0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F. I want to know how much 1inch I get for 1 Dai, and how much Dai I get for 1 1inch. 1inch address 0x111111111117dC0aa78b770fA6A738034120C302. dai address 0x6b175474e89094c44da98b954eedeac495271d0f. If I call getAmountsOut(10**18, [one_inch_address, dai_address]), i get [1000000000000000000, 1490395527355214321]. 1490395527355214321 / 10**18 = 1.4903955273552143 it matches the price from sushi app::Listen

I’m interract with SushiSwapRouter at 0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F. I want to know how much 1inch I get for 1 Dai, and how much Dai I get for 1 1inch.

1inch address 0x111111111117dC0aa78b770fA6A738034120C302.
dai address 0x6b175474e89094c44da98b954eedeac495271d0f.

If I call getAmountsOut(10**18, [one_inch_address, dai_address]), i get [1000000000000000000, 1490395527355214321]. 1490395527355214321 / 10**18 = 1.4903955273552143 it matches the price from sushi app https://app.sushi.com/swap. But if i call getAmountsOut(10**18, [dai_address, one_inch_address]), i get [1000000000000000000, 175916007851698380]. 175916007851698380 / 10 **18 = 0.1759160078516984. If you look in the app , the price will be 1.56784.

How it works? How can I get the correct value?

MoneyLaundry

Shopping cart
There are no products in the cart!
Continue shopping
0