Fujicracy / fuji-v2

Cross-chain money market aggregator
https://fuji-v2-frontend.vercel.app
15 stars 10 forks source link

Borrow: Slippage settings #336

Closed brozorec closed 1 year ago

brozorec commented 1 year ago

Context

This ticket is the last part of #242

When the user does a cross-chain operation, there is a chance the user suffers some slippage. More info about it, can be found here and here. We have to provide the user with a way to control the slippage settings when they are about to make a cross-chain call.

Designs for this ticket are here.

Slippage is expressed in BPS (basis points): one basis point is equivalent to 0.01%. If the user inputs 0.50%, you should send to the dedicated sdk methods the value 50. The default slippage is 0.30% or 30 BPS.

TODOs