CalorieToken is intended to be the flagship M2E token on BSC, which is global fitness and profitable token. CalorieToken tries to transfer the blockchain value to the sports field through social channels, enhance the value sharing and emotional interaction in the sports field, and finally realize the two-way empowerment and positive interaction between sports and blockchain. CalorieToken will deepen the link of sports cultural value through NFT, Swap, Game-Fi and Social-Fi.
CalorieToken.addLiquidity(uint256,uint256) (#735-748) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#740-747)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in CalorieToken._transfer(address,address,uint256) (#643-677):
External calls:
- swapAndLiquify(contractTokenBalance) (#663)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#740-747)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#724-730)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#663)
- recipient.transfer(amount) (#608)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#740-747)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#666)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#672)
- finalAmount = takeFee(sender,recipient,amount) (#668-669)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#762)
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.
CalorieToken.setBuyTaxes(uint256,uint256,uint256,uint256) (#549-556) should emit an event for:
- _totalTaxIfBuying = _buyLiquidityFee.add(_buyMarketingFee).add(_buyAppFee).add(_buyBuyBackFee) (#555)
CalorieToken.setSelTaxes(uint256,uint256,uint256,uint256) (#558-565) should emit an event for:
- _totalTaxIfSelling = _sellLiquidityFee.add(_sellMarketingFee).add(_sellAppFee).add(_sellBuyBackFee) (#564)
CalorieToken.setDistributionSettings(uint256,uint256,uint256,uint256) (#567-573) should emit an event for:
- _liquidityShare = newLiquidityShare (#568)
- _marketingShare = newMarketingShare (#569)
- _appShare = newAppShare (#570)
- _totalDistributionShares = _liquidityShare.add(_marketingShare).add(_appShare).add(_buyBackShare) (#572)
CalorieToken.setNumTokensBeforeSwap(uint256) (#575-577) should emit an event for:
- minimumTokensBeforeSwap = newLimit (#576)
Emit an event for critical parameter changes.
Additional information: link
Reentrancy in CalorieToken.changeRouterVersion(address) (#611-627):
External calls:
- newPairAddress = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#619-620)
State variables written after the call(s):
- isMarketPair[address(uniswapPair)] = true (#626)
- uniswapPair = newPairAddress (#623)
- uniswapV2Router = _uniswapV2Router (#624)
Reentrancy in CalorieToken.constructor() (#455-478):
External calls:
- uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#458-459)
State variables written after the call(s):
- _allowances[address(this)][address(uniswapV2Router)] = _totalSupply (#462)
- _balances[_msgSender()] = _totalSupply (#476)
- _totalDistributionShares = _liquidityShare.add(_marketingShare).add(_appShare).add(_buyBackShare) (#472)
- _totalTaxIfBuying = _buyLiquidityFee.add(_buyMarketingFee).add(_buyAppFee).add(_buyBuyBackFee) (#470)
- _totalTaxIfSelling = _sellLiquidityFee.add(_sellMarketingFee).add(_sellAppFee).add(_sellBuyBackFee) (#471)
- isExcludedFromFee[owner()] = true (#464)
- isExcludedFromFee[address(this)] = true (#465)
- isExcludedFromFee[address(marketingWalletAddress)] = true (#466)
- isExcludedFromFee[address(appWalletAddress)] = true (#467)
- isExcludedFromFee[address(buybackWalletAddress)] = true (#468)
- isMarketPair[address(uniswapPair)] = true (#474)
- uniswapV2Router = _uniswapV2Router (#461)
Reentrancy in CalorieToken.swapAndLiquify(uint256) (#686-713):
External calls:
- swapTokensForEth(tokensForSwap) (#691)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#724-730)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#712)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#740-747)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#703)
- recipient.transfer(amount) (#608)
- transferToAddressETH(appWalletAddress,amountBNBApp) (#706)
- recipient.transfer(amount) (#608)
- transferToAddressETH(buybackWalletAddress,amountBNBBuyBack) (#709)
- recipient.transfer(amount) (#608)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#712)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#740-747)
State variables written after the call(s):
- addLiquidity(tokensForLP,amountBNBLiquidity) (#712)
- _allowances[owner][spender] = amount (#537)
Reentrancy in CalorieToken.transferFrom(address,address,uint256) (#637-641):
External calls:
- _transfer(sender,recipient,amount) (#638)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#740-747)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#724-730)
External calls sending eth:
- _transfer(sender,recipient,amount) (#638)
- recipient.transfer(amount) (#608)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#740-747)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#639)
- _allowances[owner][spender] = amount (#537)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in CalorieToken._transfer(address,address,uint256) (#643-677):
External calls:
- swapAndLiquify(contractTokenBalance) (#663)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#740-747)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#724-730)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#663)
- recipient.transfer(amount) (#608)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#740-747)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#763)
- finalAmount = takeFee(sender,recipient,amount) (#668-669)
- Transfer(sender,recipient,finalAmount) (#674)
Reentrancy in CalorieToken.constructor() (#455-478):
External calls:
- uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#458-459)
Event emitted after the call(s):
- Transfer(address(0),_msgSender(),_totalSupply) (#477)
Reentrancy in CalorieToken.swapAndLiquify(uint256) (#686-713):
External calls:
- swapTokensForEth(tokensForSwap) (#691)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#724-730)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#712)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#740-747)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#703)
- recipient.transfer(amount) (#608)
- transferToAddressETH(appWalletAddress,amountBNBApp) (#706)
- recipient.transfer(amount) (#608)
- transferToAddressETH(buybackWalletAddress,amountBNBBuyBack) (#709)
- recipient.transfer(amount) (#608)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#712)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#740-747)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#538)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#712)
Reentrancy in CalorieToken.swapTokensForEth(uint256) (#715-733):
External calls:
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#724-730)
Event emitted after the call(s):
- SwapTokensForETH(tokenAmount,path) (#732)
Reentrancy in CalorieToken.transferFrom(address,address,uint256) (#637-641):
External calls:
- _transfer(sender,recipient,amount) (#638)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#740-747)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#724-730)
External calls sending eth:
- _transfer(sender,recipient,amount) (#638)
- recipient.transfer(amount) (#608)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#740-747)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#538)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#639)
Apply the check-effects-interactions pattern.
Additional information: link
Address.isContract(address) (#86-95) uses assembly
- INLINE ASM (#93)
Address._functionCallWithValue(address,bytes,uint256,string) (#122-139) uses assembly
- INLINE ASM (#131-134)
Do not use evm assembly.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#122-139) is never used and should be removed
Address.functionCall(address,bytes) (#105-107) is never used and should be removed
Address.functionCall(address,bytes,string) (#109-111) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#113-115) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#117-120) is never used and should be removed
Address.isContract(address) (#86-95) is never used and should be removed
Address.sendValue(address,uint256) (#97-103) is never used and should be removed
Context._msgData() (#14-17) is never used and should be removed
SafeMath.mod(uint256,uint256) (#74-76) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#78-81) is never used and should be removed
Remove unused functions.
Additional information: link
CalorieToken._totalSupply (#422) is set pre-construction with a non-constant function or state variable:
- 10 * 10 ** (_decimals + 10)
CalorieToken.minimumTokensBeforeSwap (#423) is set pre-construction with a non-constant function or state variable:
- 10 * 10 ** _decimals
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) (#97-103):
- (success) = recipient.call{value: amount}() (#101)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#122-139):
- (success,returndata) = target.call{value: weiValue}(data) (#125)
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() (#212) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#213) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#229) is not in mixedCase
Function IUniswapV2Router01.WETH() (#248) is not in mixedCase
Parameter CalorieToken.setSwapAndLiquifyEnabled(bool)._enabled (#594) is not in mixedCase
Variable CalorieToken._balances (#395) is not in mixedCase
Variable CalorieToken._isBlacklisted (#401) is not in mixedCase
Variable CalorieToken._buyLiquidityFee (#403) is not in mixedCase
Variable CalorieToken._buyMarketingFee (#404) is not in mixedCase
Variable CalorieToken._buyAppFee (#405) is not in mixedCase
Variable CalorieToken._buyBuyBackFee (#406) is not in mixedCase
Variable CalorieToken._sellLiquidityFee (#408) is not in mixedCase
Variable CalorieToken._sellMarketingFee (#409) is not in mixedCase
Variable CalorieToken._sellAppFee (#410) is not in mixedCase
Variable CalorieToken._sellBuyBackFee (#411) is not in mixedCase
Variable CalorieToken._liquidityShare (#413) is not in mixedCase
Variable CalorieToken._marketingShare (#414) is not in mixedCase
Variable CalorieToken._appShare (#415) is not in mixedCase
Variable CalorieToken._buyBackShare (#416) is not in mixedCase
Variable CalorieToken._totalTaxIfBuying (#418) is not in mixedCase
Variable CalorieToken._totalTaxIfSelling (#419) is not in mixedCase
Variable CalorieToken._totalDistributionShares (#420) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Reentrancy in CalorieToken._transfer(address,address,uint256) (#643-677):
External calls:
- swapAndLiquify(contractTokenBalance) (#663)
- recipient.transfer(amount) (#608)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#663)
- recipient.transfer(amount) (#608)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#740-747)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#666)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#672)
- finalAmount = takeFee(sender,recipient,amount) (#668-669)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#762)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#763)
- finalAmount = takeFee(sender,recipient,amount) (#668-669)
- Transfer(sender,recipient,finalAmount) (#674)
Reentrancy in CalorieToken.swapAndLiquify(uint256) (#686-713):
External calls:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#703)
- recipient.transfer(amount) (#608)
- transferToAddressETH(appWalletAddress,amountBNBApp) (#706)
- recipient.transfer(amount) (#608)
- transferToAddressETH(buybackWalletAddress,amountBNBBuyBack) (#709)
- recipient.transfer(amount) (#608)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#703)
- recipient.transfer(amount) (#608)
- transferToAddressETH(appWalletAddress,amountBNBApp) (#706)
- recipient.transfer(amount) (#608)
- transferToAddressETH(buybackWalletAddress,amountBNBBuyBack) (#709)
- recipient.transfer(amount) (#608)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#712)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#740-747)
State variables written after the call(s):
- addLiquidity(tokensForLP,amountBNBLiquidity) (#712)
- _allowances[owner][spender] = amount (#537)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#538)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#712)
Reentrancy in CalorieToken.transferFrom(address,address,uint256) (#637-641):
External calls:
- _transfer(sender,recipient,amount) (#638)
- recipient.transfer(amount) (#608)
External calls sending eth:
- _transfer(sender,recipient,amount) (#638)
- recipient.transfer(amount) (#608)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#740-747)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#639)
- _allowances[owner][spender] = amount (#537)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#538)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#639)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#253) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#254)
Prevent variables from having similar names.
Additional information: link
Ownable.waiveOwnership() (#164-167) uses literals with too many digits:
- OwnershipTransferred(_owner,address(0x000000000000000000000000000000000000dEaD)) (#165)
Ownable.waiveOwnership() (#164-167) uses literals with too many digits:
- _owner = address(0x000000000000000000000000000000000000dEaD) (#166)
CalorieToken.slitherConstructorVariables() (#381-770) uses literals with too many digits:
- deadAddress = 0x000000000000000000000000000000000000dEaD (#393)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
Ownable.asdasd (#144) is never used in CalorieToken (#381-770)
Ownable._lockTime (#145) is never used in CalorieToken (#381-770)
Remove unused state variables.
Additional information: link
CalorieToken._decimals (#388) should be constant
CalorieToken._name (#386) should be constant
CalorieToken._symbol (#387) should be constant
Ownable._lockTime (#145) should be constant
Ownable.asdasd (#144) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
waiveOwnership() should be declared external:
- Ownable.waiveOwnership() (#164-167)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#169-173)
getTime() should be declared external:
- Ownable.getTime() (#175-177)
blacklistMultipleAddress(address[],bool) should be declared external:
- CalorieToken.blacklistMultipleAddress(address[],bool) (#484-488)
name() should be declared external:
- CalorieToken.name() (#490-492)
symbol() should be declared external:
- CalorieToken.symbol() (#494-496)
decimals() should be declared external:
- CalorieToken.decimals() (#498-500)
totalSupply() should be declared external:
- CalorieToken.totalSupply() (#502-504)
allowance(address,address) should be declared external:
- CalorieToken.allowance(address,address) (#510-512)
increaseAllowance(address,uint256) should be declared external:
- CalorieToken.increaseAllowance(address,uint256) (#514-517)
decreaseAllowance(address,uint256) should be declared external:
- CalorieToken.decreaseAllowance(address,uint256) (#519-522)
minimumTokensBeforeSwapAmount() should be declared external:
- CalorieToken.minimumTokensBeforeSwapAmount() (#524-526)
approve(address,uint256) should be declared external:
- CalorieToken.approve(address,uint256) (#528-531)
setMarketPairStatus(address,bool) should be declared external:
- CalorieToken.setMarketPairStatus(address,bool) (#541-543)
setIsExcludedFromFee(address,bool) should be declared external:
- CalorieToken.setIsExcludedFromFee(address,bool) (#545-547)
setSwapAndLiquifyEnabled(bool) should be declared external:
- CalorieToken.setSwapAndLiquifyEnabled(bool) (#594-597)
setSwapAndLiquifyByLimitOnly(bool) should be declared external:
- CalorieToken.setSwapAndLiquifyByLimitOnly(bool) (#599-601)
getCirculatingSupply() should be declared external:
- CalorieToken.getCirculatingSupply() (#603-605)
changeRouterVersion(address) should be declared external:
- CalorieToken.changeRouterVersion(address) (#611-627)
transfer(address,uint256) should be declared external:
- CalorieToken.transfer(address,uint256) (#632-635)
transferFrom(address,address,uint256) should be declared external:
- CalorieToken.transferFrom(address,address,uint256) (#637-641)
Use the external attribute for functions never called from the contract.
Additional information: link
Redundant expression "this (#15)" inContext (#8-18)
Remove redundant statements if they congest code but offer no value.
Additional information: link
CalorieToken.addLiquidity(uint256,uint256) (#735-748) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#740-747)
Ensure that all the return values of the function calls are used.
Additional information: link
CalorieToken.allowance(address,address).owner (#510) shadows:
- Ownable.owner() (#155-157) (function)
CalorieToken._approve(address,address,uint256).owner (#533) shadows:
- Ownable.owner() (#155-157) (function)
Rename the local variables that shadow another component.
Additional information: link
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.
Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.
Average 30d PancakeSwap liquidity is low.
Number of Binance Smart Chain (BSC) token holders is low.
Token is deployed only at one blockchain
Token has only one trading pair
Contract has 10% buy tax and 10% sell tax.
Taxes are low and contract ownership is renounced.
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
Unable to find token on CoinMarketCap
Additional information: link
Unable to find KYC or doxxing proof
Unable to verify token contract address on the website
Unable to find audit link on the website
Unable to find Telegram link on the website
Unable to find Twitter link on the website
Token is not listed at Mobula.Finance
Additional information: link
Unable to find code repository for the project
Young tokens have high risks of price dump / death
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Young tokens have high risks of price dump / death
Twitter account seems to be suspended
Additional information: link
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account