The StakingPool::totalSupply
function incorrectly returns the total staked amount as the total supply of tokens, without accounting for donated tokens. Since donated tokens do not result in token minting, the actual supply is overstated.
The StakingPool::totalSupply
function is intended to return the total supply of liquid staking tokens, but it currently returns the total staked amount instead. This is inaccurate because some staked tokens could be donated, and when tokens are donated, no new tokens are minted, as seen here:
This discrepancy can mislead users and other querying contracts, as the total supply reported by the contract will be higher than the actual number of liquid staking tokens in circulation.
Manual review.
The StakingPool::totalSupply
function should return totalShares
instead, as this value is only updated when tokens are minted.
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.