Assessment reports>Origami Finance>Threat Model>setRedeemableReservesBuffer

Function: setRedeemableReservesBuffer(uint256 buffer)

Updates redeemableReservesBuffer, which is defined as 100% plus buffer. When the user will initiate the exit process, this redeemableReservesBuffer will be used to calculate the available exit reserves amount.

Inputs

  • buffer

    • Constraints: Cannot be more than BasisPointFraction.BASIS_POINTS_DIVISOR.

    • Impact: This percent of debt will be also held in addition to debt amount.

Branches and code coverage

Intended branches

  • redeemableReservesBuffer was updated properly.

Negative behavior

  • Caller has no access to this function.

  • buffer is more than BasisPointFraction.BASIS_POINTS_DIVISOR.

Zellic © 2025Back to top ↑