INDEPENDANCE.addLiquidity(uint256,uint256) (#729-742) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#734-741)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in INDEPENDANCE._transfer(address,address,uint256) (#638-676):
External calls:
- swapAndLiquify(contractTokenBalance) (#660)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#734-741)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#718-724)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#660)
- recipient.transfer(amount) (#602)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#734-741)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#663)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#671)
- finalAmount = takeFee(sender,recipient,amount) (#665-666)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#756)
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.
Contract ownership is not renounced (belongs to a wallet)
INDEPENDANCE.addLiquidity(uint256,uint256) (#729-742) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#734-741)
Ensure that all the return values of the function calls are used.
Additional information: link
INDEPENDANCE.allowance(address,address).owner (#496) shadows:
- Ownable.owner() (#153-155) (function)
INDEPENDANCE._approve(address,address,uint256).owner (#515) shadows:
- Ownable.owner() (#153-155) (function)
Rename the local variables that shadow another component.
Additional information: link
INDEPENDANCE.setBuyTaxes(uint256,uint256,uint256) (#535-541) should emit an event for:
- _totalTaxIfBuying = _buyLiquidityFee.add(_buyMarketingFee).add(_buyBuyBackFee) (#540)
INDEPENDANCE.setSellTaxes(uint256,uint256,uint256) (#543-549) should emit an event for:
- _totalTaxIfSelling = _sellLiquidityFee.add(_sellMarketingFee).add(_sellBuyBackFee) (#548)
INDEPENDANCE.setDistributionSettings(uint256,uint256,uint256) (#551-557) should emit an event for:
- _liquidityShare = newLiquidityShare (#552)
- _BuyBackShare = newBuyBackShare (#554)
- _totalDistributionShares = _liquidityShare.add(_marketingShare).add(_BuyBackShare) (#556)
INDEPENDANCE.setMaxTxAmount(uint256) (#559-562) should emit an event for:
- _maxTxAmount = maxTxAmount (#561)
INDEPENDANCE.setWalletLimit(uint256) (#572-574) should emit an event for:
- _walletMax = newLimit (#573)
INDEPENDANCE.setNumTokensBeforeSwap(uint256) (#576-578) should emit an event for:
- minimumTokensBeforeSwap = newLimit (#577)
Emit an event for critical parameter changes.
Additional information: link
INDEPENDANCE.setMarketingWalletAddress(address).newAddress (#580) lacks a zero-check on :
- marketingWalletAddress = address(newAddress) (#581)
INDEPENDANCE.setBuyBackWalletAddress(address).newAddress (#584) lacks a zero-check on :
- BuyBackWalletAddress = address(newAddress) (#585)
Check that the address is not zero.
Additional information: link
Reentrancy in INDEPENDANCE.changeRouterVersion(address) (#605-622):
External calls:
- newPairAddress = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#613-614)
State variables written after the call(s):
- isMarketPair[address(uniswapPair)] = true (#621)
- isWalletLimitExempt[address(uniswapPair)] = true (#620)
- uniswapPair = newPairAddress (#617)
- uniswapV2Router = _uniswapV2Router (#618)
Reentrancy in INDEPENDANCE.constructor() (#446-474):
External calls:
- uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#450-451)
State variables written after the call(s):
- _allowances[address(this)][address(uniswapV2Router)] = _totalSupply (#454)
- _balances[_msgSender()] = _totalSupply (#472)
- _totalDistributionShares = _liquidityShare.add(_marketingShare).add(_BuyBackShare) (#461)
- _totalTaxIfBuying = _buyLiquidityFee.add(_buyMarketingFee).add(_buyBuyBackFee) (#459)
- _totalTaxIfSelling = _sellLiquidityFee.add(_sellMarketingFee).add(_sellBuyBackFee) (#460)
- isExcludedFromFee[owner()] = true (#456)
- isExcludedFromFee[address(this)] = true (#457)
- isMarketPair[address(uniswapPair)] = true (#470)
- isTxLimitExempt[owner()] = true (#467)
- isTxLimitExempt[address(this)] = true (#468)
- isWalletLimitExempt[owner()] = true (#463)
- isWalletLimitExempt[address(uniswapPair)] = true (#464)
- isWalletLimitExempt[address(this)] = true (#465)
- uniswapV2Router = _uniswapV2Router (#453)
Reentrancy in INDEPENDANCE.swapAndLiquify(uint256) (#685-707):
External calls:
- swapTokensForEth(tokensForSwap) (#690)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#718-724)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#706)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#734-741)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#700)
- recipient.transfer(amount) (#602)
- transferToAddressETH(BuyBackWalletAddress,amountBNBBuyBack) (#703)
- recipient.transfer(amount) (#602)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#706)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#734-741)
State variables written after the call(s):
- addLiquidity(tokensForLP,amountBNBLiquidity) (#706)
- _allowances[owner][spender] = amount (#519)
Reentrancy in INDEPENDANCE.transferFrom(address,address,uint256) (#632-636):
External calls:
- _transfer(sender,recipient,amount) (#633)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#734-741)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#718-724)
External calls sending eth:
- _transfer(sender,recipient,amount) (#633)
- recipient.transfer(amount) (#602)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#734-741)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#634)
- _allowances[owner][spender] = amount (#519)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in INDEPENDANCE._transfer(address,address,uint256) (#638-676):
External calls:
- swapAndLiquify(contractTokenBalance) (#660)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#734-741)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#718-724)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#660)
- recipient.transfer(amount) (#602)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#734-741)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#757)
- finalAmount = takeFee(sender,recipient,amount) (#665-666)
- Transfer(sender,recipient,finalAmount) (#673)
Reentrancy in INDEPENDANCE.constructor() (#446-474):
External calls:
- uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#450-451)
Event emitted after the call(s):
- Transfer(address(0),_msgSender(),_totalSupply) (#473)
Reentrancy in INDEPENDANCE.swapAndLiquify(uint256) (#685-707):
External calls:
- swapTokensForEth(tokensForSwap) (#690)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#718-724)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#706)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#734-741)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#700)
- recipient.transfer(amount) (#602)
- transferToAddressETH(BuyBackWalletAddress,amountBNBBuyBack) (#703)
- recipient.transfer(amount) (#602)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#706)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#734-741)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#520)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#706)
Reentrancy in INDEPENDANCE.swapTokensForEth(uint256) (#709-727):
External calls:
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#718-724)
Event emitted after the call(s):
- SwapTokensForETH(tokenAmount,path) (#726)
Reentrancy in INDEPENDANCE.transferFrom(address,address,uint256) (#632-636):
External calls:
- _transfer(sender,recipient,amount) (#633)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#734-741)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#718-724)
External calls sending eth:
- _transfer(sender,recipient,amount) (#633)
- recipient.transfer(amount) (#602)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#734-741)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#520)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#634)
Apply the check-effects-interactions pattern.
Additional information: link
Address.isContract(address) (#85-94) uses assembly
- INLINE ASM (#92)
Address._functionCallWithValue(address,bytes,uint256,string) (#121-138) uses assembly
- INLINE ASM (#130-133)
Do not use evm assembly.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#121-138) is never used and should be removed
Address.functionCall(address,bytes) (#104-106) is never used and should be removed
Address.functionCall(address,bytes,string) (#108-110) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#112-114) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#116-119) is never used and should be removed
Address.isContract(address) (#85-94) is never used and should be removed
Address.sendValue(address,uint256) (#96-102) is never used and should be removed
Context._msgData() (#12-15) is never used and should be removed
SafeMath.mod(uint256,uint256) (#73-75) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#77-80) is never used and should be removed
Remove unused functions.
Additional information: link
Low level call in Address.sendValue(address,uint256) (#96-102):
- (success) = recipient.call{value: amount}() (#100)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#121-138):
- (success,returndata) = target.call{value: weiValue}(data) (#124)
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() (#205) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#206) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#222) is not in mixedCase
Function IUniswapV2Router01.WETH() (#241) is not in mixedCase
Parameter INDEPENDANCE.setSwapAndLiquifyEnabled(bool)._enabled (#588) is not in mixedCase
Variable INDEPENDANCE.BuyBackWalletAddress (#384) is not in mixedCase
Variable INDEPENDANCE._balances (#387) is not in mixedCase
Variable INDEPENDANCE._buyLiquidityFee (#395) is not in mixedCase
Variable INDEPENDANCE._buyMarketingFee (#396) is not in mixedCase
Variable INDEPENDANCE._buyBuyBackFee (#397) is not in mixedCase
Variable INDEPENDANCE._sellLiquidityFee (#398) is not in mixedCase
Variable INDEPENDANCE._sellMarketingFee (#399) is not in mixedCase
Variable INDEPENDANCE._sellBuyBackFee (#400) is not in mixedCase
Variable INDEPENDANCE._liquidityShare (#402) is not in mixedCase
Variable INDEPENDANCE._marketingShare (#403) is not in mixedCase
Variable INDEPENDANCE._BuyBackShare (#404) is not in mixedCase
Variable INDEPENDANCE._totalTaxIfBuying (#406) is not in mixedCase
Variable INDEPENDANCE._totalTaxIfSelling (#407) is not in mixedCase
Variable INDEPENDANCE._totalDistributionShares (#408) is not in mixedCase
Variable INDEPENDANCE._maxTxAmount (#411) is not in mixedCase
Variable INDEPENDANCE._walletMax (#412) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#13)" inContext (#6-16)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in INDEPENDANCE._transfer(address,address,uint256) (#638-676):
External calls:
- swapAndLiquify(contractTokenBalance) (#660)
- recipient.transfer(amount) (#602)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#660)
- recipient.transfer(amount) (#602)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#734-741)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#663)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#671)
- finalAmount = takeFee(sender,recipient,amount) (#665-666)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#756)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#757)
- finalAmount = takeFee(sender,recipient,amount) (#665-666)
- Transfer(sender,recipient,finalAmount) (#673)
Reentrancy in INDEPENDANCE.swapAndLiquify(uint256) (#685-707):
External calls:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#700)
- recipient.transfer(amount) (#602)
- transferToAddressETH(BuyBackWalletAddress,amountBNBBuyBack) (#703)
- recipient.transfer(amount) (#602)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#700)
- recipient.transfer(amount) (#602)
- transferToAddressETH(BuyBackWalletAddress,amountBNBBuyBack) (#703)
- recipient.transfer(amount) (#602)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#706)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#734-741)
State variables written after the call(s):
- addLiquidity(tokensForLP,amountBNBLiquidity) (#706)
- _allowances[owner][spender] = amount (#519)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#520)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#706)
Reentrancy in INDEPENDANCE.transferFrom(address,address,uint256) (#632-636):
External calls:
- _transfer(sender,recipient,amount) (#633)
- recipient.transfer(amount) (#602)
External calls sending eth:
- _transfer(sender,recipient,amount) (#633)
- recipient.transfer(amount) (#602)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#734-741)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#634)
- _allowances[owner][spender] = amount (#519)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#520)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#634)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#246) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#247)
Prevent variables from having similar names.
Additional information: link
INDEPENDANCE.slitherConstructorVariables() (#374-764) uses literals with too many digits:
- deadAddress = 0x000000000000000000000000000000000000dEaD (#385)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
Ownable._previousOwner (#143) is never used in INDEPENDANCE (#374-764)
Remove unused state variables.
Additional information: link
INDEPENDANCE._decimals (#381) should be constant
INDEPENDANCE._name (#379) should be constant
INDEPENDANCE._symbol (#380) should be constant
INDEPENDANCE._totalSupply (#410) should be constant
Ownable._previousOwner (#143) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
waiveOwnership() should be declared external:
- Ownable.waiveOwnership() (#162-165)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#167-171)
name() should be declared external:
- INDEPENDANCE.name() (#476-478)
symbol() should be declared external:
- INDEPENDANCE.symbol() (#480-482)
decimals() should be declared external:
- INDEPENDANCE.decimals() (#484-486)
totalSupply() should be declared external:
- INDEPENDANCE.totalSupply() (#488-490)
allowance(address,address) should be declared external:
- INDEPENDANCE.allowance(address,address) (#496-498)
increaseAllowance(address,uint256) should be declared external:
- INDEPENDANCE.increaseAllowance(address,uint256) (#500-503)
decreaseAllowance(address,uint256) should be declared external:
- INDEPENDANCE.decreaseAllowance(address,uint256) (#505-508)
approve(address,uint256) should be declared external:
- INDEPENDANCE.approve(address,uint256) (#510-513)
addMarketPair(address) should be declared external:
- INDEPENDANCE.addMarketPair(address) (#523-525)
setIsExcludedFromFee(address,bool) should be declared external:
- INDEPENDANCE.setIsExcludedFromFee(address,bool) (#531-533)
setSwapAndLiquifyEnabled(bool) should be declared external:
- INDEPENDANCE.setSwapAndLiquifyEnabled(bool) (#588-591)
setSwapAndLiquifyByLimitOnly(bool) should be declared external:
- INDEPENDANCE.setSwapAndLiquifyByLimitOnly(bool) (#593-595)
getCirculatingSupply() should be declared external:
- INDEPENDANCE.getCirculatingSupply() (#597-599)
changeRouterVersion(address) should be declared external:
- INDEPENDANCE.changeRouterVersion(address) (#605-622)
transfer(address,uint256) should be declared external:
- INDEPENDANCE.transfer(address,uint256) (#627-630)
transferFrom(address,address,uint256) should be declared external:
- INDEPENDANCE.transferFrom(address,address,uint256) (#632-636)
Use the external attribute for functions never called from the contract.
Additional information: link
Contract ticker (Inde Inu) contains non-alphanumeric characters.
Not a direct threat, but may indicate unreliable intentions of developer. Non-alphanumeric chars (,.;!#*&") are extremely rare among low risk tokens.
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