BNB King Token Logo

BNBKING [BNB King] Token

ALERT: honeypot scam

About BNBKING

Listings

Not Found
Token 3 months

There is only one true king on BSC and that is BNB

Social

Laser Scorebeta Last Audit: 14 May 2022

report
Code:


Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)

BNBKing.addLiquidity(uint256,uint256) (#2145-2158) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#2151-2156)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in BNBKing._transfer(address,address,uint256) (#1989-2086):
External calls:
- swapAndLiquify(swapTokens) (#2023)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#2151-2156)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#2121-2125)
- swapAndSendDividends(sellTokens) (#2026)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#2138-2142)
- IERC20(WBNB).transfer(_projectAddress,h8) (#2168)
- success = IERC20(WBNB).transfer(address(dividendTrackerT1),h8) (#2171)
- dividendTrackerT1.distributeWBNBDividends(h8) (#2173)
- success = IERC20(WBNB).transfer(address(dividendTrackerT2),h8) (#2178)
- dividendTrackerT2.distributeWBNBDividends(h8) (#2180)
External calls sending eth:
- swapAndLiquify(swapTokens) (#2023)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#2151-2156)
State variables written after the call(s):
- super._transfer(from,_projectAddress,whaleFees) (#2047)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#886)
- _balances[recipient] = _balances[recipient].add(amount) (#887)
- super._transfer(from,address(this),fees) (#2061)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#886)
- _balances[recipient] = _balances[recipient].add(amount) (#887)
- super._transfer(from,to,amount) (#2064)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#886)
- _balances[recipient] = _balances[recipient].add(amount) (#887)
- swapping = false (#2028)
Apply the check-effects-interactions pattern.

Additional information: link

BNBKing.swapAndSendDividends(uint256) (#2160-2184) ignores return value by IERC20(WBNB).transfer(_projectAddress,h8) (#2168)
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.


Contract ownership is not renounced (belongs to a wallet)

BNBKing._transfer(address,address,uint256).iterations (#2074) is a local variable never initialized
BNBKing._transfer(address,address,uint256).claims (#2075) is a local variable never initialized
BNBKing._transfer(address,address,uint256).iterations_scope_0 (#2080) is a local variable never initialized
BNBKing._transfer(address,address,uint256).lastProcessedIndex (#2076) is a local variable never initialized
BNBKing._transfer(address,address,uint256).claims_scope_1 (#2081) is a local variable never initialized
BNBKing._transfer(address,address,uint256).lastProcessedIndex_scope_2 (#2082) 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

Reentrancy in DividendPayingToken._withdrawDividendOfUser(address) (#1081-1097):
External calls:
- success = IERC20(WBNB).transfer(user,_withdrawableDividend) (#1086)
State variables written after the call(s):
- withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend) (#1089)
Reentrancy in BNBKing.updateDividendTrackerT1(address) (#1724-1738):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#1731)
- newDividendTracker.excludeFromDividends(address(this)) (#1732)
- newDividendTracker.excludeFromDividends(owner()) (#1733)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1734)
State variables written after the call(s):
- dividendTrackerT1 = newDividendTracker (#1737)
Reentrancy in BNBKing.updateDividendTrackerT2(address) (#1740-1754):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#1747)
- newDividendTracker.excludeFromDividends(address(this)) (#1748)
- newDividendTracker.excludeFromDividends(owner()) (#1749)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1750)
State variables written after the call(s):
- dividendTrackerT2 = newDividendTracker (#1753)
Apply the check-effects-interactions pattern.

Additional information: link

Pragma version^0.8.0 (#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

BNBKing.claim() (#1968-1971) ignores return value by dividendTrackerT1.processAccount(address(msg.sender),false) (#1969)
BNBKing.claim() (#1968-1971) ignores return value by dividendTrackerT2.processAccount(address(msg.sender),false) (#1970)
BNBKing._transfer(address,address,uint256) (#1989-2086) ignores return value by dividendTrackerT1.process(gas) (#2074-2078)
BNBKing._transfer(address,address,uint256) (#1989-2086) ignores return value by dividendTrackerT2.process(gas) (#2080-2084)
BNBKing.addLiquidity(uint256,uint256) (#2145-2158) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#2151-2156)
Ensure that all the return values of the function calls are used.

Additional information: link

DividendPayingToken.constructor(string,string)._name (#1055) shadows:
- ERC20._name (#708) (state variable)
DividendPayingToken.constructor(string,string)._symbol (#1055) shadows:
- ERC20._symbol (#709) (state variable)
DividendPayingToken.dividendOf(address)._owner (#1103) shadows:
- Ownable._owner (#261) (state variable)
DividendPayingToken.withdrawableDividendOf(address)._owner (#1110) shadows:
- Ownable._owner (#261) (state variable)
DividendPayingToken.withdrawnDividendOf(address)._owner (#1117) shadows:
- Ownable._owner (#261) (state variable)
DividendPayingToken.accumulativeDividendOf(address)._owner (#1127) shadows:
- Ownable._owner (#261) (state variable)
Rename the local variables that shadow another component.

Additional information: link

BNBKing.setMaxRoomrent(uint256) (#1716-1718) should emit an event for:
- maxRoomRent = rentWithoutDecimal * (10 ** 9) (#1717)
BNBKing.updateS(uint256) (#1823-1825) should emit an event for:
- swapTokensAtAmount = s (#1824)
BNBKing.updateMaxTxPerThousand(uint256) (#1827-1829) should emit an event for:
- _maxTxPerThousand = perThousand (#1828)
BNBKing.updateMaxWalletTokenPerThousand(uint256) (#1831-1833) should emit an event for:
- _maxWalletTokenPerThousand = perThousand (#1832)
BNBKing.updateWhaleFees(uint256) (#1835-1837) should emit an event for:
- _whaleFees = whaleFees (#1836)
BNBKing.updateWBNBRewardT1(uint256) (#1839-1841) should emit an event for:
- _WBNBRewardT1 = WBNBRewardT1 (#1840)
BNBKing.updateWBNBRewardT2(uint256) (#1843-1845) should emit an event for:
- _WBNBRewardT2 = WBNBRewardT2 (#1844)
BNBKing.updateProject(uint256) (#1847-1849) should emit an event for:
- _project = project (#1848)
BNBKing.updateLiquidityAddress(uint256) (#1851-1853) should emit an event for:
- _liquidity = liquidity (#1852)
BNBKing.updateWhaleTxThreshold(uint256) (#1859-1861) should emit an event for:
- _whaleTxThreshold = amount (#1860)
BNBKing.updateDeadBlockFees(uint256) (#1863-1865) should emit an event for:
- _deadblockFees = fees (#1864)
Emit an event for critical parameter changes.

Additional information: link

BNBKing.setProjectAddress(address).projectAddress (#1855) lacks a zero-check on :
- _projectAddress = projectAddress (#1856)
Check that the address is not zero.

Additional information: link

DividendPayingToken._withdrawDividendOfUser(address) (#1081-1097) has external calls inside a loop: success = IERC20(WBNB).transfer(user,_withdrawableDividend) (#1086)
Favor pull over push strategy for external calls.

Additional information: link

Variable 'BNBKing._transfer(address,address,uint256).lastProcessedIndex (#2076)' in BNBKing._transfer(address,address,uint256) (#1989-2086) potentially used before declaration: ProcessedDividendTrackerT1(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#2077)
Variable 'BNBKing._transfer(address,address,uint256).iterations (#2074)' in BNBKing._transfer(address,address,uint256) (#1989-2086) potentially used before declaration: ProcessedDividendTrackerT1(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#2077)
Variable 'BNBKing._transfer(address,address,uint256).claims (#2075)' in BNBKing._transfer(address,address,uint256) (#1989-2086) potentially used before declaration: ProcessedDividendTrackerT1(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#2077)
Variable 'BNBKing._transfer(address,address,uint256).lastProcessedIndex_scope_2 (#2082)' in BNBKing._transfer(address,address,uint256) (#1989-2086) potentially used before declaration: ProcessedDividendTrackerT2(iterations_scope_0,claims_scope_1,lastProcessedIndex_scope_2,true,gas,tx.origin) (#2083)
Variable 'BNBKing._transfer(address,address,uint256).claims_scope_1 (#2081)' in BNBKing._transfer(address,address,uint256) (#1989-2086) potentially used before declaration: ProcessedDividendTrackerT2(iterations_scope_0,claims_scope_1,lastProcessedIndex_scope_2,true,gas,tx.origin) (#2083)
Variable 'BNBKing._transfer(address,address,uint256).iterations_scope_0 (#2080)' in BNBKing._transfer(address,address,uint256) (#1989-2086) potentially used before declaration: ProcessedDividendTrackerT2(iterations_scope_0,claims_scope_1,lastProcessedIndex_scope_2,true,gas,tx.origin) (#2083)
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 BNBKing._transfer(address,address,uint256) (#1989-2086):
External calls:
- swapAndLiquify(swapTokens) (#2023)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#2151-2156)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#2121-2125)
- swapAndSendDividends(sellTokens) (#2026)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#2138-2142)
- IERC20(WBNB).transfer(_projectAddress,h8) (#2168)
- success = IERC20(WBNB).transfer(address(dividendTrackerT1),h8) (#2171)
- dividendTrackerT1.distributeWBNBDividends(h8) (#2173)
- success = IERC20(WBNB).transfer(address(dividendTrackerT2),h8) (#2178)
- dividendTrackerT2.distributeWBNBDividends(h8) (#2180)
External calls sending eth:
- swapAndLiquify(swapTokens) (#2023)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#2151-2156)
State variables written after the call(s):
- swapAndSendDividends(sellTokens) (#2026)
- _allowances[owner][spender] = amount (#952)
Reentrancy in BNBKing.constructor() (#1679-1707):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1685)
State variables written after the call(s):
- WBNB = 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c (#1687)
- uniswapV2Pair = _uniswapV2Pair (#1690)
- uniswapV2Router = _uniswapV2Router (#1689)
Reentrancy in BNBKing.constructor() (#1679-1707):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1685)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1692)
- dividendTrackerT1.excludeFromDividends(pair) (#1794)
- excludeFromDividends(address(dividendTrackerT1)) (#1695)
- dividendTrackerT1.excludeFromDividends(addr) (#1772)
- dividendTrackerT2.excludeFromDividends(addr) (#1773)
- excludeFromDividends(address(dividendTrackerT2)) (#1696)
- dividendTrackerT1.excludeFromDividends(addr) (#1772)
- dividendTrackerT2.excludeFromDividends(addr) (#1773)
- excludeFromDividends(address(this)) (#1697)
- dividendTrackerT1.excludeFromDividends(addr) (#1772)
- dividendTrackerT2.excludeFromDividends(addr) (#1773)
- excludeFromDividends(address(_uniswapV2Router)) (#1698)
- dividendTrackerT1.excludeFromDividends(addr) (#1772)
- dividendTrackerT2.excludeFromDividends(addr) (#1773)
State variables written after the call(s):
- _mint(owner(),maxSupply) (#1706)
- _balances[account] = _balances[account].add(amount) (#906)
- excludeFromFees(address(this),true) (#1701)
- _isExcludedFromFees[account] = excluded (#1767)
- excludeFromFees(owner(),true) (#1702)
- _isExcludedFromFees[account] = excluded (#1767)
- _mint(owner(),maxSupply) (#1706)
- _totalSupply = _totalSupply.add(amount) (#905)
- launchedAt = block.number (#1704)
Reentrancy in WBNBDividendTrackerT1.processAccount(address,bool) (#1364-1374):
External calls:
- amount = _withdrawDividendOfUser(account) (#1365)
- success = IERC20(WBNB).transfer(user,_withdrawableDividend) (#1086)
State variables written after the call(s):
- lastClaimTimes[account] = block.timestamp (#1368)
Reentrancy in WBNBDividendTrackerT2.processAccount(address,bool) (#1561-1571):
External calls:
- amount = _withdrawDividendOfUser(account) (#1562)
- success = IERC20(WBNB).transfer(user,_withdrawableDividend) (#1086)
State variables written after the call(s):
- lastClaimTimes[account] = block.timestamp (#1565)
Reentrancy in BNBKing.swapAndLiquify(uint256) (#2088-2109):
External calls:
- swapTokensForEth(half) (#2100)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#2121-2125)
- addLiquidity(otherHalf,newBalance) (#2106)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#2151-2156)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#2106)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#2151-2156)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#2106)
- _allowances[owner][spender] = amount (#952)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in BNBKing._setAutomatedMarketMakerPair(address,bool) (#1789-1797):
External calls:
- dividendTrackerT1.excludeFromDividends(pair) (#1794)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#1796)
Reentrancy in BNBKing._transfer(address,address,uint256) (#1989-2086):
External calls:
- swapAndLiquify(swapTokens) (#2023)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#2151-2156)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#2121-2125)
- swapAndSendDividends(sellTokens) (#2026)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#2138-2142)
- IERC20(WBNB).transfer(_projectAddress,h8) (#2168)
- success = IERC20(WBNB).transfer(address(dividendTrackerT1),h8) (#2171)
- dividendTrackerT1.distributeWBNBDividends(h8) (#2173)
- success = IERC20(WBNB).transfer(address(dividendTrackerT2),h8) (#2178)
- dividendTrackerT2.distributeWBNBDividends(h8) (#2180)
External calls sending eth:
- swapAndLiquify(swapTokens) (#2023)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#2151-2156)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#953)
- swapAndSendDividends(sellTokens) (#2026)
- SendDividends(tokens,newBalance) (#2174)
- swapAndSendDividends(sellTokens) (#2026)
- SendDividends(tokens,newBalance) (#2181)
- swapAndSendDividends(sellTokens) (#2026)
- Transfer(sender,recipient,amount) (#888)
- super._transfer(from,to,amount) (#2064)
- Transfer(sender,recipient,amount) (#888)
- super._transfer(from,address(this),fees) (#2061)
- Transfer(sender,recipient,amount) (#888)
- super._transfer(from,_projectAddress,whaleFees) (#2047)
Reentrancy in BNBKing._transfer(address,address,uint256) (#1989-2086):
External calls:
- swapAndLiquify(swapTokens) (#2023)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#2151-2156)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#2121-2125)
- swapAndSendDividends(sellTokens) (#2026)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#2138-2142)
- IERC20(WBNB).transfer(_projectAddress,h8) (#2168)
- success = IERC20(WBNB).transfer(address(dividendTrackerT1),h8) (#2171)
- dividendTrackerT1.distributeWBNBDividends(h8) (#2173)
- success = IERC20(WBNB).transfer(address(dividendTrackerT2),h8) (#2178)
- dividendTrackerT2.distributeWBNBDividends(h8) (#2180)
- dividendTrackerT1.setBalance(address(from),balanceOf(from)) (#2066)
- dividendTrackerT1.setBalance(address(to),balanceOf(to)) (#2067)
- dividendTrackerT2.setBalance(address(from),balanceOf(from)) (#2069)
- dividendTrackerT2.setBalance(address(to),balanceOf(to)) (#2070)
- dividendTrackerT1.process(gas) (#2074-2078)
External calls sending eth:
- swapAndLiquify(swapTokens) (#2023)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#2151-2156)
Event emitted after the call(s):
- ProcessedDividendTrackerT1(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#2077)
Reentrancy in BNBKing._transfer(address,address,uint256) (#1989-2086):
External calls:
- swapAndLiquify(swapTokens) (#2023)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#2151-2156)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#2121-2125)
- swapAndSendDividends(sellTokens) (#2026)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#2138-2142)
- IERC20(WBNB).transfer(_projectAddress,h8) (#2168)
- success = IERC20(WBNB).transfer(address(dividendTrackerT1),h8) (#2171)
- dividendTrackerT1.distributeWBNBDividends(h8) (#2173)
- success = IERC20(WBNB).transfer(address(dividendTrackerT2),h8) (#2178)
- dividendTrackerT2.distributeWBNBDividends(h8) (#2180)
- dividendTrackerT1.setBalance(address(from),balanceOf(from)) (#2066)
- dividendTrackerT1.setBalance(address(to),balanceOf(to)) (#2067)
- dividendTrackerT2.setBalance(address(from),balanceOf(from)) (#2069)
- dividendTrackerT2.setBalance(address(to),balanceOf(to)) (#2070)
- dividendTrackerT1.process(gas) (#2074-2078)
- dividendTrackerT2.process(gas) (#2080-2084)
External calls sending eth:
- swapAndLiquify(swapTokens) (#2023)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#2151-2156)
Event emitted after the call(s):
- ProcessedDividendTrackerT2(iterations_scope_0,claims_scope_1,lastProcessedIndex_scope_2,true,gas,tx.origin) (#2083)
Reentrancy in BNBKing.constructor() (#1679-1707):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1685)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1692)
- dividendTrackerT1.excludeFromDividends(pair) (#1794)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#1796)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1692)
Reentrancy in BNBKing.constructor() (#1679-1707):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1685)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1692)
- dividendTrackerT1.excludeFromDividends(pair) (#1794)
- excludeFromDividends(address(dividendTrackerT1)) (#1695)
- dividendTrackerT1.excludeFromDividends(addr) (#1772)
- dividendTrackerT2.excludeFromDividends(addr) (#1773)
- excludeFromDividends(address(dividendTrackerT2)) (#1696)
- dividendTrackerT1.excludeFromDividends(addr) (#1772)
- dividendTrackerT2.excludeFromDividends(addr) (#1773)
- excludeFromDividends(address(this)) (#1697)
- dividendTrackerT1.excludeFromDividends(addr) (#1772)
- dividendTrackerT2.excludeFromDividends(addr) (#1773)
- excludeFromDividends(address(_uniswapV2Router)) (#1698)
- dividendTrackerT1.excludeFromDividends(addr) (#1772)
- dividendTrackerT2.excludeFromDividends(addr) (#1773)
Event emitted after the call(s):
- ExcludeFromFees(account,excluded) (#1768)
- excludeFromFees(owner(),true) (#1702)
- ExcludeFromFees(account,excluded) (#1768)
- excludeFromFees(address(this),true) (#1701)
- Transfer(address(0),account,amount) (#907)
- _mint(owner(),maxSupply) (#1706)
Reentrancy in WBNBDividendTrackerT1.processAccount(address,bool) (#1364-1374):
External calls:
- amount = _withdrawDividendOfUser(account) (#1365)
- success = IERC20(WBNB).transfer(user,_withdrawableDividend) (#1086)
Event emitted after the call(s):
- Claim(account,amount,automatic) (#1369)
Reentrancy in WBNBDividendTrackerT2.processAccount(address,bool) (#1561-1571):
External calls:
- amount = _withdrawDividendOfUser(account) (#1562)
- success = IERC20(WBNB).transfer(user,_withdrawableDividend) (#1086)
Event emitted after the call(s):
- Claim(account,amount,automatic) (#1566)
Reentrancy in BNBKing.processDividendTracker(uint256) (#1960-1966):
External calls:
- (iterationsT1,claimsT1,lastProcessedIndexT1) = dividendTrackerT1.process(gas) (#1961)
Event emitted after the call(s):
- ProcessedDividendTrackerT1(iterationsT1,claimsT1,lastProcessedIndexT1,false,gas,tx.origin) (#1962)
Reentrancy in BNBKing.processDividendTracker(uint256) (#1960-1966):
External calls:
- (iterationsT1,claimsT1,lastProcessedIndexT1) = dividendTrackerT1.process(gas) (#1961)
- (iterationsT2,claimsT2,lastProcessedIndexT2) = dividendTrackerT2.process(gas) (#1964)
Event emitted after the call(s):
- ProcessedDividendTrackerT2(iterationsT2,claimsT2,lastProcessedIndexT2,false,gas,tx.origin) (#1965)
Reentrancy in BNBKing.swapAndLiquify(uint256) (#2088-2109):
External calls:
- swapTokensForEth(half) (#2100)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#2121-2125)
- addLiquidity(otherHalf,newBalance) (#2106)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#2151-2156)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#2106)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#2151-2156)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#953)
- addLiquidity(otherHalf,newBalance) (#2106)
- SwapAndLiquify(half,newBalance,otherHalf) (#2108)
Reentrancy in BNBKing.swapAndSendDividends(uint256) (#2160-2184):
External calls:
- swapTokensForWBNB(tokens) (#2164)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#2138-2142)
- IERC20(WBNB).transfer(_projectAddress,h8) (#2168)
- success = IERC20(WBNB).transfer(address(dividendTrackerT1),h8) (#2171)
- dividendTrackerT1.distributeWBNBDividends(h8) (#2173)
Event emitted after the call(s):
- SendDividends(tokens,newBalance) (#2174)
Reentrancy in BNBKing.swapAndSendDividends(uint256) (#2160-2184):
External calls:
- swapTokensForWBNB(tokens) (#2164)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#2138-2142)
- IERC20(WBNB).transfer(_projectAddress,h8) (#2168)
- success = IERC20(WBNB).transfer(address(dividendTrackerT1),h8) (#2171)
- dividendTrackerT1.distributeWBNBDividends(h8) (#2173)
- success = IERC20(WBNB).transfer(address(dividendTrackerT2),h8) (#2178)
- dividendTrackerT2.distributeWBNBDividends(h8) (#2180)
Event emitted after the call(s):
- SendDividends(tokens,newBalance) (#2181)
Reentrancy in BNBKing.updateDividendTrackerT1(address) (#1724-1738):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#1731)
- newDividendTracker.excludeFromDividends(address(this)) (#1732)
- newDividendTracker.excludeFromDividends(owner()) (#1733)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1734)
Event emitted after the call(s):
- UpdateDividendTrackerT1(newAddress,address(dividendTrackerT1)) (#1735)
Reentrancy in BNBKing.updateDividendTrackerT2(address) (#1740-1754):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#1747)
- newDividendTracker.excludeFromDividends(address(this)) (#1748)
- newDividendTracker.excludeFromDividends(owner()) (#1749)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1750)
Event emitted after the call(s):
- UpdateDividendTrackerT2(newAddress,address(dividendTrackerT2)) (#1751)
Apply the check-effects-interactions pattern.

Additional information: link

WBNBDividendTrackerT1.getAccount(address) (#1238-1274) uses timestamp for comparisons
Dangerous comparisons:
- nextClaimTime > block.timestamp (#1273)
WBNBDividendTrackerT1.canAutoClaim(uint256) (#1293-1298) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (#1294)
- block.timestamp.sub(lastClaimTime) >= claimWait (#1297)
WBNBDividendTrackerT2.getAccount(address) (#1435-1471) uses timestamp for comparisons
Dangerous comparisons:
- nextClaimTime > block.timestamp (#1470)
WBNBDividendTrackerT2.canAutoClaim(uint256) (#1490-1495) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (#1491)
- block.timestamp.sub(lastClaimTime) >= claimWait (#1494)
Avoid relying on block.timestamp.

Additional information: link

Context._msgData() (#254-257) is never used and should be removed
DividendPayingToken._transfer(address,address,uint256) (#1137-1143) is never used and should be removed
SafeMath.mod(uint256,uint256) (#227-229) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#243-246) is never used and should be removed
SafeMathInt.abs(int256) (#94-97) is never used and should be removed
SafeMathInt.div(int256,int256) (#65-71) is never used and should be removed
SafeMathInt.mul(int256,int256) (#53-60) is never used and should be removed
Remove unused functions.

Additional information: link

BNBKing._maxWalletToken (#1603) is set pre-construction with a non-constant function or state variable:
- maxSupply.mul(_maxWalletTokenPerThousand).div(1000)
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

Function IUniswapV2Router01.WETH() (#314) is not in mixedCase
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#462) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#463) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#480) is not in mixedCase
Parameter DividendPayingToken.dividendOf(address)._owner (#1103) is not in mixedCase
Parameter DividendPayingToken.withdrawableDividendOf(address)._owner (#1110) is not in mixedCase
Parameter DividendPayingToken.withdrawnDividendOf(address)._owner (#1117) is not in mixedCase
Parameter DividendPayingToken.accumulativeDividendOf(address)._owner (#1127) is not in mixedCase
Variable DividendPayingToken.WBNB (#1029) is not in mixedCase
Constant DividendPayingToken.magnitude (#1035) is not in UPPER_CASE_WITH_UNDERSCORES
Parameter WBNBDividendTrackerT1.getAccount(address)._account (#1238) is not in mixedCase
Parameter WBNBDividendTrackerT2.getAccount(address)._account (#1435) is not in mixedCase
Parameter BNBKing.updateWBNBRewardT1(uint256).WBNBRewardT1 (#1839) is not in mixedCase
Parameter BNBKing.updateWBNBRewardT2(uint256).WBNBRewardT2 (#1843) is not in mixedCase
Variable BNBKing.WBNB (#1590) is not in mixedCase
Variable BNBKing._maxTxPerThousand (#1601) is not in mixedCase
Variable BNBKing._maxWalletTokenPerThousand (#1602) is not in mixedCase
Variable BNBKing._maxWalletToken (#1603) is not in mixedCase
Variable BNBKing._whaleFees (#1608) is not in mixedCase
Variable BNBKing._whaleTxThreshold (#1609) is not in mixedCase
Variable BNBKing._WBNBRewardT1 (#1611) is not in mixedCase
Variable BNBKing._WBNBRewardT2 (#1612) is not in mixedCase
Variable BNBKing._project (#1613) is not in mixedCase
Variable BNBKing._liquidity (#1614) is not in mixedCase
Variable BNBKing._deadblockFees (#1617) is not in mixedCase
Variable BNBKing._projectAddress (#1620) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Redundant expression "this (#255)" inContext (#249-258)
Remove redundant statements if they congest code but offer no value.

Additional information: link

Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#319) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#320)
Variable DividendPayingToken._withdrawDividendOfUser(address)._withdrawableDividend (#1082) is too similar to WBNBDividendTrackerT1.getAccount(address).withdrawableDividends (#1243)
Variable DividendPayingToken._withdrawDividendOfUser(address)._withdrawableDividend (#1082) is too similar to WBNBDividendTrackerT2.getAccount(address).withdrawableDividends (#1440)
Variable BNBKing.updateWBNBRewardT1(uint256).WBNBRewardT1 (#1839) is too similar to BNBKing.updateWBNBRewardT2(uint256).WBNBRewardT2 (#1843)
Variable BNBKing._WBNBRewardT1 (#1611) is too similar to BNBKing._WBNBRewardT2 (#1612)
Variable BNBKing.dividendTrackerT1 (#1594) is too similar to BNBKing.dividendTrackerT2 (#1595)
Variable BNBKing.processDividendTracker(uint256).iterationsT1 (#1961) is too similar to BNBKing.processDividendTracker(uint256).iterationsT2 (#1964)
Variable BNBKing.processDividendTracker(uint256).lastProcessedIndexT1 (#1961) is too similar to BNBKing.processDividendTracker(uint256).lastProcessedIndexT2 (#1964)
Prevent variables from having similar names.

Additional information: link

WBNBDividendTrackerT1.getAccountAtIndex(uint256) (#1276-1291) uses literals with too many digits:
- (0x0000000000000000000000000000000000000000,- 1,- 1,0,0,0,0,0) (#1287)
WBNBDividendTrackerT2.getAccountAtIndex(uint256) (#1473-1488) uses literals with too many digits:
- (0x0000000000000000000000000000000000000000,- 1,- 1,0,0,0,0,0) (#1484)
BNBKing.updateGasForProcessing(uint256) (#1807-1813) uses literals with too many digits:
- require(bool,string)(newValue >= 200000 && newValue <= 500000,WBNB: gasForProcessing must be between 200,000 and 500,000) (#1808)
BNBKing.slitherConstructorVariables() (#1584-2186) uses literals with too many digits:
- maxSupply = 1000000000000000 * (10 ** 9) (#1597)
BNBKing.slitherConstructorVariables() (#1584-2186) uses literals with too many digits:
- swapTokensAtAmount = 1000000000000 * (10 ** 9) (#1599)
BNBKing.slitherConstructorVariables() (#1584-2186) uses literals with too many digits:
- maxRoomRent = 15000000 (#1606)
BNBKing.slitherConstructorVariables() (#1584-2186) uses literals with too many digits:
- _whaleTxThreshold = 5000000000000 * (10 ** 9) (#1609)
BNBKing.slitherConstructorVariables() (#1584-2186) uses literals with too many digits:
- gasForProcessing = 300000 (#1624)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

SafeMathInt.MAX_INT256 (#48) is never used in SafeMathInt (#46-104)
Remove unused state variables.

Additional information: link

BNBKing.deadBlocks (#1616) should be constant
BNBKing.maxSupply (#1597) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#296-299)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#305-309)
get(IterableMapping.Map,address) should be declared external:
- IterableMapping.get(IterableMapping.Map,address) (#523-525)
getIndexOfKey(IterableMapping.Map,address) should be declared external:
- IterableMapping.getIndexOfKey(IterableMapping.Map,address) (#527-532)
getKeyAtIndex(IterableMapping.Map,uint256) should be declared external:
- IterableMapping.getKeyAtIndex(IterableMapping.Map,uint256) (#534-536)
size(IterableMapping.Map) should be declared external:
- IterableMapping.size(IterableMapping.Map) (#540-542)
name() should be declared external:
- ERC20.name() (#728-730)
symbol() should be declared external:
- ERC20.symbol() (#736-738)
decimals() should be declared external:
- ERC20.decimals() (#753-755)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (#779-782)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (#787-789)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (#798-801)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (#816-824)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (#838-841)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (#857-860)
distributeWBNBDividends(uint256) should be declared external:
- DividendPayingToken.distributeWBNBDividends(uint256) (#1060-1071)
withdrawDividend() should be declared external:
- DividendPayingToken.withdrawDividend() (#1075-1077)
- WBNBDividendTrackerT1.withdrawDividend() (#1209-1211)
- WBNBDividendTrackerT2.withdrawDividend() (#1406-1408)
dividendOf(address) should be declared external:
- DividendPayingToken.dividendOf(address) (#1103-1105)
withdrawnDividendOf(address) should be declared external:
- DividendPayingToken.withdrawnDividendOf(address) (#1117-1119)
getAccountAtIndex(uint256) should be declared external:
- WBNBDividendTrackerT1.getAccountAtIndex(uint256) (#1276-1291)
process(uint256) should be declared external:
- WBNBDividendTrackerT1.process(uint256) (#1317-1362)
getAccountAtIndex(uint256) should be declared external:
- WBNBDividendTrackerT2.getAccountAtIndex(uint256) (#1473-1488)
process(uint256) should be declared external:
- WBNBDividendTrackerT2.process(uint256) (#1514-1559)
enableHotelCaliforniaMode(bool) should be declared external:
- BNBKing.enableHotelCaliforniaMode(bool) (#1712-1714)
setMaxRoomrent(uint256) should be declared external:
- BNBKing.setMaxRoomrent(uint256) (#1716-1718)
rescueToken(address,uint256) should be declared external:
- BNBKing.rescueToken(address,uint256) (#1720-1722)
updateDividendTrackerT1(address) should be declared external:
- BNBKing.updateDividendTrackerT1(address) (#1724-1738)
updateDividendTrackerT2(address) should be declared external:
- BNBKing.updateDividendTrackerT2(address) (#1740-1754)
updateUniswapV2Router(address) should be declared external:
- BNBKing.updateUniswapV2Router(address) (#1757-1762)
excludeMultipleAccountsFromFees(address[],bool) should be declared external:
- BNBKing.excludeMultipleAccountsFromFees(address[],bool) (#1776-1782)
setAutomatedMarketMakerPair(address,bool) should be declared external:
- BNBKing.setAutomatedMarketMakerPair(address,bool) (#1784-1787)
updateLiquidityWallet(address) should be declared external:
- BNBKing.updateLiquidityWallet(address) (#1799-1805)
updateGasForProcessing(uint256) should be declared external:
- BNBKing.updateGasForProcessing(uint256) (#1807-1813)
updateS(uint256) should be declared external:
- BNBKing.updateS(uint256) (#1823-1825)
updateMaxTxPerThousand(uint256) should be declared external:
- BNBKing.updateMaxTxPerThousand(uint256) (#1827-1829)
updateMaxWalletTokenPerThousand(uint256) should be declared external:
- BNBKing.updateMaxWalletTokenPerThousand(uint256) (#1831-1833)
updateWhaleFees(uint256) should be declared external:
- BNBKing.updateWhaleFees(uint256) (#1835-1837)
updateWBNBRewardT1(uint256) should be declared external:
- BNBKing.updateWBNBRewardT1(uint256) (#1839-1841)
updateWBNBRewardT2(uint256) should be declared external:
- BNBKing.updateWBNBRewardT2(uint256) (#1843-1845)
updateProject(uint256) should be declared external:
- BNBKing.updateProject(uint256) (#1847-1849)
updateLiquidityAddress(uint256) should be declared external:
- BNBKing.updateLiquidityAddress(uint256) (#1851-1853)
setProjectAddress(address) should be declared external:
- BNBKing.setProjectAddress(address) (#1855-1857)
updateWhaleTxThreshold(uint256) should be declared external:
- BNBKing.updateWhaleTxThreshold(uint256) (#1859-1861)
updateDeadBlockFees(uint256) should be declared external:
- BNBKing.updateDeadBlockFees(uint256) (#1863-1865)
setBlackList(address,bool) should be declared external:
- BNBKing.setBlackList(address,bool) (#1867-1869)
isExcludedFromFees(address) should be declared external:
- BNBKing.isExcludedFromFees(address) (#1887-1889)
withdrawableT1DividendOf(address) should be declared external:
- BNBKing.withdrawableT1DividendOf(address) (#1891-1893)
withdrawableT2DividendOf(address) should be declared external:
- BNBKing.withdrawableT2DividendOf(address) (#1895-1897)
dividendT1TokenBalanceOf(address) should be declared external:
- BNBKing.dividendT1TokenBalanceOf(address) (#1899-1901)
dividendT2TokenBalanceOf(address) should be declared external:
- BNBKing.dividendT2TokenBalanceOf(address) (#1903-1905)
Use the external attribute for functions never called from the contract.

Additional information: link

Holders:


Attempt to swap token was unsuccessful. For some reason it is untradeable. If token is not in presale stage and is not traded outside PancakeSwap, then it's a scam

Additional information: link


Average 30d PancakeSwap liquidity is less than $100. Token is either dead or inactive.


Average 30d PancakeSwap volume is less than $100. Token is either dead or inactive.


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.


Number of Binance Smart Chain (BSC) token holders is low.


Token is deployed only at one blockchain


Token has only one trading pair


Telegram account link seems to be invalid


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

Search:


BscScan page for the token does not contain additional info: website, socials, description, etc.

Additional information: link


Unable to find token on CoinGecko

Additional information: link


Unable to find token on CoinMarketCap

Additional information: link


Unable to find token/project description on the website or on BscScan, CoinMarketCap


Unable to find token contract audit


Token is not listed at Mobula.Finance

Additional information: link


Unable to find audit link on the website


Unable to find token on CoinHunt

Additional information: link


Unable to find code repository for the project


Token is marked as scam (rug pull, honeypot, phishing, etc.)

Additional information: link


Young tokens have high risks of price dump / death


Token has no active CoinGecko listing / rank


Token has no active CoinMarketCap listing / rank


Young tokens have high risks of price dump / death

Anti-Scam Checks

Price for BNBKING