BET tokens are the chips in the game, the only circulating tokens in the game, used to participate in the game play and earn
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
BetToken.addLiquidity(uint256,uint256) (BetToken.sol#440-455) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (BetToken.sol#446-453)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in BetToken._transfer(address,address,uint256) (BetToken.sol#289-365):
External calls:
- swapAndSendToFee(marketingTokens) (BetToken.sol#316)
- IERC20(BUSD).transfer(_marketingWalletAddress,newBalance) (BetToken.sol#373)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (BetToken.sol#431-437)
- swapAndLiquify(swapTokens) (BetToken.sol#321)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (BetToken.sol#446-453)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (BetToken.sol#411-417)
- swapAndSendDividends(sellTokens) (BetToken.sol#326)
- success = IERC20(BUSD).transfer(address(dividendTracker),dividends) (BetToken.sol#460)
- dividendTracker.distributeCAKEDividends(dividends) (BetToken.sol#463)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (BetToken.sol#431-437)
External calls sending eth:
- swapAndLiquify(swapTokens) (BetToken.sol#321)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (BetToken.sol#446-453)
State variables written after the call(s):
- super._transfer(from,address(this),fees) (BetToken.sol#347)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (ERC20.sol#221)
- _balances[recipient] = _balances[recipient].add(amount) (ERC20.sol#222)
- super._transfer(from,to,amount) (BetToken.sol#350)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (ERC20.sol#221)
- _balances[recipient] = _balances[recipient].add(amount) (ERC20.sol#222)
- swapping = false (BetToken.sol#329)
Apply the check-effects-interactions pattern.
Additional information: link
BetToken.swapAndSendToFee(uint256) (BetToken.sol#367-374) ignores return value by IERC20(BUSD).transfer(_marketingWalletAddress,newBalance) (BetToken.sol#373)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
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.
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) (DividendPayingToken.sol#76-92):
External calls:
- success = IERC20(BUSD).transfer(user,_withdrawableDividend) (DividendPayingToken.sol#81)
State variables written after the call(s):
- withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend) (DividendPayingToken.sol#84)
Reentrancy in BetToken.updateDividendTracker(address) (BetToken.sol#121-136):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (BetToken.sol#128)
- newDividendTracker.excludeFromDividends(address(this)) (BetToken.sol#129)
- newDividendTracker.excludeFromDividends(owner()) (BetToken.sol#130)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (BetToken.sol#131)
State variables written after the call(s):
- dividendTracker = newDividendTracker (BetToken.sol#135)
Apply the check-effects-interactions pattern.
Additional information: link
BetToken._transfer(address,address,uint256).iterations (BetToken.sol#358) is a local variable never initialized
BetToken._transfer(address,address,uint256).claims (BetToken.sol#358) is a local variable never initialized
BetToken._transfer(address,address,uint256).lastProcessedIndex (BetToken.sol#358) 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
BetToken.claim() (BetToken.sol#276-278) ignores return value by dividendTracker.processAccount(msg.sender,false) (BetToken.sol#277)
BetToken._transfer(address,address,uint256) (BetToken.sol#289-365) ignores return value by dividendTracker.process(gas) (BetToken.sol#358-363)
BetToken.addLiquidity(uint256,uint256) (BetToken.sol#440-455) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (BetToken.sol#446-453)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendPayingToken.constructor(string,string)._name (DividendPayingToken.sol#50) shadows:
- ERC20._name (ERC20.sol#43) (state variable)
DividendPayingToken.constructor(string,string)._symbol (DividendPayingToken.sol#50) shadows:
- ERC20._symbol (ERC20.sol#44) (state variable)
DividendPayingToken.dividendOf(address)._owner (DividendPayingToken.sol#98) shadows:
- Ownable._owner (Ownable.sol#8) (state variable)
DividendPayingToken.withdrawableDividendOf(address)._owner (DividendPayingToken.sol#105) shadows:
- Ownable._owner (Ownable.sol#8) (state variable)
DividendPayingToken.withdrawnDividendOf(address)._owner (DividendPayingToken.sol#112) shadows:
- Ownable._owner (Ownable.sol#8) (state variable)
DividendPayingToken.accumulativeDividendOf(address)._owner (DividendPayingToken.sol#122) shadows:
- Ownable._owner (Ownable.sol#8) (state variable)
Rename the local variables that shadow another component.
Additional information: link
BetToken.setBUSDRewardsFee(uint256) (BetToken.sol#166-169) should emit an event for:
- BUSDRewardsFee = value (BetToken.sol#167)
- totalFees = BUSDRewardsFee.add(liquidityFee).add(marketingFee) (BetToken.sol#168)
BetToken.setSwapTokensAtAmount(uint256) (BetToken.sol#171-173) should emit an event for:
- swapTokensAtAmount = value (BetToken.sol#172)
BetToken.setLiquiditFee(uint256) (BetToken.sol#175-178) should emit an event for:
- liquidityFee = value (BetToken.sol#176)
- totalFees = BUSDRewardsFee.add(liquidityFee).add(marketingFee) (BetToken.sol#177)
BetToken.setMarketingFee(uint256) (BetToken.sol#180-184) should emit an event for:
- marketingFee = value (BetToken.sol#181)
- totalFees = BUSDRewardsFee.add(liquidityFee).add(marketingFee) (BetToken.sol#182)
Emit an event for critical parameter changes.
Additional information: link
BetToken.updateUniswapV2Router(address)._uniswapV2Pair (BetToken.sol#142-143) lacks a zero-check on :
- uniswapV2Pair = _uniswapV2Pair (BetToken.sol#144)
BetToken.setMarketingWallet(address).wallet (BetToken.sol#162) lacks a zero-check on :
- _marketingWalletAddress = wallet (BetToken.sol#163)
Check that the address is not zero.
Additional information: link
Variable 'BetToken._transfer(address,address,uint256).claims (BetToken.sol#358)' in BetToken._transfer(address,address,uint256) (BetToken.sol#289-365) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (BetToken.sol#359)
Variable 'BetToken._transfer(address,address,uint256).lastProcessedIndex (BetToken.sol#358)' in BetToken._transfer(address,address,uint256) (BetToken.sol#289-365) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (BetToken.sol#359)
Variable 'BetToken._transfer(address,address,uint256).iterations (BetToken.sol#358)' in BetToken._transfer(address,address,uint256) (BetToken.sol#289-365) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (BetToken.sol#359)
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 BetToken._transfer(address,address,uint256) (BetToken.sol#289-365):
External calls:
- swapAndSendToFee(marketingTokens) (BetToken.sol#316)
- IERC20(BUSD).transfer(_marketingWalletAddress,newBalance) (BetToken.sol#373)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (BetToken.sol#431-437)
- swapAndLiquify(swapTokens) (BetToken.sol#321)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (BetToken.sol#446-453)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (BetToken.sol#411-417)
External calls sending eth:
- swapAndLiquify(swapTokens) (BetToken.sol#321)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (BetToken.sol#446-453)
State variables written after the call(s):
- swapAndLiquify(swapTokens) (BetToken.sol#321)
- _allowances[owner][spender] = amount (ERC20.sol#287)
Reentrancy in BetToken._transfer(address,address,uint256) (BetToken.sol#289-365):
External calls:
- swapAndSendToFee(marketingTokens) (BetToken.sol#316)
- IERC20(BUSD).transfer(_marketingWalletAddress,newBalance) (BetToken.sol#373)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (BetToken.sol#431-437)
- swapAndLiquify(swapTokens) (BetToken.sol#321)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (BetToken.sol#446-453)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (BetToken.sol#411-417)
- swapAndSendDividends(sellTokens) (BetToken.sol#326)
- success = IERC20(BUSD).transfer(address(dividendTracker),dividends) (BetToken.sol#460)
- dividendTracker.distributeCAKEDividends(dividends) (BetToken.sol#463)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (BetToken.sol#431-437)
External calls sending eth:
- swapAndLiquify(swapTokens) (BetToken.sol#321)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (BetToken.sol#446-453)
State variables written after the call(s):
- swapAndSendDividends(sellTokens) (BetToken.sol#326)
- _allowances[owner][spender] = amount (ERC20.sol#287)
Reentrancy in BetToken.constructor() (BetToken.sol#83-115):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (BetToken.sol#90-91)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (BetToken.sol#94)
- uniswapV2Router = _uniswapV2Router (BetToken.sol#93)
Reentrancy in BetToken.constructor() (BetToken.sol#83-115):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (BetToken.sol#90-91)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (BetToken.sol#96)
- dividendTracker.excludeFromDividends(pair) (BetToken.sol#203)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (BetToken.sol#99)
- dividendTracker.excludeFromDividends(address(this)) (BetToken.sol#100)
- dividendTracker.excludeFromDividends(owner()) (BetToken.sol#101)
- dividendTracker.excludeFromDividends(deadWallet) (BetToken.sol#102)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (BetToken.sol#103)
State variables written after the call(s):
- _mint(owner(),500000000000 * (10 ** 18)) (BetToken.sol#114)
- _balances[account] = _balances[account].add(amount) (ERC20.sol#241)
- excludeFromFees(owner(),true) (BetToken.sol#106)
- _isExcludedFromFees[account] = excluded (BetToken.sol#149)
- excludeFromFees(_marketingWalletAddress,true) (BetToken.sol#107)
- _isExcludedFromFees[account] = excluded (BetToken.sol#149)
- excludeFromFees(address(this),true) (BetToken.sol#108)
- _isExcludedFromFees[account] = excluded (BetToken.sol#149)
- _mint(owner(),500000000000 * (10 ** 18)) (BetToken.sol#114)
- _totalSupply = _totalSupply.add(amount) (ERC20.sol#240)
Reentrancy in BUSDDividendTracker.processAccount(address,bool) (BetToken.sol#665-675):
External calls:
- amount = _withdrawDividendOfUser(account) (BetToken.sol#666)
- success = IERC20(BUSD).transfer(user,_withdrawableDividend) (DividendPayingToken.sol#81)
State variables written after the call(s):
- lastClaimTimes[account] = block.timestamp (BetToken.sol#669)
Reentrancy in BetToken.swapAndLiquify(uint256) (BetToken.sol#376-397):
External calls:
- swapTokensForEth(half) (BetToken.sol#388)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (BetToken.sol#411-417)
- addLiquidity(otherHalf,newBalance) (BetToken.sol#394)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (BetToken.sol#446-453)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (BetToken.sol#394)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (BetToken.sol#446-453)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (BetToken.sol#394)
- _allowances[owner][spender] = amount (ERC20.sol#287)
Reentrancy in BetToken.updateUniswapV2Router(address) (BetToken.sol#138-145):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this),uniswapV2Router.WETH()) (BetToken.sol#142-143)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (BetToken.sol#144)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in BetToken._setAutomatedMarketMakerPair(address,bool) (BetToken.sol#198-207):
External calls:
- dividendTracker.excludeFromDividends(pair) (BetToken.sol#203)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (BetToken.sol#206)
Reentrancy in BetToken._transfer(address,address,uint256) (BetToken.sol#289-365):
External calls:
- swapAndSendToFee(marketingTokens) (BetToken.sol#316)
- IERC20(BUSD).transfer(_marketingWalletAddress,newBalance) (BetToken.sol#373)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (BetToken.sol#431-437)
- swapAndLiquify(swapTokens) (BetToken.sol#321)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (BetToken.sol#446-453)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (BetToken.sol#411-417)
External calls sending eth:
- swapAndLiquify(swapTokens) (BetToken.sol#321)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (BetToken.sol#446-453)
Event emitted after the call(s):
- Approval(owner,spender,amount) (ERC20.sol#288)
- swapAndLiquify(swapTokens) (BetToken.sol#321)
- SwapAndLiquify(half,newBalance,otherHalf) (BetToken.sol#396)
- swapAndLiquify(swapTokens) (BetToken.sol#321)
Reentrancy in BetToken._transfer(address,address,uint256) (BetToken.sol#289-365):
External calls:
- swapAndSendToFee(marketingTokens) (BetToken.sol#316)
- IERC20(BUSD).transfer(_marketingWalletAddress,newBalance) (BetToken.sol#373)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (BetToken.sol#431-437)
- swapAndLiquify(swapTokens) (BetToken.sol#321)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (BetToken.sol#446-453)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (BetToken.sol#411-417)
- swapAndSendDividends(sellTokens) (BetToken.sol#326)
- success = IERC20(BUSD).transfer(address(dividendTracker),dividends) (BetToken.sol#460)
- dividendTracker.distributeCAKEDividends(dividends) (BetToken.sol#463)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (BetToken.sol#431-437)
External calls sending eth:
- swapAndLiquify(swapTokens) (BetToken.sol#321)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (BetToken.sol#446-453)
Event emitted after the call(s):
- Approval(owner,spender,amount) (ERC20.sol#288)
- swapAndSendDividends(sellTokens) (BetToken.sol#326)
- SendDividends(tokens,dividends) (BetToken.sol#464)
- swapAndSendDividends(sellTokens) (BetToken.sol#326)
- Transfer(sender,recipient,amount) (ERC20.sol#223)
- super._transfer(from,address(this),fees) (BetToken.sol#347)
- Transfer(sender,recipient,amount) (ERC20.sol#223)
- super._transfer(from,to,amount) (BetToken.sol#350)
Reentrancy in BetToken._transfer(address,address,uint256) (BetToken.sol#289-365):
External calls:
- swapAndSendToFee(marketingTokens) (BetToken.sol#316)
- IERC20(BUSD).transfer(_marketingWalletAddress,newBalance) (BetToken.sol#373)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (BetToken.sol#431-437)
- swapAndLiquify(swapTokens) (BetToken.sol#321)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (BetToken.sol#446-453)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (BetToken.sol#411-417)
- swapAndSendDividends(sellTokens) (BetToken.sol#326)
- success = IERC20(BUSD).transfer(address(dividendTracker),dividends) (BetToken.sol#460)
- dividendTracker.distributeCAKEDividends(dividends) (BetToken.sol#463)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (BetToken.sol#431-437)
- dividendTracker.setBalance(address(from),balanceOf(from)) (BetToken.sol#352)
- dividendTracker.setBalance(address(to),balanceOf(to)) (BetToken.sol#353)
- dividendTracker.process(gas) (BetToken.sol#358-363)
External calls sending eth:
- swapAndLiquify(swapTokens) (BetToken.sol#321)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (BetToken.sol#446-453)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (BetToken.sol#359)
Reentrancy in BetToken.constructor() (BetToken.sol#83-115):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (BetToken.sol#90-91)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (BetToken.sol#96)
- dividendTracker.excludeFromDividends(pair) (BetToken.sol#203)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (BetToken.sol#206)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (BetToken.sol#96)
Reentrancy in BetToken.constructor() (BetToken.sol#83-115):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (BetToken.sol#90-91)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (BetToken.sol#96)
- dividendTracker.excludeFromDividends(pair) (BetToken.sol#203)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (BetToken.sol#99)
- dividendTracker.excludeFromDividends(address(this)) (BetToken.sol#100)
- dividendTracker.excludeFromDividends(owner()) (BetToken.sol#101)
- dividendTracker.excludeFromDividends(deadWallet) (BetToken.sol#102)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (BetToken.sol#103)
Event emitted after the call(s):
- ExcludeFromFees(account,excluded) (BetToken.sol#151)
- excludeFromFees(address(this),true) (BetToken.sol#108)
- ExcludeFromFees(account,excluded) (BetToken.sol#151)
- excludeFromFees(_marketingWalletAddress,true) (BetToken.sol#107)
- ExcludeFromFees(account,excluded) (BetToken.sol#151)
- excludeFromFees(owner(),true) (BetToken.sol#106)
- Transfer(address(0),account,amount) (ERC20.sol#242)
- _mint(owner(),500000000000 * (10 ** 18)) (BetToken.sol#114)
Reentrancy in BUSDDividendTracker.processAccount(address,bool) (BetToken.sol#665-675):
External calls:
- amount = _withdrawDividendOfUser(account) (BetToken.sol#666)
- success = IERC20(BUSD).transfer(user,_withdrawableDividend) (DividendPayingToken.sol#81)
Event emitted after the call(s):
- Claim(account,amount,automatic) (BetToken.sol#670)
Reentrancy in BetToken.processDividendTracker(uint256) (BetToken.sol#271-274):
External calls:
- (iterations,claims,lastProcessedIndex) = dividendTracker.process(gas) (BetToken.sol#272)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,false,gas,tx.origin) (BetToken.sol#273)
Reentrancy in BetToken.swapAndLiquify(uint256) (BetToken.sol#376-397):
External calls:
- swapTokensForEth(half) (BetToken.sol#388)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (BetToken.sol#411-417)
- addLiquidity(otherHalf,newBalance) (BetToken.sol#394)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (BetToken.sol#446-453)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (BetToken.sol#394)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (BetToken.sol#446-453)
Event emitted after the call(s):
- Approval(owner,spender,amount) (ERC20.sol#288)
- addLiquidity(otherHalf,newBalance) (BetToken.sol#394)
- SwapAndLiquify(half,newBalance,otherHalf) (BetToken.sol#396)
Reentrancy in BetToken.swapAndSendDividends(uint256) (BetToken.sol#457-466):
External calls:
- swapTokensForCake(tokens) (BetToken.sol#458)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (BetToken.sol#431-437)
- success = IERC20(BUSD).transfer(address(dividendTracker),dividends) (BetToken.sol#460)
- dividendTracker.distributeCAKEDividends(dividends) (BetToken.sol#463)
Event emitted after the call(s):
- SendDividends(tokens,dividends) (BetToken.sol#464)
Reentrancy in BetToken.updateDividendTracker(address) (BetToken.sol#121-136):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (BetToken.sol#128)
- newDividendTracker.excludeFromDividends(address(this)) (BetToken.sol#129)
- newDividendTracker.excludeFromDividends(owner()) (BetToken.sol#130)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (BetToken.sol#131)
Event emitted after the call(s):
- UpdateDividendTracker(newAddress,address(dividendTracker)) (BetToken.sol#133)
Apply the check-effects-interactions pattern.
Additional information: link
BUSDDividendTracker.getAccount(address) (BetToken.sol#529-572) uses timestamp for comparisons
Dangerous comparisons:
- nextClaimTime > block.timestamp (BetToken.sol#569-571)
BUSDDividendTracker.canAutoClaim(uint256) (BetToken.sol#593-599) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (BetToken.sol#594)
- block.timestamp.sub(lastClaimTime) >= claimWait (BetToken.sol#598)
Avoid relying on block.timestamp.
Additional information: link
Context._msgData() (Context.sol#20-23) is never used and should be removed
DividendPayingToken._transfer(address,address,uint256) (DividendPayingToken.sol#132-138) is never used and should be removed
SafeMath.mod(uint256,uint256) (SafeMath.sol#126-128) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (SafeMath.sol#142-145) is never used and should be removed
SafeMathInt.abs(int256) (SafeMathInt.sol#82-85) is never used and should be removed
SafeMathInt.div(int256,int256) (SafeMathInt.sol#53-59) is never used and should be removed
SafeMathInt.mul(int256,int256) (SafeMathInt.sol#41-48) is never used and should be removed
Remove unused functions.
Additional information: link
BetToken.totalFees (BetToken.sol#34) is set pre-construction with a non-constant function or state variable:
- BUSDRewardsFee.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
Pragma version^0.6.2 (BetToken.sol#2) allows old versions
Pragma version^0.6.2 (Context.sol#3) allows old versions
Pragma version^0.6.2 (DividendPayingToken.sol#3) allows old versions
Pragma version^0.6.2 (DividendPayingTokenInterface.sol#3) allows old versions
Pragma version^0.6.2 (DividendPayingTokenOptionalInterface.sol#3) allows old versions
Pragma version^0.6.2 (ERC20.sol#3) allows old versions
Pragma version^0.6.2 (IERC20.sol#3) allows old versions
Pragma version^0.6.2 (IERC20Metadata.sol#3) allows old versions
Pragma version^0.6.2 (IUniswapV2Factory.sol#3) allows old versions
Pragma version^0.6.2 (IUniswapV2Pair.sol#3) allows old versions
Pragma version^0.6.2 (IUniswapV2Router.sol#3) allows old versions
Pragma version^0.6.2 (IterableMapping.sol#2) allows old versions
Pragma version^0.6.2 (Ownable.sol#1) allows old versions
Pragma version^0.6.2 (SafeMath.sol#3) allows old versions
Pragma version^0.6.2 (SafeMathInt.sol#28) allows old versions
Pragma version^0.6.2 (SafeMathUint.sol#3) 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
Variable BetToken.BUSD (BetToken.sol#25) is not in mixedCase
Variable BetToken._isBlacklisted (BetToken.sol#29) is not in mixedCase
Variable BetToken.BUSDRewardsFee (BetToken.sol#31) is not in mixedCase
Variable BetToken._marketingWalletAddress (BetToken.sol#36) is not in mixedCase
Parameter BUSDDividendTracker.getAccount(address)._account (BetToken.sol#529) is not in mixedCase
Parameter DividendPayingToken.dividendOf(address)._owner (DividendPayingToken.sol#98) is not in mixedCase
Parameter DividendPayingToken.withdrawableDividendOf(address)._owner (DividendPayingToken.sol#105) is not in mixedCase
Parameter DividendPayingToken.withdrawnDividendOf(address)._owner (DividendPayingToken.sol#112) is not in mixedCase
Parameter DividendPayingToken.accumulativeDividendOf(address)._owner (DividendPayingToken.sol#122) is not in mixedCase
Variable DividendPayingToken.BUSD (DividendPayingToken.sol#24) is not in mixedCase
Constant DividendPayingToken.magnitude (DividendPayingToken.sol#30) is not in UPPER_CASE_WITH_UNDERSCORES
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (IUniswapV2Pair.sol#20) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (IUniswapV2Pair.sol#21) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (IUniswapV2Pair.sol#38) is not in mixedCase
Function IUniswapV2Router01.WETH() (IUniswapV2Router.sol#7) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (Context.sol#21)" inContext (Context.sol#15-24)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Variable DividendPayingToken._withdrawDividendOfUser(address)._withdrawableDividend (DividendPayingToken.sol#77) is too similar to BUSDDividendTracker.getAccount(address).withdrawableDividends (BetToken.sol#534)
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (IUniswapV2Router.sol#12) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (IUniswapV2Router.sol#13)
Prevent variables from having similar names.
Additional information: link
BetToken.constructor() (BetToken.sol#83-115) uses literals with too many digits:
- _mint(owner(),500000000000 * (10 ** 18)) (BetToken.sol#114)
BetToken.updateGasForProcessing(uint256) (BetToken.sol#210-215) uses literals with too many digits:
- require(bool,string)(newValue >= 200000 && newValue <= 500000,BABYBUSD: gasForProcessing must be between 200,000 and 500,000) (BetToken.sol#211)
BetToken.slitherConstructorVariables() (BetToken.sol#13-467) uses literals with too many digits:
- deadWallet = 0x000000000000000000000000000000000000dEaD (BetToken.sol#23)
BetToken.slitherConstructorVariables() (BetToken.sol#13-467) uses literals with too many digits:
- swapTokensAtAmount = 5000000 * (10 ** 18) (BetToken.sol#27)
BetToken.slitherConstructorVariables() (BetToken.sol#13-467) uses literals with too many digits:
- gasForProcessing = 300000 (BetToken.sol#40)
BUSDDividendTracker.constructor() (BetToken.sol#489-492) uses literals with too many digits:
- minimumTokenBalanceForDividends = 5000000 * (10 ** 18) (BetToken.sol#491)
BUSDDividendTracker.getAccountAtIndex(uint256) (BetToken.sol#574-591) uses literals with too many digits:
- (0x0000000000000000000000000000000000000000,- 1,- 1,0,0,0,0,0) (BetToken.sol#585)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
SafeMathInt.MAX_INT256 (SafeMathInt.sol#36) is never used in SafeMathInt (SafeMathInt.sol#34-92)
Remove unused state variables.
Additional information: link
BetToken.BUSD (BetToken.sol#25) should be constant
BetToken.deadWallet (BetToken.sol#23) should be constant
DividendPayingToken.BUSD (DividendPayingToken.sol#24) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
updateDividendTracker(address) should be declared external:
- BetToken.updateDividendTracker(address) (BetToken.sol#121-136)
updateUniswapV2Router(address) should be declared external:
- BetToken.updateUniswapV2Router(address) (BetToken.sol#138-145)
excludeMultipleAccountsFromFees(address[],bool) should be declared external:
- BetToken.excludeMultipleAccountsFromFees(address[],bool) (BetToken.sol#154-160)
setAutomatedMarketMakerPair(address,bool) should be declared external:
- BetToken.setAutomatedMarketMakerPair(address,bool) (BetToken.sol#187-191)
updateGasForProcessing(uint256) should be declared external:
- BetToken.updateGasForProcessing(uint256) (BetToken.sol#210-215)
isExcludedFromFees(address) should be declared external:
- BetToken.isExcludedFromFees(address) (BetToken.sol#229-231)
withdrawableDividendOf(address) should be declared external:
- BetToken.withdrawableDividendOf(address) (BetToken.sol#233-235)
dividendTokenBalanceOf(address) should be declared external:
- BetToken.dividendTokenBalanceOf(address) (BetToken.sol#237-239)
withdrawDividend() should be declared external:
- BUSDDividendTracker.withdrawDividend() (BetToken.sol#498-500)
- DividendPayingToken.withdrawDividend() (DividendPayingToken.sol#70-72)
getAccountAtIndex(uint256) should be declared external:
- BUSDDividendTracker.getAccountAtIndex(uint256) (BetToken.sol#574-591)
process(uint256) should be declared external:
- BUSDDividendTracker.process(uint256) (BetToken.sol#618-663)
distributeCAKEDividends(uint256) should be declared external:
- DividendPayingToken.distributeCAKEDividends(uint256) (DividendPayingToken.sol#55-66)
dividendOf(address) should be declared external:
- DividendPayingToken.dividendOf(address) (DividendPayingToken.sol#98-100)
withdrawnDividendOf(address) should be declared external:
- DividendPayingToken.withdrawnDividendOf(address) (DividendPayingToken.sol#112-114)
name() should be declared external:
- ERC20.name() (ERC20.sol#63-65)
symbol() should be declared external:
- ERC20.symbol() (ERC20.sol#71-73)
decimals() should be declared external:
- ERC20.decimals() (ERC20.sol#88-90)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (ERC20.sol#114-117)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (ERC20.sol#122-124)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (ERC20.sol#133-136)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (ERC20.sol#151-159)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (ERC20.sol#173-176)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (ERC20.sol#192-195)
get(IterableMapping.Map,address) should be declared external:
- IterableMapping.get(IterableMapping.Map,address) (IterableMapping.sol#13-15)
getIndexOfKey(IterableMapping.Map,address) should be declared external:
- IterableMapping.getIndexOfKey(IterableMapping.Map,address) (IterableMapping.sol#17-22)
getKeyAtIndex(IterableMapping.Map,uint256) should be declared external:
- IterableMapping.getKeyAtIndex(IterableMapping.Map,uint256) (IterableMapping.sol#24-26)
size(IterableMapping.Map) should be declared external:
- IterableMapping.size(IterableMapping.Map) (IterableMapping.sol#30-32)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (Ownable.sol#43-46)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (Ownable.sol#52-56)
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.
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.
BscScan page for the token does not contain additional info: website, socials, description, etc.
Additional information: link
Token was delisted from CoinGecko
Additional information: link
Unable to find token/project description on the website or on BscScan, CoinMarketCap
Unable to find token contract audit
Unable to verify token contract address on the website
Unable to find audit link on the website
Unable to find whitepaper link on the website
Unable to find Telegram link on the website
Unable to find Twitter link on the website
Unable to find token on CoinHunt
Additional information: link
Young tokens have high risks of price dump / death
Young tokens have high risks of scam / price dump / death
Token has no active CoinGecko listing / rank
Young tokens have high risks of price dump / death
Token has relatively low CoinMarketCap rank
Twitter account link seems to be invalid
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account