-
Notifications
You must be signed in to change notification settings - Fork 23
Option to adjust global DC with setIlkDebtCeiling #69
Comments
Will we use it often enough to deserve the function? |
I think you are misunderstanding the use case. Before the DC IAM we would be able to set the DC to 0 on any collateral by subtracting out the current line because it was constant. Now with the DC IAM we may want to set the DC to 0 on some of these, but we can no longer use the |
This would add a lot of overhead to the function to determine whether the new amount is higher or lower, calculate the difference, and then do the set, which is why we went with the simpler increase/decrease functions. I can see what you're aiming for here, but I wonder if it would instead be better to add a |
Got it. However my premise is the same. How many times are we gonna use this local + global debt ceiling update together? |
TBH I prefer to have the gas inefficiency. I think it's worth the cognitive trade off of managing the global DC separately. Simplicity should outweigh gas in most of these decisions imo.
I'd be okay with a set DC to 0 |
I can see the reasons to use it and to avoid using it. So it might be the best to have the option with the |
Sometimes you want to set a DC to a particular value, but also want to update the global Line as well (such as the case of setting a DC to 0). It would help to have a
bool _global
at the end ofsetIlkDebtCeiling
to keep this in sync.The text was updated successfully, but these errors were encountered: