CavyInu Token Logo

CAVY [CavyInu] Token

About CAVY

Listings

Not Found
Token 2 years

Website

Not Found

Description

Not Found

Social

Not Found

Laser Scorebeta Last Audit: 15 January 2022

report
Token seems to be anonymous. As long as we are unable to find website score is limited.


Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)

CavyInu.addLiquidity(uint256,uint256) (#506-519) sends eth to arbitrary user
Dangerous calls:
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#511-518)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in CavyInu._transfer(address,address,uint256) (#418-443):
External calls:
- swapAndLiquify(swapTokensAtAmount) (#439)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#511-518)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#530-536)
External calls sending eth:
- swapAndLiquify(swapTokensAtAmount) (#439)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#511-518)
- address(marketingAddress).transfer(marketingAmt) (#497)
- address(devAddress).transfer(devAmt) (#502)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,! (_isExcludedFromFee[from] || _isExcludedFromFee[to]),to == pair) (#442)
- _rOwned[address(this)] += rDev (#352)
- _rOwned[address(this)] += rMarketing (#342)
- _rOwned[address(this)] += rLiquidity (#332)
- _rOwned[sender] = _rOwned[sender] - s.rAmount (#457)
- _rOwned[recipient] = _rOwned[recipient] + s.rTransferAmount (#458)
- _tokenTransfer(from,to,amount,! (_isExcludedFromFee[from] || _isExcludedFromFee[to]),to == pair) (#442)
- _rTotal -= rRfi (#321)
- _tokenTransfer(from,to,amount,! (_isExcludedFromFee[from] || _isExcludedFromFee[to]),to == pair) (#442)
- _tOwned[address(this)] += tMarketing (#340)
- _tOwned[address(this)] += tLiquidity (#330)
- _tOwned[sender] = _tOwned[sender] - tAmount (#451)
- _tOwned[address(this)] += tDev (#350)
- _tOwned[recipient] = _tOwned[recipient] + s.tTransferAmount (#454)
Apply the check-effects-interactions pattern.

Additional information: link

CavyInu.rescueAnyBEP20Tokens(address,address,uint256) (#596-599) ignores return value by IERC20(_tokenAddr).transfer(_to,_amount) (#598)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.

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.

Pragma version^0.8.10 (#2) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
solc-0.8.10 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

Reentrancy in CavyInu._transfer(address,address,uint256) (#418-443):
External calls:
- swapAndLiquify(swapTokensAtAmount) (#439)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#511-518)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#530-536)
External calls sending eth:
- swapAndLiquify(swapTokensAtAmount) (#439)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#511-518)
- address(marketingAddress).transfer(marketingAmt) (#497)
- address(devAddress).transfer(devAmt) (#502)
Event emitted after the call(s):
- Transfer(sender,recipient,s.tTransferAmount) (#471)
- _tokenTransfer(from,to,amount,! (_isExcludedFromFee[from] || _isExcludedFromFee[to]),to == pair) (#442)
- Transfer(sender,address(this),s.tLiquidity + s.tDev + s.tMarketing) (#472)
- _tokenTransfer(from,to,amount,! (_isExcludedFromFee[from] || _isExcludedFromFee[to]),to == pair) (#442)
Reentrancy in CavyInu.constructor() (#172-189):
External calls:
- _pair = IFactory(_router.factory()).createPair(address(this),_router.WETH()) (#174-175)
Event emitted after the call(s):
- Transfer(address(0),owner(),_tTotal) (#188)
Reentrancy in CavyInu.swapAndLiquify(uint256) (#476-504):
External calls:
- swapTokensForBNB(toSwap) (#484)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#530-536)
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#492)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#511-518)
External calls sending eth:
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#492)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#511-518)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#415)
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#492)
Reentrancy in CavyInu.transferFrom(address,address,uint256) (#224-232):
External calls:
- _transfer(sender,recipient,amount) (#225)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#511-518)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#530-536)
External calls sending eth:
- _transfer(sender,recipient,amount) (#225)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#511-518)
- address(marketingAddress).transfer(marketingAmt) (#497)
- address(devAddress).transfer(devAmt) (#502)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#415)
- _approve(sender,_msgSender(),currentAllowance - amount) (#229)
Apply the check-effects-interactions pattern.

Additional information: link

CavyInu.includeInReward(address) (#277-288) has costly operations inside a loop:
- _excluded.pop() (#284)
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

CavyInu.swapAndLiquify(uint256) (#476-504) performs a multiplication on the result of a division:
-unitBalance = deltaBalance / (denominator - sellTaxes.liquidity) (#487)
-bnbToAddLiquidityWith = unitBalance * sellTaxes.liquidity (#488)
CavyInu.swapAndLiquify(uint256) (#476-504) performs a multiplication on the result of a division:
-unitBalance = deltaBalance / (denominator - sellTaxes.liquidity) (#487)
-marketingAmt = unitBalance * 2 * sellTaxes.marketing (#495)
CavyInu.swapAndLiquify(uint256) (#476-504) performs a multiplication on the result of a division:
-unitBalance = deltaBalance / (denominator - sellTaxes.liquidity) (#487)
-devAmt = unitBalance * 2 * sellTaxes.dev (#500)
Consider ordering multiplication before division.

Additional information: link

CavyInu.addLiquidity(uint256,uint256) (#506-519) ignores return value by router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#511-518)
Ensure that all the return values of the function calls are used.

Additional information: link

CavyInu.allowance(address,address).owner (#215) shadows:
- Ownable.owner() (#46-48) (function)
CavyInu._approve(address,address,uint256).owner (#411) shadows:
- Ownable.owner() (#46-48) (function)
Rename the local variables that shadow another component.

Additional information: link

CavyInu.updateMaxWalletBalance(uint256) (#547-549) should emit an event for:
- maxWalletBalance = amount * 10 ** _decimals (#548)
CavyInu.updatMaxBuyAmt(uint256) (#551-553) should emit an event for:
- maxBuyAmount = amount * 10 ** _decimals (#552)
CavyInu.updatMaxSellAmt(uint256) (#555-557) should emit an event for:
- maxSellAmount = amount * 10 ** _decimals (#556)
CavyInu.updateSwapTokensAtAmount(uint256) (#559-561) should emit an event for:
- swapTokensAtAmount = amount * 10 ** _decimals (#560)
Emit an event for critical parameter changes.

Additional information: link

CavyInu.updateMarketingWallet(address).newWallet (#539) lacks a zero-check on :
- marketingAddress = newWallet (#540)
CavyInu.updateDevWallet(address).newDevWallet (#543) lacks a zero-check on :
- devAddress = newDevWallet (#544)
CavyInu.updateRouterAndPair(address,address).newPair (#578) lacks a zero-check on :
- pair = newPair (#580)
Check that the address is not zero.

Additional information: link

Reentrancy in CavyInu._transfer(address,address,uint256) (#418-443):
External calls:
- swapAndLiquify(swapTokensAtAmount) (#439)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#511-518)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#530-536)
External calls sending eth:
- swapAndLiquify(swapTokensAtAmount) (#439)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#511-518)
- address(marketingAddress).transfer(marketingAmt) (#497)
- address(devAddress).transfer(devAmt) (#502)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,! (_isExcludedFromFee[from] || _isExcludedFromFee[to]),to == pair) (#442)
- totFeesPaid.liquidity += tLiquidity (#326)
- totFeesPaid.dev += tDev (#346)
- totFeesPaid.marketing += tMarketing (#336)
- totFeesPaid.rfi += tRfi (#322)
Reentrancy in CavyInu.constructor() (#172-189):
External calls:
- _pair = IFactory(_router.factory()).createPair(address(this),_router.WETH()) (#174-175)
State variables written after the call(s):
- excludeFromReward(pair) (#180)
- _excluded.push(account) (#274)
- excludeFromReward(pair) (#180)
- _isExcluded[account] = true (#273)
- _isExcludedFromFee[owner()] = true (#183)
- _isExcludedFromFee[address(this)] = true (#184)
- _isExcludedFromFee[marketingAddress] = true (#185)
- _isExcludedFromFee[devAddress] = true (#186)
- _rOwned[owner()] = _rTotal (#182)
- excludeFromReward(pair) (#180)
- _tOwned[account] = tokenFromReflection(_rOwned[account]) (#271)
- pair = _pair (#178)
- router = _router (#177)
Reentrancy in CavyInu.swapAndLiquify(uint256) (#476-504):
External calls:
- swapTokensForBNB(toSwap) (#484)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#530-536)
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#492)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#511-518)
External calls sending eth:
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#492)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#511-518)
State variables written after the call(s):
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#492)
- _allowances[owner][spender] = amount (#414)
Reentrancy in CavyInu.transferFrom(address,address,uint256) (#224-232):
External calls:
- _transfer(sender,recipient,amount) (#225)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#511-518)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#530-536)
External calls sending eth:
- _transfer(sender,recipient,amount) (#225)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#511-518)
- address(marketingAddress).transfer(marketingAmt) (#497)
- address(devAddress).transfer(devAmt) (#502)
State variables written after the call(s):
- _approve(sender,_msgSender(),currentAllowance - amount) (#229)
- _allowances[owner][spender] = amount (#414)
Apply the check-effects-interactions pattern.

Additional information: link

CavyInu._rTotal (#116) 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

Function IRouter.WETH() (#77) is not in mixedCase
Struct CavyInu.valuesFromGetValues (#150-162) is not in CapWords
Parameter CavyInu.setTaxes(uint256,uint256,uint256,uint256)._rfi (#304) is not in mixedCase
Parameter CavyInu.setTaxes(uint256,uint256,uint256,uint256)._marketing (#304) is not in mixedCase
Parameter CavyInu.setTaxes(uint256,uint256,uint256,uint256)._dev (#304) is not in mixedCase
Parameter CavyInu.setTaxes(uint256,uint256,uint256,uint256)._liquidity (#304) is not in mixedCase
Parameter CavyInu.setSellTaxes(uint256,uint256,uint256,uint256)._rfi (#312) is not in mixedCase
Parameter CavyInu.setSellTaxes(uint256,uint256,uint256,uint256)._marketing (#312) is not in mixedCase
Parameter CavyInu.setSellTaxes(uint256,uint256,uint256,uint256)._dev (#312) is not in mixedCase
Parameter CavyInu.setSellTaxes(uint256,uint256,uint256,uint256)._liquidity (#312) is not in mixedCase
Parameter CavyInu.updateSwapEnabled(bool)._enabled (#563) is not in mixedCase
Parameter CavyInu.rescueAnyBEP20Tokens(address,address,uint256)._tokenAddr (#596) is not in mixedCase
Parameter CavyInu.rescueAnyBEP20Tokens(address,address,uint256)._to (#596) is not in mixedCase
Parameter CavyInu.rescueAnyBEP20Tokens(address,address,uint256)._amount (#596) is not in mixedCase
Constant CavyInu._decimals (#112) is not in UPPER_CASE_WITH_UNDERSCORES
Constant CavyInu._name (#128) is not in UPPER_CASE_WITH_UNDERSCORES
Constant CavyInu._symbol (#129) 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

Reentrancy in CavyInu._transfer(address,address,uint256) (#418-443):
External calls:
- swapAndLiquify(swapTokensAtAmount) (#439)
- address(marketingAddress).transfer(marketingAmt) (#497)
- address(devAddress).transfer(devAmt) (#502)
External calls sending eth:
- swapAndLiquify(swapTokensAtAmount) (#439)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#511-518)
- address(marketingAddress).transfer(marketingAmt) (#497)
- address(devAddress).transfer(devAmt) (#502)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,! (_isExcludedFromFee[from] || _isExcludedFromFee[to]),to == pair) (#442)
- _rOwned[address(this)] += rDev (#352)
- _rOwned[address(this)] += rMarketing (#342)
- _rOwned[address(this)] += rLiquidity (#332)
- _rOwned[sender] = _rOwned[sender] - s.rAmount (#457)
- _rOwned[recipient] = _rOwned[recipient] + s.rTransferAmount (#458)
- _tokenTransfer(from,to,amount,! (_isExcludedFromFee[from] || _isExcludedFromFee[to]),to == pair) (#442)
- _rTotal -= rRfi (#321)
- _tokenTransfer(from,to,amount,! (_isExcludedFromFee[from] || _isExcludedFromFee[to]),to == pair) (#442)
- _tOwned[address(this)] += tMarketing (#340)
- _tOwned[address(this)] += tLiquidity (#330)
- _tOwned[sender] = _tOwned[sender] - tAmount (#451)
- _tOwned[address(this)] += tDev (#350)
- _tOwned[recipient] = _tOwned[recipient] + s.tTransferAmount (#454)
- _tokenTransfer(from,to,amount,! (_isExcludedFromFee[from] || _isExcludedFromFee[to]),to == pair) (#442)
- totFeesPaid.liquidity += tLiquidity (#326)
- totFeesPaid.dev += tDev (#346)
- totFeesPaid.marketing += tMarketing (#336)
- totFeesPaid.rfi += tRfi (#322)
Event emitted after the call(s):
- Transfer(sender,recipient,s.tTransferAmount) (#471)
- _tokenTransfer(from,to,amount,! (_isExcludedFromFee[from] || _isExcludedFromFee[to]),to == pair) (#442)
- Transfer(sender,address(this),s.tLiquidity + s.tDev + s.tMarketing) (#472)
- _tokenTransfer(from,to,amount,! (_isExcludedFromFee[from] || _isExcludedFromFee[to]),to == pair) (#442)
Reentrancy in CavyInu.transferFrom(address,address,uint256) (#224-232):
External calls:
- _transfer(sender,recipient,amount) (#225)
- address(marketingAddress).transfer(marketingAmt) (#497)
- address(devAddress).transfer(devAmt) (#502)
External calls sending eth:
- _transfer(sender,recipient,amount) (#225)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#511-518)
- address(marketingAddress).transfer(marketingAmt) (#497)
- address(devAddress).transfer(devAmt) (#502)
State variables written after the call(s):
- _approve(sender,_msgSender(),currentAllowance - amount) (#229)
- _allowances[owner][spender] = amount (#414)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#415)
- _approve(sender,_msgSender(),currentAllowance - amount) (#229)
Apply the check-effects-interactions pattern.

Additional information: link

CavyInu._tTotal (#115) 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:
- CavyInu.name() (#191-193)
symbol() should be declared external:
- CavyInu.symbol() (#194-196)
decimals() should be declared external:
- CavyInu.decimals() (#197-199)
totalSupply() should be declared external:
- CavyInu.totalSupply() (#201-203)
transfer(address,uint256) should be declared external:
- CavyInu.transfer(address,uint256) (#210-213)
allowance(address,address) should be declared external:
- CavyInu.allowance(address,address) (#215-217)
approve(address,uint256) should be declared external:
- CavyInu.approve(address,uint256) (#219-222)
transferFrom(address,address,uint256) should be declared external:
- CavyInu.transferFrom(address,address,uint256) (#224-232)
increaseAllowance(address,uint256) should be declared external:
- CavyInu.increaseAllowance(address,uint256) (#234-237)
decreaseAllowance(address,uint256) should be declared external:
- CavyInu.decreaseAllowance(address,uint256) (#239-245)
isExcludedFromReward(address) should be declared external:
- CavyInu.isExcludedFromReward(address) (#247-249)
reflectionFromToken(uint256,bool,bool) should be declared external:
- CavyInu.reflectionFromToken(uint256,bool,bool) (#251-260)
excludeFromFee(address) should be declared external:
- CavyInu.excludeFromFee(address) (#291-293)
includeInFee(address) should be declared external:
- CavyInu.includeInFee(address) (#295-297)
isExcludedFromFee(address) should be declared external:
- CavyInu.isExcludedFromFee(address) (#300-302)
setTaxes(uint256,uint256,uint256,uint256) should be declared external:
- CavyInu.setTaxes(uint256,uint256,uint256,uint256) (#304-310)
setSellTaxes(uint256,uint256,uint256,uint256) should be declared external:
- CavyInu.setSellTaxes(uint256,uint256,uint256,uint256) (#312-318)
isBot(address) should be declared external:
- CavyInu.isBot(address) (#583-585)
rescueAnyBEP20Tokens(address,address,uint256) should be declared external:
- CavyInu.rescueAnyBEP20Tokens(address,address,uint256) (#596-599)
Use the external attribute for functions never called from the contract.

Additional information: link

Holders:


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.


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.


Unable to find Telegram and Twitter accounts


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

Price for CAVY