paraswap/paraswap-sdk

How to calculate price impact with paraswap

nmaddp1995 opened this issue · 1 comments

I see in the paraswap app, when we change the price/token, the price impact show immediately in the UI
image

How could I calculate this value?

@nmaddp1995 I can assume that it is calculated by some formula on the private backend app, because I don't see it in paraswap-api