Unexpected behavior may occur when impounding a safe. For example, if the specified feiAmount in the impound function is greater than the outstanding borrow repayment amount and the repayBorrowBehalf only repays that borrow amount, there will be feiAmount - repayBorrowBehalf fei stuck in the gibber contract.
Recommendation: burn any additional fei in the TurboGibber contract after repayments.
(less favorable) Alternative: Add a sweep function to allow transfers of frozen fei.
[I-00] Frozen Fei in TurboGibber
Severity: Medium Likelihood: Low Status: {Not Submitted} Scope:
TurboGibber
Unexpected behavior may occur when impounding a safe. For example, if the specified
feiAmount
in theimpound
function is greater than the outstanding borrow repayment amount and therepayBorrowBehalf
only repays that borrow amount, there will befeiAmount - repayBorrowBehalf
fei stuck in the gibber contract.Recommendation: burn any additional fei in the
TurboGibber
contract after repayments.(less favorable) Alternative: Add a
sweep
function to allow transfers of frozen fei.