https://github.com/Cyfrin/2024-10-sablier/blob/main/src/SablierFlow.sol#L846-#L863
In _withdraw()
function, when protocol fee > 0, protocol fee will be calculated:
calculateAmountsFromFee()
function:
User can avoid paying fee by continuously call withdraw()
function to make feeAmount
= 0 due to rounding down, so that user dont have to pay any fee for protocol
Protocol cant collect fee due to rounding down
Manual review
If it is not full withdrawn, make sure that `feeAmount > 0` when user withdraw.
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.