Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
CBDC.addLiquidity(uint256,uint256) (#772-785) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,OwnerAddress,block.timestamp) (#777-784)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in CBDC._transfer(address,address,uint256) (#681-719):
External calls:
- swapAndLiquify(contractTokenBalance) (#703)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,OwnerAddress,block.timestamp) (#777-784)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#761-767)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#703)
- recipient.transfer(amount) (#645)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,OwnerAddress,block.timestamp) (#777-784)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#706)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#714)
- finalAmount = takeFee(sender,recipient,amount) (#708-709)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#799)
Apply the check-effects-interactions pattern.
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.
CBDC.addLiquidity(uint256,uint256) (#772-785) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,OwnerAddress,block.timestamp) (#777-784)
Ensure that all the return values of the function calls are used.
Additional information: link
CBDC.allowance(address,address).owner (#520) shadows:
- Ownable.owner() (#152-154) (function)
CBDC._approve(address,address,uint256).owner (#543) shadows:
- Ownable.owner() (#152-154) (function)
Rename the local variables that shadow another component.
Additional information: link
CBDC.setBuyTaxes(uint256,uint256,uint256) (#563-569) should emit an event for:
- _totalTaxIfBuying = _buyLiquidityFee.add(_buyMarketingFee).add(_buyTeamFee) (#568)
CBDC.setSellTaxes(uint256,uint256,uint256) (#571-577) should emit an event for:
- _totalTaxIfSelling = _sellLiquidityFee.add(_sellMarketingFee).add(_sellTeamFee) (#576)
CBDC.setDistributionSettings(uint256,uint256,uint256) (#579-585) should emit an event for:
- _liquidityShare = newLiquidityShare (#580)
- _teamShare = newTeamShare (#582)
- _totalDistributionShares = _liquidityShare.add(_marketingShare).add(_teamShare) (#584)
CBDC.setMaxTxAmount(uint256) (#587-589) should emit an event for:
- _maxTxAmount = maxTxAmount (#588)
CBDC.setWalletLimit(uint256) (#599-601) should emit an event for:
- _walletMax = newLimit (#600)
CBDC.setNumTokensBeforeSwap(uint256) (#603-605) should emit an event for:
- minimumTokensBeforeSwap = newLimit (#604)
Emit an event for critical parameter changes.
Additional information: link
CBDC.setMarketingWalletAddress(address).newAddress (#607) lacks a zero-check on :
- marketingWalletAddress = address(newAddress) (#608)
CBDC.setTeamWalletAddress(address).newAddress (#611) lacks a zero-check on :
- teamWalletAddress = address(newAddress) (#612)
CBDC.setOAddress(address).newAddress (#615) lacks a zero-check on :
- OwnerAddress = newAddress (#616)
CBDC.Sweep(address).account (#625) lacks a zero-check on :
- address(account).transfer(balance) (#627)
Check that the address is not zero.
Additional information: link
Reentrancy in CBDC.changeRouterVersion(address) (#648-665):
External calls:
- newPairAddress = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#656-657)
State variables written after the call(s):
- isMarketPair[address(uniswapPair)] = true (#664)
- isWalletLimitExempt[address(uniswapPair)] = true (#663)
- uniswapPair = newPairAddress (#660)
- uniswapV2Router = _uniswapV2Router (#661)
Reentrancy in CBDC.constructor() (#470-498):
External calls:
- uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#474-475)
State variables written after the call(s):
- _allowances[address(this)][address(uniswapV2Router)] = _totalSupply (#478)
- _balances[_msgSender()] = _totalSupply (#496)
- _totalDistributionShares = _liquidityShare.add(_marketingShare).add(_teamShare) (#485)
- _totalTaxIfBuying = _buyLiquidityFee.add(_buyMarketingFee).add(_buyTeamFee) (#483)
- _totalTaxIfSelling = _sellLiquidityFee.add(_sellMarketingFee).add(_sellTeamFee) (#484)
- isExcludedFromFee[owner()] = true (#480)
- isExcludedFromFee[address(this)] = true (#481)
- isMarketPair[address(uniswapPair)] = true (#494)
- isTxLimitExempt[owner()] = true (#491)
- isTxLimitExempt[address(this)] = true (#492)
- isWalletLimitExempt[owner()] = true (#487)
- isWalletLimitExempt[address(uniswapPair)] = true (#488)
- isWalletLimitExempt[address(this)] = true (#489)
- uniswapV2Router = _uniswapV2Router (#477)
Reentrancy in CBDC.swapAndLiquify(uint256) (#728-750):
External calls:
- swapTokensForEth(tokensForSwap) (#733)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#761-767)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#749)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,OwnerAddress,block.timestamp) (#777-784)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#743)
- recipient.transfer(amount) (#645)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#746)
- recipient.transfer(amount) (#645)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#749)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,OwnerAddress,block.timestamp) (#777-784)
State variables written after the call(s):
- addLiquidity(tokensForLP,amountBNBLiquidity) (#749)
- _allowances[owner][spender] = amount (#547)
Reentrancy in CBDC.transferFrom(address,address,uint256) (#675-679):
External calls:
- _transfer(sender,recipient,amount) (#676)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,OwnerAddress,block.timestamp) (#777-784)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#761-767)
External calls sending eth:
- _transfer(sender,recipient,amount) (#676)
- recipient.transfer(amount) (#645)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,OwnerAddress,block.timestamp) (#777-784)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#677)
- _allowances[owner][spender] = amount (#547)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in CBDC._transfer(address,address,uint256) (#681-719):
External calls:
- swapAndLiquify(contractTokenBalance) (#703)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,OwnerAddress,block.timestamp) (#777-784)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#761-767)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#703)
- recipient.transfer(amount) (#645)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,OwnerAddress,block.timestamp) (#777-784)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#800)
- finalAmount = takeFee(sender,recipient,amount) (#708-709)
- Transfer(sender,recipient,finalAmount) (#716)
Reentrancy in CBDC.constructor() (#470-498):
External calls:
- uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#474-475)
Event emitted after the call(s):
- Transfer(address(0),_msgSender(),_totalSupply) (#497)
Reentrancy in CBDC.swapAndLiquify(uint256) (#728-750):
External calls:
- swapTokensForEth(tokensForSwap) (#733)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#761-767)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#749)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,OwnerAddress,block.timestamp) (#777-784)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#743)
- recipient.transfer(amount) (#645)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#746)
- recipient.transfer(amount) (#645)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#749)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,OwnerAddress,block.timestamp) (#777-784)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#548)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#749)
Reentrancy in CBDC.swapTokensForEth(uint256) (#752-770):
External calls:
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#761-767)
Event emitted after the call(s):
- SwapTokensForETH(tokenAmount,path) (#769)
Reentrancy in CBDC.transferFrom(address,address,uint256) (#675-679):
External calls:
- _transfer(sender,recipient,amount) (#676)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,OwnerAddress,block.timestamp) (#777-784)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#761-767)
External calls sending eth:
- _transfer(sender,recipient,amount) (#676)
- recipient.transfer(amount) (#645)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,OwnerAddress,block.timestamp) (#777-784)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#548)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#677)
Apply the check-effects-interactions pattern.
Additional information: link
Ownable.unlock() (#187-192) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(block.timestamp > _lockTime,Contract is locked until 7 days) (#189)
Avoid relying on block.timestamp.
Additional information: link
Address.isContract(address) (#83-92) uses assembly
- INLINE ASM (#90)
Address._functionCallWithValue(address,bytes,uint256,string) (#119-136) uses assembly
- INLINE ASM (#128-131)
Do not use evm assembly.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#119-136) is never used and should be removed
Address.functionCall(address,bytes) (#102-104) is never used and should be removed
Address.functionCall(address,bytes,string) (#106-108) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#110-112) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#114-117) is never used and should be removed
Address.isContract(address) (#83-92) is never used and should be removed
Address.sendValue(address,uint256) (#94-100) is never used and should be removed
Context._msgData() (#10-13) is never used and should be removed
SafeMath.mod(uint256,uint256) (#71-73) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#75-78) is never used and should be removed
Remove unused functions.
Additional information: link
CBDC._totalSupply (#432) is set pre-construction with a non-constant function or state variable:
- 100 * 10 ** 6 * 10 ** 6 * 10 ** _decimals
CBDC._maxTxAmount (#433) is set pre-construction with a non-constant function or state variable:
- 100 * 10 ** 6 * 10 ** 6 * 10 ** _decimals
CBDC._walletMax (#434) is set pre-construction with a non-constant function or state variable:
- 100 * 10 ** 6 * 10 ** 6 * 10 ** _decimals
CBDC.minimumTokensBeforeSwap (#435) is set pre-construction with a non-constant function or state variable:
- 100 * 10 ** 6 * 10 ** _decimals
CBDC.OwnerAddress (#445) is set pre-construction with a non-constant function or state variable:
- _msgSender()
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
Low level call in Address.sendValue(address,uint256) (#94-100):
- (success) = recipient.call{value: amount}() (#98)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#119-136):
- (success,returndata) = target.call{value: weiValue}(data) (#122)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#226) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#227) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#243) is not in mixedCase
Function IUniswapV2Router01.WETH() (#262) is not in mixedCase
Parameter CBDC.transferForeignToken(address,address)._token (#619) is not in mixedCase
Parameter CBDC.transferForeignToken(address,address)._to (#619) is not in mixedCase
Function CBDC.Sweep(address) (#625-628) is not in mixedCase
Parameter CBDC.setSwapAndLiquifyEnabled(bool)._enabled (#631) is not in mixedCase
Variable CBDC._balances (#408) is not in mixedCase
Variable CBDC._buyLiquidityFee (#416) is not in mixedCase
Variable CBDC._buyMarketingFee (#417) is not in mixedCase
Variable CBDC._buyTeamFee (#418) is not in mixedCase
Variable CBDC._sellLiquidityFee (#420) is not in mixedCase
Variable CBDC._sellMarketingFee (#421) is not in mixedCase
Variable CBDC._sellTeamFee (#422) is not in mixedCase
Variable CBDC._liquidityShare (#424) is not in mixedCase
Variable CBDC._marketingShare (#425) is not in mixedCase
Variable CBDC._teamShare (#426) is not in mixedCase
Variable CBDC._totalTaxIfBuying (#428) is not in mixedCase
Variable CBDC._totalTaxIfSelling (#429) is not in mixedCase
Variable CBDC._totalDistributionShares (#430) is not in mixedCase
Variable CBDC._maxTxAmount (#433) is not in mixedCase
Variable CBDC._walletMax (#434) is not in mixedCase
Variable CBDC.OwnerAddress (#445) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#11)" inContext (#4-14)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in CBDC._transfer(address,address,uint256) (#681-719):
External calls:
- swapAndLiquify(contractTokenBalance) (#703)
- recipient.transfer(amount) (#645)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#703)
- recipient.transfer(amount) (#645)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,OwnerAddress,block.timestamp) (#777-784)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#706)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#714)
- finalAmount = takeFee(sender,recipient,amount) (#708-709)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#799)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#800)
- finalAmount = takeFee(sender,recipient,amount) (#708-709)
- Transfer(sender,recipient,finalAmount) (#716)
Reentrancy in CBDC.swapAndLiquify(uint256) (#728-750):
External calls:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#743)
- recipient.transfer(amount) (#645)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#746)
- recipient.transfer(amount) (#645)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#743)
- recipient.transfer(amount) (#645)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#746)
- recipient.transfer(amount) (#645)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#749)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,OwnerAddress,block.timestamp) (#777-784)
State variables written after the call(s):
- addLiquidity(tokensForLP,amountBNBLiquidity) (#749)
- _allowances[owner][spender] = amount (#547)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#548)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#749)
Reentrancy in CBDC.transferFrom(address,address,uint256) (#675-679):
External calls:
- _transfer(sender,recipient,amount) (#676)
- recipient.transfer(amount) (#645)
External calls sending eth:
- _transfer(sender,recipient,amount) (#676)
- recipient.transfer(amount) (#645)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,OwnerAddress,block.timestamp) (#777-784)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#677)
- _allowances[owner][spender] = amount (#547)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#548)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#677)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#267) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#268)
Prevent variables from having similar names.
Additional information: link
CBDC.slitherConstructorVariables() (#395-807) uses literals with too many digits:
- deadAddress = 0x000000000000000000000000000000000000dEaD (#406)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
CBDC._decimals (#402) should be constant
CBDC._name (#400) should be constant
CBDC._symbol (#401) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
waiveOwnership() should be declared external:
- Ownable.waiveOwnership() (#161-164)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#166-170)
getUnlockTime() should be declared external:
- Ownable.getUnlockTime() (#172-174)
getTime() should be declared external:
- Ownable.getTime() (#176-178)
lock(uint256) should be declared external:
- Ownable.lock(uint256) (#180-185)
unlock() should be declared external:
- Ownable.unlock() (#187-192)
name() should be declared external:
- CBDC.name() (#500-502)
symbol() should be declared external:
- CBDC.symbol() (#504-506)
decimals() should be declared external:
- CBDC.decimals() (#508-510)
totalSupply() should be declared external:
- CBDC.totalSupply() (#512-514)
allowance(address,address) should be declared external:
- CBDC.allowance(address,address) (#520-522)
increaseAllowance(address,uint256) should be declared external:
- CBDC.increaseAllowance(address,uint256) (#524-527)
decreaseAllowance(address,uint256) should be declared external:
- CBDC.decreaseAllowance(address,uint256) (#529-532)
minimumTokensBeforeSwapAmount() should be declared external:
- CBDC.minimumTokensBeforeSwapAmount() (#534-536)
approve(address,uint256) should be declared external:
- CBDC.approve(address,uint256) (#538-541)
setMarketPairStatus(address,bool) should be declared external:
- CBDC.setMarketPairStatus(address,bool) (#551-553)
setIsExcludedFromFee(address,bool) should be declared external:
- CBDC.setIsExcludedFromFee(address,bool) (#559-561)
transferForeignToken(address,address) should be declared external:
- CBDC.transferForeignToken(address,address) (#619-623)
setSwapAndLiquifyEnabled(bool) should be declared external:
- CBDC.setSwapAndLiquifyEnabled(bool) (#631-634)
setSwapAndLiquifyByLimitOnly(bool) should be declared external:
- CBDC.setSwapAndLiquifyByLimitOnly(bool) (#636-638)
getCirculatingSupply() should be declared external:
- CBDC.getCirculatingSupply() (#640-642)
changeRouterVersion(address) should be declared external:
- CBDC.changeRouterVersion(address) (#648-665)
transfer(address,uint256) should be declared external:
- CBDC.transfer(address,uint256) (#670-673)
transferFrom(address,address,uint256) should be declared external:
- CBDC.transferFrom(address,address,uint256) (#675-679)
Use the external attribute for functions never called from the contract.
Additional information: link
Average 30d PancakeSwap liquidity is low.
Average 30d PancakeSwap volume is low.
Number of Binance Smart Chain (BSC) token holders is low.
Average PancakeSwap trading volume, liqudity, number of swaps are low. Token seems to be inactive.
Token is deployed only at one blockchain
Token has only one trading pair
Contract has 9% buy tax and 10% sell tax.
Taxes are low and contract ownership is renounced.
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