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
set(produce((s: BorrowState)=>{if(s.collateral.allowance.value){// optimistic: we assume transaction will success and update allowance according to thats.collateral.allowance.value-=parseFloat(s.collateral.input)}}))
That code has been commented out, but we need to deal with it.
Context
Currently, the allowance modal handles only the collateral asset that works when we deposit. It breaks when we want to pay back.
TODOs
mode
:DEPOSIT_AND_BORROW
orDEPOSIT
-> deal with allowance for the collateral assetPAYBACK_AND_WITHDRAW
orPAYBACK
-> deal with allowance for the debt assetallow()
to differentiate between what allowance to deal with?)The text was updated successfully, but these errors were encountered: