50889 sc low arctokenpurchase withdrawunsoldarctokens fails to reduce totalamountforsale leaving availability counters wrong
Description
Vulnerability Details
function getMaxNumberOfTokens(
address _tokenContract
) external view returns (uint256) {
TokenInfo storage info = _getPurchaseStorage().tokenInfo[_tokenContract];
return info.totalAmountForSale - info.amountSold;
}Impact Details
Recommended Fix
Proof of Concept
Previous51162 sc low missing pause control implementation in tellerwithmultiassetsupportpredicateproxyNext51887 sc medium safeapprove will cause revert of usdt and similar erc20 token
Was this helpful?