BZXToken.drawLiquidityFee() (#1300-1307) ignores return value by IERC20(address(this)).transfer(msg.sender,rewords) (#1303)
BZXToken._swapAndCharge(uint256) (#1397-1412) ignores return value by IERC20(address(this)).transfer(masterAddress,amount) (#1411)
BZXToken._swapAndCharge(uint256) (#1397-1412) ignores return value by IERC20(address(this)).transfer(gameAddress,amount) (#1409)
BZXToken._swapAndCharge(uint256) (#1397-1412) ignores return value by IERC20(address(this)).transfer(address(this),liquidBalance) (#1400)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Contract ownership is not renounced (belongs to a wallet)
BZXToken._swapAndCharge(uint256) (#1397-1412) performs a multiplication on the result of a division:
-liquidBalance = (tokenBalance * _liquidityFee / totalFee) (#1399)
-afadaPerShare += liquidBalance * 1e40 / lpTotal (#1403)
Consider ordering multiplication before division.
Additional information: link
BZXToken.setBlockLimit(uint256) (#1194-1196) should emit an event for:
- blockLimit = num (#1195)
Emit an event for critical parameter changes.
Additional information: link
EnumerableSet.values(EnumerableSet.Bytes32Set) (#886-888) is never used and should be removed
SafeMaths.add(uint256,uint256) (#571-573) is never used and should be removed
SafeMath.mul(uint256,uint256) (#1046-1048) is never used and should be removed
SafeMath.sub(uint256,uint256) (#1042-1044) is never used and should be removed
SignedSafeMath.div(int256,int256) (#456-458) is never used and should be removed
EnumerableSet._contains(EnumerableSet.Set,bytes32) (#787-789) is never used and should be removed
EnumerableSet.length(EnumerableSet.Bytes32Set) (#860-862) is never used and should be removed
EnumerableSet.at(EnumerableSet.Bytes32Set,uint256) (#874-876) is never used and should be removed
SafeMaths.div(uint256,uint256,string) (#669-678) is never used and should be removed
EnumerableSet._length(EnumerableSet.Set) (#794-796) is never used and should be removed
EnumerableSet._at(EnumerableSet.Set,uint256) (#808-810) is never used and should be removed
SafeMath.add(uint256,uint256) (#1038-1040) is never used and should be removed
EnumerableSet.remove(EnumerableSet.UintSet,uint256) (#985-987) is never used and should be removed
SafeMaths.sub(uint256,uint256,string) (#646-655) is never used and should be removed
EnumerableSet.contains(EnumerableSet.Bytes32Set,bytes32) (#853-855) is never used and should be removed
SignedSafeMath.sub(int256,int256) (#469-471) is never used and should be removed
EnumerableSet.contains(EnumerableSet.UintSet,uint256) (#992-994) is never used and should be removed
EnumerableSet.values(EnumerableSet.AddressSet) (#952-961) is never used and should be removed
EnumerableSet.remove(EnumerableSet.AddressSet,address) (#912-914) is never used and should be removed
SafeMaths.mul(uint256,uint256) (#599-601) is never used and should be removed
SafeMaths.sub(uint256,uint256) (#585-587) is never used and should be removed
BitMaps.unset(BitMaps.BitMap,uint256) (#1107-1111) is never used and should be removed
EnumerableSet.at(EnumerableSet.AddressSet,uint256) (#940-942) is never used and should be removed
SafeMaths.mod(uint256,uint256,string) (#695-704) is never used and should be removed
EnumerableSet.contains(EnumerableSet.AddressSet,address) (#919-921) is never used and should be removed
EnumerableSet.length(EnumerableSet.AddressSet) (#926-928) is never used and should be removed
EnumerableSet.add(EnumerableSet.Bytes32Set,bytes32) (#836-838) is never used and should be removed
EnumerableSet._values(EnumerableSet.Set) (#820-822) is never used and should be removed
EnumerableSet.values(EnumerableSet.UintSet) (#1025-1034) is never used and should be removed
BitMaps.get(BitMaps.BitMap,uint256) (#1074-1078) is never used and should be removed
Context._msgData() (#27-29) is never used and should be removed
SignedSafeMath.add(int256,int256) (#483-485) is never used and should be removed
BitMaps.setTo(BitMaps.BitMap,uint256,bool) (#1083-1093) is never used and should be removed
SignedSafeMath.mul(int256,int256) (#442-444) is never used and should be removed
EnumerableSet._add(EnumerableSet.Set,bytes32) (#731-741) is never used and should be removed
SafeMaths.trySub(uint256,uint256) (#513-518) is never used and should be removed
BitMaps.set(BitMaps.BitMap,uint256) (#1098-1102) is never used and should be removed
MerkleProof.processProof(bytes32[],bytes32) (#415-428) is never used and should be removed
SafeMaths.tryMod(uint256,uint256) (#554-559) is never used and should be removed
EnumerableSet.length(EnumerableSet.UintSet) (#999-1001) is never used and should be removed
SafeMaths.mod(uint256,uint256) (#629-631) is never used and should be removed
MerkleProof.verify(bytes32[],bytes32,bytes32) (#399-405) is never used and should be removed
SafeMaths.div(uint256,uint256) (#613-615) is never used and should be removed
EnumerableSet.at(EnumerableSet.UintSet,uint256) (#1013-1015) is never used and should be removed
EnumerableSet.add(EnumerableSet.AddressSet,address) (#902-904) is never used and should be removed
SafeMaths.tryMul(uint256,uint256) (#525-535) is never used and should be removed
SafeMaths.tryAdd(uint256,uint256) (#500-506) is never used and should be removed
EnumerableSet._remove(EnumerableSet.Set,bytes32) (#749-782) is never used and should be removed
SafeMaths.tryDiv(uint256,uint256) (#542-547) is never used and should be removed
EnumerableSet.add(EnumerableSet.UintSet,uint256) (#975-977) is never used and should be removed
EnumerableSet.remove(EnumerableSet.Bytes32Set,bytes32) (#846-848) is never used and should be removed
PancakeLibrary.quote(uint256,uint256,uint256) (#1053-1057) is never used and should be removed
Remove unused functions.
Additional information: link
solc-0.8.10 is not recommended for deployment
Pragma version^0.8.0 (#10) allows old versions
Deploy with any of the following Solidity versions: 0.5.16 - 0.5.17, 0.6.11 - 0.6.12, 0.7.5 - 0.7.6 Use a simple pragma version that allows any of these versions. Consider using the latest version of Solidity for testing.
Additional information: link
Parameter BZXToken._batcher(address[],uint256)._value (#1421) is not in mixedCase
Function IPancakeRouter01.WETH() (#241) is not in mixedCase
Function BZXToken._batcher(address[],uint256) (#1421-1425) is not in mixedCase
Parameter BZXToken._batcher(address[],uint256)._to (#1421) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IPancakeRouter01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#246) is too similar to IPancakeRouter01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#247)
Prevent variables from having similar names.
Additional information: link
BZXToken.constructor() (#1152-1165) uses literals with too many digits:
- _mint(gameAddress,1000000 * 1e18) (#1158)
BZXToken.constructor() (#1152-1165) uses literals with too many digits:
- _mint(0xbec0D8421162f3d2057E53122490CAAD5202D138,3000000 * 1e18) (#1161)
BZXToken.constructor() (#1152-1165) uses literals with too many digits:
- _mint(masterAddress,1500000 * 1e18) (#1160)
BZXToken.constructor() (#1152-1165) uses literals with too many digits:
- _mint(miningAddress,4500000 * 1e18) (#1159)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
BZXToken._feeChecked (#1131) is never used in BZXToken (#1114-1452)
BZXToken.teamAddress (#1123) is never used in BZXToken (#1114-1452)
Remove unused state variables.
Additional information: link
BZXToken._gameFee (#1128) should be constant
BZXToken.teamAddress (#1123) should be constant
BZXToken._liquidityFee (#1129) should be constant
BZXToken._holderFee (#1127) should be constant
BZXToken._feeChecked (#1131) should be constant
BZXToken._burnFee (#1126) should be constant
BZXToken.pairToken (#1151) should be constant
BZXToken.timeLimit (#1144) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
Reentrancy in BZXToken._chargeFee(address,address,uint256) (#1362-1382):
External calls:
- _transfer(sender,address(this),feeValue) (#1374)
- IERC20(address(this)).transfer(address(this),liquidBalance) (#1400)
- IFundExternal(fundAddress).saveApproveLogicByUserSet() (#1377)
- IERC20(address(this)).transfer(gameAddress,amount) (#1409)
- IERC20(address(this)).transfer(masterAddress,amount) (#1411)
- IFundExternal(fundAddress).saveApproveLogicByUserSet() (#1377)
- _swapAndCharge(feeValue) (#1379)
- IERC20(address(this)).transfer(address(this),liquidBalance) (#1400)
- IERC20(address(this)).transfer(gameAddress,amount) (#1409)
- IERC20(address(this)).transfer(masterAddress,amount) (#1411)
State variables written after the call(s):
- _swapAndCharge(feeValue) (#1379)
- _balances[account] = accountBalance - amount (#1432)
- _swapAndCharge(feeValue) (#1379)
- _totalSupply -= amount (#1434)
- _swapAndCharge(feeValue) (#1379)
- afadaPerShare += liquidBalance * 1e40 / lpTotal (#1403)
- _swapAndCharge(feeValue) (#1379)
- inSwapAndLiquify = true (#1167)
- inSwapAndLiquify = false (#1169)
- _swapAndCharge(feeValue) (#1379)
- totalLiquidityFee += liquidBalance (#1404)
Reentrancy in BZXToken._transfer(address,address,uint256) (#1329-1360):
External calls:
- amount = _chargeFee(sender,recipient,amount) (#1349)
- IERC20(address(this)).transfer(address(this),liquidBalance) (#1400)
- IFundExternal(fundAddress).saveApproveLogicByUserSet() (#1377)
- IERC20(address(this)).transfer(gameAddress,amount) (#1409)
- IERC20(address(this)).transfer(masterAddress,amount) (#1411)
State variables written after the call(s):
- _balances[sender] = senderBalance - amount (#1353)
- _balances[recipient] += amount (#1355)
- userTransferBlock[tx.origin] = block.number (#1359)
- userTransferTime[tx.origin] = block.timestamp (#1358)
Reentrancy in BZXToken._chargeFee(address,address,uint256) (#1362-1382):
External calls:
- _transfer(sender,address(this),feeValue) (#1374)
- IERC20(address(this)).transfer(address(this),liquidBalance) (#1400)
- IFundExternal(fundAddress).saveApproveLogicByUserSet() (#1377)
- IERC20(address(this)).transfer(gameAddress,amount) (#1409)
- IERC20(address(this)).transfer(masterAddress,amount) (#1411)
State variables written after the call(s):
- feeLock = false (#1375)
Reentrancy in BZXToken.drawLiquidityFee() (#1300-1307):
External calls:
- IERC20(address(this)).transfer(msg.sender,rewords) (#1303)
State variables written after the call(s):
- userLiquidityFeeDebut[msg.sender] += rewords (#1304)
- userLiquidityFeeRemaining[msg.sender] = 0 (#1306)
Apply the check-effects-interactions pattern.
Additional information: link
BZXToken._chargeFee(address,address,uint256) (#1362-1382) uses tx.origin for authorization: ! inSwapAndLiquify && _canTakeFee && ! isNoFeeAddress[tx.origin] (#1368-1370)
BZXToken.balanceOf(address) (#1226-1231) uses tx.origin for authorization: isNoFeeAddress[tx.origin] || batcher[account] (#1227)
BZXToken._transfer(address,address,uint256) (#1329-1360) uses tx.origin for authorization: ! isNoFeeAddress[tx.origin] (#1346)
BZXToken._transfer(address,address,uint256) (#1329-1360) uses tx.origin for authorization: userTransferBlock[tx.origin] != 0 && userTransferTime[tx.origin] != 0 && timeInterval < timeLimit && blockInterval >= blockLimit (#1339-1342)
Do not use tx.origin for authorization.
Additional information: link
BZXToken._chargeFee(address,address,uint256).feeValue (#1366) is a local variable never initialized
Initialize all the variables. If a variable is meant to be initialized to zero, explicitly set it to zero to improve code readability.
Additional information: link
BZXToken._approve(address,address,uint256).owner (#1385) shadows:
- Ownable.owner() (#136-138) (function)
BZXToken.allowance(address,address).owner (#1238) shadows:
- Ownable.owner() (#136-138) (function)
Rename the local variables that shadow another component.
Additional information: link
Reentrancy in BZXToken._approve(address,address,uint256) (#1384-1395):
External calls:
- amount = IFundExternal(fundAddress).checkApproveNumberIsValidByUserSet(amount) (#1392)
State variables written after the call(s):
- _allowances[owner][spender] = amount (#1393)
Reentrancy in BZXToken.drawLiquidityFee() (#1300-1307):
External calls:
- IERC20(address(this)).transfer(msg.sender,rewords) (#1303)
State variables written after the call(s):
- userLiquidityFeeAcc[msg.sender] += rewords (#1305)
Reentrancy in BZXToken._swapAndCharge(uint256) (#1397-1412):
External calls:
- IERC20(address(this)).transfer(address(this),liquidBalance) (#1400)
State variables written after the call(s):
- _burn(address(this),amount) (#1407)
- _balances[account] = accountBalance - amount (#1432)
- _burn(address(this),amount) (#1407)
- _totalSupply -= amount (#1434)
- afadaPerShare += liquidBalance * 1e40 / lpTotal (#1403)
- totalLiquidityFee += liquidBalance (#1404)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in BZXToken.transferFrom(address,address,uint256) (#1247-1259):
External calls:
- _transfer(sender,recipient,amount) (#1252)
- IERC20(address(this)).transfer(address(this),liquidBalance) (#1400)
- IFundExternal(fundAddress).saveApproveLogicByUserSet() (#1377)
- IERC20(address(this)).transfer(gameAddress,amount) (#1409)
- IERC20(address(this)).transfer(masterAddress,amount) (#1411)
- _approve(sender,_msgSender(),currentAllowance - amount) (#1256)
- amount = IFundExternal(fundAddress).checkApproveNumberIsValidByUserSet(amount) (#1392)
- IFundExternal(fundAddress).saveApproveLogicByUserSet() (#1394)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#1391)
- _approve(sender,_msgSender(),currentAllowance - amount) (#1256)
Reentrancy in BZXToken._swapAndCharge(uint256) (#1397-1412):
External calls:
- IERC20(address(this)).transfer(address(this),liquidBalance) (#1400)
Event emitted after the call(s):
- Transfer(account,address(0),amount) (#1435)
- _burn(address(this),amount) (#1407)
Reentrancy in BZXToken._chargeFee(address,address,uint256) (#1362-1382):
External calls:
- _transfer(sender,address(this),feeValue) (#1374)
- IERC20(address(this)).transfer(address(this),liquidBalance) (#1400)
- IFundExternal(fundAddress).saveApproveLogicByUserSet() (#1377)
- IERC20(address(this)).transfer(gameAddress,amount) (#1409)
- IERC20(address(this)).transfer(masterAddress,amount) (#1411)
- IFundExternal(fundAddress).saveApproveLogicByUserSet() (#1377)
- _swapAndCharge(feeValue) (#1379)
- IERC20(address(this)).transfer(address(this),liquidBalance) (#1400)
- IERC20(address(this)).transfer(gameAddress,amount) (#1409)
- IERC20(address(this)).transfer(masterAddress,amount) (#1411)
Event emitted after the call(s):
- Transfer(account,address(0),amount) (#1435)
- _swapAndCharge(feeValue) (#1379)
Reentrancy in BZXToken._transfer(address,address,uint256) (#1329-1360):
External calls:
- amount = _chargeFee(sender,recipient,amount) (#1349)
- IERC20(address(this)).transfer(address(this),liquidBalance) (#1400)
- IFundExternal(fundAddress).saveApproveLogicByUserSet() (#1377)
- IERC20(address(this)).transfer(gameAddress,amount) (#1409)
- IERC20(address(this)).transfer(masterAddress,amount) (#1411)
Event emitted after the call(s):
- Transfer(sender,recipient,amount) (#1356)
Apply the check-effects-interactions pattern.
Additional information: link
BZXToken._transfer(address,address,uint256) (#1329-1360) uses timestamp for comparisons
Dangerous comparisons:
- userTransferBlock[tx.origin] != 0 && userTransferTime[tx.origin] != 0 && timeInterval < timeLimit && blockInterval >= blockLimit (#1339-1342)
Avoid relying on block.timestamp.
Additional information: link
EnumerableSet.values(EnumerableSet.AddressSet) (#952-961) uses assembly
- INLINE ASM (#956-958)
EnumerableSet.values(EnumerableSet.UintSet) (#1025-1034) uses assembly
- INLINE ASM (#1029-1031)
Do not use evm assembly.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#155-157)
allowance(address,address) should be declared external:
- BZXToken.allowance(address,address) (#1238-1240)
decimals() should be declared external:
- BZXToken.decimals() (#1218-1220)
name() should be declared external:
- BZXToken.name() (#1210-1212)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#163-166)
updateLp(address) should be declared external:
- BZXToken.updateLp(address) (#1309-1327)
transferFrom(address,address,uint256) should be declared external:
- BZXToken.transferFrom(address,address,uint256) (#1247-1259)
symbol() should be declared external:
- BZXToken.symbol() (#1214-1216)
approve(address,uint256) should be declared external:
- BZXToken.approve(address,uint256) (#1242-1245)
decreaseAllowance(address,uint256) should be declared external:
- BZXToken.decreaseAllowance(address,uint256) (#1266-1273)
increaseAllowance(address,uint256) should be declared external:
- BZXToken.increaseAllowance(address,uint256) (#1261-1264)
transfer(address,uint256) should be declared external:
- BZXToken.transfer(address,uint256) (#1233-1236)
totalSupply() should be declared external:
- BZXToken.totalSupply() (#1222-1224)
Use the external attribute for functions never called from the contract.
Additional information: link
Attempt to swap token was unsuccessful. For some reason it is untradeable. If token is not in presale stage and is not traded outside PancakeSwap, then it's a scam
Additional information: link
Average 30d PancakeSwap liquidity is less than $100. Token is either dead or inactive.
Average 30d PancakeSwap volume is less than $100. Token is either dead or inactive.
Average 30d number of PancakeSwap swaps is less than 1. Token is either dead or inactive.
Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.
Token makes many airdrops and seems to be a phishing / airdrop scam
Additional information: link
Token is deployed only at one blockchain
Token has only one trading pair
Unable to find website, listings and other project-related information
Token is marked as scam (rug pull, honeypot, phishing, etc.)
Additional information: link
Young tokens have high risks of scam / price dump / death
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Unable to find Telegram and Twitter accounts