You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed a mismatch of minimum price between the webapp and the SDK.
Here the results of the quote from SDK:
Here a print of the quote:
SwapQuote(swap_type='fixed-input', amount_in=ALGO('700'), amount_out=Planets('30848.706199'), swap_fees=ALGO('2.1'), slippage=0.005, price_impact=0.00644)
Here the print of amount expected with slippage: print(quote2.amount_out_with_slippage);
Planets('30694.462669')
This is different from what I see in the webapp (since many days)
As you can see the amount_out is correct. However, the amount_out_with_slippage seems to be not correct.
I noticed also that sometimes, even the amount_out does not match.
Here I changed th amount_in to 500 ALGO. I am getting the following:
SDK:
SwapQuote(swap_type='fixed-input', amount_in=ALGO('500'), amount_out=Planets('23341.505158'), swap_fees=ALGO('1.5'), slippage=0.005, price_impact=0.00553)
webapp:
The amount_out in this case is not the same.
This code was working months agso and I was getting exact results between the webapp and the SDK.
Best regards,
HHA
The text was updated successfully, but these errors were encountered:
gokselcoban
changed the title
Mismatch between minimum received in webapp and SDK
V1 - Mismatch between minimum received in webapp and SDK
Dec 16, 2022
I noticed a mismatch of minimum price between the webapp and the SDK.
Here the results of the quote from SDK:
Here a print of the quote:
SwapQuote(swap_type='fixed-input', amount_in=ALGO('700'), amount_out=Planets('30848.706199'), swap_fees=ALGO('2.1'), slippage=0.005, price_impact=0.00644)
Here the print of amount expected with slippage: print(quote2.amount_out_with_slippage);
Planets('30694.462669')
This is different from what I see in the webapp (since many days)
As you can see the amount_out is correct. However, the amount_out_with_slippage seems to be not correct.
I noticed also that sometimes, even the amount_out does not match.
Here I changed th amount_in to 500 ALGO. I am getting the following:
SDK:
SwapQuote(swap_type='fixed-input', amount_in=ALGO('500'), amount_out=Planets('23341.505158'), swap_fees=ALGO('1.5'), slippage=0.005, price_impact=0.00553)
webapp:
The amount_out in this case is not the same.
This code was working months agso and I was getting exact results between the webapp and the SDK.
Best regards,
HHA
The text was updated successfully, but these errors were encountered: