The documentation specifies that governanceFee should range between 100 and 2000 (1% to 20%), but in the initialize function, it’s fixed at 500 (5%) with no option to update it later. This limitation directly affects the protocol’s ability to adapt, impacting its core functionality.
In the perpetual vault contract, the governanceFee is set to 500 during deployment in the initialize function. However, there’s no mechanism for the admin to modify this value afterward.
The governanceFee is a vital parameter for managing the protocol and incentivizing users. In critical market situations, adjusting this value is essential to maintain the protocol’s health, but the current lack of an update mechanism hinders this flexibility, potentially affecting its sustainability and user engagement. {High Impact, low likelihood}
Manual Review
Add function inside perpetual vault to update the governace Fee with the admin privalige.
Please read the CodeHawks documentation to know which submissions are valid. If you disagree, provide a coded PoC and explain the real likelihood and the detailed impact on the mainnet without any supposition (if, it could, etc) to prove your point.
Please read the CodeHawks documentation to know which submissions are valid. If you disagree, provide a coded PoC and explain the real likelihood and the detailed impact on the mainnet without any supposition (if, it could, etc) to prove your point.
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.