Cheerful Taffy Dolphin - Vault Profit Share Bypass During Migration Results in Permanent Revenue Loss Through Zero-Mark Condition #47
Labels
Sponsor Disputed
The sponsor disputed this issue's validity
Cheerful Taffy Dolphin
Medium
Vault Profit Share Bypass During Migration Results in Permanent Revenue Loss Through Zero-Mark Condition
Summary
A critical vulnerability exists in the
_calculateProfitShare
function where profit shares are not allocated when the high-water mark (mark
) is zero, resulting in potential economic loss during vault migrations.`When the
mark
parameter is zero (typical during vault migration), the function prematurely returns after calculatingnewMark
but before computing profit shares. This bypasses the profit share calculation entirely, even though there may be legitimate profits to distribute.https://github.com/sherlock-audit/2025-01-perennial-v2-4-update/blob/main/perennial-v2/packages/vault/contracts/types/Checkpoint.sol#L119
Scenario
Impact
The zero-mark condition triggers a complete bypass of profit share calculation during migration, nullifying the coordinator's claim to a 20% share of vault performance. When initial depositors enter at mark=0, their returns above the zero-mark are excluded from profit share computations, compounding into a permanent revenue loss at the protocol level. This calculation bypass effectively breaks the vault's core economic incentive mechanism by allowing value accrual without corresponding profit share minting.
Proof of Concept
Recommended Fix
The text was updated successfully, but these errors were encountered: