In PerpetualVault, depositors who contribute collateral before a position is opened receive shares based on the full value of their deposited collateral. However, depositors who deposit during an active position receive shares based on the value of collateral that actually increases the position, after adjusting for fees and price impact. This discrepancy results in early depositors gaining more shares than they should, leading to an unfair distribution of collateral upon withdrawal.
Unfair Share Allocation: Early depositors receive disproportionately higher shares, which leads to them receiving more collateral upon withdrawal than they are entitled to.
Potential Exploitability: Users could strategically time deposits to maximize their share allocation, leading to unfair advantages.
Financial Imbalance: Later depositors effectively subsidize the withdrawals of earlier depositors, creating an unintended redistribution of funds.
Manual Review
Foundry
Modify the share allocation mechanism to ensure all depositors receive shares proportionate to the actual collateral value adjusted for fees and price impact.
Implement a consistent share calculation methodology regardless of whether a position is open or not.
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.