Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Reentrancy in SnailYachtClub._transfer(address,address,uint256) (#1001-1052):
External calls:
- swapAndLiquify(numTokensSellToAddToLiquidity) (#1048)
- UniswapV2Router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,devAddress,block.timestamp) (#1135-1142)
- (success) = recipient.call{value: amount}() (#419)
- UniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1124-1130)
- devAddress.sendValue(devFee) (#1109)
- treasuryAddress.sendValue(treasuryFee) (#1110)
External calls sending eth:
- swapAndLiquify(numTokensSellToAddToLiquidity) (#1048)
- UniswapV2Router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,devAddress,block.timestamp) (#1135-1142)
- (success) = recipient.call{value: amount}() (#419)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (#1051)
- _rOwned[address(this)] += rToSwap (#908)
- _rOwned[sender] -= s.rAmount (#1070)
- _rOwned[recipient] += s.rTransferAmount (#1071)
- _tokenTransfer(from,to,amount,takeFee) (#1051)
- _rTotal -= rRfi (#903)
- _tokenTransfer(from,to,amount,takeFee) (#1051)
- _tOwned[address(this)] += tToSwap (#909)
- _tOwned[sender] -= tAmount (#1064)
- _tOwned[recipient] += s.tTransferAmount (#1067)
Reentrancy in SnailYachtClub.transferFrom(address,address,uint256) (#769-786):
External calls:
- _transfer(sender,recipient,amount) (#774)
- UniswapV2Router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,devAddress,block.timestamp) (#1135-1142)
- (success) = recipient.call{value: amount}() (#419)
- UniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1124-1130)
- devAddress.sendValue(devFee) (#1109)
- treasuryAddress.sendValue(treasuryFee) (#1110)
External calls sending eth:
- _transfer(sender,recipient,amount) (#774)
- UniswapV2Router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,devAddress,block.timestamp) (#1135-1142)
- (success) = recipient.call{value: amount}() (#419)
State variables written after the call(s):
- _approve(sender,_msgSender(),currentAllowance - amount) (#782)
- _allowances[owner][spender] = amount (#997)
Apply the check-effects-interactions pattern.
Additional information: link
SnailYachtClub.rescueAnyBEP20Tokens(address,address,uint256) (#1232-1234) ignores return value by IERC20(_tokenAddr).transfer(_to,_amount) (#1233)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
Combination 3: Reentrancy vulnerabilities + Unchecked transfer vulnerability. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.
Not a direct threat, but may indicate unreliable intentions of developer. Widespread names (e.g. Elon, King, Moon, Doge) are common among meme-tokens and scams. The allow to gain free hype and attract unexperienced investors.
SnailYachtClub.addLiquidity(uint256,uint256) (#1133-1144) ignores return value by UniswapV2Router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,devAddress,block.timestamp) (#1135-1142)
Ensure that all the return values of the function calls are used.
Additional information: link
SnailYachtClub.allowance(address,address).owner (#751) shadows:
- Ownable.owner() (#74-76) (function)
SnailYachtClub._approve(address,address,uint256).owner (#991) shadows:
- Ownable.owner() (#74-76) (function)
Rename the local variables that shadow another component.
Additional information: link
SnailYachtClub.setMaxTransactionAmount(uint256,uint256) (#1188-1194) should emit an event for:
- maxTxAmountBuy = _tTotal / _maxTxAmountBuyPct (#1192)
- maxTxAmountSell = _tTotal / _maxTxAmountSellPct (#1193)
SnailYachtClub.setNumTokensSellToAddToLiq(uint256) (#1196-1201) should emit an event for:
- numTokensSellToAddToLiquidity = amountTokens * 10 ** _decimals (#1200)
Emit an event for critical parameter changes.
Additional information: link
SnailYachtClub.setTreasuryAddress(address)._treasuryAddress (#1203) lacks a zero-check on :
- treasuryAddress = _treasuryAddress (#1207)
SnailYachtClub.setDevAddress(address)._devAddress (#1210) lacks a zero-check on :
- devAddress = _devAddress (#1211)
SnailYachtClub.manualSwapPercentage(uint256,address).toAddress (#1219) lacks a zero-check on :
- wAddress = address(toAddress) (#1222)
Check that the address is not zero.
Additional information: link
Reentrancy in SnailYachtClub._transfer(address,address,uint256) (#1001-1052):
External calls:
- swapAndLiquify(numTokensSellToAddToLiquidity) (#1048)
- UniswapV2Router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,devAddress,block.timestamp) (#1135-1142)
- (success) = recipient.call{value: amount}() (#419)
- UniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1124-1130)
- devAddress.sendValue(devFee) (#1109)
- treasuryAddress.sendValue(treasuryFee) (#1110)
External calls sending eth:
- swapAndLiquify(numTokensSellToAddToLiquidity) (#1048)
- UniswapV2Router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,devAddress,block.timestamp) (#1135-1142)
- (success) = recipient.call{value: amount}() (#419)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (#1051)
- totFeesPaid.rfi += tRfi (#904)
- totFeesPaid.toSwap += tToSwap (#910)
Reentrancy in SnailYachtClub.constructor() (#692-717):
External calls:
- uniswapPair = IUniswapV2Factory(_UniswapV2Router.factory()).createPair(address(this),_UniswapV2Router.WETH()) (#696)
State variables written after the call(s):
- UniswapV2Router = _UniswapV2Router (#699)
- _isExcludedFromFee[owner()] = true (#704)
- _isExcludedFromFee[treasuryAddress] = true (#705)
- _isExcludedFromFee[devAddress] = true (#706)
- _isExcludedFromFee[address(this)] = true (#707)
- _isExcludedFromMaxWallet[owner()] = true (#709)
- _isExcludedFromMaxWallet[treasuryAddress] = true (#710)
- _isExcludedFromMaxWallet[devAddress] = true (#711)
- _isExcludedFromMaxWallet[address(this)] = true (#712)
- _isExcludedFromMaxWallet[uniswapPair] = true (#714)
- _rOwned[owner()] = _rTotal (#700)
- devAddress = address(msg.sender) (#702)
- isAutomatedMarketMakerPair[uniswapPair] = true (#697)
- treasuryAddress = address(msg.sender) (#701)
- wAddress = address(msg.sender) (#703)
Reentrancy in SnailYachtClub.manualSwapPercentage(uint256,address) (#1219-1225):
External calls:
- swapTokensForETH(tokenstosell) (#1221)
- UniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1124-1130)
State variables written after the call(s):
- ttk = address(this).balance (#1223)
- wAddress = address(toAddress) (#1222)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in SnailYachtClub._transfer(address,address,uint256) (#1001-1052):
External calls:
- swapAndLiquify(numTokensSellToAddToLiquidity) (#1048)
- UniswapV2Router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,devAddress,block.timestamp) (#1135-1142)
- (success) = recipient.call{value: amount}() (#419)
- UniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1124-1130)
- devAddress.sendValue(devFee) (#1109)
- treasuryAddress.sendValue(treasuryFee) (#1110)
External calls sending eth:
- swapAndLiquify(numTokensSellToAddToLiquidity) (#1048)
- UniswapV2Router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,devAddress,block.timestamp) (#1135-1142)
- (success) = recipient.call{value: amount}() (#419)
Event emitted after the call(s):
- Transfer(sender,address(this),s.tToSwap) (#1075)
- _tokenTransfer(from,to,amount,takeFee) (#1051)
- Transfer(sender,recipient,s.tTransferAmount) (#1082)
- _tokenTransfer(from,to,amount,takeFee) (#1051)
Reentrancy in SnailYachtClub.addLiquidity(uint256,uint256) (#1133-1144):
External calls:
- UniswapV2Router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,devAddress,block.timestamp) (#1135-1142)
Event emitted after the call(s):
- LiquidityAdded(tokenAmount,ETHAmount) (#1143)
Reentrancy in SnailYachtClub.constructor() (#692-717):
External calls:
- uniswapPair = IUniswapV2Factory(_UniswapV2Router.factory()).createPair(address(this),_UniswapV2Router.WETH()) (#696)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(uniswapPair,true) (#698)
- Transfer(address(0),owner(),_tTotal) (#716)
Reentrancy in SnailYachtClub.swapAndLiquify(uint256) (#1085-1111):
External calls:
- swapTokensForETH(toSwap) (#1094)
- UniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1124-1130)
- addLiquidity(tokensToAddLiquidityWith,ETHToAddLiquidityWith) (#1101)
- UniswapV2Router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,devAddress,block.timestamp) (#1135-1142)
External calls sending eth:
- addLiquidity(tokensToAddLiquidityWith,ETHToAddLiquidityWith) (#1101)
- UniswapV2Router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,devAddress,block.timestamp) (#1135-1142)
Event emitted after the call(s):
- LiquidityAdded(tokenAmount,ETHAmount) (#1143)
- addLiquidity(tokensToAddLiquidityWith,ETHToAddLiquidityWith) (#1101)
Reentrancy in SnailYachtClub.transferFrom(address,address,uint256) (#769-786):
External calls:
- _transfer(sender,recipient,amount) (#774)
- UniswapV2Router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,devAddress,block.timestamp) (#1135-1142)
- (success) = recipient.call{value: amount}() (#419)
- UniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1124-1130)
- devAddress.sendValue(devFee) (#1109)
- treasuryAddress.sendValue(treasuryFee) (#1110)
External calls sending eth:
- _transfer(sender,recipient,amount) (#774)
- UniswapV2Router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,devAddress,block.timestamp) (#1135-1142)
- (success) = recipient.call{value: amount}() (#419)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#998)
- _approve(sender,_msgSender(),currentAllowance - amount) (#782)
Apply the check-effects-interactions pattern.
Additional information: link
Address.isContract(address) (#388-398) uses assembly
- INLINE ASM (#394-396)
Address.verifyCallResult(bool,bytes,string) (#557-577) uses assembly
- INLINE ASM (#569-572)
Do not use evm assembly.
Additional information: link
Different versions of Solidity is used:
- Version used: ['>=0.5.0', '>=0.6.2', '^0.8.0']
- ^0.8.0 (#20)
- ^0.8.0 (#45)
- ^0.8.0 (#116)
- >=0.6.2 (#199)
- >=0.6.2 (#298)
- >=0.5.0 (#344)
- ^0.8.0 (#365)
- ^0.8.0 (#582)
Use one Solidity version.
Additional information: link
SnailYachtClub.includeInReward(address) (#860-871) has costly operations inside a loop:
- _excluded.pop() (#867)
Use a local variable to hold the loop computation result.
Additional information: link
Address.functionCall(address,bytes) (#441-443) is never used and should be removed
Address.functionCall(address,bytes,string) (#451-457) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#470-476) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#484-495) is never used and should be removed
Address.functionDelegateCall(address,bytes) (#530-532) is never used and should be removed
Address.functionDelegateCall(address,bytes,string) (#540-549) is never used and should be removed
Address.functionStaticCall(address,bytes) (#503-505) is never used and should be removed
Address.functionStaticCall(address,bytes,string) (#513-522) is never used and should be removed
Address.isContract(address) (#388-398) is never used and should be removed
Address.verifyCallResult(bool,bytes,string) (#557-577) is never used and should be removed
Context._msgData() (#37-39) is never used and should be removed
Remove unused functions.
Additional information: link
SnailYachtClub._rTotal (#603) is set pre-construction with a non-constant function or state variable:
- (MAX - (MAX % _tTotal))
SnailYachtClub.maxTxAmountBuy (#605) is set pre-construction with a non-constant function or state variable:
- _tTotal / 50
SnailYachtClub.maxTxAmountSell (#606) is set pre-construction with a non-constant function or state variable:
- _tTotal / 50
SnailYachtClub.maxWalletAmount (#607) is set pre-construction with a non-constant function or state variable:
- _tTotal / 50
SnailYachtClub.numTokensSellToAddToLiquidity (#627) is set pre-construction with a non-constant function or state variable:
- _tTotal / 650
SnailYachtClub.appliedRates (#655) is set pre-construction with a non-constant function or state variable:
- buyRates
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
Pragma version^0.8.0 (#20) allows old versions
Pragma version^0.8.0 (#45) allows old versions
Pragma version^0.8.0 (#116) allows old versions
Pragma version>=0.6.2 (#199) allows old versions
Pragma version>=0.6.2 (#298) allows old versions
Pragma version>=0.5.0 (#344) allows old versions
Pragma version^0.8.0 (#365) allows old versions
Pragma version^0.8.0 (#582) allows old versions
Deploy with any of the following Solidity versions: 0.5.16 - 0.5.17, 0.6.11 - 0.6.12, 0.7.5 - 0.7.6 Use a simple pragma version that allows any of these versions. Consider using the latest version of Solidity for testing.
Additional information: link
Low level call in Address.sendValue(address,uint256) (#416-421):
- (success) = recipient.call{value: amount}() (#419)
Low level call in Address.functionCallWithValue(address,bytes,uint256,string) (#484-495):
- (success,returndata) = target.call{value: value}(data) (#493)
Low level call in Address.functionStaticCall(address,bytes,string) (#513-522):
- (success,returndata) = target.staticcall(data) (#520)
Low level call in Address.functionDelegateCall(address,bytes,string) (#540-549):
- (success,returndata) = target.delegatecall(data) (#547)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Function IUniswapV2Router01.WETH() (#203) is not in mixedCase
Struct SnailYachtClub.feeRatesStruct (#629-635) is not in CapWords
Struct SnailYachtClub.valuesFromGetValues (#663-671) is not in CapWords
Parameter SnailYachtClub.setSwapAndLiquifyEnabled(bool)._enabled (#894) is not in mixedCase
Parameter SnailYachtClub.addLiquidity(uint256,uint256).ETHAmount (#1133) is not in mixedCase
Parameter SnailYachtClub.setAutomatedMarketMakerPair(address,bool)._pair (#1146) is not in mixedCase
Parameter SnailYachtClub.setBuyFees(uint8,uint8,uint8,uint8)._rfi (#1163) is not in mixedCase
Parameter SnailYachtClub.setBuyFees(uint8,uint8,uint8,uint8)._treasury (#1164) is not in mixedCase
Parameter SnailYachtClub.setBuyFees(uint8,uint8,uint8,uint8)._dev (#1165) is not in mixedCase
Parameter SnailYachtClub.setBuyFees(uint8,uint8,uint8,uint8)._lp (#1166) is not in mixedCase
Parameter SnailYachtClub.setSellFees(uint8,uint8,uint8,uint8)._rfi (#1176) is not in mixedCase
Parameter SnailYachtClub.setSellFees(uint8,uint8,uint8,uint8)._treasury (#1177) is not in mixedCase
Parameter SnailYachtClub.setSellFees(uint8,uint8,uint8,uint8)._dev (#1178) is not in mixedCase
Parameter SnailYachtClub.setSellFees(uint8,uint8,uint8,uint8)._lp (#1179) is not in mixedCase
Parameter SnailYachtClub.setMaxTransactionAmount(uint256,uint256)._maxTxAmountBuyPct (#1189) is not in mixedCase
Parameter SnailYachtClub.setMaxTransactionAmount(uint256,uint256)._maxTxAmountSellPct (#1190) is not in mixedCase
Parameter SnailYachtClub.setTreasuryAddress(address)._treasuryAddress (#1203) is not in mixedCase
Parameter SnailYachtClub.setDevAddress(address)._devAddress (#1210) is not in mixedCase
Parameter SnailYachtClub.rescueAnyBEP20Tokens(address,address,uint256)._tokenAddr (#1232) is not in mixedCase
Parameter SnailYachtClub.rescueAnyBEP20Tokens(address,address,uint256)._to (#1232) is not in mixedCase
Parameter SnailYachtClub.rescueAnyBEP20Tokens(address,address,uint256)._amount (#1232) is not in mixedCase
Parameter SnailYachtClub.setMaxWalletAmount(uint256)._maxWalletAmountPct (#1241) is not in mixedCase
Constant SnailYachtClub._decimals (#599) is not in UPPER_CASE_WITH_UNDERSCORES
Constant SnailYachtClub._name (#620) is not in UPPER_CASE_WITH_UNDERSCORES
Constant SnailYachtClub._symbol (#621) is not in UPPER_CASE_WITH_UNDERSCORES
Variable SnailYachtClub.UniswapV2Router (#624) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#208) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#209)
Prevent variables from having similar names.
Additional information: link
SnailYachtClub._tTotal (#602) should be constant
SnailYachtClub.blocksToWait (#613) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#93-95)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#101-104)
name() should be declared external:
- SnailYachtClub.name() (#720-722)
symbol() should be declared external:
- SnailYachtClub.symbol() (#724-726)
decimals() should be declared external:
- SnailYachtClub.decimals() (#728-730)
totalSupply() should be declared external:
- SnailYachtClub.totalSupply() (#733-735)
transfer(address,uint256) should be declared external:
- SnailYachtClub.transfer(address,uint256) (#742-749)
approve(address,uint256) should be declared external:
- SnailYachtClub.approve(address,uint256) (#760-767)
transferFrom(address,address,uint256) should be declared external:
- SnailYachtClub.transferFrom(address,address,uint256) (#769-786)
increaseAllowance(address,uint256) should be declared external:
- SnailYachtClub.increaseAllowance(address,uint256) (#788-799)
decreaseAllowance(address,uint256) should be declared external:
- SnailYachtClub.decreaseAllowance(address,uint256) (#801-816)
isExcludedFromReward(address) should be declared external:
- SnailYachtClub.isExcludedFromReward(address) (#818-820)
reflectionFromToken(uint256,bool) should be declared external:
- SnailYachtClub.reflectionFromToken(uint256,bool) (#822-835)
isExcludedFromFee(address) should be declared external:
- SnailYachtClub.isExcludedFromFee(address) (#882-884)
isExcludedFromMaxWallet(address) should be declared external:
- SnailYachtClub.isExcludedFromMaxWallet(address) (#886-892)
setSwapAndLiquifyEnabled(bool) should be declared external:
- SnailYachtClub.setSwapAndLiquifyEnabled(bool) (#894-897)
rescueAnyBEP20Tokens(address,address,uint256) should be declared external:
- SnailYachtClub.rescueAnyBEP20Tokens(address,address,uint256) (#1232-1234)
Use the external attribute for functions never called from the contract.
Additional information: link
Average 30d PancakeSwap liquidity is less than $100. Token is either dead or inactive.
Average 30d PancakeSwap volume is less than $100. Token is either dead or inactive.
Average 30d number of PancakeSwap swaps is less than 1. Token is either dead or inactive.
Number of Binance Smart Chain (BSC) token holders is less than 100. Token is either dead or inactive. Ignore for presale.
Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.
Contract has 10% buy tax and 12% sell tax.
Taxes are high (over 10%) but contract ownership is renounced.
Token is deployed only at one blockchain
Token has only one trading pair
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