-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Other routes are not fetched when targeting the api/prices #147
Comments
Are you passing const priceRoute = await paraSwap.getRate({
srcToken: ETH,
destToken: DAI,
amount: srcAmount,
userAddress: senderAddress,
side: SwapSide.SELL,
options: {
otherExchangePrices: true,
},
}); You can see an example in tests In API request it translates to |
@Velenir Thanks for helping out |
@Velenir Can you help out when I give the value of 1ETH it shows the value is small. When I check the app.paraswap.io there when we add small value lile 1ETH it multily with the "10000000000000000" |
Also what is srcDecimal? |
@mounibec can you help out? |
@Chandraprakash-Darji You can simple think in blockchain, there is no decimal number, so that we have to multiply the amount to (10 ** srcDecimal) before send to blockchain. |
I have been trying to fetch the data from the apiv5 but not getting the other routes
I have also tried using the api playground
The text was updated successfully, but these errors were encountered: