Using [] DAI Repayment Failed

Using DAi repayment failed
Using and Metamask.
I repaid dai to the vault on, tried several times, but the transaction failed.
This is one of the repayment transactions
“Warning! Error encountered during contract execution [Reverted]” is displayed, but the gas limit for this transaction is obviously sufficient.
In addition, I found that if the repayment amount is relatively small, it will succeed. Like this transaction of more than 1,000 DAI, will fail.

What is the issue and how do I solve this? Please help, thanks!

How much debt does the vault have?

I think when you repay Dai you must keep the remaining debt above the dust limit (currently 5000 Dai on ETH-A vault), or repay in full.

It may be reverting because you are trying to repay some Dai and result would be debt more than 0 and less than 5000 Dai.

thank you for your reply.
My DAI debt is 178,750.51 DAI, the DAI I am trying to repay is more than 110,000 DAI, and the remaining debt is much higher than 5000 Dai.
This problem has bothered me for several days, can I only pay off all my debts at once?

Hey @ShiQingGuo

I think it is to do with your allowance.

If you check here: TAC I can see that you only have ~8,000 Dai allowance on DSProxy. We have a bit of a poor design on the current Oasis Borrow (will be fixed in the next few weeks on the new version) where it only checks if your allowance is >0 - it should really check if you have enough allowance for the input.

So I would use this tool I have linked above though and increase the Dai allowance on the DSProxy to allow you to set a much higher value to let you pay back more, up to what you decide to set your allowance too. But please note that when you payback, it will then reduce your allowance by this amount (if that makes sense).

Again, apologies for the experience on Oasis today, is getting much better very soon :slight_smile:

I totally understand, thanks for your help

1 Like