Closed sherlock-admin closed 1 year ago
WATCHPUG
medium
claimAssets
settlementFee
A fair share of the global settlementFee was paid for when opening and closing positions.
claimAssets does not incur any settlementFee on the market side.
https://github.com/sherlock-audit/2023-07-perennial/blob/main/perennial-v2/packages/perennial-vault/contracts/Vault.sol#L286-L297
Manual Review
Do not charge the settlementFee for claimAssets.
2 comment(s) were left on this issue during the judging contest.
141345 commented:
x
panprog commented:
invalid because its design choice
WATCHPUG
medium
claimAssets
should not pay for asettlementFee
Summary
Vulnerability Detail
A fair share of the global
settlementFee
was paid for when opening and closing positions.claimAssets
does not incur anysettlementFee
on the market side.Impact
Code Snippet
https://github.com/sherlock-audit/2023-07-perennial/blob/main/perennial-v2/packages/perennial-vault/contracts/Vault.sol#L286-L297
Tool used
Manual Review
Recommendation
Do not charge the
settlementFee
forclaimAssets
.