Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
BusdKing.addLiquidity(uint256,uint256) (BusdKing.sol#470-485) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (BusdKing.sol#476-483)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in BusdKing._transfer(address,address,uint256) (BusdKing.sol#313-395):
External calls:
- swapAndSendToFee(marketingTokens) (BusdKing.sol#351)
- IERC20(BUSD).transfer(_marketingWalletAddress,newBalance) (BusdKing.sol#403)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (BusdKing.sol#461-467)
- swapAndLiquify(swapTokens) (BusdKing.sol#354)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (BusdKing.sol#476-483)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (BusdKing.sol#441-447)
- swapAndSendDividends(sellTokens) (BusdKing.sol#357)
- success = IERC20(BUSD).transfer(address(dividendTracker),dividends) (BusdKing.sol#490)
- dividendTracker.distributeBUSDDividends(dividends) (BusdKing.sol#493)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (BusdKing.sol#461-467)
External calls sending eth:
- swapAndLiquify(swapTokens) (BusdKing.sol#354)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (BusdKing.sol#476-483)
State variables written after the call(s):
- super._transfer(from,address(this),fees) (BusdKing.sol#377)
- _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) (BusdKing.sol#380)
- _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 (BusdKing.sol#359)
Apply the check-effects-interactions pattern.
Additional information: link
BusdKing.swapAndSendToFee(uint256) (BusdKing.sol#397-404) ignores return value by IERC20(BUSD).transfer(_marketingWalletAddress,newBalance) (BusdKing.sol#403)
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 BusdKing.updateDividendTracker(address) (BusdKing.sol#123-138):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (BusdKing.sol#130)
- newDividendTracker.excludeFromDividends(address(this)) (BusdKing.sol#131)
- newDividendTracker.excludeFromDividends(owner()) (BusdKing.sol#132)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (BusdKing.sol#133)
State variables written after the call(s):
- dividendTracker = newDividendTracker (BusdKing.sol#137)
Apply the check-effects-interactions pattern.
Additional information: link
BusdKing._transfer(address,address,uint256).lastProcessedIndex (BusdKing.sol#388) is a local variable never initialized
BusdKing._transfer(address,address,uint256).claims (BusdKing.sol#388) is a local variable never initialized
BusdKing._transfer(address,address,uint256).iterations (BusdKing.sol#388) 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
BusdKing.claim() (BusdKing.sol#274-276) ignores return value by dividendTracker.processAccount(msg.sender,false) (BusdKing.sol#275)
BusdKing._transfer(address,address,uint256) (BusdKing.sol#313-395) ignores return value by dividendTracker.process(gas) (BusdKing.sol#388-393)
BusdKing.addLiquidity(uint256,uint256) (BusdKing.sol#470-485) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (BusdKing.sol#476-483)
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
BusdKing.setBUSDRewardsFee(uint256) (BusdKing.sol#168-171) should emit an event for:
- BUSDRewardsFee = value (BusdKing.sol#169)
- totalFees = BUSDRewardsFee.add(liquidityFee).add(marketingFee) (BusdKing.sol#170)
BusdKing.setLiquiditFee(uint256) (BusdKing.sol#173-176) should emit an event for:
- liquidityFee = value (BusdKing.sol#174)
- totalFees = BUSDRewardsFee.add(liquidityFee).add(marketingFee) (BusdKing.sol#175)
BusdKing.setMarketingFee(uint256) (BusdKing.sol#178-182) should emit an event for:
- marketingFee = value (BusdKing.sol#179)
- totalFees = BUSDRewardsFee.add(liquidityFee).add(marketingFee) (BusdKing.sol#180)
BusdKing.UPfeeTXtime(uint256) (BusdKing.sol#290-293) should emit an event for:
- feeTXtime = _feeTXtime (BusdKing.sol#292)
BusdKing.UPendtime(uint256) (BusdKing.sol#295-298) should emit an event for:
- endtime = _endtime (BusdKing.sol#297)
Emit an event for critical parameter changes.
Additional information: link
BusdKing.updateUniswapV2Router(address)._uniswapV2Pair (BusdKing.sol#144-145) lacks a zero-check on :
- uniswapV2Pair = _uniswapV2Pair (BusdKing.sol#146)
BusdKing.setMarketingWallet(address).wallet (BusdKing.sol#164) lacks a zero-check on :
- _marketingWalletAddress = wallet (BusdKing.sol#165)
Check that the address is not zero.
Additional information: link
DividendPayingToken._withdrawDividendOfUser(address) (DividendPayingToken.sol#76-92) has external calls inside a loop: success = IERC20(BUSD).transfer(user,_withdrawableDividend) (DividendPayingToken.sol#81)
Favor pull over push strategy for external calls.
Additional information: link
Variable 'BusdKing._transfer(address,address,uint256).claims (BusdKing.sol#388)' in BusdKing._transfer(address,address,uint256) (BusdKing.sol#313-395) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (BusdKing.sol#389)
Variable 'BusdKing._transfer(address,address,uint256).iterations (BusdKing.sol#388)' in BusdKing._transfer(address,address,uint256) (BusdKing.sol#313-395) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (BusdKing.sol#389)
Variable 'BusdKing._transfer(address,address,uint256).lastProcessedIndex (BusdKing.sol#388)' in BusdKing._transfer(address,address,uint256) (BusdKing.sol#313-395) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (BusdKing.sol#389)
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 BusdKing._transfer(address,address,uint256) (BusdKing.sol#313-395):
External calls:
- swapAndSendToFee(marketingTokens) (BusdKing.sol#351)
- IERC20(BUSD).transfer(_marketingWalletAddress,newBalance) (BusdKing.sol#403)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (BusdKing.sol#461-467)
- swapAndLiquify(swapTokens) (BusdKing.sol#354)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (BusdKing.sol#476-483)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (BusdKing.sol#441-447)
External calls sending eth:
- swapAndLiquify(swapTokens) (BusdKing.sol#354)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (BusdKing.sol#476-483)
State variables written after the call(s):
- swapAndLiquify(swapTokens) (BusdKing.sol#354)
- _allowances[owner][spender] = amount (ERC20.sol#287)
Reentrancy in BusdKing._transfer(address,address,uint256) (BusdKing.sol#313-395):
External calls:
- swapAndSendToFee(marketingTokens) (BusdKing.sol#351)
- IERC20(BUSD).transfer(_marketingWalletAddress,newBalance) (BusdKing.sol#403)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (BusdKing.sol#461-467)
- swapAndLiquify(swapTokens) (BusdKing.sol#354)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (BusdKing.sol#476-483)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (BusdKing.sol#441-447)
- swapAndSendDividends(sellTokens) (BusdKing.sol#357)
- success = IERC20(BUSD).transfer(address(dividendTracker),dividends) (BusdKing.sol#490)
- dividendTracker.distributeBUSDDividends(dividends) (BusdKing.sol#493)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (BusdKing.sol#461-467)
External calls sending eth:
- swapAndLiquify(swapTokens) (BusdKing.sol#354)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (BusdKing.sol#476-483)
State variables written after the call(s):
- swapAndSendDividends(sellTokens) (BusdKing.sol#357)
- _allowances[owner][spender] = amount (ERC20.sol#287)
Reentrancy in BusdKing.constructor() (BusdKing.sol#85-117):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (BusdKing.sol#92-93)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (BusdKing.sol#96)
- uniswapV2Router = _uniswapV2Router (BusdKing.sol#95)
Reentrancy in BusdKing.constructor() (BusdKing.sol#85-117):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (BusdKing.sol#92-93)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (BusdKing.sol#98)
- dividendTracker.excludeFromDividends(pair) (BusdKing.sol#201)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (BusdKing.sol#101)
- dividendTracker.excludeFromDividends(address(this)) (BusdKing.sol#102)
- dividendTracker.excludeFromDividends(owner()) (BusdKing.sol#103)
- dividendTracker.excludeFromDividends(deadWallet) (BusdKing.sol#104)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (BusdKing.sol#105)
State variables written after the call(s):
- _mint(owner(),100000000000 * (10 ** 18)) (BusdKing.sol#116)
- _balances[account] = _balances[account].add(amount) (ERC20.sol#241)
- excludeFromFees(owner(),true) (BusdKing.sol#108)
- _isExcludedFromFees[account] = excluded (BusdKing.sol#151)
- excludeFromFees(_marketingWalletAddress,true) (BusdKing.sol#109)
- _isExcludedFromFees[account] = excluded (BusdKing.sol#151)
- excludeFromFees(address(this),true) (BusdKing.sol#110)
- _isExcludedFromFees[account] = excluded (BusdKing.sol#151)
- _mint(owner(),100000000000 * (10 ** 18)) (BusdKing.sol#116)
- _totalSupply = _totalSupply.add(amount) (ERC20.sol#240)
Reentrancy in BusdKingDividendTracker.processAccount(address,bool) (BusdKing.sol#695-705):
External calls:
- amount = _withdrawDividendOfUser(account) (BusdKing.sol#696)
- success = IERC20(BUSD).transfer(user,_withdrawableDividend) (DividendPayingToken.sol#81)
State variables written after the call(s):
- lastClaimTimes[account] = block.timestamp (BusdKing.sol#699)
Reentrancy in BusdKing.swapAndLiquify(uint256) (BusdKing.sol#406-427):
External calls:
- swapTokensForEth(half) (BusdKing.sol#418)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (BusdKing.sol#441-447)
- addLiquidity(otherHalf,newBalance) (BusdKing.sol#424)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (BusdKing.sol#476-483)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (BusdKing.sol#424)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (BusdKing.sol#476-483)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (BusdKing.sol#424)
- _allowances[owner][spender] = amount (ERC20.sol#287)
Reentrancy in BusdKing.updateUniswapV2Router(address) (BusdKing.sol#140-147):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this),uniswapV2Router.WETH()) (BusdKing.sol#144-145)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (BusdKing.sol#146)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in BusdKing._setAutomatedMarketMakerPair(address,bool) (BusdKing.sol#196-205):
External calls:
- dividendTracker.excludeFromDividends(pair) (BusdKing.sol#201)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (BusdKing.sol#204)
Reentrancy in BusdKing._transfer(address,address,uint256) (BusdKing.sol#313-395):
External calls:
- swapAndSendToFee(marketingTokens) (BusdKing.sol#351)
- IERC20(BUSD).transfer(_marketingWalletAddress,newBalance) (BusdKing.sol#403)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (BusdKing.sol#461-467)
- swapAndLiquify(swapTokens) (BusdKing.sol#354)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (BusdKing.sol#476-483)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (BusdKing.sol#441-447)
External calls sending eth:
- swapAndLiquify(swapTokens) (BusdKing.sol#354)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (BusdKing.sol#476-483)
Event emitted after the call(s):
- Approval(owner,spender,amount) (ERC20.sol#288)
- swapAndLiquify(swapTokens) (BusdKing.sol#354)
- SwapAndLiquify(half,newBalance,otherHalf) (BusdKing.sol#426)
- swapAndLiquify(swapTokens) (BusdKing.sol#354)
Reentrancy in BusdKing._transfer(address,address,uint256) (BusdKing.sol#313-395):
External calls:
- swapAndSendToFee(marketingTokens) (BusdKing.sol#351)
- IERC20(BUSD).transfer(_marketingWalletAddress,newBalance) (BusdKing.sol#403)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (BusdKing.sol#461-467)
- swapAndLiquify(swapTokens) (BusdKing.sol#354)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (BusdKing.sol#476-483)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (BusdKing.sol#441-447)
- swapAndSendDividends(sellTokens) (BusdKing.sol#357)
- success = IERC20(BUSD).transfer(address(dividendTracker),dividends) (BusdKing.sol#490)
- dividendTracker.distributeBUSDDividends(dividends) (BusdKing.sol#493)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (BusdKing.sol#461-467)
External calls sending eth:
- swapAndLiquify(swapTokens) (BusdKing.sol#354)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (BusdKing.sol#476-483)
Event emitted after the call(s):
- Approval(owner,spender,amount) (ERC20.sol#288)
- swapAndSendDividends(sellTokens) (BusdKing.sol#357)
- SendDividends(tokens,dividends) (BusdKing.sol#494)
- swapAndSendDividends(sellTokens) (BusdKing.sol#357)
- Transfer(sender,recipient,amount) (ERC20.sol#223)
- super._transfer(from,to,amount) (BusdKing.sol#380)
- Transfer(sender,recipient,amount) (ERC20.sol#223)
- super._transfer(from,address(this),fees) (BusdKing.sol#377)
Reentrancy in BusdKing._transfer(address,address,uint256) (BusdKing.sol#313-395):
External calls:
- swapAndSendToFee(marketingTokens) (BusdKing.sol#351)
- IERC20(BUSD).transfer(_marketingWalletAddress,newBalance) (BusdKing.sol#403)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (BusdKing.sol#461-467)
- swapAndLiquify(swapTokens) (BusdKing.sol#354)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (BusdKing.sol#476-483)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (BusdKing.sol#441-447)
- swapAndSendDividends(sellTokens) (BusdKing.sol#357)
- success = IERC20(BUSD).transfer(address(dividendTracker),dividends) (BusdKing.sol#490)
- dividendTracker.distributeBUSDDividends(dividends) (BusdKing.sol#493)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (BusdKing.sol#461-467)
- dividendTracker.setBalance(address(from),balanceOf(from)) (BusdKing.sol#382)
- dividendTracker.setBalance(address(to),balanceOf(to)) (BusdKing.sol#383)
- dividendTracker.process(gas) (BusdKing.sol#388-393)
External calls sending eth:
- swapAndLiquify(swapTokens) (BusdKing.sol#354)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (BusdKing.sol#476-483)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (BusdKing.sol#389)
Reentrancy in BusdKing.constructor() (BusdKing.sol#85-117):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (BusdKing.sol#92-93)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (BusdKing.sol#98)
- dividendTracker.excludeFromDividends(pair) (BusdKing.sol#201)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (BusdKing.sol#204)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (BusdKing.sol#98)
Reentrancy in BusdKing.constructor() (BusdKing.sol#85-117):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (BusdKing.sol#92-93)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (BusdKing.sol#98)
- dividendTracker.excludeFromDividends(pair) (BusdKing.sol#201)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (BusdKing.sol#101)
- dividendTracker.excludeFromDividends(address(this)) (BusdKing.sol#102)
- dividendTracker.excludeFromDividends(owner()) (BusdKing.sol#103)
- dividendTracker.excludeFromDividends(deadWallet) (BusdKing.sol#104)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (BusdKing.sol#105)
Event emitted after the call(s):
- ExcludeFromFees(account,excluded) (BusdKing.sol#153)
- excludeFromFees(address(this),true) (BusdKing.sol#110)
- ExcludeFromFees(account,excluded) (BusdKing.sol#153)
- excludeFromFees(_marketingWalletAddress,true) (BusdKing.sol#109)
- ExcludeFromFees(account,excluded) (BusdKing.sol#153)
- excludeFromFees(owner(),true) (BusdKing.sol#108)
- Transfer(address(0),account,amount) (ERC20.sol#242)
- _mint(owner(),100000000000 * (10 ** 18)) (BusdKing.sol#116)
Reentrancy in BusdKingDividendTracker.processAccount(address,bool) (BusdKing.sol#695-705):
External calls:
- amount = _withdrawDividendOfUser(account) (BusdKing.sol#696)
- success = IERC20(BUSD).transfer(user,_withdrawableDividend) (DividendPayingToken.sol#81)
Event emitted after the call(s):
- Claim(account,amount,automatic) (BusdKing.sol#700)
Reentrancy in BusdKing.processDividendTracker(uint256) (BusdKing.sol#269-272):
External calls:
- (iterations,claims,lastProcessedIndex) = dividendTracker.process(gas) (BusdKing.sol#270)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,false,gas,tx.origin) (BusdKing.sol#271)
Reentrancy in BusdKing.swapAndLiquify(uint256) (BusdKing.sol#406-427):
External calls:
- swapTokensForEth(half) (BusdKing.sol#418)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (BusdKing.sol#441-447)
- addLiquidity(otherHalf,newBalance) (BusdKing.sol#424)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (BusdKing.sol#476-483)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (BusdKing.sol#424)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (BusdKing.sol#476-483)
Event emitted after the call(s):
- Approval(owner,spender,amount) (ERC20.sol#288)
- addLiquidity(otherHalf,newBalance) (BusdKing.sol#424)
- SwapAndLiquify(half,newBalance,otherHalf) (BusdKing.sol#426)
Reentrancy in BusdKing.swapAndSendDividends(uint256) (BusdKing.sol#487-496):
External calls:
- swapTokensForBUSD(tokens) (BusdKing.sol#488)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (BusdKing.sol#461-467)
- success = IERC20(BUSD).transfer(address(dividendTracker),dividends) (BusdKing.sol#490)
- dividendTracker.distributeBUSDDividends(dividends) (BusdKing.sol#493)
Event emitted after the call(s):
- SendDividends(tokens,dividends) (BusdKing.sol#494)
Reentrancy in BusdKing.updateDividendTracker(address) (BusdKing.sol#123-138):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (BusdKing.sol#130)
- newDividendTracker.excludeFromDividends(address(this)) (BusdKing.sol#131)
- newDividendTracker.excludeFromDividends(owner()) (BusdKing.sol#132)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (BusdKing.sol#133)
Event emitted after the call(s):
- UpdateDividendTracker(newAddress,address(dividendTracker)) (BusdKing.sol#135)
Apply the check-effects-interactions pattern.
Additional information: link
BusdKing._transfer(address,address,uint256) (BusdKing.sol#313-395) uses timestamp for comparisons
Dangerous comparisons:
- endtime == 0 (BusdKing.sol#329)
- endtime > block.timestamp (BusdKing.sol#332)
BusdKingDividendTracker.getAccount(address) (BusdKing.sol#559-602) uses timestamp for comparisons
Dangerous comparisons:
- nextClaimTime > block.timestamp (BusdKing.sol#599-601)
BusdKingDividendTracker.canAutoClaim(uint256) (BusdKing.sol#623-629) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (BusdKing.sol#624)
- block.timestamp.sub(lastClaimTime) >= claimWait (BusdKing.sol#628)
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
BusdKing.totalFees (BusdKing.sol#36) 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 (BusdKing.sol#4) 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
Function BusdKing.UPfeeTXtime(uint256) (BusdKing.sol#290-293) is not in mixedCase
Parameter BusdKing.UPfeeTXtime(uint256)._feeTXtime (BusdKing.sol#290) is not in mixedCase
Function BusdKing.UPendtime(uint256) (BusdKing.sol#295-298) is not in mixedCase
Parameter BusdKing.UPendtime(uint256)._endtime (BusdKing.sol#295) is not in mixedCase
Parameter BusdKing.setblocklist(address)._account (BusdKing.sol#302) is not in mixedCase
Variable BusdKing.BUSD (BusdKing.sol#27) is not in mixedCase
Variable BusdKing._isBlacklisted (BusdKing.sol#31) is not in mixedCase
Variable BusdKing.BUSDRewardsFee (BusdKing.sol#33) is not in mixedCase
Variable BusdKing._marketingWalletAddress (BusdKing.sol#38) is not in mixedCase
Parameter BusdKingDividendTracker.getAccount(address)._account (BusdKing.sol#559) 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 BusdKingDividendTracker.getAccount(address).withdrawableDividends (BusdKing.sol#564)
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
BusdKing.constructor() (BusdKing.sol#85-117) uses literals with too many digits:
- _mint(owner(),100000000000 * (10 ** 18)) (BusdKing.sol#116)
BusdKing.updateGasForProcessing(uint256) (BusdKing.sol#208-213) uses literals with too many digits:
- require(bool,string)(newValue >= 200000 && newValue <= 500000,BusdKing: gasForProcessing must be between 200,000 and 500,000) (BusdKing.sol#209)
BusdKing.slitherConstructorVariables() (BusdKing.sol#15-497) uses literals with too many digits:
- deadWallet = 0x000000000000000000000000000000000000dEaD (BusdKing.sol#25)
BusdKing.slitherConstructorVariables() (BusdKing.sol#15-497) uses literals with too many digits:
- swapTokensAtAmount = 2000000 * (10 ** 18) (BusdKing.sol#29)
BusdKing.slitherConstructorVariables() (BusdKing.sol#15-497) uses literals with too many digits:
- gasForProcessing = 300000 (BusdKing.sol#42)
BusdKingDividendTracker.constructor() (BusdKing.sol#519-522) uses literals with too many digits:
- minimumTokenBalanceForDividends = 2000000 * (10 ** 18) (BusdKing.sol#521)
BusdKingDividendTracker.getAccountAtIndex(uint256) (BusdKing.sol#604-621) uses literals with too many digits:
- (0x0000000000000000000000000000000000000000,- 1,- 1,0,0,0,0,0) (BusdKing.sol#615)
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
BusdKing.BUSD (BusdKing.sol#27) should be constant
BusdKing.deadWallet (BusdKing.sol#25) should be constant
BusdKing.swapTokensAtAmount (BusdKing.sol#29) 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:
- BusdKing.updateDividendTracker(address) (BusdKing.sol#123-138)
updateUniswapV2Router(address) should be declared external:
- BusdKing.updateUniswapV2Router(address) (BusdKing.sol#140-147)
excludeMultipleAccountsFromFees(address[],bool) should be declared external:
- BusdKing.excludeMultipleAccountsFromFees(address[],bool) (BusdKing.sol#156-162)
setAutomatedMarketMakerPair(address,bool) should be declared external:
- BusdKing.setAutomatedMarketMakerPair(address,bool) (BusdKing.sol#185-189)
updateGasForProcessing(uint256) should be declared external:
- BusdKing.updateGasForProcessing(uint256) (BusdKing.sol#208-213)
isExcludedFromFees(address) should be declared external:
- BusdKing.isExcludedFromFees(address) (BusdKing.sol#227-229)
withdrawableDividendOf(address) should be declared external:
- BusdKing.withdrawableDividendOf(address) (BusdKing.sol#231-233)
dividendTokenBalanceOf(address) should be declared external:
- BusdKing.dividendTokenBalanceOf(address) (BusdKing.sol#235-237)
UPfeeTXtime(uint256) should be declared external:
- BusdKing.UPfeeTXtime(uint256) (BusdKing.sol#290-293)
UPendtime(uint256) should be declared external:
- BusdKing.UPendtime(uint256) (BusdKing.sol#295-298)
withdrawDividend() should be declared external:
- BusdKingDividendTracker.withdrawDividend() (BusdKing.sol#528-530)
- DividendPayingToken.withdrawDividend() (DividendPayingToken.sol#70-72)
getAccountAtIndex(uint256) should be declared external:
- BusdKingDividendTracker.getAccountAtIndex(uint256) (BusdKing.sol#604-621)
process(uint256) should be declared external:
- BusdKingDividendTracker.process(uint256) (BusdKing.sol#648-693)
distributeBUSDDividends(uint256) should be declared external:
- DividendPayingToken.distributeBUSDDividends(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
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