GmxVault.updateFeePerSecond should accrue fee first, as otherwise new rate will be applied to previous time.
GMXVault stakers pay management fee to the protocol. This fee is paid for each second using _store.feePerSecond
rate. And this rate can be changed by protocol. Once it's done, then mintFee
function will use new value as fee rate. Because of that, mintFee
should be called right before fee rate changing, so then there can be no situation when new rate is applied to past time.
Fee payment may be wrong.
VsCode
Call mintFee
before changing fee rate.
Severity: High Likelihood: Low
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.