Shrew stands for SHopping REWards, an ecosystem that will aim to simplify and connect stores from all over the world. In the process, we will create a network that will allow anyone, around the globe to seamlessly earn, store and spend SHREW at any store. Opening up possibilities for both the stores and the consumer.
The platform where users can bring in existing rewards accounts, earn points using a single app for multiple stores and trade these points with others using blockchain. The SHREW token will be the single currency linking each reward scheme across a multitude of stores and will thus have deep utility and value.
Reentrancy in Shrew2._transfer(address,address,uint256) (#996-1011):
External calls:
- amount = handleTax(sender,recipient,amount) (#1007)
- uniswapV2Router02.swapExactTokensForETH(toSell,0,sellPath,address(this),block.timestamp) (#940-946)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#959-966)
- taxWallets[marketing].call{value: marketingETH}() (#974)
- taxWallets[community].call{value: communityETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + charityETH)}() (#979)
External calls sending eth:
- amount = handleTax(sender,recipient,amount) (#1007)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#959-966)
- taxWallets[marketing].call{value: marketingETH}() (#974)
- taxWallets[community].call{value: communityETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + charityETH)}() (#979)
State variables written after the call(s):
- super._transfer(sender,recipient,amount) (#1010)
- _balances[sender] = senderBalance - amount (#347)
- _balances[recipient] += amount (#349)
Reentrancy in Shrew2.handleTax(address,address,uint256) (#890-994):
External calls:
- _transfer(from,address(this),tax) (#905)
- uniswapV2Router02.swapExactTokensForETH(toSell,0,sellPath,address(this),block.timestamp) (#940-946)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#959-966)
- taxWallets[marketing].call{value: marketingETH}() (#974)
- taxWallets[community].call{value: communityETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + charityETH)}() (#979)
External calls sending eth:
- _transfer(from,address(this),tax) (#905)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#959-966)
- taxWallets[marketing].call{value: marketingETH}() (#974)
- taxWallets[community].call{value: communityETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + charityETH)}() (#979)
State variables written after the call(s):
- charityTokens += baseUnit * buyTaxes[charity] (#911)
- communityTokens += baseUnit * buyTaxes[community] (#909)
- liquidityTokens += baseUnit * buyTaxes[liquidity] (#910)
- marketingTokens += baseUnit * buyTaxes[marketing] (#908)
Reentrancy in Shrew2.handleTax(address,address,uint256) (#890-994):
External calls:
- _transfer(from,address(this),tax) (#919)
- uniswapV2Router02.swapExactTokensForETH(toSell,0,sellPath,address(this),block.timestamp) (#940-946)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#959-966)
- taxWallets[marketing].call{value: marketingETH}() (#974)
- taxWallets[community].call{value: communityETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + charityETH)}() (#979)
External calls sending eth:
- _transfer(from,address(this),tax) (#919)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#959-966)
- taxWallets[marketing].call{value: marketingETH}() (#974)
- taxWallets[community].call{value: communityETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + charityETH)}() (#979)
State variables written after the call(s):
- charityTokens += baseUnit * sellTaxes[charity] (#925)
- communityTokens += baseUnit * sellTaxes[community] (#923)
- liquidityTokens += baseUnit * sellTaxes[liquidity] (#924)
- marketingTokens += baseUnit * sellTaxes[marketing] (#922)
Reentrancy in Shrew2.handleTax(address,address,uint256) (#890-994):
External calls:
- _transfer(from,address(this),tax) (#919)
- uniswapV2Router02.swapExactTokensForETH(toSell,0,sellPath,address(this),block.timestamp) (#940-946)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#959-966)
- taxWallets[marketing].call{value: marketingETH}() (#974)
- taxWallets[community].call{value: communityETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + charityETH)}() (#979)
- uniswapV2Router02.swapExactTokensForETH(toSell,0,sellPath,address(this),block.timestamp) (#940-946)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#959-966)
- _transfer(address(this),taxWallets[community],remainingTokens) (#971)
- uniswapV2Router02.swapExactTokensForETH(toSell,0,sellPath,address(this),block.timestamp) (#940-946)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#959-966)
- taxWallets[marketing].call{value: marketingETH}() (#974)
- taxWallets[community].call{value: communityETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + charityETH)}() (#979)
External calls sending eth:
- _transfer(from,address(this),tax) (#919)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#959-966)
- taxWallets[marketing].call{value: marketingETH}() (#974)
- taxWallets[community].call{value: communityETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + charityETH)}() (#979)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#959-966)
- _transfer(address(this),taxWallets[community],remainingTokens) (#971)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#959-966)
- taxWallets[marketing].call{value: marketingETH}() (#974)
- taxWallets[community].call{value: communityETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + charityETH)}() (#979)
State variables written after the call(s):
- _transfer(address(this),taxWallets[community],remainingTokens) (#971)
- _balances[sender] = senderBalance - amount (#347)
- _balances[recipient] += amount (#349)
- _transfer(address(this),taxWallets[community],remainingTokens) (#971)
- charityTokens += baseUnit * buyTaxes[charity] (#911)
- charityTokens += baseUnit * sellTaxes[charity] (#925)
- charityTokens = 0 (#985)
- _transfer(address(this),taxWallets[community],remainingTokens) (#971)
- communityTokens += baseUnit * buyTaxes[community] (#909)
- communityTokens += baseUnit * sellTaxes[community] (#923)
- communityTokens = 0 (#983)
- _transfer(address(this),taxWallets[community],remainingTokens) (#971)
- liquidityTokens += baseUnit * buyTaxes[liquidity] (#910)
- liquidityTokens += baseUnit * sellTaxes[liquidity] (#924)
- liquidityTokens = 0 (#984)
- _transfer(address(this),taxWallets[community],remainingTokens) (#971)
- marketingTokens += baseUnit * buyTaxes[marketing] (#908)
- marketingTokens += baseUnit * sellTaxes[marketing] (#922)
- marketingTokens = 0 (#982)
Reentrancy in Shrew2.handleTax(address,address,uint256) (#890-994):
External calls:
- _transfer(from,address(this),tax) (#919)
- uniswapV2Router02.swapExactTokensForETH(toSell,0,sellPath,address(this),block.timestamp) (#940-946)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#959-966)
- taxWallets[marketing].call{value: marketingETH}() (#974)
- taxWallets[community].call{value: communityETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + charityETH)}() (#979)
- uniswapV2Router02.swapExactTokensForETH(toSell,0,sellPath,address(this),block.timestamp) (#940-946)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#959-966)
- _transfer(address(this),taxWallets[community],remainingTokens) (#971)
- uniswapV2Router02.swapExactTokensForETH(toSell,0,sellPath,address(this),block.timestamp) (#940-946)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#959-966)
- taxWallets[marketing].call{value: marketingETH}() (#974)
- taxWallets[community].call{value: communityETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + charityETH)}() (#979)
- taxWallets[marketing].call{value: marketingETH}() (#974)
- taxWallets[community].call{value: communityETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + charityETH)}() (#979)
External calls sending eth:
- _transfer(from,address(this),tax) (#919)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#959-966)
- taxWallets[marketing].call{value: marketingETH}() (#974)
- taxWallets[community].call{value: communityETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + charityETH)}() (#979)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#959-966)
- _transfer(address(this),taxWallets[community],remainingTokens) (#971)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#959-966)
- taxWallets[marketing].call{value: marketingETH}() (#974)
- taxWallets[community].call{value: communityETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + charityETH)}() (#979)
- taxWallets[marketing].call{value: marketingETH}() (#974)
- taxWallets[community].call{value: communityETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + charityETH)}() (#979)
State variables written after the call(s):
- charityTokens = 0 (#985)
- communityTokens = 0 (#983)
- liquidityTokens = 0 (#984)
- marketingTokens = 0 (#982)
Apply the check-effects-interactions pattern.
Additional information: link
Shrew2.handleTax(address,address,uint256) (#890-994) uses a dangerous strict equality:
- taxSum == 0 (#929)
Don't use strict equality to determine if an account has enough Ether or tokens.
Additional information: link
Shrew2.charityTaxBuy (#838) should be constant
Shrew2.charityTaxSell (#843) should be constant
Shrew2.charityTaxWallet (#848) should be constant
Shrew2.communityTaxBuy (#835) should be constant
Shrew2.communityTaxSell (#840) should be constant
Shrew2.communityTaxWallet (#845) should be constant
Shrew2.denominator (#830) should be constant
Shrew2.initialSupply (#828) should be constant
Shrew2.liquidityTaxBuy (#837) should be constant
Shrew2.liquidityTaxSell (#842) should be constant
Shrew2.liquidityTaxWallet (#847) should be constant
Shrew2.marketingTaxBuy (#836) should be constant
Shrew2.marketingTaxSell (#841) should be constant
Shrew2.marketingTaxWallet (#846) should be constant
Shrew2.swapThreshold (#833) should be constant
Shrew2.taxLimit (#831) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
Shrew2.handleTax(address,address,uint256) (#890-994) performs a multiplication on the result of a division:
-baseUnit = amount / denominator (#897)
-tax += baseUnit * buyTaxes[marketing] (#899)
Shrew2.handleTax(address,address,uint256) (#890-994) performs a multiplication on the result of a division:
-baseUnit = amount / denominator (#897)
-tax += baseUnit * sellTaxes[marketing] (#913)
Shrew2.handleTax(address,address,uint256) (#890-994) performs a multiplication on the result of a division:
-baseUnit = amount / denominator (#897)
-tax += baseUnit * buyTaxes[community] (#900)
Shrew2.handleTax(address,address,uint256) (#890-994) performs a multiplication on the result of a division:
-baseUnit = amount / denominator (#897)
-tax += baseUnit * sellTaxes[community] (#914)
Shrew2.handleTax(address,address,uint256) (#890-994) performs a multiplication on the result of a division:
-baseUnit = amount / denominator (#897)
-tax += baseUnit * buyTaxes[liquidity] (#901)
Shrew2.handleTax(address,address,uint256) (#890-994) performs a multiplication on the result of a division:
-baseUnit = amount / denominator (#897)
-tax += baseUnit * sellTaxes[liquidity] (#915)
Shrew2.handleTax(address,address,uint256) (#890-994) performs a multiplication on the result of a division:
-baseUnit = amount / denominator (#897)
-tax += baseUnit * buyTaxes[charity] (#902)
Shrew2.handleTax(address,address,uint256) (#890-994) performs a multiplication on the result of a division:
-baseUnit = amount / denominator (#897)
-tax += baseUnit * sellTaxes[charity] (#916)
Shrew2.handleTax(address,address,uint256) (#890-994) performs a multiplication on the result of a division:
-baseUnit = amount / denominator (#897)
-marketingTokens += baseUnit * buyTaxes[marketing] (#908)
Shrew2.handleTax(address,address,uint256) (#890-994) performs a multiplication on the result of a division:
-baseUnit = amount / denominator (#897)
-marketingTokens += baseUnit * sellTaxes[marketing] (#922)
Shrew2.handleTax(address,address,uint256) (#890-994) performs a multiplication on the result of a division:
-baseUnit = amount / denominator (#897)
-communityTokens += baseUnit * sellTaxes[community] (#923)
Shrew2.handleTax(address,address,uint256) (#890-994) performs a multiplication on the result of a division:
-baseUnit = amount / denominator (#897)
-communityTokens += baseUnit * buyTaxes[community] (#909)
Shrew2.handleTax(address,address,uint256) (#890-994) performs a multiplication on the result of a division:
-baseUnit = amount / denominator (#897)
-liquidityTokens += baseUnit * sellTaxes[liquidity] (#924)
Shrew2.handleTax(address,address,uint256) (#890-994) performs a multiplication on the result of a division:
-baseUnit = amount / denominator (#897)
-liquidityTokens += baseUnit * buyTaxes[liquidity] (#910)
Shrew2.handleTax(address,address,uint256) (#890-994) performs a multiplication on the result of a division:
-baseUnit = amount / denominator (#897)
-charityTokens += baseUnit * sellTaxes[charity] (#925)
Shrew2.handleTax(address,address,uint256) (#890-994) performs a multiplication on the result of a division:
-baseUnit = amount / denominator (#897)
-charityTokens += baseUnit * buyTaxes[charity] (#911)
Shrew2.handleTax(address,address,uint256) (#890-994) performs a multiplication on the result of a division:
-liquidityETH = (ethGained * ((liquidityTokens / 2 * 10 ** 18) / taxSum)) / 10 ** 18 (#951)
Shrew2.handleTax(address,address,uint256) (#890-994) performs a multiplication on the result of a division:
-marketingETH = (ethGained * ((marketingTokens * 10 ** 18) / taxSum)) / 10 ** 18 (#953)
Shrew2.handleTax(address,address,uint256) (#890-994) performs a multiplication on the result of a division:
-communityETH = (ethGained * ((communityTokens * 10 ** 18) / taxSum)) / 10 ** 18 (#954)
Shrew2.handleTax(address,address,uint256) (#890-994) performs a multiplication on the result of a division:
-charityETH = (ethGained * ((charityTokens * 10 ** 18) / taxSum)) / 10 ** 18 (#955)
Consider ordering multiplication before division.
Additional information: link
Shrew2._transfer(address,address,uint256) (#996-1011) uses tx.origin for authorization: require(bool,string)(! isBlacklisted(tx.origin),Shrew: sender blacklisted) (#1004)
Do not use tx.origin for authorization.
Additional information: link
Shrew2.handleTax(address,address,uint256) (#890-994) ignores return value by taxWallets[marketing].call{value: marketingETH}() (#974)
Shrew2.handleTax(address,address,uint256) (#890-994) ignores return value by taxWallets[community].call{value: communityETH}() (#975)
Shrew2.handleTax(address,address,uint256) (#890-994) ignores return value by taxWallets[charity].call{value: charityETH}() (#976)
Shrew2.handleTax(address,address,uint256) (#890-994) ignores return value by taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + charityETH)}() (#979)
Ensure that the return value of a low-level call is checked or logged.
Additional information: link
Shrew2.handleTax(address,address,uint256).tax (#896) 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
Shrew2.handleTax(address,address,uint256) (#890-994) ignores return value by uniswapV2Router02.swapExactTokensForETH(toSell,0,sellPath,address(this),block.timestamp) (#940-946)
Ensure that all the return values of the function calls are used.
Additional information: link
Reentrancy in Shrew2.constructor() (#865-880):
External calls:
- uniswapV2Pair = IUniswapV2Pair(uniswapV2Factory.createPair(address(this),uniswapV2Router02.WETH())) (#869)
State variables written after the call(s):
- _mint(msg.sender,initialSupply) (#878)
- _balances[account] += amount (#371)
- _mint(msg.sender,initialSupply) (#878)
- _totalSupply += amount (#370)
- setBuyTax(communityTaxBuy,marketingTaxBuy,liquidityTaxBuy,charityTaxBuy) (#871)
- buyTaxes[community] = community (#1081)
- buyTaxes[marketing] = marketing (#1082)
- buyTaxes[liquidity] = liquidity (#1083)
- buyTaxes[charity] = charity (#1084)
- exclude(msg.sender) (#875)
- excludeList[account] = true (#1064)
- exclude(address(this)) (#876)
- excludeList[account] = true (#1064)
- setSellTax(communityTaxSell,marketingTaxSell,liquidityTaxSell,charityTaxSell) (#872)
- sellTaxes[community] = community (#1093)
- sellTaxes[marketing] = marketing (#1094)
- sellTaxes[liquidity] = liquidity (#1095)
- sellTaxes[charity] = charity (#1096)
- taxStatus = true (#879)
- setTaxWallets(communityTaxWallet,marketingTaxWallet,liquidityTaxWallet,charityTaxWallet) (#873)
- taxWallets[community] = community (#1103)
- taxWallets[marketing] = marketing (#1104)
- taxWallets[liquidity] = liquidity (#1105)
- taxWallets[charity] = charity (#1106)
Reentrancy in Shrew2.handleTax(address,address,uint256) (#890-994):
External calls:
- _transfer(from,address(this),tax) (#919)
- uniswapV2Router02.swapExactTokensForETH(toSell,0,sellPath,address(this),block.timestamp) (#940-946)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#959-966)
- taxWallets[marketing].call{value: marketingETH}() (#974)
- taxWallets[community].call{value: communityETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + charityETH)}() (#979)
External calls sending eth:
- _transfer(from,address(this),tax) (#919)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#959-966)
- taxWallets[marketing].call{value: marketingETH}() (#974)
- taxWallets[community].call{value: communityETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + charityETH)}() (#979)
State variables written after the call(s):
- _approve(address(this),address(uniswapV2Router02),toSell) (#938)
- _allowances[owner][spender] = amount (#426)
Reentrancy in Shrew2.handleTax(address,address,uint256) (#890-994):
External calls:
- _transfer(from,address(this),tax) (#919)
- uniswapV2Router02.swapExactTokensForETH(toSell,0,sellPath,address(this),block.timestamp) (#940-946)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#959-966)
- taxWallets[marketing].call{value: marketingETH}() (#974)
- taxWallets[community].call{value: communityETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + charityETH)}() (#979)
- uniswapV2Router02.swapExactTokensForETH(toSell,0,sellPath,address(this),block.timestamp) (#940-946)
External calls sending eth:
- _transfer(from,address(this),tax) (#919)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#959-966)
- taxWallets[marketing].call{value: marketingETH}() (#974)
- taxWallets[community].call{value: communityETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + charityETH)}() (#979)
State variables written after the call(s):
- _approve(address(this),address(uniswapV2Router02),liquidityToken) (#957)
- _allowances[owner][spender] = amount (#426)
Reentrancy in Shrew2.handleTax(address,address,uint256) (#890-994):
External calls:
- _transfer(from,address(this),tax) (#919)
- uniswapV2Router02.swapExactTokensForETH(toSell,0,sellPath,address(this),block.timestamp) (#940-946)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#959-966)
- taxWallets[marketing].call{value: marketingETH}() (#974)
- taxWallets[community].call{value: communityETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + charityETH)}() (#979)
- uniswapV2Router02.swapExactTokensForETH(toSell,0,sellPath,address(this),block.timestamp) (#940-946)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#959-966)
- _transfer(address(this),taxWallets[community],remainingTokens) (#971)
- uniswapV2Router02.swapExactTokensForETH(toSell,0,sellPath,address(this),block.timestamp) (#940-946)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#959-966)
- taxWallets[marketing].call{value: marketingETH}() (#974)
- taxWallets[community].call{value: communityETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + charityETH)}() (#979)
External calls sending eth:
- _transfer(from,address(this),tax) (#919)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#959-966)
- taxWallets[marketing].call{value: marketingETH}() (#974)
- taxWallets[community].call{value: communityETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + charityETH)}() (#979)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#959-966)
- _transfer(address(this),taxWallets[community],remainingTokens) (#971)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#959-966)
- taxWallets[marketing].call{value: marketingETH}() (#974)
- taxWallets[community].call{value: communityETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + charityETH)}() (#979)
State variables written after the call(s):
- _transfer(address(this),taxWallets[community],remainingTokens) (#971)
- _allowances[owner][spender] = amount (#426)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in Shrew2._transfer(address,address,uint256) (#996-1011):
External calls:
- amount = handleTax(sender,recipient,amount) (#1007)
- uniswapV2Router02.swapExactTokensForETH(toSell,0,sellPath,address(this),block.timestamp) (#940-946)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#959-966)
- taxWallets[marketing].call{value: marketingETH}() (#974)
- taxWallets[community].call{value: communityETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + charityETH)}() (#979)
External calls sending eth:
- amount = handleTax(sender,recipient,amount) (#1007)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#959-966)
- taxWallets[marketing].call{value: marketingETH}() (#974)
- taxWallets[community].call{value: communityETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + charityETH)}() (#979)
Event emitted after the call(s):
- Transfer(sender,recipient,amount) (#351)
- super._transfer(sender,recipient,amount) (#1010)
Reentrancy in Shrew2.constructor() (#865-880):
External calls:
- uniswapV2Pair = IUniswapV2Pair(uniswapV2Factory.createPair(address(this),uniswapV2Router02.WETH())) (#869)
Event emitted after the call(s):
- Transfer(address(0),account,amount) (#372)
- _mint(msg.sender,initialSupply) (#878)
Reentrancy in Shrew2.handleTax(address,address,uint256) (#890-994):
External calls:
- _transfer(from,address(this),tax) (#919)
- uniswapV2Router02.swapExactTokensForETH(toSell,0,sellPath,address(this),block.timestamp) (#940-946)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#959-966)
- taxWallets[marketing].call{value: marketingETH}() (#974)
- taxWallets[community].call{value: communityETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + charityETH)}() (#979)
External calls sending eth:
- _transfer(from,address(this),tax) (#919)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#959-966)
- taxWallets[marketing].call{value: marketingETH}() (#974)
- taxWallets[community].call{value: communityETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + charityETH)}() (#979)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#427)
- _approve(address(this),address(uniswapV2Router02),toSell) (#938)
Reentrancy in Shrew2.handleTax(address,address,uint256) (#890-994):
External calls:
- _transfer(from,address(this),tax) (#919)
- uniswapV2Router02.swapExactTokensForETH(toSell,0,sellPath,address(this),block.timestamp) (#940-946)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#959-966)
- taxWallets[marketing].call{value: marketingETH}() (#974)
- taxWallets[community].call{value: communityETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + charityETH)}() (#979)
- uniswapV2Router02.swapExactTokensForETH(toSell,0,sellPath,address(this),block.timestamp) (#940-946)
External calls sending eth:
- _transfer(from,address(this),tax) (#919)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#959-966)
- taxWallets[marketing].call{value: marketingETH}() (#974)
- taxWallets[community].call{value: communityETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + charityETH)}() (#979)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#427)
- _approve(address(this),address(uniswapV2Router02),liquidityToken) (#957)
Reentrancy in Shrew2.handleTax(address,address,uint256) (#890-994):
External calls:
- _transfer(from,address(this),tax) (#919)
- uniswapV2Router02.swapExactTokensForETH(toSell,0,sellPath,address(this),block.timestamp) (#940-946)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#959-966)
- taxWallets[marketing].call{value: marketingETH}() (#974)
- taxWallets[community].call{value: communityETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + charityETH)}() (#979)
- uniswapV2Router02.swapExactTokensForETH(toSell,0,sellPath,address(this),block.timestamp) (#940-946)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#959-966)
- _transfer(address(this),taxWallets[community],remainingTokens) (#971)
- uniswapV2Router02.swapExactTokensForETH(toSell,0,sellPath,address(this),block.timestamp) (#940-946)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#959-966)
- taxWallets[marketing].call{value: marketingETH}() (#974)
- taxWallets[community].call{value: communityETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + charityETH)}() (#979)
External calls sending eth:
- _transfer(from,address(this),tax) (#919)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#959-966)
- taxWallets[marketing].call{value: marketingETH}() (#974)
- taxWallets[community].call{value: communityETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + charityETH)}() (#979)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#959-966)
- _transfer(address(this),taxWallets[community],remainingTokens) (#971)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#959-966)
- taxWallets[marketing].call{value: marketingETH}() (#974)
- taxWallets[community].call{value: communityETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + charityETH)}() (#979)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#427)
- _transfer(address(this),taxWallets[community],remainingTokens) (#971)
- Transfer(sender,recipient,amount) (#351)
- _transfer(address(this),taxWallets[community],remainingTokens) (#971)
Apply the check-effects-interactions pattern.
Additional information: link
Shrew2.handleTax(address,address,uint256) (#890-994) uses timestamp for comparisons
Dangerous comparisons:
- tax > 0 (#904)
- tax > 0 (#918)
- taxSum == 0 (#929)
- ethValue >= swapThreshold (#933)
- remainingTokens > 0 (#970)
- ethGained - (marketingETH + communityETH + liquidityETH + charityETH) > 0 (#978)
Avoid relying on block.timestamp.
Additional information: link
Context._msgData() (#119-121) is never used and should be removed
Remove unused functions.
Additional information: link
Pragma version^0.8.0 (#2) allows old versions
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 Shrew2.handleTax(address,address,uint256) (#890-994):
- taxWallets[marketing].call{value: marketingETH}() (#974)
- taxWallets[community].call{value: communityETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + charityETH)}() (#979)
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() (#637) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#638) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#655) is not in mixedCase
Function IUniswapV2Router01.WETH() (#691) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#696) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#697)
Prevent variables from having similar names.
Additional information: link
Shrew2.slitherConstructorVariables() (#824-1141) uses literals with too many digits:
- swapThreshold = 500000000000 (#833)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
name() should be declared external:
- ERC20.name() (#175-177)
symbol() should be declared external:
- ERC20.symbol() (#183-185)
decimals() should be declared external:
- ERC20.decimals() (#200-202)
totalSupply() should be declared external:
- ERC20.totalSupply() (#207-209)
balanceOf(address) should be declared external:
- ERC20.balanceOf(address) (#214-216)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (#226-229)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (#234-236)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (#245-248)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (#263-277)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (#291-294)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (#310-318)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#517-519)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#525-528)
triggerTax() should be declared external:
- Shrew2.triggerTax() (#1016-1018)
pause() should be declared external:
- Shrew2.pause() (#1023-1026)
unpause() should be declared external:
- Shrew2.unpause() (#1031-1034)
burn(uint256) should be declared external:
- Shrew2.burn(uint256) (#1039-1041)
enableBlacklist(address) should be declared external:
- Shrew2.enableBlacklist(address) (#1046-1049)
disableBlacklist(address) should be declared external:
- Shrew2.disableBlacklist(address) (#1054-1057)
removeExclude(address) should be declared external:
- Shrew2.removeExclude(address) (#1070-1073)
enableTax() should be declared external:
- Shrew2.enableTax() (#1112-1115)
disableTax() should be declared external:
- Shrew2.disableTax() (#1120-1123)
Use the external attribute for functions never called from the contract.
Additional information: link
Contract has 7% buy tax and 97% sell tax.
Taxes are extremely high (over 30%)
Additional information: link
Average 30d PancakeSwap liquidity is less than $100. Token is either dead or inactive.
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.
Token is deployed only at one blockchain
BscScan page for the token does not contain additional info: website, socials, description, etc.
Additional information: link
Token was delisted from CoinGecko
Additional information: link
Token was delisted (assigned to inactive / untracked listing) from CoinMarketCap
Additional information: link
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 Telegram link on the website
Unable to find Twitter link on the website
Unable to find token on CoinHunt
Additional information: link
Token is marked as scam (rug pull, honeypot, phishing, etc.)
Additional information: link
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 link seems to be invalid
Telegram account has relatively few subscribers
Unable to find Youtube account