Baby Tron Is A Bep-20 auto reward reflection token that rewards holders with trx. They created a unique way to earn passive tron. The holders that buy tokens and hold them and it automatically receive multiple trx deposits in the wallet every day. So sit back and collect while holding Baby Tron.
Reentrancy in BBTRX._transfer(address,address,uint256) (#1441-1516):
External calls:
- swapAndSendToFee(marketingTokens) (#1472)
- IERC20(TRX).transfer(_marketingWalletAddress,feeSplit) (#1525)
- IERC20(TRX).transfer(_marketingWalletAddress,feeSplit) (#1526)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1585-1591)
- IERC20(TRX).transfer(_devWalletAddress,feeSplit) (#1527)
- swapAndLiquify(swapTokens) (#1475)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1600-1607)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1565-1571)
- swapAndSendDividends(sellTokens) (#1478)
- success = IERC20(TRX).transfer(address(dividendTracker),dividends) (#1614)
- dividendTracker.distributeTRXDividends(dividends) (#1617)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1585-1591)
External calls sending eth:
- swapAndLiquify(swapTokens) (#1475)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1600-1607)
State variables written after the call(s):
- super._transfer(from,address(this),fees) (#1498)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#873)
- _balances[recipient] = _balances[recipient].add(amount) (#874)
- super._transfer(from,to,amount) (#1501)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#873)
- _balances[recipient] = _balances[recipient].add(amount) (#874)
- swapping = false (#1480)
Apply the check-effects-interactions pattern.
Additional information: link
BBTRX.addLiquidity(uint256,uint256) (#1594-1609) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1600-1607)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
BBTRX.swapAndSendToFee(uint256) (#1518-1528) ignores return value by IERC20(TRX).transfer(_marketingWalletAddress,feeSplit) (#1525)
BBTRX.swapAndSendToFee(uint256) (#1518-1528) ignores return value by IERC20(TRX).transfer(_marketingWalletAddress,feeSplit) (#1526)
BBTRX.swapAndSendToFee(uint256) (#1518-1528) ignores return value by IERC20(TRX).transfer(_devWalletAddress,feeSplit) (#1527)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
Token is flagged by TokenSniffer due to previous scams commited by owner (blacklist)
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.
Contract ownership is not renounced (belongs to a wallet)
Combination 2: Unchecked transfer + 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.
Combination 3: Reentrancy vulnerabilities + Unchecked transfer vulnerability. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.
Reentrancy in DividendPayingToken._withdrawDividendOfUser(address) (#1063-1079):
External calls:
- success = IERC20(TRX).transfer(user,_withdrawableDividend) (#1068)
State variables written after the call(s):
- withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend) (#1071)
Reentrancy in BBTRX.updateDividendTracker(address) (#1274-1289):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#1281)
- newDividendTracker.excludeFromDividends(address(this)) (#1282)
- newDividendTracker.excludeFromDividends(owner()) (#1283)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1284)
State variables written after the call(s):
- dividendTracker = newDividendTracker (#1288)
Apply the check-effects-interactions pattern.
Additional information: link
BBTRX._transfer(address,address,uint256).claims (#1509) is a local variable never initialized
BBTRX._transfer(address,address,uint256).lastProcessedIndex (#1509) is a local variable never initialized
BBTRX._transfer(address,address,uint256).iterations (#1509) 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
BBTRX.claim() (#1425-1427) ignores return value by dividendTracker.processAccount(msg.sender,false) (#1426)
BBTRX._transfer(address,address,uint256) (#1441-1516) ignores return value by dividendTracker.process(gas) (#1509-1514)
BBTRX.addLiquidity(uint256,uint256) (#1594-1609) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1600-1607)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendPayingToken.constructor(string,string)._name (#1037) shadows:
- ERC20._name (#695) (state variable)
DividendPayingToken.constructor(string,string)._symbol (#1037) shadows:
- ERC20._symbol (#696) (state variable)
DividendPayingToken.dividendOf(address)._owner (#1085) shadows:
- Ownable._owner (#254) (state variable)
DividendPayingToken.withdrawableDividendOf(address)._owner (#1092) shadows:
- Ownable._owner (#254) (state variable)
DividendPayingToken.withdrawnDividendOf(address)._owner (#1099) shadows:
- Ownable._owner (#254) (state variable)
DividendPayingToken.accumulativeDividendOf(address)._owner (#1109) shadows:
- Ownable._owner (#254) (state variable)
Rename the local variables that shadow another component.
Additional information: link
BBTRX.setTRXRewardsFee(uint256) (#1319-1322) should emit an event for:
- TRXRewardsFee = value (#1320)
- totalFees = TRXRewardsFee.add(liquidityFee).add(marketingFee) (#1321)
BBTRX.setLiquiditFee(uint256) (#1324-1327) should emit an event for:
- liquidityFee = value (#1325)
- totalFees = TRXRewardsFee.add(liquidityFee).add(marketingFee) (#1326)
BBTRX.setMarketingFee(uint256) (#1329-1333) should emit an event for:
- marketingFee = value (#1330)
- totalFees = TRXRewardsFee.add(liquidityFee).add(marketingFee) (#1331)
Emit an event for critical parameter changes.
Additional information: link
DividendPayingToken._withdrawDividendOfUser(address) (#1063-1079) has external calls inside a loop: success = IERC20(TRX).transfer(user,_withdrawableDividend) (#1068)
Favor pull over push strategy for external calls.
Additional information: link
Variable 'BBTRX._transfer(address,address,uint256).claims (#1509)' in BBTRX._transfer(address,address,uint256) (#1441-1516) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1510)
Variable 'BBTRX._transfer(address,address,uint256).lastProcessedIndex (#1509)' in BBTRX._transfer(address,address,uint256) (#1441-1516) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1510)
Variable 'BBTRX._transfer(address,address,uint256).iterations (#1509)' in BBTRX._transfer(address,address,uint256) (#1441-1516) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1510)
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 BBTRX._transfer(address,address,uint256) (#1441-1516):
External calls:
- swapAndSendToFee(marketingTokens) (#1472)
- IERC20(TRX).transfer(_marketingWalletAddress,feeSplit) (#1525)
- IERC20(TRX).transfer(_marketingWalletAddress,feeSplit) (#1526)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1585-1591)
- IERC20(TRX).transfer(_devWalletAddress,feeSplit) (#1527)
- swapAndLiquify(swapTokens) (#1475)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1600-1607)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1565-1571)
External calls sending eth:
- swapAndLiquify(swapTokens) (#1475)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1600-1607)
State variables written after the call(s):
- swapAndLiquify(swapTokens) (#1475)
- _allowances[owner][spender] = amount (#939)
Reentrancy in BBTRX._transfer(address,address,uint256) (#1441-1516):
External calls:
- swapAndSendToFee(marketingTokens) (#1472)
- IERC20(TRX).transfer(_marketingWalletAddress,feeSplit) (#1525)
- IERC20(TRX).transfer(_marketingWalletAddress,feeSplit) (#1526)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1585-1591)
- IERC20(TRX).transfer(_devWalletAddress,feeSplit) (#1527)
- swapAndLiquify(swapTokens) (#1475)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1600-1607)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1565-1571)
- swapAndSendDividends(sellTokens) (#1478)
- success = IERC20(TRX).transfer(address(dividendTracker),dividends) (#1614)
- dividendTracker.distributeTRXDividends(dividends) (#1617)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1585-1591)
External calls sending eth:
- swapAndLiquify(swapTokens) (#1475)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1600-1607)
State variables written after the call(s):
- swapAndSendDividends(sellTokens) (#1478)
- _allowances[owner][spender] = amount (#939)
Reentrancy in BBTRX.constructor() (#1236-1268):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1243-1244)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (#1247)
- uniswapV2Router = _uniswapV2Router (#1246)
Reentrancy in BBTRX.constructor() (#1236-1268):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1243-1244)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1249)
- dividendTracker.excludeFromDividends(pair) (#1352)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (#1252)
- dividendTracker.excludeFromDividends(address(this)) (#1253)
- dividendTracker.excludeFromDividends(owner()) (#1254)
- dividendTracker.excludeFromDividends(deadWallet) (#1255)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (#1256)
State variables written after the call(s):
- _mint(owner(),100000000000000 * (10 ** 18)) (#1267)
- _balances[account] = _balances[account].add(amount) (#893)
- excludeFromFees(owner(),true) (#1259)
- _isExcludedFromFees[account] = excluded (#1302)
- excludeFromFees(_marketingWalletAddress,true) (#1260)
- _isExcludedFromFees[account] = excluded (#1302)
- excludeFromFees(address(this),true) (#1261)
- _isExcludedFromFees[account] = excluded (#1302)
- _mint(owner(),100000000000000 * (10 ** 18)) (#1267)
- _totalSupply = _totalSupply.add(amount) (#892)
Reentrancy in TRXDividendTracker.processAccount(address,bool) (#1819-1829):
External calls:
- amount = _withdrawDividendOfUser(account) (#1820)
- success = IERC20(TRX).transfer(user,_withdrawableDividend) (#1068)
State variables written after the call(s):
- lastClaimTimes[account] = block.timestamp (#1823)
Reentrancy in BBTRX.swapAndLiquify(uint256) (#1530-1551):
External calls:
- swapTokensForEth(half) (#1542)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1565-1571)
- addLiquidity(otherHalf,newBalance) (#1548)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1600-1607)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1548)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1600-1607)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#1548)
- _allowances[owner][spender] = amount (#939)
Reentrancy in BBTRX.updateUniswapV2Router(address) (#1291-1298):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this),uniswapV2Router.WETH()) (#1295-1296)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (#1297)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in BBTRX._setAutomatedMarketMakerPair(address,bool) (#1347-1356):
External calls:
- dividendTracker.excludeFromDividends(pair) (#1352)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#1355)
Reentrancy in BBTRX._transfer(address,address,uint256) (#1441-1516):
External calls:
- swapAndSendToFee(marketingTokens) (#1472)
- IERC20(TRX).transfer(_marketingWalletAddress,feeSplit) (#1525)
- IERC20(TRX).transfer(_marketingWalletAddress,feeSplit) (#1526)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1585-1591)
- IERC20(TRX).transfer(_devWalletAddress,feeSplit) (#1527)
- swapAndLiquify(swapTokens) (#1475)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1600-1607)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1565-1571)
External calls sending eth:
- swapAndLiquify(swapTokens) (#1475)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1600-1607)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#940)
- swapAndLiquify(swapTokens) (#1475)
- SwapAndLiquify(half,newBalance,otherHalf) (#1550)
- swapAndLiquify(swapTokens) (#1475)
Reentrancy in BBTRX._transfer(address,address,uint256) (#1441-1516):
External calls:
- swapAndSendToFee(marketingTokens) (#1472)
- IERC20(TRX).transfer(_marketingWalletAddress,feeSplit) (#1525)
- IERC20(TRX).transfer(_marketingWalletAddress,feeSplit) (#1526)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1585-1591)
- IERC20(TRX).transfer(_devWalletAddress,feeSplit) (#1527)
- swapAndLiquify(swapTokens) (#1475)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1600-1607)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1565-1571)
- swapAndSendDividends(sellTokens) (#1478)
- success = IERC20(TRX).transfer(address(dividendTracker),dividends) (#1614)
- dividendTracker.distributeTRXDividends(dividends) (#1617)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1585-1591)
External calls sending eth:
- swapAndLiquify(swapTokens) (#1475)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1600-1607)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#940)
- swapAndSendDividends(sellTokens) (#1478)
- SendDividends(tokens,dividends) (#1618)
- swapAndSendDividends(sellTokens) (#1478)
- Transfer(sender,recipient,amount) (#875)
- super._transfer(from,address(this),fees) (#1498)
- Transfer(sender,recipient,amount) (#875)
- super._transfer(from,to,amount) (#1501)
Reentrancy in BBTRX._transfer(address,address,uint256) (#1441-1516):
External calls:
- swapAndSendToFee(marketingTokens) (#1472)
- IERC20(TRX).transfer(_marketingWalletAddress,feeSplit) (#1525)
- IERC20(TRX).transfer(_marketingWalletAddress,feeSplit) (#1526)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1585-1591)
- IERC20(TRX).transfer(_devWalletAddress,feeSplit) (#1527)
- swapAndLiquify(swapTokens) (#1475)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1600-1607)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1565-1571)
- swapAndSendDividends(sellTokens) (#1478)
- success = IERC20(TRX).transfer(address(dividendTracker),dividends) (#1614)
- dividendTracker.distributeTRXDividends(dividends) (#1617)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1585-1591)
- dividendTracker.setBalance(address(from),balanceOf(from)) (#1503)
- dividendTracker.setBalance(address(to),balanceOf(to)) (#1504)
- dividendTracker.process(gas) (#1509-1514)
External calls sending eth:
- swapAndLiquify(swapTokens) (#1475)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1600-1607)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1510)
Reentrancy in BBTRX.constructor() (#1236-1268):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1243-1244)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1249)
- dividendTracker.excludeFromDividends(pair) (#1352)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#1355)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1249)
Reentrancy in BBTRX.constructor() (#1236-1268):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1243-1244)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1249)
- dividendTracker.excludeFromDividends(pair) (#1352)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (#1252)
- dividendTracker.excludeFromDividends(address(this)) (#1253)
- dividendTracker.excludeFromDividends(owner()) (#1254)
- dividendTracker.excludeFromDividends(deadWallet) (#1255)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (#1256)
Event emitted after the call(s):
- ExcludeFromFees(account,excluded) (#1304)
- excludeFromFees(_marketingWalletAddress,true) (#1260)
- ExcludeFromFees(account,excluded) (#1304)
- excludeFromFees(owner(),true) (#1259)
- ExcludeFromFees(account,excluded) (#1304)
- excludeFromFees(address(this),true) (#1261)
- Transfer(address(0),account,amount) (#894)
- _mint(owner(),100000000000000 * (10 ** 18)) (#1267)
Reentrancy in TRXDividendTracker.processAccount(address,bool) (#1819-1829):
External calls:
- amount = _withdrawDividendOfUser(account) (#1820)
- success = IERC20(TRX).transfer(user,_withdrawableDividend) (#1068)
Event emitted after the call(s):
- Claim(account,amount,automatic) (#1824)
Reentrancy in BBTRX.processDividendTracker(uint256) (#1420-1423):
External calls:
- (iterations,claims,lastProcessedIndex) = dividendTracker.process(gas) (#1421)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,false,gas,tx.origin) (#1422)
Reentrancy in BBTRX.swapAndLiquify(uint256) (#1530-1551):
External calls:
- swapTokensForEth(half) (#1542)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1565-1571)
- addLiquidity(otherHalf,newBalance) (#1548)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1600-1607)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1548)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1600-1607)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#940)
- addLiquidity(otherHalf,newBalance) (#1548)
- SwapAndLiquify(half,newBalance,otherHalf) (#1550)
Reentrancy in BBTRX.swapAndSendDividends(uint256) (#1611-1620):
External calls:
- swapTokensForTRX(tokens) (#1612)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1585-1591)
- success = IERC20(TRX).transfer(address(dividendTracker),dividends) (#1614)
- dividendTracker.distributeTRXDividends(dividends) (#1617)
Event emitted after the call(s):
- SendDividends(tokens,dividends) (#1618)
Reentrancy in BBTRX.updateDividendTracker(address) (#1274-1289):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#1281)
- newDividendTracker.excludeFromDividends(address(this)) (#1282)
- newDividendTracker.excludeFromDividends(owner()) (#1283)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1284)
Event emitted after the call(s):
- UpdateDividendTracker(newAddress,address(dividendTracker)) (#1286)
Apply the check-effects-interactions pattern.
Additional information: link
Different versions of Solidity is used:
- Version used: ['>=0.6.2', '^0.6.2']
- ^0.6.2 (#3)
- ^0.6.2 (#26)
- ^0.6.2 (#171)
- ^0.6.2 (#237)
- ^0.6.2 (#251)
- ^0.6.2 (#305)
- >=0.6.2 (#401)
- ^0.6.2 (#444)
- ^0.6.2 (#497)
- ^0.6.2 (#515)
- ^0.6.2 (#580)
- ^0.6.2 (#660)
- ^0.6.2 (#684)
- ^0.6.2 (#964)
- ^0.6.2 (#999)
- ^0.6.2 (#1019)
- ^0.6.2 (#1162)
Use one Solidity version.
Additional information: link
Context._msgData() (#20-23) is never used and should be removed
DividendPayingToken._transfer(address,address,uint256) (#1119-1125) is never used and should be removed
SafeMath.mod(uint256,uint256) (#149-151) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#165-168) is never used and should be removed
SafeMathInt.abs(int256) (#225-228) is never used and should be removed
SafeMathInt.div(int256,int256) (#196-202) is never used and should be removed
SafeMathInt.mul(int256,int256) (#184-191) is never used and should be removed
Remove unused functions.
Additional information: link
Pragma version^0.6.2 (#3) allows old versions
Pragma version^0.6.2 (#26) allows old versions
Pragma version^0.6.2 (#171) allows old versions
Pragma version^0.6.2 (#237) allows old versions
Pragma version^0.6.2 (#251) allows old versions
Pragma version^0.6.2 (#305) allows old versions
Pragma version>=0.6.2 (#401) allows old versions
Pragma version^0.6.2 (#444) allows old versions
Pragma version^0.6.2 (#497) allows old versions
Pragma version^0.6.2 (#515) allows old versions
Pragma version^0.6.2 (#580) allows old versions
Pragma version^0.6.2 (#660) allows old versions
Pragma version^0.6.2 (#684) allows old versions
Pragma version^0.6.2 (#964) allows old versions
Pragma version^0.6.2 (#999) allows old versions
Pragma version^0.6.2 (#1019) allows old versions
Pragma version^0.6.2 (#1162) allows old versions
solc-0.6.2 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
Function IUniswapV2Router01.WETH() (#309) is not in mixedCase
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#461) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#462) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#479) is not in mixedCase
Parameter DividendPayingToken.dividendOf(address)._owner (#1085) is not in mixedCase
Parameter DividendPayingToken.withdrawableDividendOf(address)._owner (#1092) is not in mixedCase
Parameter DividendPayingToken.withdrawnDividendOf(address)._owner (#1099) is not in mixedCase
Parameter DividendPayingToken.accumulativeDividendOf(address)._owner (#1109) is not in mixedCase
Variable DividendPayingToken.TRX (#1026) is not in mixedCase
Constant DividendPayingToken.magnitude (#1028) is not in UPPER_CASE_WITH_UNDERSCORES
Variable BBTRX.TRX (#1176) is not in mixedCase
Variable BBTRX._isBlacklisted (#1180) is not in mixedCase
Variable BBTRX.TRXRewardsFee (#1182) is not in mixedCase
Variable BBTRX._marketingWalletAddress (#1189) is not in mixedCase
Variable BBTRX._devWalletAddress (#1190) is not in mixedCase
Parameter TRXDividendTracker.getAccount(address)._account (#1683) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#314) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#315)
Variable DividendPayingToken._withdrawDividendOfUser(address)._withdrawableDividend (#1064) is too similar to TRXDividendTracker.getAccount(address).withdrawableDividends (#1688)
Prevent variables from having similar names.
Additional information: link
BBTRX.constructor() (#1236-1268) uses literals with too many digits:
- _mint(owner(),100000000000000 * (10 ** 18)) (#1267)
BBTRX.updateGasForProcessing(uint256) (#1359-1364) uses literals with too many digits:
- require(bool,string)(newValue >= 200000 && newValue <= 500000,BBTRX: gasForProcessing must be between 200,000 and 500,000) (#1360)
BBTRX.slitherConstructorVariables() (#1164-1621) uses literals with too many digits:
- deadWallet = 0x000000000000000000000000000000000000dEaD (#1174)
BBTRX.slitherConstructorVariables() (#1164-1621) uses literals with too many digits:
- swapTokensAtAmount = 1000000000 * (10 ** 18) (#1178)
BBTRX.slitherConstructorVariables() (#1164-1621) uses literals with too many digits:
- gasForProcessing = 300000 (#1193)
TRXDividendTracker.constructor() (#1643-1646) uses literals with too many digits:
- minimumTokenBalanceForDividends = 100000000 * (10 ** 18) (#1645)
TRXDividendTracker.getAccountAtIndex(uint256) (#1728-1745) uses literals with too many digits:
- (0x0000000000000000000000000000000000000000,- 1,- 1,0,0,0,0,0) (#1739)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
SafeMathInt.MAX_INT256 (#179) is never used in SafeMathInt (#177-235)
Remove unused state variables.
Additional information: link
BBTRX.TRX (#1176) should be constant
BBTRX._devWalletAddress (#1190) should be constant
BBTRX.deadWallet (#1174) should be constant
BBTRX.swapTokensAtAmount (#1178) should be constant
DividendPayingToken.TRX (#1026) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#289-292)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#298-302)
get(IterableMapping.Map,address) should be declared external:
- IterableMapping.get(IterableMapping.Map,address) (#528-530)
getIndexOfKey(IterableMapping.Map,address) should be declared external:
- IterableMapping.getIndexOfKey(IterableMapping.Map,address) (#532-537)
getKeyAtIndex(IterableMapping.Map,uint256) should be declared external:
- IterableMapping.getKeyAtIndex(IterableMapping.Map,uint256) (#539-541)
size(IterableMapping.Map) should be declared external:
- IterableMapping.size(IterableMapping.Map) (#545-547)
name() should be declared external:
- ERC20.name() (#715-717)
symbol() should be declared external:
- ERC20.symbol() (#723-725)
decimals() should be declared external:
- ERC20.decimals() (#740-742)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (#766-769)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (#774-776)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (#785-788)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (#803-811)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (#825-828)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (#844-847)
distributeTRXDividends(uint256) should be declared external:
- DividendPayingToken.distributeTRXDividends(uint256) (#1042-1053)
withdrawDividend() should be declared external:
- DividendPayingToken.withdrawDividend() (#1057-1059)
- TRXDividendTracker.withdrawDividend() (#1652-1654)
dividendOf(address) should be declared external:
- DividendPayingToken.dividendOf(address) (#1085-1087)
withdrawnDividendOf(address) should be declared external:
- DividendPayingToken.withdrawnDividendOf(address) (#1099-1101)
updateDividendTracker(address) should be declared external:
- BBTRX.updateDividendTracker(address) (#1274-1289)
updateUniswapV2Router(address) should be declared external:
- BBTRX.updateUniswapV2Router(address) (#1291-1298)
excludeMultipleAccountsFromFees(address[],bool) should be declared external:
- BBTRX.excludeMultipleAccountsFromFees(address[],bool) (#1307-1313)
setAutomatedMarketMakerPair(address,bool) should be declared external:
- BBTRX.setAutomatedMarketMakerPair(address,bool) (#1336-1340)
updateGasForProcessing(uint256) should be declared external:
- BBTRX.updateGasForProcessing(uint256) (#1359-1364)
isExcludedFromFees(address) should be declared external:
- BBTRX.isExcludedFromFees(address) (#1378-1380)
withdrawableDividendOf(address) should be declared external:
- BBTRX.withdrawableDividendOf(address) (#1382-1384)
dividendTokenBalanceOf(address) should be declared external:
- BBTRX.dividendTokenBalanceOf(address) (#1386-1388)
openTrading() should be declared external:
- BBTRX.openTrading() (#1437-1439)
getAccountAtIndex(uint256) should be declared external:
- TRXDividendTracker.getAccountAtIndex(uint256) (#1728-1745)
process(uint256) should be declared external:
- TRXDividendTracker.process(uint256) (#1772-1817)
Use the external attribute for functions never called from the contract.
Additional information: link
BBTRX.totalFees (#1185) is set pre-construction with a non-constant function or state variable:
- TRXRewardsFee.add(liquidityFee).add(marketingFee)
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
Redundant expression "this (#21)" inContext (#15-24)
Remove redundant statements if they congest code but offer no value.
Additional information: link
BBTRX.updateUniswapV2Router(address)._uniswapV2Pair (#1295-1296) lacks a zero-check on :
- uniswapV2Pair = _uniswapV2Pair (#1297)
BBTRX.setMarketingWallet(address).wallet (#1315) lacks a zero-check on :
- _marketingWalletAddress = wallet (#1316)
Check that the address is not zero.
Additional information: link
TRXDividendTracker.getAccount(address) (#1683-1726) uses timestamp for comparisons
Dangerous comparisons:
- nextClaimTime > block.timestamp (#1723-1725)
TRXDividendTracker.canAutoClaim(uint256) (#1747-1753) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (#1748)
- block.timestamp.sub(lastClaimTime) >= claimWait (#1752)
Avoid relying on block.timestamp.
Additional information: link
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.
Contract has 15% buy tax and 16% sell tax.
Taxes are suspiciously high (over 10%) and contract ownership is not renounced. Token has a high risk of becoming a honeypot.
Average 30d PancakeSwap volume is less than $100. Token is either dead or inactive.
Swap operations require suspiciously high gas. Contract logic is complex and may disguise some form of scam.
Average 30d PancakeSwap liquidity is low.
Token is deployed only at one blockchain
Unable to find website, listings and other project-related information
Token has a considerable age, but we're still unable to find its website
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Token has a considerable age, but social accounts / website are missing or have few users
Token has a considerable age, but average PancakeSwap 30d trading volume is low
Last post in Twitter was more than 180 days ago
Telegram account has relatively few subscribers
Twitter account has relatively few followers
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account