The treasury can receive a portion of users' funds when the vault has been closed.
The GMXVault#mintFee
function can be publicly called and does not require a specific state:
Since the fee calculation is time based, the treasury can get minted fees even when the vault is closed. When the vault is closed, all assets are stored in the vault, so no more rewards can be generated through LPing. Hence the Treasury should not be eligible to receive additional fees.
Users' funds can be misallocated to the treasury.
Manual Review
Disallow mintFee
to be called when the vault is in status Closed
Impact: High Likelihood: Low Fee calculation must be stopped during an emergency. Typical problem that can happen for pausable protocols.
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.