The documentation claims that the function retrieves the sum of balances of all streams. However, the calculation omits the fees,
meaning that fees are not included in the sum of the streams' balances. This discrepancy between the documented behavior and actual
implementation could lead to misunderstanding for developers or incorrect assumptions about the total balance available for streaming.
The function documentation states it returns the sum of all streams' balances, but it does not account for the fees deducted.
Since the fees are subtracted and not considered part of the streams' balances, the final balance sum does not match the expectation
set in the documentation. This discrepancy could lead to incorrect total balance calculations when fees are present,
affecting both auditing processes and potential user balances when interacting with the contract.
link: https://github.com/Cyfrin/2024-10-sablier/blob/main/src/interfaces/ISablierFlowBase.sol#L61-L63
If the protocol takes fees the aggregateBalance will return wrong information about all streams balances.
Amend the documentation to clarify that the sum of balances does not include fees deducted.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.