paraswap/paraswap-sdk

post transaction: The rate has changed

Closed this issue · 0 comments

Hi,

I'm calling paraSwapMin.swap.getRate right before building the tx: paraSwapMin.swap.buildTx

For some tokens, like this one: destToken: 0xb6a5ae40e79891e4deadad06c8a7ca47396df21c I always get the error:
{"error":"The rate has changed, please re-query the latest Price"}.
What could cause this and how should I deal with it?