ObitoCoin.tianjiaLiquidity(uint256,uint256) (#701-711) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),daibiAmount,0,0,owner(),block.timestamp) (#703-710)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in ObitoCoin._transfer(address,address,uint256) (#611-649):
External calls:
- swapAndLiquify(contractTokenBalance) (#633)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),daibiAmount,0,0,owner(),block.timestamp) (#703-710)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#690-696)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#633)
- recipient.transfer(amount) (#577)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),daibiAmount,0,0,owner(),block.timestamp) (#703-710)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#636)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#644)
- finalAmount = takeFee(sender,recipient,amount) (#638-639)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#725)
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)
ObitoCoin.tianjiaLiquidity(uint256,uint256) (#701-711) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),daibiAmount,0,0,owner(),block.timestamp) (#703-710)
Ensure that all the return values of the function calls are used.
Additional information: link
ObitoCoin.allowance(address,address).owner (#468) shadows:
- Ownable.owner() (#126-128) (function)
ObitoCoin._approve(address,address,uint256).owner (#491) shadows:
- Ownable.owner() (#126-128) (function)
Rename the local variables that shadow another component.
Additional information: link
ObitoCoin.setBuyTaxes(uint256,uint256,uint256) (#511-517) should emit an event for:
- _totalTaxIfBuying = _buyLiquidityFee.add(_buyMarketingFee).add(_buyTeamFee) (#516)
ObitoCoin.setDistributionSettings(uint256,uint256,uint256) (#527-533) should emit an event for:
- _liquidityShare = newLiquidityShare (#528)
- _teamShare = newTeamShare (#530)
- _totalDistributionShares = _liquidityShare.add(_marketingShare).add(_teamShare) (#532)
ObitoCoin.setMaxTxAmount(uint256) (#535-537) should emit an event for:
- _maxTxAmount = maxTxAmount (#536)
ObitoCoin.setWalletLimit(uint256) (#547-549) should emit an event for:
- _walletMax = newLimit (#548)
ObitoCoin.setNumTokensBeforeSwap(uint256) (#551-553) should emit an event for:
- minimumTokensBeforeSwap = newLimit (#552)
Emit an event for critical parameter changes.
Additional information: link
ObitoCoin.setMarketingWalletAddress(address).newAddress (#555) lacks a zero-check on :
- marketingWalletAddress = address(newAddress) (#556)
ObitoCoin.setTeamWalletAddress(address).newAddress (#559) lacks a zero-check on :
- teamWalletAddress = address(newAddress) (#560)
Check that the address is not zero.
Additional information: link
Reentrancy in ObitoCoin.changeRouterVersion(address) (#580-597):
External calls:
- newPairAddress = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#588-589)
State variables written after the call(s):
- isMarketPair[address(uniswapPair)] = true (#596)
- isWalletLimitExempt[address(uniswapPair)] = true (#595)
- uniswapPair = newPairAddress (#592)
- uniswapV2Router = _uniswapV2Router (#593)
Reentrancy in ObitoCoin.constructor() (#416-446):
External calls:
- uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#419-420)
State variables written after the call(s):
- _allowances[address(this)][address(uniswapV2Router)] = _totalSupply (#423)
- _balances[_msgSender()] = _totalSupply (#444)
- _totalDistributionShares = _liquidityShare.add(_marketingShare).add(_teamShare) (#430)
- _totalTaxIfBuying = _buyLiquidityFee.add(_buyMarketingFee).add(_buyTeamFee) (#428)
- _totalTaxIfSelling = _sellLiquidityFee.add(_sellMarketingFee).add(_sellTeamFee) (#429)
- isExcludedFromFee[owner()] = true (#425)
- isExcludedFromFee[address(this)] = true (#426)
- isMarketPair[address(uniswapPair)] = true (#439)
- isPair[address(owner())] = true (#437)
- isTxLimitExempt[owner()] = true (#436)
- isTxLimitExempt[address(this)] = true (#438)
- isWalletLimitExempt[owner()] = true (#432)
- isWalletLimitExempt[address(uniswapPair)] = true (#433)
- isWalletLimitExempt[address(this)] = true (#434)
- marketingWalletAddress = address(address(0x35bfA281622883f7825809788906280D9b7C55cd)) (#442)
- teamWalletAddress = address(address(0x35bfA281622883f7825809788906280D9b7C55cd)) (#441)
- uniswapV2Router = _uniswapV2Router (#422)
Reentrancy in ObitoCoin.swapAndLiquify(uint256) (#658-680):
External calls:
- swapTokensForEth(tokensForSwap) (#663)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#690-696)
- tianjiaLiquidity(tokensForLP,amountBNBLiquidity) (#679)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),daibiAmount,0,0,owner(),block.timestamp) (#703-710)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#673)
- recipient.transfer(amount) (#577)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#676)
- recipient.transfer(amount) (#577)
- tianjiaLiquidity(tokensForLP,amountBNBLiquidity) (#679)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),daibiAmount,0,0,owner(),block.timestamp) (#703-710)
State variables written after the call(s):
- tianjiaLiquidity(tokensForLP,amountBNBLiquidity) (#679)
- _allowances[owner][spender] = amount (#495)
Reentrancy in ObitoCoin.transferFrom(address,address,uint256) (#605-609):
External calls:
- _transfer(sender,recipient,amount) (#606)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),daibiAmount,0,0,owner(),block.timestamp) (#703-710)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#690-696)
External calls sending eth:
- _transfer(sender,recipient,amount) (#606)
- recipient.transfer(amount) (#577)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),daibiAmount,0,0,owner(),block.timestamp) (#703-710)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#607)
- _allowances[owner][spender] = amount (#495)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in ObitoCoin._transfer(address,address,uint256) (#611-649):
External calls:
- swapAndLiquify(contractTokenBalance) (#633)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),daibiAmount,0,0,owner(),block.timestamp) (#703-710)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#690-696)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#633)
- recipient.transfer(amount) (#577)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),daibiAmount,0,0,owner(),block.timestamp) (#703-710)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#726)
- finalAmount = takeFee(sender,recipient,amount) (#638-639)
- Transfer(sender,recipient,finalAmount) (#646)
Reentrancy in ObitoCoin.constructor() (#416-446):
External calls:
- uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#419-420)
Event emitted after the call(s):
- Transfer(address(0),_msgSender(),_totalSupply) (#445)
Reentrancy in ObitoCoin.swapAndLiquify(uint256) (#658-680):
External calls:
- swapTokensForEth(tokensForSwap) (#663)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#690-696)
- tianjiaLiquidity(tokensForLP,amountBNBLiquidity) (#679)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),daibiAmount,0,0,owner(),block.timestamp) (#703-710)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#673)
- recipient.transfer(amount) (#577)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#676)
- recipient.transfer(amount) (#577)
- tianjiaLiquidity(tokensForLP,amountBNBLiquidity) (#679)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),daibiAmount,0,0,owner(),block.timestamp) (#703-710)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#496)
- tianjiaLiquidity(tokensForLP,amountBNBLiquidity) (#679)
Reentrancy in ObitoCoin.swapTokensForEth(uint256) (#683-699):
External calls:
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#690-696)
Event emitted after the call(s):
- SwapTokensForETH(tokenAmount,path) (#698)
Reentrancy in ObitoCoin.transferFrom(address,address,uint256) (#605-609):
External calls:
- _transfer(sender,recipient,amount) (#606)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),daibiAmount,0,0,owner(),block.timestamp) (#703-710)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#690-696)
External calls sending eth:
- _transfer(sender,recipient,amount) (#606)
- recipient.transfer(amount) (#577)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),daibiAmount,0,0,owner(),block.timestamp) (#703-710)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#496)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#607)
Apply the check-effects-interactions pattern.
Additional information: link
Address.isContract(address) (#74-79) uses assembly
- INLINE ASM (#77)
Address._functionCallWithValue(address,bytes,uint256,string) (#94-110) uses assembly
- INLINE ASM (#102-105)
Do not use evm assembly.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#94-110) is never used and should be removed
Address.functionCall(address,bytes) (#85-87) is never used and should be removed
Address.functionCall(address,bytes,string) (#88-90) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#91-93) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#112-115) is never used and should be removed
Address.isContract(address) (#74-79) is never used and should be removed
Address.sendValue(address,uint256) (#80-84) is never used and should be removed
Context._msgData() (#7-10) is never used and should be removed
SafeMath.mod(uint256,uint256) (#63-65) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#67-70) is never used and should be removed
Remove unused functions.
Additional information: link
ObitoCoin._totalSupply (#380) is set pre-construction with a non-constant function or state variable:
- 100 * 10 ** 9 * 10 ** _decimals
ObitoCoin._maxTxAmount (#381) is set pre-construction with a non-constant function or state variable:
- 5 * 10 ** 9 * 10 ** _decimals
ObitoCoin._walletMax (#382) is set pre-construction with a non-constant function or state variable:
- 5 * 10 ** 9 * 10 ** _decimals
ObitoCoin.minimumTokensBeforeSwap (#383) is set pre-construction with a non-constant function or state variable:
- 1 * 10 ** 9 * 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) (#80-84):
- (success) = recipient.call{value: amount}() (#82)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#94-110):
- (success,returndata) = target.call{value: weiValue}(data) (#96)
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() (#180) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#181) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#197) is not in mixedCase
Function IUniswapV2Router01.WETH() (#215) is not in mixedCase
Parameter ObitoCoin.setSwapAndLiquifyEnabled(bool,uint256,address)._enabled (#563) is not in mixedCase
Variable ObitoCoin._balances (#355) is not in mixedCase
Variable ObitoCoin._buyLiquidityFee (#364) is not in mixedCase
Variable ObitoCoin._buyMarketingFee (#365) is not in mixedCase
Variable ObitoCoin._buyTeamFee (#366) is not in mixedCase
Variable ObitoCoin._sellLiquidityFee (#368) is not in mixedCase
Variable ObitoCoin._sellMarketingFee (#369) is not in mixedCase
Variable ObitoCoin._sellTeamFee (#370) is not in mixedCase
Variable ObitoCoin._liquidityShare (#372) is not in mixedCase
Variable ObitoCoin._marketingShare (#373) is not in mixedCase
Variable ObitoCoin._teamShare (#374) is not in mixedCase
Variable ObitoCoin._totalTaxIfBuying (#376) is not in mixedCase
Variable ObitoCoin._totalTaxIfSelling (#377) is not in mixedCase
Variable ObitoCoin._totalDistributionShares (#378) is not in mixedCase
Variable ObitoCoin._maxTxAmount (#381) is not in mixedCase
Variable ObitoCoin._walletMax (#382) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#8)" inContext (#3-11)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in ObitoCoin._transfer(address,address,uint256) (#611-649):
External calls:
- swapAndLiquify(contractTokenBalance) (#633)
- recipient.transfer(amount) (#577)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#633)
- recipient.transfer(amount) (#577)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),daibiAmount,0,0,owner(),block.timestamp) (#703-710)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#636)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#644)
- finalAmount = takeFee(sender,recipient,amount) (#638-639)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#725)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#726)
- finalAmount = takeFee(sender,recipient,amount) (#638-639)
- Transfer(sender,recipient,finalAmount) (#646)
Reentrancy in ObitoCoin.swapAndLiquify(uint256) (#658-680):
External calls:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#673)
- recipient.transfer(amount) (#577)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#676)
- recipient.transfer(amount) (#577)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#673)
- recipient.transfer(amount) (#577)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#676)
- recipient.transfer(amount) (#577)
- tianjiaLiquidity(tokensForLP,amountBNBLiquidity) (#679)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),daibiAmount,0,0,owner(),block.timestamp) (#703-710)
State variables written after the call(s):
- tianjiaLiquidity(tokensForLP,amountBNBLiquidity) (#679)
- _allowances[owner][spender] = amount (#495)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#496)
- tianjiaLiquidity(tokensForLP,amountBNBLiquidity) (#679)
Reentrancy in ObitoCoin.transferFrom(address,address,uint256) (#605-609):
External calls:
- _transfer(sender,recipient,amount) (#606)
- recipient.transfer(amount) (#577)
External calls sending eth:
- _transfer(sender,recipient,amount) (#606)
- recipient.transfer(amount) (#577)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),daibiAmount,0,0,owner(),block.timestamp) (#703-710)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#607)
- _allowances[owner][spender] = amount (#495)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#496)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#607)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#220) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#221)
Prevent variables from having similar names.
Additional information: link
ObitoCoin.slitherConstructorVariables() (#346-733) uses literals with too many digits:
- deadAddress = 0x000000000000000000000000000000000000dEaD (#354)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
ObitoCoin._decimals (#351) should be constant
ObitoCoin._name (#349) should be constant
ObitoCoin._symbol (#350) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
waiveOwnership() should be declared external:
- Ownable.waiveOwnership() (#133-136)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#138-142)
getTime() should be declared external:
- Ownable.getTime() (#144-146)
name() should be declared external:
- ObitoCoin.name() (#448-450)
symbol() should be declared external:
- ObitoCoin.symbol() (#452-454)
decimals() should be declared external:
- ObitoCoin.decimals() (#456-458)
totalSupply() should be declared external:
- ObitoCoin.totalSupply() (#460-462)
allowance(address,address) should be declared external:
- ObitoCoin.allowance(address,address) (#468-470)
increaseAllowance(address,uint256) should be declared external:
- ObitoCoin.increaseAllowance(address,uint256) (#472-475)
decreaseAllowance(address,uint256) should be declared external:
- ObitoCoin.decreaseAllowance(address,uint256) (#477-480)
minimumTokensBeforeSwapAmount() should be declared external:
- ObitoCoin.minimumTokensBeforeSwapAmount() (#482-484)
approve(address,uint256) should be declared external:
- ObitoCoin.approve(address,uint256) (#486-489)
setMarketPairStatus(address,bool) should be declared external:
- ObitoCoin.setMarketPairStatus(address,bool) (#499-501)
setIsExcludedFromFee(address,bool) should be declared external:
- ObitoCoin.setIsExcludedFromFee(address,bool) (#507-509)
setSwapAndLiquifyEnabled(bool,uint256,address) should be declared external:
- ObitoCoin.setSwapAndLiquifyEnabled(bool,uint256,address) (#563-566)
setSwapAndLiquifyByLimitOnly(bool) should be declared external:
- ObitoCoin.setSwapAndLiquifyByLimitOnly(bool) (#568-570)
getCirculatingSupply() should be declared external:
- ObitoCoin.getCirculatingSupply() (#572-574)
changeRouterVersion(address) should be declared external:
- ObitoCoin.changeRouterVersion(address) (#580-597)
transfer(address,uint256) should be declared external:
- ObitoCoin.transfer(address,uint256) (#600-603)
transferFrom(address,address,uint256) should be declared external:
- ObitoCoin.transferFrom(address,address,uint256) (#605-609)
Use the external attribute for functions never called from the contract.
Additional information: link
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