[draft] make bad debt grace period configurable per-Ilk#147
[draft] make bad debt grace period configurable per-Ilk#147livnev wants to merge 3 commits intosky-ecosystem:masterfrom
Conversation
|
I know this is still a very early PR, but have 2 suggestions that might make sense:
|
|
Hi @gbalabasquer, thanks for your attention and suggestions:
Overall, the main disadvantage of this change is the need to deploy a new |
Yes, as you know, replacing the |
| ilk, urn, address(this), address(vow), -int256(dink), -int256(dart) | ||
| ); | ||
| vow.fess(mul(dart, rate)); | ||
| vow.fess(add(now, milk.wait), mul(dart, rate)); |
There was a problem hiding this comment.
Make sure these changes make it into the dog.sol
Vow.waitexists in order to avoid creating unnecessaryflopauctions immediately after a position has entered liquidation (creating bad debt), but before theflipauction has had time to finish and cancel the bad debt. Currently,Vow.waithas to be configured to apply to debt generated by all collateral types, meaning that it should be set to the maximum running time of anyflipauction. This is a limitation, since some future collateral types may wish to allow much longer liquidation auction durations than the existing ones, which would forcewaitto be longer, unnecessarily delayingflopauctions for other collateral types.This PR makes
waitconfigurable perIlk, asVow.ilks(ilk).wait.TODOs: