Elves Century is a BSC based token that let you play, collect NFTs, and earn money, futhermore, you can train your own elf heroes, explore worlds, and join the elfic world's adventures.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
ELVES.addLiquidity(uint256,uint256) (#1071-1084) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1076-1083)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in ELVES._transfer(address,address,uint256) (#955-1006):
External calls:
- swapTokens(contractTokenBalance) (#977)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,account,block.timestamp) (#1062-1068)
External calls sending eth:
- swapTokens(contractTokenBalance) (#977)
- recipient.transfer(amount) (#1101)
State variables written after the call(s):
- super._transfer(from,address(this),fees) (#1002)
- _balances[sender] = senderBalance - amount (#245)
- _balances[recipient] += amount (#247)
- super._transfer(from,to,amount) (#1005)
- _balances[sender] = senderBalance - amount (#245)
- _balances[recipient] += amount (#247)
- swapping = false (#979)
Apply the check-effects-interactions pattern.
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.
ELVES.addLiquidity(uint256,uint256) (#1071-1084) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1076-1083)
Ensure that all the return values of the function calls are used.
Additional information: link
ELVES.swapTokens(uint256) (#1086-1098) performs a multiplication on the result of a division:
-transferToAddressETH(marketingAddress,transferredBalance.div(totalFees).mul(marketingFee)) (#1094)
ELVES.swapTokens(uint256) (#1086-1098) performs a multiplication on the result of a division:
-transferToAddressETH(developmentAddress,transferredBalance.div(totalFees).mul(developmentFee)) (#1095)
Consider ordering multiplication before division.
Additional information: link
ELVES.setMarketingFee(uint256) (#880-882) should emit an event for:
- marketingFee = value (#881)
ELVES.setDevelopmentFee(uint256) (#885-887) should emit an event for:
- developmentFee = value (#886)
ELVES.setNumberOfTokensToSwap(uint256) (#924-926) should emit an event for:
- swapTokensAtAmount = _amount * (10 ** 9) (#925)
ELVES.setSwapTokensAmountMax(uint256) (#928-930) should emit an event for:
- swapTokensAtAmountMax = _amount * (10 ** 9) (#929)
Emit an event for critical parameter changes.
Additional information: link
Reentrancy in ELVES.constructor() (#838-864):
External calls:
- uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this),uniswapV2Router.WETH()) (#851-854)
State variables written after the call(s):
- _mint(owner(),1000000000 * (10 ** 9)) (#863)
- _balances[account] += amount (#269)
- excludeFromFees(marketingAddress,true) (#858)
- _isExcludedFromFees[account] = excluded (#910)
- excludeFromFees(developmentAddress,true) (#859)
- _isExcludedFromFees[account] = excluded (#910)
- excludeFromFees(address(this),true) (#860)
- _isExcludedFromFees[account] = excluded (#910)
- excludeFromFees(owner(),true) (#861)
- _isExcludedFromFees[account] = excluded (#910)
- _mint(owner(),1000000000 * (10 ** 9)) (#863)
- _totalSupply += amount (#268)
Reentrancy in ELVES.swapAndLiquify(uint256) (#1009-1044):
External calls:
- swapTokensForEth(half,address(address(this))) (#1035)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,account,block.timestamp) (#1062-1068)
- addLiquidity(otherHalf,newBalance) (#1041)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1076-1083)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1041)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1076-1083)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#1041)
- _allowances[owner][spender] = amount (#324)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in ELVES._transfer(address,address,uint256) (#955-1006):
External calls:
- swapTokens(contractTokenBalance) (#977)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,account,block.timestamp) (#1062-1068)
External calls sending eth:
- swapTokens(contractTokenBalance) (#977)
- recipient.transfer(amount) (#1101)
Event emitted after the call(s):
- Transfer(sender,recipient,amount) (#249)
- super._transfer(from,to,amount) (#1005)
- Transfer(sender,recipient,amount) (#249)
- super._transfer(from,address(this),fees) (#1002)
Reentrancy in ELVES.constructor() (#838-864):
External calls:
- uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this),uniswapV2Router.WETH()) (#851-854)
Event emitted after the call(s):
- ExcludeFromFees(account,excluded) (#912)
- excludeFromFees(developmentAddress,true) (#859)
- ExcludeFromFees(account,excluded) (#912)
- excludeFromFees(marketingAddress,true) (#858)
- ExcludeFromFees(account,excluded) (#912)
- excludeFromFees(owner(),true) (#861)
- ExcludeFromFees(account,excluded) (#912)
- excludeFromFees(address(this),true) (#860)
- Transfer(address(0),account,amount) (#270)
- _mint(owner(),1000000000 * (10 ** 9)) (#863)
Reentrancy in ELVES.swapAndLiquify(uint256) (#1009-1044):
External calls:
- swapTokensForEth(half,address(address(this))) (#1035)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,account,block.timestamp) (#1062-1068)
- addLiquidity(otherHalf,newBalance) (#1041)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1076-1083)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1041)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1076-1083)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#325)
- addLiquidity(otherHalf,newBalance) (#1041)
- SwapAndLiquify(half,newBalance,otherHalf,true) (#1043)
Apply the check-effects-interactions pattern.
Additional information: link
Ownable.unlock() (#530-535) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(block.timestamp > _lockTime,Contract is locked until 7 days) (#532)
Avoid relying on block.timestamp.
Additional information: link
Address.isContract(address) (#425-434) uses assembly
- INLINE ASM (#432)
Address._functionCallWithValue(address,bytes,uint256,string) (#462-479) uses assembly
- INLINE ASM (#471-474)
Do not use evm assembly.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#462-479) is never used and should be removed
Address.functionCall(address,bytes) (#445-447) is never used and should be removed
Address.functionCall(address,bytes,string) (#449-451) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#453-455) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#457-460) is never used and should be removed
Address.isContract(address) (#425-434) is never used and should be removed
Address.sendValue(address,uint256) (#436-442) is never used and should be removed
Context._msgData() (#10-14) is never used and should be removed
ELVES.addLiquidity(uint256,uint256) (#1071-1084) is never used and should be removed
ELVES.swapAndLiquify(uint256) (#1009-1044) is never used and should be removed
SafeMath.mod(uint256,uint256) (#413-415) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#417-420) is never used and should be removed
Remove unused functions.
Additional information: link
Low level call in Address.sendValue(address,uint256) (#436-442):
- (success) = recipient.call{value: amount}() (#440)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#462-479):
- (success,returndata) = target.call{value: weiValue}(data) (#465)
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() (#585) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#587) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#604) is not in mixedCase
Function IUniswapV2Router01.WETH() (#636) is not in mixedCase
Parameter ELVES.setNumberOfTokensToSwap(uint256)._amount (#924) is not in mixedCase
Parameter ELVES.setSwapTokensAmountMax(uint256)._amount (#928) is not in mixedCase
Parameter ELVES.transferForeignToken(address,address)._token (#1104) is not in mixedCase
Parameter ELVES.transferForeignToken(address,address)._to (#1104) is not in mixedCase
Function ELVES.Sweep() (#1109-1112) is not in mixedCase
Variable ELVES.SwapAndLiquidityEnabled (#815) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#11)" inContext (#5-15)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in ELVES._transfer(address,address,uint256) (#955-1006):
External calls:
- swapTokens(contractTokenBalance) (#977)
- recipient.transfer(amount) (#1101)
State variables written after the call(s):
- super._transfer(from,address(this),fees) (#1002)
- _balances[sender] = senderBalance - amount (#245)
- _balances[recipient] += amount (#247)
- super._transfer(from,to,amount) (#1005)
- _balances[sender] = senderBalance - amount (#245)
- _balances[recipient] += amount (#247)
- swapping = false (#979)
Event emitted after the call(s):
- Transfer(sender,recipient,amount) (#249)
- super._transfer(from,to,amount) (#1005)
- Transfer(sender,recipient,amount) (#249)
- super._transfer(from,address(this),fees) (#1002)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#641) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#642)
Prevent variables from having similar names.
Additional information: link
ELVES.constructor() (#838-864) uses literals with too many digits:
- _mint(owner(),1000000000 * (10 ** 9)) (#863)
ELVES.slitherConstructorVariables() (#793-1114) uses literals with too many digits:
- swapTokensAtAmount = 50000000 * (10 ** 9) (#806)
ELVES.slitherConstructorVariables() (#793-1114) uses literals with too many digits:
- swapTokensAtAmountMax = 5000000 * (10 ** 9) (#807)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
name() should be declared external:
- ERC20.name() (#73-75)
symbol() should be declared external:
- ERC20.symbol() (#81-83)
decimals() should be declared external:
- ELVES.decimals() (#868-870)
- ERC20.decimals() (#98-100)
totalSupply() should be declared external:
- ERC20.totalSupply() (#105-107)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (#124-127)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (#132-134)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (#143-146)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (#161-175)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (#189-192)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (#208-216)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#504-507)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#509-513)
getUnlockTime() should be declared external:
- Ownable.getUnlockTime() (#515-517)
getTime() should be declared external:
- Ownable.getTime() (#519-521)
lock(uint256) should be declared external:
- Ownable.lock(uint256) (#523-528)
unlock() should be declared external:
- Ownable.unlock() (#530-535)
burn(address,uint256) should be declared external:
- ELVES.burn(address,uint256) (#872-874)
updateSwapAndLiquidity(bool) should be declared external:
- ELVES.updateSwapAndLiquidity(bool) (#876-878)
updatePancakeSwapRouter(address) should be declared external:
- ELVES.updatePancakeSwapRouter(address) (#901-906)
excludeMultipleAccountsFromFees(address[],bool) should be declared external:
- ELVES.excludeMultipleAccountsFromFees(address[],bool) (#915-921)
setNumberOfTokensToSwap(uint256) should be declared external:
- ELVES.setNumberOfTokensToSwap(uint256) (#924-926)
setSwapTokensAmountMax(uint256) should be declared external:
- ELVES.setSwapTokensAmountMax(uint256) (#928-930)
updateMarketingAddress(address) should be declared external:
- ELVES.updateMarketingAddress(address) (#932-937)
updateDevelopmentAddress(address) should be declared external:
- ELVES.updateDevelopmentAddress(address) (#939-944)
setBlockNumber() should be declared external:
- ELVES.setBlockNumber() (#947-949)
isExcludedFromFees(address) should be declared external:
- ELVES.isExcludedFromFees(address) (#951-953)
transferForeignToken(address,address) should be declared external:
- ELVES.transferForeignToken(address,address) (#1104-1107)
Use the external attribute for functions never called from the contract.
Additional information: link
Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.
Number of Binance Smart Chain (BSC) token holders is low.
Token is deployed only at one blockchain
Token has only one trading pair
Unable to find PancakeSwap trading pair to compute liquidity.
Unable to find PancakeSwap trading pair to compute volume.
Unable to find PancakeSwap trading pair to compute number of swaps.
BscScan page for the token does not contain additional info: website, socials, description, etc.
Additional information: link
Unable to find token contract audit
Unable to verify token contract address on the website
Unable to find audit link on the website
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
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of scam / price dump / death
Token has no active CoinGecko listing / rank
Young tokens have high risks of price dump / death
Young tokens have high risks of price dump / death
Token has relatively low CoinMarketCap rank
Last post in Twitter was more than 30 days ago
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account