Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Token.swapBNBForTokens(uint256) (#1312-1327) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#1319-1324)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in Token._transfer(address,address,uint256) (#1124-1170):
External calls:
- dividendTracker.excludeFromDividends(address(from)) (#1133)
- dividendTracker.excludeFromDividends(address(to)) (#1137)
- swapAndSendDividendsInBNB(sellTokens) (#1147)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1302-1308)
- (success) = address(dividendTracker).call{value: dividends}() (#1366)
- dividendTracker.distributeDividends(dividends) (#1369)
- swapAndSendDividends(sellTokens_scope_0) (#1150)
- success = IERC20(_dividendToken).transfer(address(dividendTracker),dividends) (#1352)
- dividendTracker.distributeDividends(dividends) (#1355)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,recipient,block.timestamp) (#1339-1345)
External calls sending eth:
- swapAndSendDividendsInBNB(sellTokens) (#1147)
- (success) = address(dividendTracker).call{value: dividends}() (#1366)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (#1159)
- _rOwned[assignAddress] = _rOwned[assignAddress].add(rFee) (#1272)
- _rOwned[address(this)] = _rOwned[address(this)].add(rSpecifiedFee) (#1288)
- _rOwned[deadAddress] = _rOwned[deadAddress].add(rLiquidity) (#1280)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1204)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1194)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1195)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1227)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1216)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1217)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1206)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1229)
- _tokenTransfer(from,to,amount,takeFee) (#1159)
- _tOwned[assignAddress] = _tOwned[assignAddress].add(tFee) (#1274)
- _tOwned[deadAddress] = _tOwned[deadAddress].add(tLiquidity) (#1282)
- _tOwned[address(this)] = _tOwned[address(this)].add(tSpecifiedFee) (#1290)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#1226)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#1215)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#1205)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#1228)
- swapping = false (#1152)
Apply the check-effects-interactions pattern.
Additional information: link
Token._tFeeTotal (#802) is never initialized. It is used in:
- Token.tFeeTotalFees() (#931-933)
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
Contract locking ether found:
Contract DogeBackDividendTracker (#1379-1558) has payable functions:
- DividendPayingToken.receive() (#251-252)
- DividendPayingToken.distributeDividends() (#255-266)
- IDividendPayingToken.distributeDividends() (#203)
But does not have a function to withdraw the ether
Remove the payable attribute or add a withdraw function.
Additional information: link
Combination 1: Reentrancy vulnerabilities + Functions that send Ether to arbitraty destination. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.
Token.triggerBuyBack(uint256) (#998-1003) performs a multiplication on the result of a division:
-swapBNBForTokens(buyBackBalance.div(10 ** 2).mul(amount)) (#1002)
Consider ordering multiplication before division.
Additional information: link
Reentrancy in Token.updateDividendTracker(address) (#1005-1021):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#1012)
- newDividendTracker.excludeFromDividends(address(this)) (#1013)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1014)
State variables written after the call(s):
- dividendTracker = newDividendTracker (#1020)
Apply the check-effects-interactions pattern.
Additional information: link
Token._transfer(address,address,uint256).lastProcessedIndex (#1166) 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
Token._transfer(address,address,uint256) (#1124-1170) ignores return value by dividendTracker.process(gas) (#1166-1168)
Ensure that all the return values of the function calls are used.
Additional information: link
Token._approve(address,address,uint256).owner (#945) shadows:
- Ownable.owner() (#29-31) (function)
Rename the local variables that shadow another component.
Additional information: link
Token.updatemaxTxAmount(uint256) (#1056-1058) should emit an event for:
- _maxTxAmount = newMaxTxAmount (#1057)
Emit an event for critical parameter changes.
Additional information: link
DividendPayingToken.setDividendTokenAddress(address).newToken (#287) lacks a zero-check on :
- dividendToken = newToken (#288)
Check that the address is not zero.
Additional information: link
Variable 'Token._transfer(address,address,uint256).lastProcessedIndex (#1166)' in Token._transfer(address,address,uint256) (#1124-1170) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1167)
Move all variable declarations prior to any usage of the variable, and ensure that reaching a variable declaration does not depend on some conditional if it is used unconditionally.
Additional information: link
Reentrancy in Token.updateDividendTracker(address) (#1005-1021):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#1012)
- newDividendTracker.excludeFromDividends(address(this)) (#1013)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1014)
State variables written after the call(s):
- notShareBonusU[address(newDividendTracker)] = true (#1015)
- notShareBonusU[address(this)] = true (#1016)
- notShareBonusU[address(uniswapV2Router)] = true (#1017)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in Token.updateDividendTracker(address) (#1005-1021):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#1012)
- newDividendTracker.excludeFromDividends(address(this)) (#1013)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1014)
Event emitted after the call(s):
- UpdateDividendTracker(newAddress,address(dividendTracker)) (#1018)
Apply the check-effects-interactions pattern.
Additional information: link
DogeBackDividendTracker.canAutoClaim(uint256) (#1489-1494) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (#1490)
- block.timestamp.sub(lastClaimTime) >= claimWait (#1493)
Avoid relying on block.timestamp.
Additional information: link
Token.isContract(address) (#1040-1046) uses assembly
- INLINE ASM (#1044)
Do not use evm assembly.
Additional information: link
Token.transferToBuyBackWallet(address,uint256) (#1374-1376) is never used and should be removed
Remove unused functions.
Additional information: link
Token._previousSpecifiedFee (#808) is set pre-construction with a non-constant function or state variable:
- _specifiedFee
Remove any initialization of state variables via non-constant state variables or function calls. If variables must be set upon contract deployment, locate initialization in the constructor instead.
Additional information: link
solc-0.8.7 is not recommended for deployment
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
Low level call in Token.swapAndSendDividendsInBNB(uint256) (#1360-1372):
- (success) = address(dividendTracker).call{value: dividends}() (#1366)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Parameter DogeBackDividendTracker.getAccount(address)._account (#1437) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#11)" inContext (#5-14)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Variable DividendPayingToken._withdrawDividendOfUser(address)._withdrawableDividend (#293) is too similar to DogeBackDividendTracker.getAccount(address).withdrawableDividends (#1442)
Prevent variables from having similar names.
Additional information: link
DogeBackDividendTracker.getAccountAtIndex(uint256) (#1472-1487) uses literals with too many digits:
- (0x0000000000000000000000000000000000000000,- 1,- 1,0,0,0,0,0) (#1483)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
DividendPayingToken.lastAmount (#236) is never used in DogeBackDividendTracker (#1379-1558)
Remove unused state variables.
Additional information: link
Token.deadAddress (#768) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
process(uint256) should be declared external:
- DogeBackDividendTracker.process(uint256) (#1511-1544)
Use the external attribute for functions never called from the contract.
Additional information: link
Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.
Number of Binance Smart Chain (BSC) token holders is low.
Token is deployed only at one blockchain
Token has only one trading pair
Unable to find PancakeSwap trading pair to compute liquidity.
Unable to find PancakeSwap trading pair to compute volume.
Unable to find PancakeSwap trading pair to compute number of swaps.
Unable to find website, listings and other project-related information
Young tokens have high risks of price dump / death
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Unable to find Telegram and Twitter accounts