APTOS.addLiquidity(uint256,uint256) (#841-854) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,marketingWalletAddress,block.timestamp) (#846-853)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in APTOS._transfer(address,address,uint256) (#738-788):
External calls:
- swapAndLiquify(contractTokenBalance) (#761)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,marketingWalletAddress,block.timestamp) (#846-853)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#830-836)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#761)
- recipient.transfer(amount) (#698)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,marketingWalletAddress,block.timestamp) (#846-853)
State variables written after the call(s):
- _bAddress[recipient] = true (#774)
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#764)
- finalAmount = takeFee(sender,recipient,amount) (#777)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#868)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#783)
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)
APTOS.constructor(string,string,uint8,uint256,address,address,address,address) (#508-555) performs a multiplication on the result of a division:
-_minimumTokensBeforeSwap = supply.div(10000) * 10 ** _decimals (#531)
Consider ordering multiplication before division.
Additional information: link
APTOS.addLiquidity(uint256,uint256) (#841-854) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,marketingWalletAddress,block.timestamp) (#846-853)
Ensure that all the return values of the function calls are used.
Additional information: link
APTOS.constructor(string,string,uint8,uint256,address,address,address,address).owner (#513) shadows:
- Ownable.owner() (#162-164) (function)
APTOS.allowance(address,address).owner (#577) shadows:
- Ownable.owner() (#162-164) (function)
APTOS._approve(address,address,uint256).owner (#600) shadows:
- Ownable.owner() (#162-164) (function)
Rename the local variables that shadow another component.
Additional information: link
APTOS.updateKillBlockNum(uint256) (#614-616) should emit an event for:
- killBlockNum = num (#615)
APTOS.setBuyTaxes(uint256,uint256,uint256) (#632-638) should emit an event for:
- _totalTaxIfBuying = _buyLiquidityFee.add(_buyMarketingFee).add(_buyTeamFee) (#637)
APTOS.setSelTaxes(uint256,uint256,uint256) (#640-646) should emit an event for:
- _totalTaxIfSelling = _sellLiquidityFee.add(_sellMarketingFee).add(_sellTeamFee) (#645)
APTOS.setDistributionSettings(uint256,uint256,uint256) (#648-654) should emit an event for:
- _liquidityShare = newLiquidityShare (#649)
- _teamShare = newTeamShare (#651)
- _totalDistributionShares = _liquidityShare.add(_marketingShare).add(_teamShare) (#653)
APTOS.setMaxTxAmount(uint256) (#656-658) should emit an event for:
- _maxTxAmount = maxTxAmount (#657)
APTOS.setWalletLimit(uint256) (#668-670) should emit an event for:
- _walletMax = newLimit (#669)
APTOS.setNumTokensBeforeSwap(uint256) (#672-674) should emit an event for:
- _minimumTokensBeforeSwap = newLimit (#673)
Emit an event for critical parameter changes.
Additional information: link
APTOS.constructor(string,string,uint8,uint256,address,address,address,address).owner (#513) lacks a zero-check on :
- _owner = owner (#527)
APTOS.constructor(string,string,uint8,uint256,address,address,address,address).marketingAddress (#514) lacks a zero-check on :
- marketingWalletAddress = address(marketingAddress) (#532)
APTOS.constructor(string,string,uint8,uint256,address,address,address,address).teamAddress (#515) lacks a zero-check on :
- teamWalletAddress = address(teamAddress) (#533)
APTOS.constructor(string,string,uint8,uint256,address,address,address,address).service (#516) lacks a zero-check on :
- address(service).transfer(msg.value) (#553)
APTOS.setMarketingWalletAddress(address).newAddress (#676) lacks a zero-check on :
- marketingWalletAddress = address(newAddress) (#677)
APTOS.setTeamWalletAddress(address).newAddress (#680) lacks a zero-check on :
- teamWalletAddress = address(newAddress) (#681)
Check that the address is not zero.
Additional information: link
Reentrancy in APTOS.changeRouterVersion(address) (#701-718):
External calls:
- newPairAddress = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#709-710)
State variables written after the call(s):
- isMarketPair[address(uniswapPair)] = true (#717)
- isWalletLimitExempt[address(uniswapPair)] = true (#716)
- uniswapPair = newPairAddress (#713)
- uniswapV2Router = _uniswapV2Router (#714)
Reentrancy in APTOS.constructor(string,string,uint8,uint256,address,address,address,address) (#508-555):
External calls:
- uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#521-522)
State variables written after the call(s):
- _allowances[address(this)][address(uniswapV2Router)] = _totalSupply (#538)
- _balances[owner] = _totalSupply (#552)
- _decimals = coinDecimals (#526)
- _maxTxAmount = supply * 10 ** _decimals (#529)
- _minimumTokensBeforeSwap = supply.div(10000) * 10 ** _decimals (#531)
- _name = coinName (#524)
- _owner = owner (#527)
- _symbol = coinSymbol (#525)
- _totalDistributionShares = _liquidityShare.add(_marketingShare).add(_teamShare) (#536)
- _totalSupply = supply * 10 ** _decimals (#528)
- _totalTaxIfBuying = _buyLiquidityFee.add(_buyMarketingFee).add(_buyTeamFee) (#534)
- _totalTaxIfSelling = _sellLiquidityFee.add(_sellMarketingFee).add(_sellTeamFee) (#535)
- _walletMax = supply * 10 ** _decimals (#530)
- isExcludedFromFee[owner] = true (#539)
- isExcludedFromFee[address(this)] = true (#540)
- isExcludedFromFee[marketingAddress] = true (#541)
- isMarketPair[address(uniswapPair)] = true (#550)
- isTxLimitExempt[owner] = true (#547)
- isTxLimitExempt[address(this)] = true (#548)
- isWalletLimitExempt[owner] = true (#543)
- isWalletLimitExempt[address(uniswapPair)] = true (#544)
- isWalletLimitExempt[address(this)] = true (#545)
- marketingWalletAddress = address(marketingAddress) (#532)
- teamWalletAddress = address(teamAddress) (#533)
- uniswapV2Router = _uniswapV2Router (#537)
Reentrancy in APTOS.swapAndLiquify(uint256) (#797-819):
External calls:
- swapTokensForEth(tokensForSwap) (#802)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#830-836)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#818)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,marketingWalletAddress,block.timestamp) (#846-853)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#812)
- recipient.transfer(amount) (#698)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#815)
- recipient.transfer(amount) (#698)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#818)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,marketingWalletAddress,block.timestamp) (#846-853)
State variables written after the call(s):
- addLiquidity(tokensForLP,amountBNBLiquidity) (#818)
- _allowances[owner][spender] = amount (#604)
Reentrancy in APTOS.transferFrom(address,address,uint256) (#732-736):
External calls:
- _transfer(sender,recipient,amount) (#733)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,marketingWalletAddress,block.timestamp) (#846-853)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#830-836)
External calls sending eth:
- _transfer(sender,recipient,amount) (#733)
- recipient.transfer(amount) (#698)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,marketingWalletAddress,block.timestamp) (#846-853)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#734)
- _allowances[owner][spender] = amount (#604)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in APTOS._transfer(address,address,uint256) (#738-788):
External calls:
- swapAndLiquify(contractTokenBalance) (#761)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,marketingWalletAddress,block.timestamp) (#846-853)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#830-836)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#761)
- recipient.transfer(amount) (#698)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,marketingWalletAddress,block.timestamp) (#846-853)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#869)
- finalAmount = takeFee(sender,recipient,amount) (#777)
- Transfer(sender,recipient,finalAmount) (#785)
Reentrancy in APTOS.constructor(string,string,uint8,uint256,address,address,address,address) (#508-555):
External calls:
- uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#521-522)
External calls sending eth:
- address(service).transfer(msg.value) (#553)
Event emitted after the call(s):
- Transfer(address(0),owner,_totalSupply) (#554)
Reentrancy in APTOS.swapAndLiquify(uint256) (#797-819):
External calls:
- swapTokensForEth(tokensForSwap) (#802)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#830-836)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#818)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,marketingWalletAddress,block.timestamp) (#846-853)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#812)
- recipient.transfer(amount) (#698)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#815)
- recipient.transfer(amount) (#698)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#818)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,marketingWalletAddress,block.timestamp) (#846-853)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#605)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#818)
Reentrancy in APTOS.swapTokensForEth(uint256) (#821-839):
External calls:
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#830-836)
Event emitted after the call(s):
- SwapTokensForETH(tokenAmount,path) (#838)
Reentrancy in APTOS.transferFrom(address,address,uint256) (#732-736):
External calls:
- _transfer(sender,recipient,amount) (#733)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,marketingWalletAddress,block.timestamp) (#846-853)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#830-836)
External calls sending eth:
- _transfer(sender,recipient,amount) (#733)
- recipient.transfer(amount) (#698)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,marketingWalletAddress,block.timestamp) (#846-853)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#605)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#734)
Apply the check-effects-interactions pattern.
Additional information: link
Address.isContract(address) (#98-107) uses assembly
- INLINE ASM (#105)
Address._functionCallWithValue(address,bytes,uint256,string) (#134-151) uses assembly
- INLINE ASM (#143-146)
Do not use evm assembly.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#134-151) is never used and should be removed
Address.functionCall(address,bytes) (#117-119) is never used and should be removed
Address.functionCall(address,bytes,string) (#121-123) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#125-127) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#129-132) is never used and should be removed
Address.isContract(address) (#98-107) is never used and should be removed
Address.sendValue(address,uint256) (#109-115) is never used and should be removed
Context._msgData() (#18-22) is never used and should be removed
SafeMath.mod(uint256,uint256) (#86-88) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#90-93) is never used and should be removed
Remove unused functions.
Additional information: link
Low level call in Address.sendValue(address,uint256) (#109-115):
- (success) = recipient.call{value: amount}() (#113)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#134-151):
- (success,returndata) = target.call{value: weiValue}(data) (#137)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Variable Ownable._owner (#155) is not in mixedCase
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#226) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#228) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#245) is not in mixedCase
Function IUniswapV2Router01.WETH() (#275) is not in mixedCase
Parameter APTOS.setSwapAndLiquifyEnabled(bool)._enabled (#684) is not in mixedCase
Function APTOS.Launch() (#719-722) is not in mixedCase
Variable APTOS._balances (#438) is not in mixedCase
Variable APTOS._buyLiquidityFee (#446) is not in mixedCase
Variable APTOS._buyMarketingFee (#447) is not in mixedCase
Variable APTOS._buyTeamFee (#448) is not in mixedCase
Variable APTOS._sellLiquidityFee (#450) is not in mixedCase
Variable APTOS._sellMarketingFee (#451) is not in mixedCase
Variable APTOS._sellTeamFee (#452) is not in mixedCase
Variable APTOS._liquidityShare (#454) is not in mixedCase
Variable APTOS._marketingShare (#455) is not in mixedCase
Variable APTOS._teamShare (#456) is not in mixedCase
Variable APTOS._totalDistributionShares (#457) is not in mixedCase
Variable APTOS._totalTaxIfBuying (#459) is not in mixedCase
Variable APTOS._totalTaxIfSelling (#460) is not in mixedCase
Variable APTOS._maxTxAmount (#464) is not in mixedCase
Variable APTOS._walletMax (#465) is not in mixedCase
Variable APTOS._bAddress (#477) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#19)" inContext (#12-23)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in APTOS._transfer(address,address,uint256) (#738-788):
External calls:
- swapAndLiquify(contractTokenBalance) (#761)
- recipient.transfer(amount) (#698)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#761)
- recipient.transfer(amount) (#698)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,marketingWalletAddress,block.timestamp) (#846-853)
State variables written after the call(s):
- _bAddress[recipient] = true (#774)
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#764)
- finalAmount = takeFee(sender,recipient,amount) (#777)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#868)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#783)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#869)
- finalAmount = takeFee(sender,recipient,amount) (#777)
- Transfer(sender,recipient,finalAmount) (#785)
Reentrancy in APTOS.constructor(string,string,uint8,uint256,address,address,address,address) (#508-555):
External calls:
- address(service).transfer(msg.value) (#553)
Event emitted after the call(s):
- Transfer(address(0),owner,_totalSupply) (#554)
Reentrancy in APTOS.swapAndLiquify(uint256) (#797-819):
External calls:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#812)
- recipient.transfer(amount) (#698)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#815)
- recipient.transfer(amount) (#698)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#812)
- recipient.transfer(amount) (#698)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#815)
- recipient.transfer(amount) (#698)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#818)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,marketingWalletAddress,block.timestamp) (#846-853)
State variables written after the call(s):
- addLiquidity(tokensForLP,amountBNBLiquidity) (#818)
- _allowances[owner][spender] = amount (#604)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#605)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#818)
Reentrancy in APTOS.transferFrom(address,address,uint256) (#732-736):
External calls:
- _transfer(sender,recipient,amount) (#733)
- recipient.transfer(amount) (#698)
External calls sending eth:
- _transfer(sender,recipient,amount) (#733)
- recipient.transfer(amount) (#698)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,marketingWalletAddress,block.timestamp) (#846-853)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#734)
- _allowances[owner][spender] = amount (#604)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#605)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#734)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#280) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#281)
Prevent variables from having similar names.
Additional information: link
APTOS.slitherConstructorVariables() (#426-876) uses literals with too many digits:
- deadAddress = 0x000000000000000000000000000000000000dEaD (#436)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
Ownable._previousOwner (#156) is never used in APTOS (#426-876)
Ownable._lockTime (#157) is never used in APTOS (#426-876)
Remove unused state variables.
Additional information: link
Ownable._lockTime (#157) should be constant
Ownable._previousOwner (#156) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
owner() should be declared external:
- Ownable.owner() (#162-164)
waiveOwnership() should be declared external:
- Ownable.waiveOwnership() (#171-174)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#176-180)
name() should be declared external:
- APTOS.name() (#557-559)
symbol() should be declared external:
- APTOS.symbol() (#561-563)
decimals() should be declared external:
- APTOS.decimals() (#565-567)
totalSupply() should be declared external:
- APTOS.totalSupply() (#569-571)
allowance(address,address) should be declared external:
- APTOS.allowance(address,address) (#577-579)
increaseAllowance(address,uint256) should be declared external:
- APTOS.increaseAllowance(address,uint256) (#581-584)
decreaseAllowance(address,uint256) should be declared external:
- APTOS.decreaseAllowance(address,uint256) (#586-589)
minimumTokensBeforeSwapAmount() should be declared external:
- APTOS.minimumTokensBeforeSwapAmount() (#591-593)
approve(address,uint256) should be declared external:
- APTOS.approve(address,uint256) (#595-598)
setMarketPairStatus(address,bool) should be declared external:
- APTOS.setMarketPairStatus(address,bool) (#608-610)
setBAddress(address,bool) should be declared external:
- APTOS.setBAddress(address,bool) (#611-613)
updateKillBlockNum(uint256) should be declared external:
- APTOS.updateKillBlockNum(uint256) (#614-616)
setMutilpyBAddress(address[],bool) should be declared external:
- APTOS.setMutilpyBAddress(address[],bool) (#618-622)
setIsExcludedFromFee(address,bool) should be declared external:
- APTOS.setIsExcludedFromFee(address,bool) (#628-630)
setSwapAndLiquifyEnabled(bool) should be declared external:
- APTOS.setSwapAndLiquifyEnabled(bool) (#684-687)
setSwapAndLiquifyByLimitOnly(bool) should be declared external:
- APTOS.setSwapAndLiquifyByLimitOnly(bool) (#689-691)
getCirculatingSupply() should be declared external:
- APTOS.getCirculatingSupply() (#693-695)
changeRouterVersion(address) should be declared external:
- APTOS.changeRouterVersion(address) (#701-718)
Launch() should be declared external:
- APTOS.Launch() (#719-722)
transfer(address,uint256) should be declared external:
- APTOS.transfer(address,uint256) (#727-730)
transferFrom(address,address,uint256) should be declared external:
- APTOS.transferFrom(address,address,uint256) (#732-736)
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