Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
ElephantCoin.addLiquidity(uint256,uint256) (#598-611) sends eth to arbitrary user
Dangerous calls:
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#603-610)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in ElephantCoin._transfer(address,address,uint256) (#484-531):
External calls:
- swapAndLiquify(swapTokensAtAmount,sellTaxes) (#522)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#603-610)
- (success) = recipient.call{value: amount}() (#99)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#622-628)
- address(marketingWallet).sendValue(marketingAmt) (#584)
- address(devWallet).sendValue(devAmt) (#588)
- address(buybackWallet).sendValue(buybackAmt) (#593)
- swapAndLiquify(swapTokensAtAmount,taxes) (#523)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#603-610)
- (success) = recipient.call{value: amount}() (#99)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#622-628)
- address(marketingWallet).sendValue(marketingAmt) (#584)
- address(devWallet).sendValue(devAmt) (#588)
- address(buybackWallet).sendValue(buybackAmt) (#593)
External calls sending eth:
- swapAndLiquify(swapTokensAtAmount,sellTaxes) (#522)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#603-610)
- (success) = recipient.call{value: amount}() (#99)
- swapAndLiquify(swapTokensAtAmount,taxes) (#523)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#603-610)
- (success) = recipient.call{value: amount}() (#99)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee,isSell) (#530)
- _rOwned[address(this)] += rMarketing (#382)
- _rOwned[address(this)] += rBuyback (#403)
- _rOwned[address(this)] += rLiquidity (#372)
- _rOwned[address(this)] += rDev (#392)
- _rOwned[sender] = _rOwned[sender] - s.rAmount (#547)
- _rOwned[recipient] = _rOwned[recipient] + s.rTransferAmount (#548)
- _tokenTransfer(from,to,amount,takeFee,isSell) (#530)
- _rTotal -= rRfi (#361)
- _tokenTransfer(from,to,amount,takeFee,isSell) (#530)
- _tOwned[sender] = _tOwned[sender] - tAmount (#540)
- _tOwned[address(this)] += tDev (#390)
- _tOwned[address(this)] += tMarketing (#380)
- _tOwned[address(this)] += tBuyback (#401)
- _tOwned[address(this)] += tLiquidity (#370)
- _tOwned[recipient] = _tOwned[recipient] + s.tTransferAmount (#543)
Apply the check-effects-interactions pattern.
Additional information: link
ElephantCoin.rescueAnyBEP20Tokens(address,address,uint256) (#696-698) ignores return value by IERC20(_tokenAddr).transfer(_to,_amount) (#697)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
ElephantCoin.genesis_block (#148) is never initialized. It is used in:
- ElephantCoin._transfer(address,address,uint256) (#484-531)
Initialize all the variables. If a variable is meant to be initialized to zero, explicitly set it to zero to improve code readability.
Additional information: link
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.
Combination 2: Unchecked transfer + 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.
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.
ElephantCoin.swapAndLiquify(uint256,ElephantCoin.Taxes) (#564-596) performs a multiplication on the result of a division:
-unitBalance = deltaBalance / (denominator - temp.liquidity) (#574)
-bnbToAddLiquidityWith = unitBalance * temp.liquidity (#575)
ElephantCoin.swapAndLiquify(uint256,ElephantCoin.Taxes) (#564-596) performs a multiplication on the result of a division:
-unitBalance = deltaBalance / (denominator - temp.liquidity) (#574)
-marketingAmt = unitBalance * 2 * temp.marketing (#582)
ElephantCoin.swapAndLiquify(uint256,ElephantCoin.Taxes) (#564-596) performs a multiplication on the result of a division:
-unitBalance = deltaBalance / (denominator - temp.liquidity) (#574)
-devAmt = unitBalance * 2 * temp.dev (#586)
ElephantCoin.swapAndLiquify(uint256,ElephantCoin.Taxes) (#564-596) performs a multiplication on the result of a division:
-unitBalance = deltaBalance / (denominator - temp.liquidity) (#574)
-buybackAmt = unitBalance * 2 * temp.buyback (#591)
Consider ordering multiplication before division.
Additional information: link
ElephantCoin.addLiquidity(uint256,uint256) (#598-611) ignores return value by router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#603-610)
Ensure that all the return values of the function calls are used.
Additional information: link
ElephantCoin.allowance(address,address).owner (#251) shadows:
- Ownable.owner() (#46-48) (function)
ElephantCoin._approve(address,address,uint256).owner (#477) shadows:
- Ownable.owner() (#46-48) (function)
Rename the local variables that shadow another component.
Additional information: link
ElephantCoin.updateCooldown(bool,uint256) (#658-661) should emit an event for:
- coolDownTime = time * 1 (#659)
ElephantCoin.updateSwapTokensAtAmount(uint256) (#663-665) should emit an event for:
- swapTokensAtAmount = amount * 10 ** _decimals (#664)
ElephantCoin.updateMaxTxLimit(uint256,uint256) (#675-678) should emit an event for:
- maxBuyLimit = maxBuy * 10 ** decimals() (#676)
- maxSellLimit = maxSell * 10 ** decimals() (#677)
ElephantCoin.updateMaxWalletlimit(uint256) (#680-682) should emit an event for:
- maxWalletLimit = amount * 10 ** decimals() (#681)
Emit an event for critical parameter changes.
Additional information: link
ElephantCoin.constructor(address)._pair (#205-206) lacks a zero-check on :
- pair = _pair (#209)
ElephantCoin.updateMarketingWallet(address).newWallet (#638) lacks a zero-check on :
- marketingWallet = newWallet (#639)
ElephantCoin.updateDevWallet(address).newWallet (#642) lacks a zero-check on :
- devWallet = newWallet (#643)
ElephantCoin.updateBuybackWallet(address).newWallet (#646) lacks a zero-check on :
- buybackWallet = newWallet (#647)
ElephantCoin.updateRouterAndPair(address,address).newPair (#684) lacks a zero-check on :
- pair = newPair (#686)
Check that the address is not zero.
Additional information: link
Reentrancy in ElephantCoin._transfer(address,address,uint256) (#484-531):
External calls:
- swapAndLiquify(swapTokensAtAmount,sellTaxes) (#522)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#603-610)
- (success) = recipient.call{value: amount}() (#99)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#622-628)
- address(marketingWallet).sendValue(marketingAmt) (#584)
- address(devWallet).sendValue(devAmt) (#588)
- address(buybackWallet).sendValue(buybackAmt) (#593)
- swapAndLiquify(swapTokensAtAmount,taxes) (#523)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#603-610)
- (success) = recipient.call{value: amount}() (#99)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#622-628)
- address(marketingWallet).sendValue(marketingAmt) (#584)
- address(devWallet).sendValue(devAmt) (#588)
- address(buybackWallet).sendValue(buybackAmt) (#593)
External calls sending eth:
- swapAndLiquify(swapTokensAtAmount,sellTaxes) (#522)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#603-610)
- (success) = recipient.call{value: amount}() (#99)
- swapAndLiquify(swapTokensAtAmount,taxes) (#523)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#603-610)
- (success) = recipient.call{value: amount}() (#99)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee,isSell) (#530)
- totFeesPaid.dev += tDev (#386)
- totFeesPaid.marketing += tMarketing (#376)
- totFeesPaid.buyback += tBuyback (#397)
- totFeesPaid.liquidity += tLiquidity (#366)
- totFeesPaid.rfi += tRfi (#362)
Reentrancy in ElephantCoin.constructor(address) (#203-228):
External calls:
- _pair = IFactory(_router.factory()).createPair(address(this),_router.WETH()) (#205-206)
State variables written after the call(s):
- excludeFromReward(pair) (#211)
- _excluded.push(account) (#320)
- excludeFromReward(pair) (#211)
- _isExcluded[account] = true (#319)
- _isExcludedFromFee[address(this)] = true (#214)
- _isExcludedFromFee[owner()] = true (#215)
- _isExcludedFromFee[marketingWallet] = true (#216)
- _isExcludedFromFee[devWallet] = true (#217)
- _isExcludedFromFee[buybackWallet] = true (#218)
- _rOwned[owner()] = _rTotal (#213)
- excludeFromReward(pair) (#211)
- _tOwned[account] = tokenFromReflection(_rOwned[account]) (#317)
- allowedTransfer[address(this)] = true (#220)
- allowedTransfer[owner()] = true (#221)
- allowedTransfer[pair] = true (#222)
- allowedTransfer[marketingWallet] = true (#223)
- allowedTransfer[devWallet] = true (#224)
- allowedTransfer[buybackWallet] = true (#225)
- pair = _pair (#209)
- router = _router (#208)
Reentrancy in ElephantCoin.swapAndLiquify(uint256,ElephantCoin.Taxes) (#564-596):
External calls:
- swapTokensForBNB(toSwap) (#571)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#622-628)
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#579)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#603-610)
External calls sending eth:
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#579)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#603-610)
State variables written after the call(s):
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#579)
- _allowances[owner][spender] = amount (#480)
Reentrancy in ElephantCoin.transferFrom(address,address,uint256) (#260-271):
External calls:
- _transfer(sender,recipient,amount) (#262)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#603-610)
- (success) = recipient.call{value: amount}() (#99)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#622-628)
- address(marketingWallet).sendValue(marketingAmt) (#584)
- address(devWallet).sendValue(devAmt) (#588)
- address(buybackWallet).sendValue(buybackAmt) (#593)
External calls sending eth:
- _transfer(sender,recipient,amount) (#262)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#603-610)
- (success) = recipient.call{value: amount}() (#99)
State variables written after the call(s):
- _approve(sender,_msgSender(),currentAllowance - amount) (#266)
- _allowances[owner][spender] = amount (#480)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in ElephantCoin._transfer(address,address,uint256) (#484-531):
External calls:
- swapAndLiquify(swapTokensAtAmount,sellTaxes) (#522)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#603-610)
- (success) = recipient.call{value: amount}() (#99)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#622-628)
- address(marketingWallet).sendValue(marketingAmt) (#584)
- address(devWallet).sendValue(devAmt) (#588)
- address(buybackWallet).sendValue(buybackAmt) (#593)
- swapAndLiquify(swapTokensAtAmount,taxes) (#523)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#603-610)
- (success) = recipient.call{value: amount}() (#99)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#622-628)
- address(marketingWallet).sendValue(marketingAmt) (#584)
- address(devWallet).sendValue(devAmt) (#588)
- address(buybackWallet).sendValue(buybackAmt) (#593)
External calls sending eth:
- swapAndLiquify(swapTokensAtAmount,sellTaxes) (#522)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#603-610)
- (success) = recipient.call{value: amount}() (#99)
- swapAndLiquify(swapTokensAtAmount,taxes) (#523)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#603-610)
- (success) = recipient.call{value: amount}() (#99)
Event emitted after the call(s):
- Transfer(sender,address(this),s.tLiquidity + s.tMarketing + s.tDev + s.tBuyback) (#553)
- _tokenTransfer(from,to,amount,takeFee,isSell) (#530)
- Transfer(sender,recipient,s.tTransferAmount) (#560)
- _tokenTransfer(from,to,amount,takeFee,isSell) (#530)
Reentrancy in ElephantCoin.constructor(address) (#203-228):
External calls:
- _pair = IFactory(_router.factory()).createPair(address(this),_router.WETH()) (#205-206)
Event emitted after the call(s):
- Transfer(address(0),owner(),_tTotal) (#227)
Reentrancy in ElephantCoin.swapAndLiquify(uint256,ElephantCoin.Taxes) (#564-596):
External calls:
- swapTokensForBNB(toSwap) (#571)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#622-628)
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#579)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#603-610)
External calls sending eth:
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#579)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#603-610)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#481)
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#579)
Reentrancy in ElephantCoin.transferFrom(address,address,uint256) (#260-271):
External calls:
- _transfer(sender,recipient,amount) (#262)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#603-610)
- (success) = recipient.call{value: amount}() (#99)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#622-628)
- address(marketingWallet).sendValue(marketingAmt) (#584)
- address(devWallet).sendValue(devAmt) (#588)
- address(buybackWallet).sendValue(buybackAmt) (#593)
External calls sending eth:
- _transfer(sender,recipient,amount) (#262)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#603-610)
- (success) = recipient.call{value: amount}() (#99)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#481)
- _approve(sender,_msgSender(),currentAllowance - amount) (#266)
Apply the check-effects-interactions pattern.
Additional information: link
ElephantCoin._transfer(address,address,uint256) (#484-531) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(timePassed >= coolDownTime,Cooldown enabled) (#511)
Avoid relying on block.timestamp.
Additional information: link
ElephantCoin.includeInReward(address) (#323-334) has costly operations inside a loop:
- _excluded.pop() (#330)
Use a local variable to hold the loop computation result.
Additional information: link
Context._msgData() (#31-34) is never used and should be removed
Remove unused functions.
Additional information: link
ElephantCoin._rTotal (#141) is set pre-construction with a non-constant function or state variable:
- (MAX - (MAX % _tTotal))
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) (#96-101):
- (success) = recipient.call{value: amount}() (#99)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Function IRouter.WETH() (#77) is not in mixedCase
Struct ElephantCoin.valuesFromGetValues (#178-192) is not in CapWords
Parameter ElephantCoin.setTaxes(uint256,uint256,uint256,uint256,uint256)._rfi (#350) is not in mixedCase
Parameter ElephantCoin.setTaxes(uint256,uint256,uint256,uint256,uint256)._marketing (#350) is not in mixedCase
Parameter ElephantCoin.setTaxes(uint256,uint256,uint256,uint256,uint256)._liquidity (#350) is not in mixedCase
Parameter ElephantCoin.setTaxes(uint256,uint256,uint256,uint256,uint256)._dev (#350) is not in mixedCase
Parameter ElephantCoin.setTaxes(uint256,uint256,uint256,uint256,uint256)._buyback (#350) is not in mixedCase
Parameter ElephantCoin.setSellTaxes(uint256,uint256,uint256,uint256,uint256)._rfi (#355) is not in mixedCase
Parameter ElephantCoin.setSellTaxes(uint256,uint256,uint256,uint256,uint256)._marketing (#355) is not in mixedCase
Parameter ElephantCoin.setSellTaxes(uint256,uint256,uint256,uint256,uint256)._liquidity (#355) is not in mixedCase
Parameter ElephantCoin.setSellTaxes(uint256,uint256,uint256,uint256,uint256)._dev (#355) is not in mixedCase
Parameter ElephantCoin.setSellTaxes(uint256,uint256,uint256,uint256,uint256)._buyback (#355) is not in mixedCase
Parameter ElephantCoin.tradingStatus(bool)._status (#650) is not in mixedCase
Parameter ElephantCoin.updateSwapEnabled(bool)._enabled (#667) is not in mixedCase
Parameter ElephantCoin.rescueAnyBEP20Tokens(address,address,uint256)._tokenAddr (#696) is not in mixedCase
Parameter ElephantCoin.rescueAnyBEP20Tokens(address,address,uint256)._to (#696) is not in mixedCase
Parameter ElephantCoin.rescueAnyBEP20Tokens(address,address,uint256)._amount (#696) is not in mixedCase
Constant ElephantCoin._decimals (#137) is not in UPPER_CASE_WITH_UNDERSCORES
Variable ElephantCoin.genesis_block (#148) is not in mixedCase
Constant ElephantCoin._name (#154) is not in UPPER_CASE_WITH_UNDERSCORES
Constant ElephantCoin._symbol (#155) is not in UPPER_CASE_WITH_UNDERSCORES
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#32)" inContext (#26-35)
Remove redundant statements if they congest code but offer no value.
Additional information: link
ElephantCoin._tTotal (#140) should be constant
ElephantCoin.genesis_block (#148) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#55-57)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#59-62)
name() should be declared external:
- ElephantCoin.name() (#231-233)
symbol() should be declared external:
- ElephantCoin.symbol() (#234-236)
totalSupply() should be declared external:
- ElephantCoin.totalSupply() (#242-244)
allowance(address,address) should be declared external:
- ElephantCoin.allowance(address,address) (#251-253)
approve(address,uint256) should be declared external:
- ElephantCoin.approve(address,uint256) (#255-258)
transferFrom(address,address,uint256) should be declared external:
- ElephantCoin.transferFrom(address,address,uint256) (#260-271)
increaseAllowance(address,uint256) should be declared external:
- ElephantCoin.increaseAllowance(address,uint256) (#273-276)
decreaseAllowance(address,uint256) should be declared external:
- ElephantCoin.decreaseAllowance(address,uint256) (#278-284)
transfer(address,uint256) should be declared external:
- ElephantCoin.transfer(address,uint256) (#286-290)
isExcludedFromReward(address) should be declared external:
- ElephantCoin.isExcludedFromReward(address) (#292-294)
reflectionFromToken(uint256,bool) should be declared external:
- ElephantCoin.reflectionFromToken(uint256,bool) (#296-305)
excludeFromFee(address) should be declared external:
- ElephantCoin.excludeFromFee(address) (#337-339)
includeInFee(address) should be declared external:
- ElephantCoin.includeInFee(address) (#341-343)
isExcludedFromFee(address) should be declared external:
- ElephantCoin.isExcludedFromFee(address) (#346-348)
setTaxes(uint256,uint256,uint256,uint256,uint256) should be declared external:
- ElephantCoin.setTaxes(uint256,uint256,uint256,uint256,uint256) (#350-353)
setSellTaxes(uint256,uint256,uint256,uint256,uint256) should be declared external:
- ElephantCoin.setSellTaxes(uint256,uint256,uint256,uint256,uint256) (#355-358)
tradingStatus(bool) should be declared external:
- ElephantCoin.tradingStatus(bool) (#650-652)
rescueAnyBEP20Tokens(address,address,uint256) should be declared external:
- ElephantCoin.rescueAnyBEP20Tokens(address,address,uint256) (#696-698)
Use the external attribute for functions never called from the contract.
Additional information: link
Attempt to swap token was unsuccessful. For some reason it is untradeable. If token is not in presale stage and is not traded outside PancakeSwap, then it's a scam
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.
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