In the SablierFlowBase
contract, the setProtocolFee
function allows the protocol fee to be updated without first collecting any previously accrued fees. Changing the fee rate without collecting these fees could lead to revenue discrepancies, causing a potential loss or misallocation of funds.
The setProtocolFee
function updates the protocol fee without first collecting any accumulated fees under the previous rate.
Failing to collect previous fees before updating the protocol fee could lead to uncollected revenue, resulting in financial discrepancies for the protocol. If the fee adjustment is made frequently, the lost revenue could compound, reducing the overall income generated from protocol fees. This misalignment could also affect any on-chain accounting mechanisms, causing potential reporting or revenue allocation issues.
Manual Review
Before updating the protocol fee, call the collectProtocolRevenue
function to capture all accumulated revenue at the current rate. This ensures that the protocol’s revenue remains consistent with the fee structure and mitigates the risk of uncollected revenue.
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.