The assetValue()
function calculates token amounts based on the assumption that LP reserves stay proportional to total supply. However, reserve proportions are not fixed and can change over time.
The function calculates asset amounts by taking the current reserve amounts, multiplying by the stored LP balance, and dividing by total supply. It assumes reserve balances change at the same rate as total supply. But if one reserve increases faster than the other due to trades, the proportions will change.
f reserve proportions diverge significantly from assumptions, the reported asset value may be inaccurate. This undermines the integrity of position valuation and could mislead users over time.
Manual Review
Calculate token amounts directly from latest reserve balances, without relying on proportions.
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.