Submitted by cccz
In LybraPeUSDVaultBase, the return value of getBorrowedOf represents the users debt, while borrowed only represents the users borrowed funds and does not include fees.
Using borrowed instead of getBorrowedOf in rigidRedemption results in:
https://github.com/code-423n4/2023-06-lybra/blob/5d70170f2c68dbd3f7b8c0c8fd6b0b2218784ea6/contracts/lybra/pools/base/LybraPeUSDVaultBase.sol#L157-L168
Change to:
Error
LybraFinance confirmed
