Baa Inu is a defi project running on Binance Smart Chain
BaaInu.addLiquidity(uint256,uint256) (#749-762) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#754-761)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in BaaInu._transfer(address,address,uint256) (#658-696):
External calls:
- swapAndLiquify(contractTokenBalance) (#680)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#754-761)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#738-744)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#680)
- recipient.transfer(amount) (#622)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#754-761)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#683)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#691)
- finalAmount = takeFee(sender,recipient,amount) (#685-686)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#776)
Apply the check-effects-interactions pattern.
Additional information: link
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
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.
BaaInu.addLiquidity(uint256,uint256) (#749-762) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#754-761)
Ensure that all the return values of the function calls are used.
Additional information: link
BaaInu.allowance(address,address).owner (#511) shadows:
- Ownable.owner() (#158-160) (function)
BaaInu._approve(address,address,uint256).owner (#534) shadows:
- Ownable.owner() (#158-160) (function)
Rename the local variables that shadow another component.
Additional information: link
BaaInu.setBuyTaxes(uint256,uint256,uint256) (#555-561) should emit an event for:
- _totalTaxIfBuying = _buyLiquidityFee.add(_buyMarketingFee).add(_buyTeamFee) (#560)
BaaInu.setSelTaxes(uint256,uint256,uint256) (#563-569) should emit an event for:
- _totalTaxIfSelling = _sellLiquidityFee.add(_sellMarketingFee).add(_sellTeamFee) (#568)
BaaInu.setDistributionSettings(uint256,uint256,uint256) (#571-577) should emit an event for:
- _liquidityShare = newLiquidityShare (#572)
- _teamShare = newTeamShare (#574)
- _totalDistributionShares = _liquidityShare.add(_marketingShare).add(_teamShare) (#576)
BaaInu.setMaxTxAmount(uint256) (#579-581) should emit an event for:
- _maxTxAmount = maxTxAmount (#580)
BaaInu.setWalletLimit(uint256) (#592-594) should emit an event for:
- _walletMax = newLimit (#593)
BaaInu.setNumTokensBeforeSwap(uint256) (#596-598) should emit an event for:
- minimumTokensBeforeSwap = newLimit (#597)
Emit an event for critical parameter changes.
Additional information: link
BaaInu.setMarketingWalletAddress(address).newAddress (#600) lacks a zero-check on :
- marketingWalletAddress = address(newAddress) (#601)
BaaInu.setTeamWalletAddress(address).newAddress (#604) lacks a zero-check on :
- teamWalletAddress = address(newAddress) (#605)
Check that the address is not zero.
Additional information: link
Reentrancy in BaaInu.changeRouterVersion(address) (#625-642):
External calls:
- newPairAddress = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#633-634)
State variables written after the call(s):
- isMarketPair[address(uniswapPair)] = true (#641)
- isWalletLimitExempt[address(uniswapPair)] = true (#640)
- uniswapPair = newPairAddress (#637)
- uniswapV2Router = _uniswapV2Router (#638)
Reentrancy in BaaInu.constructor() (#458-489):
External calls:
- uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#463-464)
State variables written after the call(s):
- _allowances[address(this)][address(uniswapV2Router)] = _totalSupply (#467)
- _balances[_msgSender()] = _totalSupply (#487)
- _totalDistributionShares = _liquidityShare.add(_marketingShare).add(_teamShare) (#476)
- _totalTaxIfBuying = _buyLiquidityFee.add(_buyMarketingFee).add(_buyTeamFee) (#474)
- _totalTaxIfSelling = _sellLiquidityFee.add(_sellMarketingFee).add(_sellTeamFee) (#475)
- isExcludedFromFee[owner()] = true (#469)
- isExcludedFromFee[address(this)] = true (#470)
- isMarketPair[address(uniswapPair)] = true (#485)
- isTxLimitExempt[owner()] = true (#482)
- isTxLimitExempt[address(this)] = true (#483)
- isWalletLimitExempt[owner()] = true (#478)
- isWalletLimitExempt[address(uniswapPair)] = true (#479)
- isWalletLimitExempt[address(this)] = true (#480)
- uniswapV2Router = _uniswapV2Router (#466)
Reentrancy in BaaInu.swapAndLiquify(uint256) (#705-727):
External calls:
- swapTokensForEth(tokensForSwap) (#710)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#738-744)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#726)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#754-761)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#720)
- recipient.transfer(amount) (#622)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#723)
- recipient.transfer(amount) (#622)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#726)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#754-761)
State variables written after the call(s):
- addLiquidity(tokensForLP,amountBNBLiquidity) (#726)
- _allowances[owner][spender] = amount (#538)
Reentrancy in BaaInu.transferFrom(address,address,uint256) (#652-656):
External calls:
- _transfer(sender,recipient,amount) (#653)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#754-761)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#738-744)
External calls sending eth:
- _transfer(sender,recipient,amount) (#653)
- recipient.transfer(amount) (#622)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#754-761)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#654)
- _allowances[owner][spender] = amount (#538)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in BaaInu._transfer(address,address,uint256) (#658-696):
External calls:
- swapAndLiquify(contractTokenBalance) (#680)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#754-761)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#738-744)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#680)
- recipient.transfer(amount) (#622)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#754-761)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#777)
- finalAmount = takeFee(sender,recipient,amount) (#685-686)
- Transfer(sender,recipient,finalAmount) (#693)
Reentrancy in BaaInu.constructor() (#458-489):
External calls:
- uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#463-464)
Event emitted after the call(s):
- Transfer(address(0),_msgSender(),_totalSupply) (#488)
Reentrancy in BaaInu.swapAndLiquify(uint256) (#705-727):
External calls:
- swapTokensForEth(tokensForSwap) (#710)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#738-744)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#726)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#754-761)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#720)
- recipient.transfer(amount) (#622)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#723)
- recipient.transfer(amount) (#622)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#726)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#754-761)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#539)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#726)
Reentrancy in BaaInu.swapTokensForEth(uint256) (#729-747):
External calls:
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#738-744)
Event emitted after the call(s):
- SwapTokensForETH(tokenAmount,path) (#746)
Reentrancy in BaaInu.transferFrom(address,address,uint256) (#652-656):
External calls:
- _transfer(sender,recipient,amount) (#653)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#754-761)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#738-744)
External calls sending eth:
- _transfer(sender,recipient,amount) (#653)
- recipient.transfer(amount) (#622)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#754-761)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#539)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#654)
Apply the check-effects-interactions pattern.
Additional information: link
Address.isContract(address) (#89-98) uses assembly
- INLINE ASM (#96)
Address._functionCallWithValue(address,bytes,uint256,string) (#125-142) uses assembly
- INLINE ASM (#134-137)
Do not use evm assembly.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#125-142) is never used and should be removed
Address.functionCall(address,bytes) (#108-110) is never used and should be removed
Address.functionCall(address,bytes,string) (#112-114) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#116-118) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#120-123) is never used and should be removed
Address.isContract(address) (#89-98) is never used and should be removed
Address.sendValue(address,uint256) (#100-106) is never used and should be removed
Context._msgData() (#16-19) is never used and should be removed
SafeMath.mod(uint256,uint256) (#77-79) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#81-84) is never used and should be removed
Remove unused functions.
Additional information: link
BaaInu._totalSupply (#422) is set pre-construction with a non-constant function or state variable:
- 1000000000000000 * 10 ** _decimals
BaaInu._maxTxAmount (#423) is set pre-construction with a non-constant function or state variable:
- 10000000000000 * 10 ** _decimals
BaaInu._walletMax (#424) is set pre-construction with a non-constant function or state variable:
- 10000000000000 * 10 ** _decimals
BaaInu.minimumTokensBeforeSwap (#425) is set pre-construction with a non-constant function or state variable:
- 100 * 10 ** _decimals
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) (#100-106):
- (success) = recipient.call{value: amount}() (#104)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#125-142):
- (success,returndata) = target.call{value: weiValue}(data) (#128)
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() (#215) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#216) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#232) is not in mixedCase
Function IUniswapV2Router01.WETH() (#251) is not in mixedCase
Function BaaInu._isExcludedFromFee(address) (#551-553) is not in mixedCase
Parameter BaaInu.setSwapAndLiquifyEnabled(bool)._enabled (#608) is not in mixedCase
Variable BaaInu._balances (#397) is not in mixedCase
Variable BaaInu._buyLiquidityFee (#405) is not in mixedCase
Variable BaaInu._buyMarketingFee (#406) is not in mixedCase
Variable BaaInu._buyTeamFee (#407) is not in mixedCase
Variable BaaInu._sellLiquidityFee (#409) is not in mixedCase
Variable BaaInu._sellMarketingFee (#410) is not in mixedCase
Variable BaaInu._sellTeamFee (#411) is not in mixedCase
Variable BaaInu._liquidityShare (#413) is not in mixedCase
Variable BaaInu._marketingShare (#414) is not in mixedCase
Variable BaaInu._teamShare (#415) is not in mixedCase
Variable BaaInu._totalTaxIfBuying (#417) is not in mixedCase
Variable BaaInu._totalTaxIfSelling (#418) is not in mixedCase
Variable BaaInu._totalDistributionShares (#419) is not in mixedCase
Variable BaaInu._maxTxAmount (#423) is not in mixedCase
Variable BaaInu._walletMax (#424) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#17)" inContext (#10-20)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in BaaInu._transfer(address,address,uint256) (#658-696):
External calls:
- swapAndLiquify(contractTokenBalance) (#680)
- recipient.transfer(amount) (#622)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#680)
- recipient.transfer(amount) (#622)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#754-761)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#683)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#691)
- finalAmount = takeFee(sender,recipient,amount) (#685-686)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#776)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#777)
- finalAmount = takeFee(sender,recipient,amount) (#685-686)
- Transfer(sender,recipient,finalAmount) (#693)
Reentrancy in BaaInu.swapAndLiquify(uint256) (#705-727):
External calls:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#720)
- recipient.transfer(amount) (#622)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#723)
- recipient.transfer(amount) (#622)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#720)
- recipient.transfer(amount) (#622)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#723)
- recipient.transfer(amount) (#622)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#726)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#754-761)
State variables written after the call(s):
- addLiquidity(tokensForLP,amountBNBLiquidity) (#726)
- _allowances[owner][spender] = amount (#538)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#539)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#726)
Reentrancy in BaaInu.transferFrom(address,address,uint256) (#652-656):
External calls:
- _transfer(sender,recipient,amount) (#653)
- recipient.transfer(amount) (#622)
External calls sending eth:
- _transfer(sender,recipient,amount) (#653)
- recipient.transfer(amount) (#622)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#754-761)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#654)
- _allowances[owner][spender] = amount (#538)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#539)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#654)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#256) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#257)
Prevent variables from having similar names.
Additional information: link
BaaInu.slitherConstructorVariables() (#384-784) uses literals with too many digits:
- deadAddress = 0x000000000000000000000000000000000000dEaD (#395)
BaaInu.slitherConstructorVariables() (#384-784) uses literals with too many digits:
- _totalSupply = 1000000000000000 * 10 ** _decimals (#422)
BaaInu.slitherConstructorVariables() (#384-784) uses literals with too many digits:
- _maxTxAmount = 10000000000000 * 10 ** _decimals (#423)
BaaInu.slitherConstructorVariables() (#384-784) uses literals with too many digits:
- _walletMax = 10000000000000 * 10 ** _decimals (#424)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
Ownable.asdasd (#147) is never used in BaaInu (#384-784)
Ownable._lockTime (#148) is never used in BaaInu (#384-784)
Remove unused state variables.
Additional information: link
BaaInu._decimals (#391) should be constant
BaaInu._name (#389) should be constant
BaaInu._symbol (#390) should be constant
Ownable._lockTime (#148) should be constant
Ownable.asdasd (#147) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
waiveOwnership() should be declared external:
- Ownable.waiveOwnership() (#167-170)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#172-176)
getTime() should be declared external:
- Ownable.getTime() (#178-180)
name() should be declared external:
- BaaInu.name() (#491-493)
symbol() should be declared external:
- BaaInu.symbol() (#495-497)
decimals() should be declared external:
- BaaInu.decimals() (#499-501)
totalSupply() should be declared external:
- BaaInu.totalSupply() (#503-505)
allowance(address,address) should be declared external:
- BaaInu.allowance(address,address) (#511-513)
increaseAllowance(address,uint256) should be declared external:
- BaaInu.increaseAllowance(address,uint256) (#515-518)
decreaseAllowance(address,uint256) should be declared external:
- BaaInu.decreaseAllowance(address,uint256) (#520-523)
minimumTokensBeforeSwapAmount() should be declared external:
- BaaInu.minimumTokensBeforeSwapAmount() (#525-527)
approve(address,uint256) should be declared external:
- BaaInu.approve(address,uint256) (#529-532)
setMarketPairStatus(address,bool) should be declared external:
- BaaInu.setMarketPairStatus(address,bool) (#542-544)
_isExcludedFromFee(address) should be declared external:
- BaaInu._isExcludedFromFee(address) (#551-553)
setSwapAndLiquifyEnabled(bool) should be declared external:
- BaaInu.setSwapAndLiquifyEnabled(bool) (#608-611)
setSwapAndLiquifyByLimitOnly(bool) should be declared external:
- BaaInu.setSwapAndLiquifyByLimitOnly(bool) (#613-615)
getCirculatingSupply() should be declared external:
- BaaInu.getCirculatingSupply() (#617-619)
changeRouterVersion(address) should be declared external:
- BaaInu.changeRouterVersion(address) (#625-642)
transfer(address,uint256) should be declared external:
- BaaInu.transfer(address,uint256) (#647-650)
transferFrom(address,address,uint256) should be declared external:
- BaaInu.transferFrom(address,address,uint256) (#652-656)
Use the external attribute for functions never called from the contract.
Additional information: link
Contract ownership is semi-renounced (passed to a contract)
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
Unable to find audit link on the website
Unable to find whitepaper link on the website
Token is not listed at Mobula.Finance
Additional information: link
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of scam / price dump / death
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Telegram account has relatively few subscribers
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account