In the buyCreditMarket function, lets denote some values:
According to the formula described in the documentation, when the fragmentation fee is 0, the relationship between these values is as follows:
https://github.com/code-423n4/2024-06-size/blob/8850e25fb088898e9cf86f9be1c401ad155bea86/src/libraries/AccountingLibrary.sol#L285-L286
There is no guarantee that A is always larger than the sum of V+fee due to the absence of a strict relation between k and r. Therefore, lenders can potentially pay more funds than what they will receive in the future.
https://github.com/code-423n4/2024-06-size/blob/8850e25fb088898e9cf86f9be1c401ad155bea86/src/libraries/actions/BuyCreditMarket.sol#L195-L196
The loss can increase when there is a fragmentation fee. This issue can be upgraded as it can lead to a users funds loss.
