Cryptocash is Professional Creative Template
ELONSCURRENCY.swapBack() (#337-382) sends eth to arbitrary user
Dangerous calls:
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#365)
- (tmpSuccess,None) = address(utilityFeeReceiver).call{gas: 30000,value: amountBNButility}() (#366)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBdevFee}() (#367)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in ELONSCURRENCY._transferFrom(address,address,uint256) (#260-288):
External calls:
- swapBack() (#278)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#348-354)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#365)
- (tmpSuccess,None) = address(utilityFeeReceiver).call{gas: 30000,value: amountBNButility}() (#366)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBdevFee}() (#367)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#372-379)
External calls sending eth:
- swapBack() (#278)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#365)
- (tmpSuccess,None) = address(utilityFeeReceiver).call{gas: 30000,value: amountBNButility}() (#366)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBdevFee}() (#367)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#372-379)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#281)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#284)
- amountReceived = takeFee(sender,amount,recipient) (#283)
- _balances[address(this)] = _balances[address(this)].add(contractTokens) (#319)
- _balances[burnFeeReceiver] = _balances[burnFeeReceiver].add(burnTokens) (#320)
Apply the check-effects-interactions pattern.
Additional information: link
Unable to verify that contract auditor is trusted: Certik, Quantstamp, Hacken, Solidity, Paladinsec, Openzeppelin, Verichains
ELONSCURRENCY.swapBack().tmpSuccess (#365) is written in both
(tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#365)
(tmpSuccess,None) = address(utilityFeeReceiver).call{gas: 30000,value: amountBNButility}() (#366)
ELONSCURRENCY.swapBack().tmpSuccess (#365) is written in both
(tmpSuccess,None) = address(utilityFeeReceiver).call{gas: 30000,value: amountBNButility}() (#366)
(tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBdevFee}() (#367)
ELONSCURRENCY.swapBack().tmpSuccess (#365) is written in both
(tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBdevFee}() (#367)
tmpSuccess = false (#369)
Fix or remove the writes.
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.
Contract name (Elon's Currency) 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.
ELONSCURRENCY.takeFee(address,uint256,address) (#305-328) performs a multiplication on the result of a division:
-feeAmount = amount.mul(totalFee).mul(multiplier).div(feeDenominator * 100) (#314)
-burnTokens = feeAmount.mul(burnFee).div(totalFee) (#316)
Consider ordering multiplication before division.
Additional information: link
ELONSCURRENCY.manage_TxLimitExempt(address[],bool).i (#431) is a local variable never initialized
ELONSCURRENCY.manage_blacklist(address[],bool).i (#417) is a local variable never initialized
ELONSCURRENCY.manage_FeeExempt(address[],bool).i (#424) is a local variable never initialized
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
ELONSCURRENCY.swapBack() (#337-382) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#372-379)
Ensure that all the return values of the function calls are used.
Additional information: link
ELONSCURRENCY.setMaxTxPercent_base1000(uint256) (#388-390) should emit an event for:
- _maxTxAmount = (_totalSupply * maxTXPercentage_base1000) / 1000 (#389)
ELONSCURRENCY.setMaxTxAbsolute(uint256) (#392-394) should emit an event for:
- _maxTxAmount = amount (#393)
ELONSCURRENCY.setMultipliers(uint256,uint256,uint256) (#401-405) should emit an event for:
- sellMultiplier = _sell (#402)
- buyMultiplier = _buy (#403)
- transferMultiplier = _trans (#404)
ELONSCURRENCY.setFees(uint256,uint256,uint256,uint256,uint256,uint256) (#444-453) should emit an event for:
- liquidityFee = _liquidityFee (#445)
- devFee = _devFee (#446)
- marketingFee = _marketingFee (#447)
- utilityFee = _utilityFee (#448)
- burnFee = _burnFee (#449)
- totalFee = _liquidityFee.add(_devFee).add(_marketingFee).add(_utilityFee).add(_burnFee) (#450)
- feeDenominator = _feeDenominator (#451)
ELONSCURRENCY.setSwapBackSettings(bool,uint256) (#463-466) should emit an event for:
- swapThreshold = _amount (#465)
ELONSCURRENCY.setTargetLiquidity(uint256,uint256) (#468-471) should emit an event for:
- targetLiquidity = _target (#469)
- targetLiquidityDenominator = _denominator (#470)
Emit an event for critical parameter changes.
Additional information: link
Auth.transferOwnership(address).adr (#89) lacks a zero-check on :
- owner = adr (#90)
ELONSCURRENCY.setFeeReceivers(address,address,address,address,address)._autoLiquidityReceiver (#455) lacks a zero-check on :
- autoLiquidityReceiver = _autoLiquidityReceiver (#456)
ELONSCURRENCY.setFeeReceivers(address,address,address,address,address)._marketingFeeReceiver (#455) lacks a zero-check on :
- marketingFeeReceiver = _marketingFeeReceiver (#457)
ELONSCURRENCY.setFeeReceivers(address,address,address,address,address)._utilityFeeReceiver (#455) lacks a zero-check on :
- utilityFeeReceiver = _utilityFeeReceiver (#458)
ELONSCURRENCY.setFeeReceivers(address,address,address,address,address)._burnFeeReceiver (#455) lacks a zero-check on :
- burnFeeReceiver = _burnFeeReceiver (#459)
ELONSCURRENCY.setFeeReceivers(address,address,address,address,address)._devFeeReceiver (#455) lacks a zero-check on :
- devFeeReceiver = _devFeeReceiver (#460)
Check that the address is not zero.
Additional information: link
Reentrancy in ELONSCURRENCY.constructor() (#206-226):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#208)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = type()(uint256).max (#210)
- _balances[msg.sender] = _totalSupply (#224)
- autoLiquidityReceiver = msg.sender (#212)
- burnFeeReceiver = DEAD (#216)
- devFeeReceiver = 0x277BdadF7A82Ab1a9C5Cac664abfdF748aFF3486 (#215)
- isFeeExempt[msg.sender] = true (#218)
- isTxLimitExempt[msg.sender] = true (#220)
- isTxLimitExempt[DEAD] = true (#221)
- isTxLimitExempt[ZERO] = true (#222)
- marketingFeeReceiver = 0x23aDE59671dA088DB97c64A32936f1D18324aedD (#213)
- utilityFeeReceiver = 0x6AC486fC08FDD0a7306360D9B61634Aa16332520 (#214)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in ELONSCURRENCY._transferFrom(address,address,uint256) (#260-288):
External calls:
- swapBack() (#278)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#348-354)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#365)
- (tmpSuccess,None) = address(utilityFeeReceiver).call{gas: 30000,value: amountBNButility}() (#366)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBdevFee}() (#367)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#372-379)
External calls sending eth:
- swapBack() (#278)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#365)
- (tmpSuccess,None) = address(utilityFeeReceiver).call{gas: 30000,value: amountBNButility}() (#366)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBdevFee}() (#367)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#372-379)
Event emitted after the call(s):
- Transfer(sender,address(this),contractTokens) (#321)
- amountReceived = takeFee(sender,amount,recipient) (#283)
- Transfer(sender,burnFeeReceiver,burnTokens) (#324)
- amountReceived = takeFee(sender,amount,recipient) (#283)
- Transfer(sender,recipient,amountReceived) (#286)
Reentrancy in ELONSCURRENCY.constructor() (#206-226):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#208)
Event emitted after the call(s):
- Transfer(address(0),msg.sender,_totalSupply) (#225)
Reentrancy in ELONSCURRENCY.swapBack() (#337-382):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#348-354)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#365)
- (tmpSuccess,None) = address(utilityFeeReceiver).call{gas: 30000,value: amountBNButility}() (#366)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBdevFee}() (#367)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#372-379)
External calls sending eth:
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#365)
- (tmpSuccess,None) = address(utilityFeeReceiver).call{gas: 30000,value: amountBNButility}() (#366)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBdevFee}() (#367)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#372-379)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#380)
Apply the check-effects-interactions pattern.
Additional information: link
ELONSCURRENCY._maxTxAmount (#163) is set pre-construction with a non-constant function or state variable:
- _totalSupply / 100
ELONSCURRENCY._maxWalletToken (#164) is set pre-construction with a non-constant function or state variable:
- _totalSupply / 50
ELONSCURRENCY.totalFee (#180) is set pre-construction with a non-constant function or state variable:
- devFee + marketingFee + liquidityFee + utilityFee + burnFee
ELONSCURRENCY.swapThreshold (#202) is set pre-construction with a non-constant function or state variable:
- _totalSupply / 1000
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.9 (#3) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
solc-0.8.9 is not recommended for deployment
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 ELONSCURRENCY.swapBack() (#337-382):
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#365)
- (tmpSuccess,None) = address(utilityFeeReceiver).call{gas: 30000,value: amountBNButility}() (#366)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBdevFee}() (#367)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Function IDEXRouter.WETH() (#104) is not in mixedCase
Function ELONSCURRENCY.setMaxWalletPercent_base1000(uint256) (#385-387) is not in mixedCase
Parameter ELONSCURRENCY.setMaxWalletPercent_base1000(uint256).maxWallPercent_base1000 (#385) is not in mixedCase
Function ELONSCURRENCY.setMaxTxPercent_base1000(uint256) (#388-390) is not in mixedCase
Parameter ELONSCURRENCY.setMaxTxPercent_base1000(uint256).maxTXPercentage_base1000 (#388) is not in mixedCase
Parameter ELONSCURRENCY.setMultipliers(uint256,uint256,uint256)._buy (#401) is not in mixedCase
Parameter ELONSCURRENCY.setMultipliers(uint256,uint256,uint256)._sell (#401) is not in mixedCase
Parameter ELONSCURRENCY.setMultipliers(uint256,uint256,uint256)._trans (#401) is not in mixedCase
Parameter ELONSCURRENCY.tradingStatus(bool)._status (#407) is not in mixedCase
Function ELONSCURRENCY.manage_blacklist_status(bool) (#411-413) is not in mixedCase
Parameter ELONSCURRENCY.manage_blacklist_status(bool)._status (#411) is not in mixedCase
Function ELONSCURRENCY.manage_blacklist(address[],bool) (#415-420) is not in mixedCase
Function ELONSCURRENCY.manage_FeeExempt(address[],bool) (#422-427) is not in mixedCase
Function ELONSCURRENCY.manage_TxLimitExempt(address[],bool) (#429-434) is not in mixedCase
Parameter ELONSCURRENCY.setFees(uint256,uint256,uint256,uint256,uint256,uint256)._liquidityFee (#444) is not in mixedCase
Parameter ELONSCURRENCY.setFees(uint256,uint256,uint256,uint256,uint256,uint256)._devFee (#444) is not in mixedCase
Parameter ELONSCURRENCY.setFees(uint256,uint256,uint256,uint256,uint256,uint256)._marketingFee (#444) is not in mixedCase
Parameter ELONSCURRENCY.setFees(uint256,uint256,uint256,uint256,uint256,uint256)._utilityFee (#444) is not in mixedCase
Parameter ELONSCURRENCY.setFees(uint256,uint256,uint256,uint256,uint256,uint256)._burnFee (#444) is not in mixedCase
Parameter ELONSCURRENCY.setFees(uint256,uint256,uint256,uint256,uint256,uint256)._feeDenominator (#444) is not in mixedCase
Parameter ELONSCURRENCY.setFeeReceivers(address,address,address,address,address)._autoLiquidityReceiver (#455) is not in mixedCase
Parameter ELONSCURRENCY.setFeeReceivers(address,address,address,address,address)._marketingFeeReceiver (#455) is not in mixedCase
Parameter ELONSCURRENCY.setFeeReceivers(address,address,address,address,address)._utilityFeeReceiver (#455) is not in mixedCase
Parameter ELONSCURRENCY.setFeeReceivers(address,address,address,address,address)._burnFeeReceiver (#455) is not in mixedCase
Parameter ELONSCURRENCY.setFeeReceivers(address,address,address,address,address)._devFeeReceiver (#455) is not in mixedCase
Parameter ELONSCURRENCY.setSwapBackSettings(bool,uint256)._enabled (#463) is not in mixedCase
Parameter ELONSCURRENCY.setSwapBackSettings(bool,uint256)._amount (#463) is not in mixedCase
Parameter ELONSCURRENCY.setTargetLiquidity(uint256,uint256)._target (#468) is not in mixedCase
Parameter ELONSCURRENCY.setTargetLiquidity(uint256,uint256)._denominator (#468) is not in mixedCase
Variable ELONSCURRENCY.WBNB (#153) is not in mixedCase
Variable ELONSCURRENCY.DEAD (#154) is not in mixedCase
Variable ELONSCURRENCY.ZERO (#155) is not in mixedCase
Constant ELONSCURRENCY._name (#157) is not in UPPER_CASE_WITH_UNDERSCORES
Constant ELONSCURRENCY._symbol (#158) is not in UPPER_CASE_WITH_UNDERSCORES
Constant ELONSCURRENCY._decimals (#159) is not in UPPER_CASE_WITH_UNDERSCORES
Variable ELONSCURRENCY._totalSupply (#161) is not in mixedCase
Variable ELONSCURRENCY._maxTxAmount (#163) is not in mixedCase
Variable ELONSCURRENCY._maxWalletToken (#164) is not in mixedCase
Variable ELONSCURRENCY._balances (#166) is not in mixedCase
Variable ELONSCURRENCY._allowances (#167) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#109) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#110)
Prevent variables from having similar names.
Additional information: link
ELONSCURRENCY.slitherConstructorVariables() (#150-506) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#154)
ELONSCURRENCY.slitherConstructorVariables() (#150-506) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#155)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
ELONSCURRENCY.DEAD (#154) should be constant
ELONSCURRENCY.WBNB (#153) should be constant
ELONSCURRENCY.ZERO (#155) should be constant
ELONSCURRENCY._totalSupply (#161) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
authorize(address) should be declared external:
- Auth.authorize(address) (#73-75)
unauthorize(address) should be declared external:
- Auth.unauthorize(address) (#77-79)
transferOwnership(address) should be declared external:
- Auth.transferOwnership(address) (#89-93)
Use the external attribute for functions never called from the contract.
Additional information: link
Contract ticker ($ELOC) 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.
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
Token is deployed only at one blockchain
Token has only one trading pair
BscScan page for the token does not contain additional info: website, socials, description, etc.
Additional information: link
Unable to find token on CoinGecko
Additional information: link
Token was delisted (assigned to inactive / untracked listing) from CoinMarketCap
Additional information: link
Unable to find whitepaper link on the website
Unable to find token on CoinHunt
Additional information: link
Unable to find code repository for the project
Token is marked as scam (rug pull, honeypot, phishing, etc.)
Additional information: link
Young tokens have high risks of scam / price dump / death
Token has no active CoinMarketCap listing / rank
Alexa traffic rank is relatively low
Additional information: link
Young tokens have high risks of scam / price dump / death
Token has no active CoinGecko listing / rank
Twitter account link seems to be invalid
Telegram account has less than 100 subscribers
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account