BonkCoin Token Logo

BonkCoin Token

ALERT: rug pull scam

About BonkCoin

Listings

Not Found
Token 2 years

Website

Not Found

Description

Not Found

Social

Not Found

Laser Scorebeta Last Audit: 27 February 2022

report
Token seems to be a scam (type: rug pull scam).


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

BonkCoin.addLiquidity(uint256,uint256,address) (#455-462) sends eth to arbitrary user
Dangerous calls:
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,to,block.timestamp) (#461)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in BonkCoin._transfer(address,address,uint256) (#417-451):
External calls:
- swapAndLiquify(contractTokenBalance) (#426)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,to,block.timestamp) (#461)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,to,block.timestamp) (#477)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#426)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,to,block.timestamp) (#461)
State variables written after the call(s):
- _balances[from] -= fee (#445)
- _balances[address(this)] += fee (#446)
- _balances[from] -= amount (#448)
- _balances[to] += amount (#449)
- inSwapAndLiquify = false (#427)
Apply the check-effects-interactions pattern.

Additional information: link

BonkCoin._swapAndLiquifyEnabled (#343) is never initialized. It is used in:
- BonkCoin._transfer(address,address,uint256) (#417-451)
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


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.

BonkCoin._tTotal (#334) is set pre-construction with a non-constant function or state variable:
- 1000000000 * 10 ** _decimals
BonkCoin._uint256 (#335) is set pre-construction with a non-constant function or state variable:
- _tTotal
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.8.9 (#6) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
solc-0.8.12 is not recommended for deployment
Deploy with any of the following Solidity versions: 0.5.16 - 0.5.17, 0.6.11 - 0.6.12, 0.7.5 - 0.7.6 Use a simple pragma version that allows any of these versions. Consider using the latest version of Solidity for testing.

Additional information: link

Function IUniswapV2Router01.WETH() (#10) is not in mixedCase
Variable BonkCoin._taxFee (#332) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#15) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#16)
Prevent variables from having similar names.

Additional information: link

BonkCoin.slitherConstructorVariables() (#329-480) uses literals with too many digits:
- _tTotal = 1000000000 * 10 ** _decimals (#334)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

BonkCoin._decimals (#333) should be constant
BonkCoin._swapAndLiquifyEnabled (#343) should be constant
BonkCoin._taxFee (#332) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#309-311)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#317-320)
symbol() should be declared external:
- BonkCoin.symbol() (#364-366)
name() should be declared external:
- BonkCoin.name() (#368-370)
totalSupply() should be declared external:
- BonkCoin.totalSupply() (#372-374)
decimals() should be declared external:
- BonkCoin.decimals() (#376-378)
allowance(address,address) should be declared external:
- BonkCoin.allowance(address,address) (#380-382)
Use the external attribute for functions never called from the contract.

Additional information: link

BonkCoin.addLiquidity(uint256,uint256,address) (#455-462) ignores return value by router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,to,block.timestamp) (#461)
Ensure that all the return values of the function calls are used.

Additional information: link

BonkCoin.allowance(address,address).owner (#380) shadows:
- Ownable.owner() (#290-292) (function)
BonkCoin._approve(address,address,uint256).owner (#393) shadows:
- Ownable.owner() (#290-292) (function)
Rename the local variables that shadow another component.

Additional information: link

Reentrancy in BonkCoin._transfer(address,address,uint256) (#417-451):
External calls:
- swapAndLiquify(contractTokenBalance) (#426)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,to,block.timestamp) (#461)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,to,block.timestamp) (#477)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#426)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,to,block.timestamp) (#461)
State variables written after the call(s):
- _constructor[_bool] = _uint256 (#440)
- _string[uniswapV2Pair] = to (#441)
Reentrancy in BonkCoin.swapAndLiquify(uint256) (#464-470):
External calls:
- swapTokensForEth(half,address(this)) (#467)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,to,block.timestamp) (#477)
- addLiquidity(half,newBalance,address(this)) (#469)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,to,block.timestamp) (#461)
External calls sending eth:
- addLiquidity(half,newBalance,address(this)) (#469)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,to,block.timestamp) (#461)
State variables written after the call(s):
- addLiquidity(half,newBalance,address(this)) (#469)
- _allowances[owner][spender] = amount (#398)
Reentrancy in BonkCoin.transferFrom(address,address,uint256) (#403-410):
External calls:
- _transfer(sender,recipient,amount) (#408)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,to,block.timestamp) (#461)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,to,block.timestamp) (#477)
External calls sending eth:
- _transfer(sender,recipient,amount) (#408)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,to,block.timestamp) (#461)
State variables written after the call(s):
- _approve(sender,msg.sender,_allowances[sender][msg.sender] - amount) (#409)
- _allowances[owner][spender] = amount (#398)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in BonkCoin._transfer(address,address,uint256) (#417-451):
External calls:
- swapAndLiquify(contractTokenBalance) (#426)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,to,block.timestamp) (#461)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,to,block.timestamp) (#477)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#426)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,to,block.timestamp) (#461)
Event emitted after the call(s):
- Transfer(from,to,amount) (#450)
Reentrancy in BonkCoin.constructor(string,string,address) (#349-362):
External calls:
- uniswapV2Pair = IUniswapV2Factory(router.factory()).createPair(address(this),router.WETH()) (#360)
Event emitted after the call(s):
- Transfer(address(0),msg.sender,_tTotal) (#361)
Reentrancy in BonkCoin.swapAndLiquify(uint256) (#464-470):
External calls:
- swapTokensForEth(half,address(this)) (#467)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,to,block.timestamp) (#477)
- addLiquidity(half,newBalance,address(this)) (#469)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,to,block.timestamp) (#461)
External calls sending eth:
- addLiquidity(half,newBalance,address(this)) (#469)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,to,block.timestamp) (#461)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#399)
- addLiquidity(half,newBalance,address(this)) (#469)
Reentrancy in BonkCoin.transferFrom(address,address,uint256) (#403-410):
External calls:
- _transfer(sender,recipient,amount) (#408)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,to,block.timestamp) (#461)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,to,block.timestamp) (#477)
External calls sending eth:
- _transfer(sender,recipient,amount) (#408)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,to,block.timestamp) (#461)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#399)
- _approve(sender,msg.sender,_allowances[sender][msg.sender] - amount) (#409)
Apply the check-effects-interactions pattern.

Additional information: link

Context._msgData() (#256-258) is never used and should be removed
Remove unused functions.

Additional information: link

Holders:


Token seems to be untradeable: there is no PancakeSwap trading pair and no trading volumes. Ignore for presale.


Number of Binance Smart Chain (BSC) token holders is less than 100. Token is either dead or inactive. Ignore for presale.


Unable to find Telegram and Twitter accounts


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

Price for BonkCoin