Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Test.addLiquidity(uint256,uint256) (#1351-1365) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,marketingWallet,block.timestamp) (#1357-1364)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in Test._transfer(address,address,uint256) (#1224-1332):
External calls:
- swapAndLiquify(liqTokens) (#1272)
- uniswapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,marketingWallet,block.timestamp) (#1357-1364)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1377-1383)
External calls sending eth:
- swapAndLiquify(liqTokens) (#1272)
- uniswapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,marketingWallet,block.timestamp) (#1357-1364)
State variables written after the call(s):
- tokensForLpInContract = 0 (#1273)
Reentrancy in Test._transfer(address,address,uint256) (#1224-1332):
External calls:
- swapAndLiquify(liqTokens) (#1272)
- uniswapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,marketingWallet,block.timestamp) (#1357-1364)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1377-1383)
- swapAndSendBusdDividends(busdTokens) (#1278)
- success = IERC20(dividendToken).transfer(dividendTracker,amount) (#1417)
- dividendPayingTracker.distributeDividends(amount) (#1420)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(_tokenAmount,0,path,_recipient,block.timestamp) (#1396-1402)
External calls sending eth:
- swapAndLiquify(liqTokens) (#1272)
- uniswapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,marketingWallet,block.timestamp) (#1357-1364)
State variables written after the call(s):
- super._transfer(from,address(this),fees) (#1312)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#153)
- _balances[recipient] = _balances[recipient].add(amount) (#154)
- super._transfer(address(this),marketingWallet,tmpMarketingRewardPercent) (#1313)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#153)
- _balances[recipient] = _balances[recipient].add(amount) (#154)
- super._transfer(from,to,amount) (#1316)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#153)
- _balances[recipient] = _balances[recipient].add(amount) (#154)
- busdDividedRewardsInContract = 0 (#1279)
- busdDividedRewardsInContract = busdDividedRewardsInContract.add(tmpBusdDividedRewardsInContract) (#1302)
- swapping = false (#1283)
- tokensForLpInContract = tokensForLpInContract.add(tmpLpRewardInContract) (#1304)
Apply the check-effects-interactions pattern.
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.
Test._transfer(address,address,uint256) (#1224-1332) performs a multiplication on the result of a division:
-fees = fees.div(100).mul(sellFeeIncreaseFactor) (#1308)
Consider ordering multiplication before division.
Additional information: link
Reentrancy in DividendPayingToken._withdrawDividendOfUser(address) (#273-289):
External calls:
- success = IERC20(dividendToken).transfer(user,_withdrawableDividend) (#278)
State variables written after the call(s):
- withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend) (#281)
Reentrancy in Test.updatebusdDividendTracker(address) (#1078-1093):
External calls:
- newbusdDividendTracker.excludeFromDividends(address(newbusdDividendTracker)) (#1085)
- newbusdDividendTracker.excludeFromDividends(address(this)) (#1086)
- newbusdDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1087)
- newbusdDividendTracker.excludeFromDividends(address(deadAddress)) (#1088)
State variables written after the call(s):
- busdDividendTracker = newbusdDividendTracker (#1092)
Apply the check-effects-interactions pattern.
Additional information: link
Test._transfer(address,address,uint256).claims (#1325) is a local variable never initialized
Test._transfer(address,address,uint256).lastProcessedIndex (#1325) is a local variable never initialized
Test._transfer(address,address,uint256).iterations (#1325) 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
Test.claim() (#1209-1212) ignores return value by busdDividendTracker.processAccount(address(msg.sender),false) (#1210)
Test._transfer(address,address,uint256) (#1224-1332) ignores return value by busdDividendTracker.process(gas) (#1325-1330)
Test.addLiquidity(uint256,uint256) (#1351-1365) ignores return value by uniswapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,marketingWallet,block.timestamp) (#1357-1364)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendPayingToken.constructor(string,string,address)._name (#242) shadows:
- ERC20._name (#87) (state variable)
DividendPayingToken.constructor(string,string,address)._symbol (#242) shadows:
- ERC20._symbol (#88) (state variable)
DividendPayingToken.dividendOf(address)._owner (#292) shadows:
- Ownable._owner (#29) (state variable)
DividendPayingToken.withdrawableDividendOf(address)._owner (#296) shadows:
- Ownable._owner (#29) (state variable)
DividendPayingToken.withdrawnDividendOf(address)._owner (#300) shadows:
- Ownable._owner (#29) (state variable)
DividendPayingToken.accumulativeDividendOf(address)._owner (#305) shadows:
- Ownable._owner (#29) (state variable)
Rename the local variables that shadow another component.
Additional information: link
Test.setWalletBalance(uint256) (#1001-1003) should emit an event for:
- maxWalletBalance = _maxWalletBalance (#1002)
Test.setMaxBuyTransaction(uint256) (#1005-1007) should emit an event for:
- maxBuyTranscationAmount = _maxTxn * (10 ** 18) (#1006)
Test.setMaxSellTransaction(uint256) (#1009-1011) should emit an event for:
- maxSellTransactionAmount = _maxTxn * (10 ** 18) (#1010)
Test.setSwapTokensAtAmount(uint256) (#1026-1028) should emit an event for:
- swapTokensAtAmount = _swapAmount * (10 ** 18) (#1027)
Test.setSellTransactionMultiplier(uint256) (#1030-1032) should emit an event for:
- sellFeeIncreaseFactor = _multiplier (#1031)
Emit an event for critical parameter changes.
Additional information: link
DividendPayingToken.constructor(string,string,address)._token (#242) lacks a zero-check on :
- dividendToken = _token (#243)
BUSDDividendTracker.setDividendTokenAddress(address).newToken (#675) lacks a zero-check on :
- dividendToken = newToken (#676)
Test.updateBusdDividendToken(address)._newContract (#1014) lacks a zero-check on :
- busdDividendToken = _newContract (#1015)
Check that the address is not zero.
Additional information: link
DividendPayingToken._withdrawDividendOfUser(address) (#273-289) has external calls inside a loop: success = IERC20(dividendToken).transfer(user,_withdrawableDividend) (#278)
Favor pull over push strategy for external calls.
Additional information: link
Variable 'Test._transfer(address,address,uint256).lastProcessedIndex (#1325)' in Test._transfer(address,address,uint256) (#1224-1332) potentially used before declaration: ProcessedbusdDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1326)
Variable 'Test._transfer(address,address,uint256).claims (#1325)' in Test._transfer(address,address,uint256) (#1224-1332) potentially used before declaration: ProcessedbusdDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1326)
Variable 'Test._transfer(address,address,uint256).iterations (#1325)' in Test._transfer(address,address,uint256) (#1224-1332) potentially used before declaration: ProcessedbusdDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1326)
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 Test._transfer(address,address,uint256) (#1224-1332):
External calls:
- swapAndLiquify(liqTokens) (#1272)
- uniswapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,marketingWallet,block.timestamp) (#1357-1364)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1377-1383)
- swapAndSendBusdDividends(busdTokens) (#1278)
- success = IERC20(dividendToken).transfer(dividendTracker,amount) (#1417)
- dividendPayingTracker.distributeDividends(amount) (#1420)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(_tokenAmount,0,path,_recipient,block.timestamp) (#1396-1402)
External calls sending eth:
- swapAndLiquify(liqTokens) (#1272)
- uniswapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,marketingWallet,block.timestamp) (#1357-1364)
State variables written after the call(s):
- swapAndSendBusdDividends(busdTokens) (#1278)
- _allowances[owner][spender] = amount (#182)
Reentrancy in Test.constructor() (#955-990):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#964-965)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (#968)
- uniswapV2Router = _uniswapV2Router (#967)
Reentrancy in Test.constructor() (#955-990):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#964-965)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#970)
- busdDividendTracker.excludeFromDividends(pair) (#1124)
- excludeFromDividend(address(busdDividendTracker)) (#972)
- busdDividendTracker.excludeFromDividends(address(account)) (#1109)
- excludeFromDividend(address(this)) (#973)
- busdDividendTracker.excludeFromDividends(address(account)) (#1109)
- excludeFromDividend(address(_uniswapV2Router)) (#974)
- busdDividendTracker.excludeFromDividends(address(account)) (#1109)
- excludeFromDividend(deadAddress) (#975)
- busdDividendTracker.excludeFromDividends(address(account)) (#1109)
State variables written after the call(s):
- excludeFromFees(marketingWallet,true) (#978)
- isExcludedFromFees[account] = excluded (#1103)
- excludeFromFees(address(this),true) (#979)
- isExcludedFromFees[account] = excluded (#1103)
- excludeFromFees(deadAddress,true) (#980)
- isExcludedFromFees[account] = excluded (#1103)
- excludeFromFees(owner(),true) (#981)
- isExcludedFromFees[account] = excluded (#1103)
Reentrancy in Test.constructor() (#955-990):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#964-965)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#970)
- busdDividendTracker.excludeFromDividends(pair) (#1124)
- excludeFromDividend(address(busdDividendTracker)) (#972)
- busdDividendTracker.excludeFromDividends(address(account)) (#1109)
- excludeFromDividend(address(this)) (#973)
- busdDividendTracker.excludeFromDividends(address(account)) (#1109)
- excludeFromDividend(address(_uniswapV2Router)) (#974)
- busdDividendTracker.excludeFromDividends(address(account)) (#1109)
- excludeFromDividend(deadAddress) (#975)
- busdDividendTracker.excludeFromDividends(address(account)) (#1109)
- setAuthOnDividends(owner()) (#983)
- busdDividendTracker.setAuth(account) (#1040)
State variables written after the call(s):
- _mint(owner(),1000000000000000 * (10 ** 18)) (#989)
- _balances[account] = _balances[account].add(amount) (#164)
- _mint(owner(),1000000000000000 * (10 ** 18)) (#989)
- _totalSupply = _totalSupply.add(amount) (#163)
Reentrancy in Test.prepareForPartherOrExchangeListing(address) (#996-999):
External calls:
- busdDividendTracker.excludeFromDividends(_partnerOrExchangeAddress) (#997)
State variables written after the call(s):
- excludeFromFees(_partnerOrExchangeAddress,true) (#998)
- isExcludedFromFees[account] = excluded (#1103)
Reentrancy in BUSDDividendTracker.processAccount(address,bool) (#846-856):
External calls:
- amount = _withdrawDividendOfUser(account) (#847)
- success = IERC20(dividendToken).transfer(user,_withdrawableDividend) (#278)
State variables written after the call(s):
- lastClaimTimes[account] = block.timestamp (#850)
Reentrancy in Test.swapAndLiquify(uint256) (#1335-1349):
External calls:
- swapTokensForBNB(half) (#1342)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1377-1383)
- addLiquidity(otherHalf,newBalance) (#1346)
- uniswapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,marketingWallet,block.timestamp) (#1357-1364)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1346)
- uniswapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,marketingWallet,block.timestamp) (#1357-1364)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#1346)
- _allowances[owner][spender] = amount (#182)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in Test._setAutomatedMarketMakerPair(address,bool) (#1119-1129):
External calls:
- busdDividendTracker.excludeFromDividends(pair) (#1124)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#1128)
Reentrancy in Test._transfer(address,address,uint256) (#1224-1332):
External calls:
- swapAndLiquify(liqTokens) (#1272)
- uniswapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,marketingWallet,block.timestamp) (#1357-1364)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1377-1383)
- swapAndSendBusdDividends(busdTokens) (#1278)
- success = IERC20(dividendToken).transfer(dividendTracker,amount) (#1417)
- dividendPayingTracker.distributeDividends(amount) (#1420)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(_tokenAmount,0,path,_recipient,block.timestamp) (#1396-1402)
External calls sending eth:
- swapAndLiquify(liqTokens) (#1272)
- uniswapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,marketingWallet,block.timestamp) (#1357-1364)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#183)
- swapAndSendBusdDividends(busdTokens) (#1278)
- SendDividends(amount) (#1421)
- swapAndSendBusdDividends(busdTokens) (#1278)
- Transfer(sender,recipient,amount) (#155)
- super._transfer(address(this),marketingWallet,tmpMarketingRewardPercent) (#1313)
- Transfer(sender,recipient,amount) (#155)
- super._transfer(from,address(this),fees) (#1312)
- Transfer(sender,recipient,amount) (#155)
- super._transfer(from,to,amount) (#1316)
Reentrancy in Test._transfer(address,address,uint256) (#1224-1332):
External calls:
- swapAndLiquify(liqTokens) (#1272)
- uniswapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,marketingWallet,block.timestamp) (#1357-1364)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1377-1383)
- swapAndSendBusdDividends(busdTokens) (#1278)
- success = IERC20(dividendToken).transfer(dividendTracker,amount) (#1417)
- dividendPayingTracker.distributeDividends(amount) (#1420)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(_tokenAmount,0,path,_recipient,block.timestamp) (#1396-1402)
- busdDividendTracker.setBalance(address(from),balanceOf(from)) (#1318)
- busdDividendTracker.setBalance(address(to),balanceOf(to)) (#1320)
- busdDividendTracker.process(gas) (#1325-1330)
External calls sending eth:
- swapAndLiquify(liqTokens) (#1272)
- uniswapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,marketingWallet,block.timestamp) (#1357-1364)
Event emitted after the call(s):
- ProcessedbusdDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1326)
Reentrancy in Test.constructor() (#955-990):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#964-965)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#970)
- busdDividendTracker.excludeFromDividends(pair) (#1124)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#1128)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#970)
Reentrancy in Test.constructor() (#955-990):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#964-965)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#970)
- busdDividendTracker.excludeFromDividends(pair) (#1124)
- excludeFromDividend(address(busdDividendTracker)) (#972)
- busdDividendTracker.excludeFromDividends(address(account)) (#1109)
- excludeFromDividend(address(this)) (#973)
- busdDividendTracker.excludeFromDividends(address(account)) (#1109)
- excludeFromDividend(address(_uniswapV2Router)) (#974)
- busdDividendTracker.excludeFromDividends(address(account)) (#1109)
- excludeFromDividend(deadAddress) (#975)
- busdDividendTracker.excludeFromDividends(address(account)) (#1109)
Event emitted after the call(s):
- ExcludeFromFees(account,excluded) (#1105)
- excludeFromFees(owner(),true) (#981)
- ExcludeFromFees(account,excluded) (#1105)
- excludeFromFees(deadAddress,true) (#980)
- ExcludeFromFees(account,excluded) (#1105)
- excludeFromFees(address(this),true) (#979)
- ExcludeFromFees(account,excluded) (#1105)
- excludeFromFees(marketingWallet,true) (#978)
Reentrancy in Test.constructor() (#955-990):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#964-965)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#970)
- busdDividendTracker.excludeFromDividends(pair) (#1124)
- excludeFromDividend(address(busdDividendTracker)) (#972)
- busdDividendTracker.excludeFromDividends(address(account)) (#1109)
- excludeFromDividend(address(this)) (#973)
- busdDividendTracker.excludeFromDividends(address(account)) (#1109)
- excludeFromDividend(address(_uniswapV2Router)) (#974)
- busdDividendTracker.excludeFromDividends(address(account)) (#1109)
- excludeFromDividend(deadAddress) (#975)
- busdDividendTracker.excludeFromDividends(address(account)) (#1109)
- setAuthOnDividends(owner()) (#983)
- busdDividendTracker.setAuth(account) (#1040)
Event emitted after the call(s):
- Transfer(address(0),account,amount) (#165)
- _mint(owner(),1000000000000000 * (10 ** 18)) (#989)
Reentrancy in Test.prepareForPartherOrExchangeListing(address) (#996-999):
External calls:
- busdDividendTracker.excludeFromDividends(_partnerOrExchangeAddress) (#997)
Event emitted after the call(s):
- ExcludeFromFees(account,excluded) (#1105)
- excludeFromFees(_partnerOrExchangeAddress,true) (#998)
Reentrancy in BUSDDividendTracker.processAccount(address,bool) (#846-856):
External calls:
- amount = _withdrawDividendOfUser(account) (#847)
- success = IERC20(dividendToken).transfer(user,_withdrawableDividend) (#278)
Event emitted after the call(s):
- Claim(account,amount,automatic) (#851)
Reentrancy in Test.processDividendTracker(uint256) (#1202-1207):
External calls:
- (busdIterations,busdClaims,busdLastProcessedIndex) = busdDividendTracker.process(gas) (#1203)
Event emitted after the call(s):
- ProcessedbusdDividendTracker(busdIterations,busdClaims,busdLastProcessedIndex,false,gas,tx.origin) (#1204)
Reentrancy in Test.swapAndLiquify(uint256) (#1335-1349):
External calls:
- swapTokensForBNB(half) (#1342)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1377-1383)
- addLiquidity(otherHalf,newBalance) (#1346)
- uniswapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,marketingWallet,block.timestamp) (#1357-1364)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1346)
- uniswapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,marketingWallet,block.timestamp) (#1357-1364)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#183)
- addLiquidity(otherHalf,newBalance) (#1346)
- SwapAndLiquify(half,newBalance,otherHalf) (#1348)
Reentrancy in Test.swapAndSendBusdDividends(uint256) (#1405-1409):
External calls:
- swapTokensForDividendToken(tokens,address(this),busdDividendToken) (#1406)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(_tokenAmount,0,path,_recipient,block.timestamp) (#1396-1402)
- transferDividends(busdDividendToken,address(busdDividendTracker),busdDividendTracker,busdDividends) (#1408)
- success = IERC20(dividendToken).transfer(dividendTracker,amount) (#1417)
- dividendPayingTracker.distributeDividends(amount) (#1420)
Event emitted after the call(s):
- SendDividends(amount) (#1421)
- transferDividends(busdDividendToken,address(busdDividendTracker),busdDividendTracker,busdDividends) (#1408)
Reentrancy in Test.transferDividends(address,address,DividendPayingToken,uint256) (#1416-1423):
External calls:
- success = IERC20(dividendToken).transfer(dividendTracker,amount) (#1417)
- dividendPayingTracker.distributeDividends(amount) (#1420)
Event emitted after the call(s):
- SendDividends(amount) (#1421)
Reentrancy in Test.updatebusdDividendTracker(address) (#1078-1093):
External calls:
- newbusdDividendTracker.excludeFromDividends(address(newbusdDividendTracker)) (#1085)
- newbusdDividendTracker.excludeFromDividends(address(this)) (#1086)
- newbusdDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1087)
- newbusdDividendTracker.excludeFromDividends(address(deadAddress)) (#1088)
Event emitted after the call(s):
- UpdatebusdDividendTracker(newAddress,address(busdDividendTracker)) (#1090)
Apply the check-effects-interactions pattern.
Additional information: link
BUSDDividendTracker.getAccount(address) (#710-753) uses timestamp for comparisons
Dangerous comparisons:
- nextClaimTime > block.timestamp (#750-752)
BUSDDividendTracker.canAutoClaim(uint256) (#774-780) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (#775)
- block.timestamp.sub(lastClaimTime) >= claimWait (#779)
Avoid relying on block.timestamp.
Additional information: link
Test.setBusdDividendEnabled(bool) (#1043-1052) compares to a boolean constant:
-_enabled == false (#1045)
Test.setMarketingEnabled(bool) (#1055-1064) compares to a boolean constant:
-_enabled == false (#1057)
Test.setSwapAndLiquifyEnabled(bool) (#1066-1075) compares to a boolean constant:
-_enabled == false (#1068)
Remove the equality to the boolean constant.
Additional information: link
Context._msgData() (#22-25) is never used and should be removed
DividendPayingToken._transfer(address,address,uint256) (#310-316) is never used and should be removed
ERC20._setupDecimals(uint8) (#186-188) is never used and should be removed
SafeMath.div(uint256,uint256,string) (#581-584) is never used and should be removed
SafeMath.mod(uint256,uint256) (#571-574) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#586-589) is never used and should be removed
SafeMath.tryAdd(uint256,uint256) (#517-521) is never used and should be removed
SafeMath.tryDiv(uint256,uint256) (#538-541) is never used and should be removed
SafeMath.tryMod(uint256,uint256) (#543-546) is never used and should be removed
SafeMath.tryMul(uint256,uint256) (#528-536) is never used and should be removed
SafeMath.trySub(uint256,uint256) (#523-526) is never used and should be removed
SafeMathInt.div(int256,int256) (#603-609) is never used and should be removed
SafeMathInt.mul(int256,int256) (#593-601) is never used and should be removed
Test.transferToWallet(address,uint256) (#1412-1414) is never used and should be removed
Remove unused functions.
Additional information: link
Test.totalFees (#893) is set pre-construction with a non-constant function or state variable:
- busdDividendRewardsFee.add(marketingFee).add(liquidityFee)
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
Parameter DividendPayingToken.dividendOf(address)._owner (#292) is not in mixedCase
Parameter DividendPayingToken.withdrawableDividendOf(address)._owner (#296) is not in mixedCase
Parameter DividendPayingToken.withdrawnDividendOf(address)._owner (#300) is not in mixedCase
Parameter DividendPayingToken.accumulativeDividendOf(address)._owner (#305) is not in mixedCase
Constant DividendPayingToken.magnitude (#223) is not in UPPER_CASE_WITH_UNDERSCORES
Variable DividendPayingToken._isAuth (#233) is not in mixedCase
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#380) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#381) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#398) is not in mixedCase
Function IUniswapV2Router01.WETH() (#418) is not in mixedCase
Parameter BUSDDividendTracker.updateMinimumTokenBalanceForDividends(uint256)._newMinimumBalance (#679) is not in mixedCase
Parameter BUSDDividendTracker.getAccount(address)._account (#710) is not in mixedCase
Parameter Test.prepareForPartherOrExchangeListing(address)._partnerOrExchangeAddress (#996) is not in mixedCase
Parameter Test.setWalletBalance(uint256)._maxWalletBalance (#1001) is not in mixedCase
Parameter Test.setMaxBuyTransaction(uint256)._maxTxn (#1005) is not in mixedCase
Parameter Test.setMaxSellTransaction(uint256)._maxTxn (#1009) is not in mixedCase
Parameter Test.updateBusdDividendToken(address)._newContract (#1014) is not in mixedCase
Parameter Test.updateMarketingWallet(address)._newWallet (#1019) is not in mixedCase
Parameter Test.setSwapTokensAtAmount(uint256)._swapAmount (#1026) is not in mixedCase
Parameter Test.setSellTransactionMultiplier(uint256)._multiplier (#1030) is not in mixedCase
Parameter Test.setTradingIsEnabled(bool)._enabled (#1035) is not in mixedCase
Parameter Test.setBusdDividendEnabled(bool)._enabled (#1043) is not in mixedCase
Parameter Test.setMarketingEnabled(bool)._enabled (#1055) is not in mixedCase
Parameter Test.setSwapAndLiquifyEnabled(bool)._enabled (#1066) is not in mixedCase
Parameter Test.swapTokensForDividendToken(uint256,address,address)._tokenAmount (#1387) is not in mixedCase
Parameter Test.swapTokensForDividendToken(uint256,address,address)._recipient (#1387) is not in mixedCase
Parameter Test.swapTokensForDividendToken(uint256,address,address)._dividendAddress (#1387) is not in mixedCase
Variable Test._busdDividendRewardsFeeBuy (#895) is not in mixedCase
Variable Test._marketingFeeBuy (#896) is not in mixedCase
Variable Test._LpFeeBuy (#897) is not in mixedCase
Variable Test._busdDividendRewardsFeeSell (#899) is not in mixedCase
Variable Test._LpFeeSell (#900) is not in mixedCase
Variable Test._marketingFeeSell (#901) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#23)" inContext (#17-26)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#420) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#420)
Variable DividendPayingToken._withdrawDividendOfUser(address)._withdrawableDividend (#274) is too similar to BUSDDividendTracker.getAccount(address).withdrawableDividends (#715)
Prevent variables from having similar names.
Additional information: link
BUSDDividendTracker.constructor(address) (#662-665) uses literals with too many digits:
- minimumTokenBalanceForDividends = 30000000000 * (10 ** 18) (#664)
BUSDDividendTracker.getAccountAtIndex(uint256) (#755-772) uses literals with too many digits:
- (0x0000000000000000000000000000000000000000,- 1,- 1,0,0,0,0,0) (#766)
Test.constructor() (#955-990) uses literals with too many digits:
- _mint(owner(),1000000000000000 * (10 ** 18)) (#989)
Test.slitherConstructorVariables() (#859-1425) uses literals with too many digits:
- deadAddress = 0x000000000000000000000000000000000000dEaD (#866)
Test.slitherConstructorVariables() (#859-1425) uses literals with too many digits:
- maxBuyTranscationAmount = 5000000000000 * (10 ** 18) (#879)
Test.slitherConstructorVariables() (#859-1425) uses literals with too many digits:
- maxSellTransactionAmount = 5000000000000 * (10 ** 18) (#880)
Test.slitherConstructorVariables() (#859-1425) uses literals with too many digits:
- maxWalletBalance = 10000000000000 * (10 ** 18) (#881)
Test.slitherConstructorVariables() (#859-1425) uses literals with too many digits:
- gasForProcessing = 600000 (#908)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
DividendPayingToken.lastAmount (#226) is never used in BUSDDividendTracker (#642-857)
Remove unused state variables.
Additional information: link
DividendPayingToken.lastAmount (#226) should be constant
Test._LpFeeBuy (#897) should be constant
Test._LpFeeSell (#900) should be constant
Test._busdDividendRewardsFeeBuy (#895) should be constant
Test._busdDividendRewardsFeeSell (#899) should be constant
Test._marketingFeeBuy (#896) should be constant
Test._marketingFeeSell (#901) should be constant
Test.deadAddress (#866) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#48-51)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#53-57)
name() should be declared external:
- ERC20.name() (#97-99)
symbol() should be declared external:
- ERC20.symbol() (#101-103)
decimals() should be declared external:
- ERC20.decimals() (#105-107)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (#117-120)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (#122-124)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (#126-129)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (#131-135)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (#137-140)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (#142-145)
distributeDividends(uint256) should be declared external:
- DividendPayingToken.distributeDividends(uint256) (#252-263)
withdrawDividend() should be declared external:
- BUSDDividendTracker.withdrawDividend() (#671-673)
- DividendPayingToken.withdrawDividend() (#265-267)
dividendOf(address) should be declared external:
- DividendPayingToken.dividendOf(address) (#292-294)
withdrawnDividendOf(address) should be declared external:
- DividendPayingToken.withdrawnDividendOf(address) (#300-302)
get(IterableMapping.Map,address) should be declared external:
- IterableMapping.get(IterableMapping.Map,address) (#464-466)
getIndexOfKey(IterableMapping.Map,address) should be declared external:
- IterableMapping.getIndexOfKey(IterableMapping.Map,address) (#468-473)
getKeyAtIndex(IterableMapping.Map,uint256) should be declared external:
- IterableMapping.getKeyAtIndex(IterableMapping.Map,uint256) (#475-477)
size(IterableMapping.Map) should be declared external:
- IterableMapping.size(IterableMapping.Map) (#481-483)
getAccountAtIndex(uint256) should be declared external:
- BUSDDividendTracker.getAccountAtIndex(uint256) (#755-772)
process(uint256) should be declared external:
- BUSDDividendTracker.process(uint256) (#799-844)
setAutomatedMarketMakerPair(address,bool) should be declared external:
- Test.setAutomatedMarketMakerPair(address,bool) (#1113-1117)
getIsExcludedFromFees(address) should be declared external:
- Test.getIsExcludedFromFees(address) (#1158-1160)
Use the external attribute for functions never called from the contract.
Additional information: link
Unable to find website, listings and other project-related information
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