Closed brianmcmichael closed 4 years ago
After some thought, it might be more useful for this function to return a uint256 of the ilk line after this. If it's short circuited, it can return the existing line, otherwise it retuns the new line value. This could be useful for contracts the need to know how much space they've got to work with in the adapter after this.
After some thought, it might be more useful for this function to return a uint256 of the ilk line after this. If it's short circuited, it can return the existing line, otherwise it retuns the new line value. This could be useful for contracts the need to know how much space they've got to work with in the adapter after this.
Good idea.
Updated this function and the tests, now instead of returning a bool here it returns the uint256 value of the current or adjusted line value. If invalid, returns 0.
Updates the
exec()
function to short circuit and return a bool instead of reverting.This will allow us to slip the auto-line into proxy actions without worrying about reverting transactions.