CodeslawInu Token Logo

Codeslaw [CodeslawInu] Token

About Codeslaw

Listings

Not Found
Token 21 months

https://www.codeslawinu.com

Social

Laser Scorebeta Last Audit: 2 January 2022

report
Token has too many issues. Scam probability is high.

Anti-Scam

Links


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

Reentrancy in CodeslawInu._transfer(address,address,uint256) (#1092-1199):
External calls:
- swapBack() (#1157)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1228-1235)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1211-1217)
- (success,None) = address(devWallet).call{value: ethForDev}() (#1270)
- (success,None) = address(marketingWallet).call{value: address(this).balance}() (#1278)
External calls sending eth:
- swapBack() (#1157)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1228-1235)
- (success,None) = address(devWallet).call{value: ethForDev}() (#1270)
- (success,None) = address(marketingWallet).call{value: address(this).balance}() (#1278)
State variables written after the call(s):
- swapping = false (#1159)
Reentrancy in CodeslawInu._transfer(address,address,uint256) (#1092-1199):
External calls:
- swapBack() (#1157)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1228-1235)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1211-1217)
- (success,None) = address(devWallet).call{value: ethForDev}() (#1270)
- (success,None) = address(marketingWallet).call{value: address(this).balance}() (#1278)
- autoBurnLiquidityPairTokens() (#1163)
- pair.sync() (#1306)
External calls sending eth:
- swapBack() (#1157)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1228-1235)
- (success,None) = address(devWallet).call{value: ethForDev}() (#1270)
- (success,None) = address(marketingWallet).call{value: address(this).balance}() (#1278)
State variables written after the call(s):
- autoBurnLiquidityPairTokens() (#1163)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#372)
- _balances[recipient] = _balances[recipient].add(amount) (#373)
- super._transfer(from,address(this),fees) (#1192)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#372)
- _balances[recipient] = _balances[recipient].add(amount) (#373)
- super._transfer(from,to,amount) (#1198)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#372)
- _balances[recipient] = _balances[recipient].add(amount) (#373)
- tokensForDev += fees * sellDevFee / sellTotalFees (#1180)
- tokensForDev += fees * buyDevFee / buyTotalFees (#1187)
- tokensForLiquidity += fees * sellLiquidityFee / sellTotalFees (#1179)
- tokensForLiquidity += fees * buyLiquidityFee / buyTotalFees (#1186)
- tokensForMarketing += fees * sellMarketingFee / sellTotalFees (#1181)
- tokensForMarketing += fees * buyMarketingFee / buyTotalFees (#1188)
Apply the check-effects-interactions pattern.

Additional information: link

CodeslawInu.swapBack() (#1238-1279) uses a dangerous strict equality:
- contractBalance == 0 || totalTokensToSwap == 0 (#1243)
Don't use strict equality to determine if an account has enough Ether or tokens.

Additional information: link

CodeslawInu.setAutoLPBurnSettings(uint256,uint256,bool) (#1281-1287) contains a tautology or contradiction:
- require(bool,string)(_percent <= 1000 && _percent >= 0,Must set auto LP burn percent between 0% and 10%) (#1283)
Fix the incorrect comparison by changing the value type or the comparison.

Additional information: link

CodeslawInu._transfer(address,address,uint256) (#1092-1199) performs a multiplication on the result of a division:
-fees = amount.mul(sellTotalFees).div(100) (#1178)
-tokensForLiquidity += fees * sellLiquidityFee / sellTotalFees (#1179)
CodeslawInu._transfer(address,address,uint256) (#1092-1199) performs a multiplication on the result of a division:
-fees = amount.mul(sellTotalFees).div(100) (#1178)
-tokensForDev += fees * sellDevFee / sellTotalFees (#1180)
CodeslawInu._transfer(address,address,uint256) (#1092-1199) performs a multiplication on the result of a division:
-fees = amount.mul(sellTotalFees).div(100) (#1178)
-tokensForMarketing += fees * sellMarketingFee / sellTotalFees (#1181)
CodeslawInu._transfer(address,address,uint256) (#1092-1199) performs a multiplication on the result of a division:
-fees = amount.mul(buyTotalFees).div(100) (#1185)
-tokensForLiquidity += fees * buyLiquidityFee / buyTotalFees (#1186)
CodeslawInu._transfer(address,address,uint256) (#1092-1199) performs a multiplication on the result of a division:
-fees = amount.mul(buyTotalFees).div(100) (#1185)
-tokensForDev += fees * buyDevFee / buyTotalFees (#1187)
CodeslawInu._transfer(address,address,uint256) (#1092-1199) performs a multiplication on the result of a division:
-fees = amount.mul(buyTotalFees).div(100) (#1185)
-tokensForMarketing += fees * buyMarketingFee / buyTotalFees (#1188)
Consider ordering multiplication before division.

Additional information: link

Reentrancy in CodeslawInu.swapBack() (#1238-1279):
External calls:
- swapTokensForEth(amountToSwapForETH) (#1255)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1211-1217)
State variables written after the call(s):
- tokensForDev = 0 (#1268)
- tokensForLiquidity = 0 (#1266)
- tokensForMarketing = 0 (#1267)
Apply the check-effects-interactions pattern.

Additional information: link

CodeslawInu._transfer(address,address,uint256) (#1092-1199) uses tx.origin for authorization: require(bool,string)(_holderLastTransferTimestamp[tx.origin] < block.number,_transfer:: Transfer Delay enabled. Only one purchase per block allowed.) (#1120)
Do not use tx.origin for authorization.

Additional information: link

CodeslawInu.addLiquidity(uint256,uint256) (#1223-1236) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1228-1235)
Ensure that all the return values of the function calls are used.

Additional information: link

CodeslawInu.constructor().totalSupply (#959) shadows:
- ERC20.totalSupply() (#246-248) (function)
- IERC20.totalSupply() (#96) (function)
Rename the local variables that shadow another component.

Additional information: link

CodeslawInu.updateSwapTokensAtAmount(uint256) (#1016-1021) should emit an event for:
- swapTokensAtAmount = newAmount (#1019)
CodeslawInu.updateMaxTxnAmount(uint256) (#1023-1026) should emit an event for:
- maxTransactionAmount = newNum * (10 ** 18) (#1025)
CodeslawInu.updateMaxWalletAmount(uint256) (#1028-1031) should emit an event for:
- maxWallet = newNum * (10 ** 18) (#1030)
CodeslawInu.updateBuyFees(uint256,uint256,uint256) (#1042-1048) should emit an event for:
- buyMarketingFee = _marketingFee (#1043)
- buyLiquidityFee = _liquidityFee (#1044)
- buyDevFee = _devFee (#1045)
- buyTotalFees = buyMarketingFee + buyLiquidityFee + buyDevFee (#1046)
CodeslawInu.updateSellFees(uint256,uint256,uint256) (#1050-1056) should emit an event for:
- sellMarketingFee = _marketingFee (#1051)
- sellLiquidityFee = _liquidityFee (#1052)
- sellDevFee = _devFee (#1053)
- sellTotalFees = sellMarketingFee + sellLiquidityFee + sellDevFee (#1054)
CodeslawInu.setAutoLPBurnSettings(uint256,uint256,bool) (#1281-1287) should emit an event for:
- lpBurnFrequency = _frequencyInSeconds (#1284)
- percentForLPBurn = _percent (#1285)
Emit an event for critical parameter changes.

Additional information: link

CodeslawInu.updateMarketingWallet(address).newMarketingWallet (#1075) lacks a zero-check on :
- marketingWallet = newMarketingWallet (#1077)
CodeslawInu.updateDevWallet(address).newWallet (#1080) lacks a zero-check on :
- devWallet = newWallet (#1082)
Check that the address is not zero.

Additional information: link

Reentrancy in CodeslawInu.constructor() (#940-990):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#947)
State variables written after the call(s):
- _mint(msg.sender,totalSupply) (#989)
- _balances[account] = _balances[account].add(amount) (#392)
- excludeFromFees(owner(),true) (#977)
- _isExcludedFromFees[account] = excluded (#1059)
- excludeFromFees(address(this),true) (#978)
- _isExcludedFromFees[account] = excluded (#1059)
- excludeFromFees(address(0xdead),true) (#979)
- _isExcludedFromFees[account] = excluded (#1059)
- excludeFromMaxTransaction(address(uniswapV2Pair),true) (#948)
- _isExcludedMaxTransactionAmount[updAds] = isEx (#1034)
- excludeFromMaxTransaction(owner(),true) (#981)
- _isExcludedMaxTransactionAmount[updAds] = isEx (#1034)
- excludeFromMaxTransaction(address(this),true) (#982)
- _isExcludedMaxTransactionAmount[updAds] = isEx (#1034)
- excludeFromMaxTransaction(address(0xdead),true) (#983)
- _isExcludedMaxTransactionAmount[updAds] = isEx (#1034)
- _mint(msg.sender,totalSupply) (#989)
- _totalSupply = _totalSupply.add(amount) (#391)
- _setAutomatedMarketMakerPair(address(uniswapV2Pair),true) (#949)
- automatedMarketMakerPairs[pair] = value (#1070)
- buyDevFee = _buyDevFee (#965)
- buyLiquidityFee = _buyLiquidityFee (#964)
- buyMarketingFee = _buyMarketingFee (#963)
- buyTotalFees = buyMarketingFee + buyLiquidityFee + buyDevFee (#966)
- devWallet = address(owner()) (#974)
- marketingWallet = address(owner()) (#973)
- sellDevFee = _sellDevFee (#970)
- sellLiquidityFee = _sellLiquidityFee (#969)
- sellMarketingFee = _sellMarketingFee (#968)
- sellTotalFees = sellMarketingFee + sellLiquidityFee + sellDevFee (#971)
Reentrancy in CodeslawInu.swapBack() (#1238-1279):
External calls:
- swapTokensForEth(amountToSwapForETH) (#1255)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1211-1217)
- (success,None) = address(devWallet).call{value: ethForDev}() (#1270)
- addLiquidity(liquidityTokens,ethForLiquidity) (#1273)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1228-1235)
External calls sending eth:
- (success,None) = address(devWallet).call{value: ethForDev}() (#1270)
- addLiquidity(liquidityTokens,ethForLiquidity) (#1273)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1228-1235)
State variables written after the call(s):
- addLiquidity(liquidityTokens,ethForLiquidity) (#1273)
- _allowances[owner][spender] = amount (#438)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in CodeslawInu._transfer(address,address,uint256) (#1092-1199):
External calls:
- swapBack() (#1157)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1228-1235)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1211-1217)
- (success,None) = address(devWallet).call{value: ethForDev}() (#1270)
- (success,None) = address(marketingWallet).call{value: address(this).balance}() (#1278)
- autoBurnLiquidityPairTokens() (#1163)
- pair.sync() (#1306)
External calls sending eth:
- swapBack() (#1157)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1228-1235)
- (success,None) = address(devWallet).call{value: ethForDev}() (#1270)
- (success,None) = address(marketingWallet).call{value: address(this).balance}() (#1278)
Event emitted after the call(s):
- AutoNukeLP() (#1307)
- autoBurnLiquidityPairTokens() (#1163)
- Transfer(sender,recipient,amount) (#374)
- super._transfer(from,address(this),fees) (#1192)
- Transfer(sender,recipient,amount) (#374)
- super._transfer(from,to,amount) (#1198)
- Transfer(sender,recipient,amount) (#374)
- autoBurnLiquidityPairTokens() (#1163)
Reentrancy in CodeslawInu.autoBurnLiquidityPairTokens() (#1289-1309):
External calls:
- pair.sync() (#1306)
Event emitted after the call(s):
- AutoNukeLP() (#1307)
Reentrancy in CodeslawInu.constructor() (#940-990):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#947)
Event emitted after the call(s):
- ExcludeFromFees(account,excluded) (#1060)
- excludeFromFees(address(this),true) (#978)
- ExcludeFromFees(account,excluded) (#1060)
- excludeFromFees(address(0xdead),true) (#979)
- ExcludeFromFees(account,excluded) (#1060)
- excludeFromFees(owner(),true) (#977)
- SetAutomatedMarketMakerPair(pair,value) (#1072)
- _setAutomatedMarketMakerPair(address(uniswapV2Pair),true) (#949)
- Transfer(address(0),account,amount) (#393)
- _mint(msg.sender,totalSupply) (#989)
Reentrancy in CodeslawInu.manualBurnLiquidityPairTokens(uint256) (#1311-1332):
External calls:
- pair.sync() (#1329)
Event emitted after the call(s):
- ManualNukeLP() (#1330)
Reentrancy in CodeslawInu.swapBack() (#1238-1279):
External calls:
- swapTokensForEth(amountToSwapForETH) (#1255)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1211-1217)
- (success,None) = address(devWallet).call{value: ethForDev}() (#1270)
- addLiquidity(liquidityTokens,ethForLiquidity) (#1273)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1228-1235)
External calls sending eth:
- (success,None) = address(devWallet).call{value: ethForDev}() (#1270)
- addLiquidity(liquidityTokens,ethForLiquidity) (#1273)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1228-1235)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#439)
- addLiquidity(liquidityTokens,ethForLiquidity) (#1273)
- SwapAndLiquify(amountToSwapForETH,ethForLiquidity,tokensForLiquidity) (#1274)
Apply the check-effects-interactions pattern.

Additional information: link

CodeslawInu._transfer(address,address,uint256) (#1092-1199) uses timestamp for comparisons
Dangerous comparisons:
- ! swapping && automatedMarketMakerPairs[to] && lpBurnEnabled && block.timestamp >= lastLpBurnTime + lpBurnFrequency && ! _isExcludedFromFees[from] (#1162)
CodeslawInu.manualBurnLiquidityPairTokens(uint256) (#1311-1332) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(block.timestamp > lastManualLpBurnTime + manualBurnFrequency,Must wait for cooldown to finish) (#1312)
Avoid relying on block.timestamp.

Additional information: link

Context._msgData() (#19-22) is never used and should be removed
ERC20._burn(address,uint256) (#407-415) is never used and should be removed
SafeMath.mod(uint256,uint256) (#584-586) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#600-603) is never used and should be removed
SafeMathInt.abs(int256) (#708-711) is never used and should be removed
SafeMathInt.add(int256,int256) (#699-703) is never used and should be removed
SafeMathInt.div(int256,int256) (#679-685) is never used and should be removed
SafeMathInt.mul(int256,int256) (#667-674) is never used and should be removed
SafeMathInt.sub(int256,int256) (#690-694) is never used and should be removed
SafeMathInt.toUint256Safe(int256) (#714-717) is never used and should be removed
SafeMathUint.toInt256Safe(uint256) (#721-725) is never used and should be removed
Remove unused functions.

Additional information: link

Pragma version0.8.9 (#11) 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 CodeslawInu.swapBack() (#1238-1279):
- (success,None) = address(devWallet).call{value: ethForDev}() (#1270)
- (success,None) = address(marketingWallet).call{value: address(this).balance}() (#1278)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence

Additional information: link

Function IPancakeRouter01.DOMAIN_SEPARATOR() (#40) is not in mixedCase
Function IPancakeRouter01.PERMIT_TYPEHASH() (#41) is not in mixedCase
Function IPancakeRouter01.MINIMUM_LIQUIDITY() (#58) is not in mixedCase
Function IUniswapV2Router01.WETH() (#731) is not in mixedCase
Event CodeslawInumarketingWalletUpdated(address,address) (#926) is not in CapWords
Event CodeslawInudevWalletUpdated(address,address) (#928) is not in CapWords
Parameter CodeslawInu.updateBuyFees(uint256,uint256,uint256)._marketingFee (#1042) is not in mixedCase
Parameter CodeslawInu.updateBuyFees(uint256,uint256,uint256)._liquidityFee (#1042) is not in mixedCase
Parameter CodeslawInu.updateBuyFees(uint256,uint256,uint256)._devFee (#1042) is not in mixedCase
Parameter CodeslawInu.updateSellFees(uint256,uint256,uint256)._marketingFee (#1050) is not in mixedCase
Parameter CodeslawInu.updateSellFees(uint256,uint256,uint256)._liquidityFee (#1050) is not in mixedCase
Parameter CodeslawInu.updateSellFees(uint256,uint256,uint256)._devFee (#1050) is not in mixedCase
Parameter CodeslawInu.setAutoLPBurnSettings(uint256,uint256,bool)._frequencyInSeconds (#1281) is not in mixedCase
Parameter CodeslawInu.setAutoLPBurnSettings(uint256,uint256,bool)._percent (#1281) is not in mixedCase
Parameter CodeslawInu.setAutoLPBurnSettings(uint256,uint256,bool)._Enabled (#1281) is not in mixedCase
Constant CodeslawInu.deadAddress (#869) is not in UPPER_CASE_WITH_UNDERSCORES
Variable CodeslawInu._isExcludedMaxTransactionAmount (#914) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Redundant expression "this (#20)" inContext (#14-23)
Remove redundant statements if they congest code but offer no value.

Additional information: link

Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#736) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#737)
Prevent variables from having similar names.

Additional information: link

CodeslawInu.updateSwapTokensAtAmount(uint256) (#1016-1021) uses literals with too many digits:
- require(bool,string)(newAmount >= totalSupply() * 1 / 100000,Swap amount cannot be lower than 0.001% total supply.) (#1017)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

SafeMathInt.MAX_INT256 (#662) is never used in SafeMathInt (#660-718)
Remove unused state variables.

Additional information: link

CodeslawInu.manualBurnFrequency (#885) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

name() should be declared external:
- ERC20.name() (#214-216)
symbol() should be declared external:
- ERC20.symbol() (#222-224)
decimals() should be declared external:
- ERC20.decimals() (#239-241)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (#265-268)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (#273-275)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (#284-287)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (#302-310)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (#324-327)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (#343-346)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#642-645)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#651-655)
setAutomatedMarketMakerPair(address,bool) should be declared external:
- CodeslawInu.setAutomatedMarketMakerPair(address,bool) (#1063-1067)
isExcludedFromFees(address) should be declared external:
- CodeslawInu.isExcludedFromFees(address) (#1086-1088)
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 Twitter account


Telegram account has relatively few subscribers


Unable to find Blog account (Reddit or Medium)


Unable to find Youtube account


Unable to find Discord account


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 token/project description on the website or on BscScan, CoinMarketCap


Unable to find token contract audit


Unable to find audit link on the website


Unable to find whitepaper link on the website


Unable to find Twitter 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


Token has no active CoinGecko listing / rank


Token has no active CoinMarketCap listing / rank


Young tokens have high risks of price dump / death

Price for Codeslaw