51034 sc low sales information is lost when enabling token
Description
Brief/Intro
Vulnerability Details
function enableToken(
address _tokenContract,
uint256 _numberOfTokens,
uint256 _tokenPrice
) external onlyTokenAdmin(_tokenContract) {
...
ps.tokenInfo[_tokenContract] =
TokenInfo({ isEnabled: true, tokenPrice: _tokenPrice, totalAmountForSale: _numberOfTokens, amountSold: 0 });
...
}Example 1 - Token is disabled and re-enabled later
Example 2
Impact Details
Proof of Concept
Previous49732 sc medium malicious token admin can permanently block setpurchasetokenNext52780 sc high timestamp manipulation in forcesettlevalidatorcommission leads to permanent loss of staker rewards
Was this helpful?