You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this is expected, because we want to over value borrow assets. It is also acknowledged in a comment, so I'm fine with not doing anything for this issue
This issue has not been raised in a cantina finding.
Run:
yarn test:forge -vvv --mt testExpectedBorrowAssetsLeTotalBorrowAssets
This is due to the
toAssetsUp
Here is another test that shows that this happens whatever
totalBorrowAssets
(not only where it is zero):The end stakes are:
totalBorrowAssets < repaidAssets
, when using the return value as inputshares ~= totalShares +- 10
(1) is addressed via https://github.com/morpho-labs/morpho-blue-private/blob/f463e40f776acd0f26d0d380b51cfd02949c8c23/src/libraries/periphery/MorphoBalancesLib.sol#L108-L109
(2) is unlikely because it requires the borrow shares to be concentrated to a single address
The text was updated successfully, but these errors were encountered: