51391 sc low enabletoken function overwrites amountsold to zero causing permanent loss of sales history
Description
Brief/Intro
Vulnerability Details
ps.tokenInfo[_tokenContract] = TokenInfo({
isEnabled: true,
tokenPrice: _tokenPrice,
totalAmountForSale: _numberOfTokens,
amountSold: 0 // ← Always resets to 0, erasing sales history
});Impact Details
References
Proof of Concept
Previous52519 sc low missing eligibility check before fund transfer in distributeyield leads to permanent loss of yield tokensNext52221 sc insight hardcoded supra subscription wallet can freeze spin
Was this helpful?