Astroshit is a complete ecosystem integrating limited NFTs, comic book series, merchandise market, but above all the first BuyBack service in B2B to offer a reflection of partner tokens to all its holders in addition to BTC, BNB, and SOL
Reentrancy in Astroshit._transfer(address,address,uint256) (#1071-1086):
External calls:
- amount = handleTax(sender,recipient,amount) (#1082)
- uniswapV2Router02.swapExactTokensForETH(toSell,0,sellPath,address(this),block.timestamp) (#1015-1021)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#1034-1041)
- taxWallets[marketing].call{value: marketingETH}() (#1049)
- taxWallets[community].call{value: communityETH}() (#1050)
- taxWallets[development].call{value: developmentETH}() (#1051)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + developmentETH)}() (#1054)
External calls sending eth:
- amount = handleTax(sender,recipient,amount) (#1082)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#1034-1041)
- taxWallets[marketing].call{value: marketingETH}() (#1049)
- taxWallets[community].call{value: communityETH}() (#1050)
- taxWallets[development].call{value: developmentETH}() (#1051)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + developmentETH)}() (#1054)
State variables written after the call(s):
- super._transfer(sender,recipient,amount) (#1085)
- _balances[sender] = senderBalance - amount (#421)
- _balances[recipient] += amount (#423)
Reentrancy in Astroshit.handleTax(address,address,uint256) (#965-1069):
External calls:
- _transfer(from,address(this),tax) (#980)
- uniswapV2Router02.swapExactTokensForETH(toSell,0,sellPath,address(this),block.timestamp) (#1015-1021)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#1034-1041)
- taxWallets[marketing].call{value: marketingETH}() (#1049)
- taxWallets[community].call{value: communityETH}() (#1050)
- taxWallets[development].call{value: developmentETH}() (#1051)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + developmentETH)}() (#1054)
External calls sending eth:
- _transfer(from,address(this),tax) (#980)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#1034-1041)
- taxWallets[marketing].call{value: marketingETH}() (#1049)
- taxWallets[community].call{value: communityETH}() (#1050)
- taxWallets[development].call{value: developmentETH}() (#1051)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + developmentETH)}() (#1054)
State variables written after the call(s):
- communityTokens += baseUnit * buyTaxes[community] (#984)
- developmentTokens += baseUnit * buyTaxes[development] (#986)
- liquidityTokens += baseUnit * buyTaxes[liquidity] (#985)
- marketingTokens += baseUnit * buyTaxes[marketing] (#983)
Reentrancy in Astroshit.handleTax(address,address,uint256) (#965-1069):
External calls:
- _transfer(from,address(this),tax) (#994)
- uniswapV2Router02.swapExactTokensForETH(toSell,0,sellPath,address(this),block.timestamp) (#1015-1021)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#1034-1041)
- taxWallets[marketing].call{value: marketingETH}() (#1049)
- taxWallets[community].call{value: communityETH}() (#1050)
- taxWallets[development].call{value: developmentETH}() (#1051)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + developmentETH)}() (#1054)
External calls sending eth:
- _transfer(from,address(this),tax) (#994)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#1034-1041)
- taxWallets[marketing].call{value: marketingETH}() (#1049)
- taxWallets[community].call{value: communityETH}() (#1050)
- taxWallets[development].call{value: developmentETH}() (#1051)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + developmentETH)}() (#1054)
State variables written after the call(s):
- communityTokens += baseUnit * sellTaxes[community] (#998)
- developmentTokens += baseUnit * sellTaxes[development] (#1000)
- liquidityTokens += baseUnit * sellTaxes[liquidity] (#999)
- marketingTokens += baseUnit * sellTaxes[marketing] (#997)
Reentrancy in Astroshit.handleTax(address,address,uint256) (#965-1069):
External calls:
- _transfer(from,address(this),tax) (#994)
- uniswapV2Router02.swapExactTokensForETH(toSell,0,sellPath,address(this),block.timestamp) (#1015-1021)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#1034-1041)
- taxWallets[marketing].call{value: marketingETH}() (#1049)
- taxWallets[community].call{value: communityETH}() (#1050)
- taxWallets[development].call{value: developmentETH}() (#1051)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + developmentETH)}() (#1054)
- uniswapV2Router02.swapExactTokensForETH(toSell,0,sellPath,address(this),block.timestamp) (#1015-1021)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#1034-1041)
- _transfer(address(this),taxWallets[community],remainingTokens) (#1046)
- uniswapV2Router02.swapExactTokensForETH(toSell,0,sellPath,address(this),block.timestamp) (#1015-1021)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#1034-1041)
- taxWallets[marketing].call{value: marketingETH}() (#1049)
- taxWallets[community].call{value: communityETH}() (#1050)
- taxWallets[development].call{value: developmentETH}() (#1051)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + developmentETH)}() (#1054)
External calls sending eth:
- _transfer(from,address(this),tax) (#994)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#1034-1041)
- taxWallets[marketing].call{value: marketingETH}() (#1049)
- taxWallets[community].call{value: communityETH}() (#1050)
- taxWallets[development].call{value: developmentETH}() (#1051)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + developmentETH)}() (#1054)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#1034-1041)
- _transfer(address(this),taxWallets[community],remainingTokens) (#1046)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#1034-1041)
- taxWallets[marketing].call{value: marketingETH}() (#1049)
- taxWallets[community].call{value: communityETH}() (#1050)
- taxWallets[development].call{value: developmentETH}() (#1051)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + developmentETH)}() (#1054)
State variables written after the call(s):
- _transfer(address(this),taxWallets[community],remainingTokens) (#1046)
- _balances[sender] = senderBalance - amount (#421)
- _balances[recipient] += amount (#423)
- _transfer(address(this),taxWallets[community],remainingTokens) (#1046)
- communityTokens += baseUnit * buyTaxes[community] (#984)
- communityTokens += baseUnit * sellTaxes[community] (#998)
- communityTokens = 0 (#1058)
- _transfer(address(this),taxWallets[community],remainingTokens) (#1046)
- developmentTokens += baseUnit * buyTaxes[development] (#986)
- developmentTokens += baseUnit * sellTaxes[development] (#1000)
- developmentTokens = 0 (#1060)
- _transfer(address(this),taxWallets[community],remainingTokens) (#1046)
- liquidityTokens += baseUnit * buyTaxes[liquidity] (#985)
- liquidityTokens += baseUnit * sellTaxes[liquidity] (#999)
- liquidityTokens = 0 (#1059)
- _transfer(address(this),taxWallets[community],remainingTokens) (#1046)
- marketingTokens += baseUnit * buyTaxes[marketing] (#983)
- marketingTokens += baseUnit * sellTaxes[marketing] (#997)
- marketingTokens = 0 (#1057)
Reentrancy in Astroshit.handleTax(address,address,uint256) (#965-1069):
External calls:
- _transfer(from,address(this),tax) (#994)
- uniswapV2Router02.swapExactTokensForETH(toSell,0,sellPath,address(this),block.timestamp) (#1015-1021)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#1034-1041)
- taxWallets[marketing].call{value: marketingETH}() (#1049)
- taxWallets[community].call{value: communityETH}() (#1050)
- taxWallets[development].call{value: developmentETH}() (#1051)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + developmentETH)}() (#1054)
- uniswapV2Router02.swapExactTokensForETH(toSell,0,sellPath,address(this),block.timestamp) (#1015-1021)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#1034-1041)
- _transfer(address(this),taxWallets[community],remainingTokens) (#1046)
- uniswapV2Router02.swapExactTokensForETH(toSell,0,sellPath,address(this),block.timestamp) (#1015-1021)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#1034-1041)
- taxWallets[marketing].call{value: marketingETH}() (#1049)
- taxWallets[community].call{value: communityETH}() (#1050)
- taxWallets[development].call{value: developmentETH}() (#1051)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + developmentETH)}() (#1054)
- taxWallets[marketing].call{value: marketingETH}() (#1049)
- taxWallets[community].call{value: communityETH}() (#1050)
- taxWallets[development].call{value: developmentETH}() (#1051)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + developmentETH)}() (#1054)
External calls sending eth:
- _transfer(from,address(this),tax) (#994)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#1034-1041)
- taxWallets[marketing].call{value: marketingETH}() (#1049)
- taxWallets[community].call{value: communityETH}() (#1050)
- taxWallets[development].call{value: developmentETH}() (#1051)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + developmentETH)}() (#1054)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#1034-1041)
- _transfer(address(this),taxWallets[community],remainingTokens) (#1046)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#1034-1041)
- taxWallets[marketing].call{value: marketingETH}() (#1049)
- taxWallets[community].call{value: communityETH}() (#1050)
- taxWallets[development].call{value: developmentETH}() (#1051)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + developmentETH)}() (#1054)
- taxWallets[marketing].call{value: marketingETH}() (#1049)
- taxWallets[community].call{value: communityETH}() (#1050)
- taxWallets[development].call{value: developmentETH}() (#1051)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + developmentETH)}() (#1054)
State variables written after the call(s):
- communityTokens = 0 (#1058)
- developmentTokens = 0 (#1060)
- liquidityTokens = 0 (#1059)
- marketingTokens = 0 (#1057)
Apply the check-effects-interactions pattern.
Additional information: link
Astroshit.handleTax(address,address,uint256) (#965-1069) uses a dangerous strict equality:
- taxSum == 0 (#1004)
Don't use strict equality to determine if an account has enough Ether or tokens.
Additional information: link
Astroshit.handleTax(address,address,uint256) (#965-1069) performs a multiplication on the result of a division:
-baseUnit = amount / denominator (#972)
-tax += baseUnit * buyTaxes[marketing] (#974)
Astroshit.handleTax(address,address,uint256) (#965-1069) performs a multiplication on the result of a division:
-baseUnit = amount / denominator (#972)
-tax += baseUnit * sellTaxes[marketing] (#988)
Astroshit.handleTax(address,address,uint256) (#965-1069) performs a multiplication on the result of a division:
-baseUnit = amount / denominator (#972)
-tax += baseUnit * buyTaxes[community] (#975)
Astroshit.handleTax(address,address,uint256) (#965-1069) performs a multiplication on the result of a division:
-baseUnit = amount / denominator (#972)
-tax += baseUnit * sellTaxes[community] (#989)
Astroshit.handleTax(address,address,uint256) (#965-1069) performs a multiplication on the result of a division:
-baseUnit = amount / denominator (#972)
-tax += baseUnit * buyTaxes[liquidity] (#976)
Astroshit.handleTax(address,address,uint256) (#965-1069) performs a multiplication on the result of a division:
-baseUnit = amount / denominator (#972)
-tax += baseUnit * sellTaxes[liquidity] (#990)
Astroshit.handleTax(address,address,uint256) (#965-1069) performs a multiplication on the result of a division:
-baseUnit = amount / denominator (#972)
-tax += baseUnit * buyTaxes[development] (#977)
Astroshit.handleTax(address,address,uint256) (#965-1069) performs a multiplication on the result of a division:
-baseUnit = amount / denominator (#972)
-tax += baseUnit * sellTaxes[development] (#991)
Astroshit.handleTax(address,address,uint256) (#965-1069) performs a multiplication on the result of a division:
-baseUnit = amount / denominator (#972)
-marketingTokens += baseUnit * buyTaxes[marketing] (#983)
Astroshit.handleTax(address,address,uint256) (#965-1069) performs a multiplication on the result of a division:
-baseUnit = amount / denominator (#972)
-communityTokens += baseUnit * buyTaxes[community] (#984)
Astroshit.handleTax(address,address,uint256) (#965-1069) performs a multiplication on the result of a division:
-baseUnit = amount / denominator (#972)
-marketingTokens += baseUnit * sellTaxes[marketing] (#997)
Astroshit.handleTax(address,address,uint256) (#965-1069) performs a multiplication on the result of a division:
-baseUnit = amount / denominator (#972)
-communityTokens += baseUnit * sellTaxes[community] (#998)
Astroshit.handleTax(address,address,uint256) (#965-1069) performs a multiplication on the result of a division:
-baseUnit = amount / denominator (#972)
-liquidityTokens += baseUnit * buyTaxes[liquidity] (#985)
Astroshit.handleTax(address,address,uint256) (#965-1069) performs a multiplication on the result of a division:
-baseUnit = amount / denominator (#972)
-liquidityTokens += baseUnit * sellTaxes[liquidity] (#999)
Astroshit.handleTax(address,address,uint256) (#965-1069) performs a multiplication on the result of a division:
-baseUnit = amount / denominator (#972)
-developmentTokens += baseUnit * buyTaxes[development] (#986)
Astroshit.handleTax(address,address,uint256) (#965-1069) performs a multiplication on the result of a division:
-baseUnit = amount / denominator (#972)
-developmentTokens += baseUnit * sellTaxes[development] (#1000)
Astroshit.handleTax(address,address,uint256) (#965-1069) performs a multiplication on the result of a division:
-liquidityETH = (ethGained * ((liquidityTokens / 2 * 10 ** 18) / taxSum)) / 10 ** 18 (#1026)
Astroshit.handleTax(address,address,uint256) (#965-1069) performs a multiplication on the result of a division:
-marketingETH = (ethGained * ((marketingTokens * 10 ** 18) / taxSum)) / 10 ** 18 (#1028)
Astroshit.handleTax(address,address,uint256) (#965-1069) performs a multiplication on the result of a division:
-communityETH = (ethGained * ((communityTokens * 10 ** 18) / taxSum)) / 10 ** 18 (#1029)
Astroshit.handleTax(address,address,uint256) (#965-1069) performs a multiplication on the result of a division:
-developmentETH = (ethGained * ((developmentTokens * 10 ** 18) / taxSum)) / 10 ** 18 (#1030)
Consider ordering multiplication before division.
Additional information: link
Pragma version^0.8.11 (#2) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
solc-0.8.11 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 Astroshit.handleTax(address,address,uint256) (#965-1069):
- taxWallets[marketing].call{value: marketingETH}() (#1049)
- taxWallets[community].call{value: communityETH}() (#1050)
- taxWallets[development].call{value: developmentETH}() (#1051)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + developmentETH)}() (#1054)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Astroshit._transfer(address,address,uint256) (#1071-1086) uses tx.origin for authorization: require(bool,string)(! isBlacklisted(tx.origin),Astroshit: sender blacklisted) (#1079)
Do not use tx.origin for authorization.
Additional information: link
Astroshit.handleTax(address,address,uint256) (#965-1069) ignores return value by taxWallets[marketing].call{value: marketingETH}() (#1049)
Astroshit.handleTax(address,address,uint256) (#965-1069) ignores return value by taxWallets[community].call{value: communityETH}() (#1050)
Astroshit.handleTax(address,address,uint256) (#965-1069) ignores return value by taxWallets[development].call{value: developmentETH}() (#1051)
Astroshit.handleTax(address,address,uint256) (#965-1069) ignores return value by taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + developmentETH)}() (#1054)
Ensure that the return value of a low-level call is checked or logged.
Additional information: link
Astroshit.handleTax(address,address,uint256).tax (#971) 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
Astroshit.handleTax(address,address,uint256) (#965-1069) ignores return value by uniswapV2Router02.swapExactTokensForETH(toSell,0,sellPath,address(this),block.timestamp) (#1015-1021)
Ensure that all the return values of the function calls are used.
Additional information: link
Reentrancy in Astroshit.constructor() (#940-955):
External calls:
- uniswapV2Pair = IUniswapV2Pair(uniswapV2Factory.createPair(address(this),uniswapV2Router02.WETH())) (#944)
State variables written after the call(s):
- _mint(msg.sender,initialSupply) (#953)
- _balances[account] += amount (#445)
- _mint(msg.sender,initialSupply) (#953)
- _totalSupply += amount (#444)
- setBuyTax(communityTaxBuy,marketingTaxBuy,liquidityTaxBuy,developmentTaxBuy) (#946)
- buyTaxes[community] = community (#1156)
- buyTaxes[marketing] = marketing (#1157)
- buyTaxes[liquidity] = liquidity (#1158)
- buyTaxes[development] = development (#1159)
- exclude(msg.sender) (#950)
- excludeList[account] = true (#1139)
- exclude(address(this)) (#951)
- excludeList[account] = true (#1139)
- setSellTax(communityTaxSell,marketingTaxSell,liquidityTaxSell,developmentTaxSell) (#947)
- sellTaxes[community] = community (#1168)
- sellTaxes[marketing] = marketing (#1169)
- sellTaxes[liquidity] = liquidity (#1170)
- sellTaxes[development] = development (#1171)
- taxStatus = true (#954)
- setTaxWallets(communityTaxWallet,marketingTaxWallet,liquidityTaxWallet,developmentTaxWallet) (#948)
- taxWallets[community] = community (#1178)
- taxWallets[marketing] = marketing (#1179)
- taxWallets[liquidity] = liquidity (#1180)
- taxWallets[development] = development (#1181)
Reentrancy in Astroshit.handleTax(address,address,uint256) (#965-1069):
External calls:
- _transfer(from,address(this),tax) (#994)
- uniswapV2Router02.swapExactTokensForETH(toSell,0,sellPath,address(this),block.timestamp) (#1015-1021)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#1034-1041)
- taxWallets[marketing].call{value: marketingETH}() (#1049)
- taxWallets[community].call{value: communityETH}() (#1050)
- taxWallets[development].call{value: developmentETH}() (#1051)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + developmentETH)}() (#1054)
External calls sending eth:
- _transfer(from,address(this),tax) (#994)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#1034-1041)
- taxWallets[marketing].call{value: marketingETH}() (#1049)
- taxWallets[community].call{value: communityETH}() (#1050)
- taxWallets[development].call{value: developmentETH}() (#1051)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + developmentETH)}() (#1054)
State variables written after the call(s):
- _approve(address(this),address(uniswapV2Router02),toSell) (#1013)
- _allowances[owner][spender] = amount (#500)
Reentrancy in Astroshit.handleTax(address,address,uint256) (#965-1069):
External calls:
- _transfer(from,address(this),tax) (#994)
- uniswapV2Router02.swapExactTokensForETH(toSell,0,sellPath,address(this),block.timestamp) (#1015-1021)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#1034-1041)
- taxWallets[marketing].call{value: marketingETH}() (#1049)
- taxWallets[community].call{value: communityETH}() (#1050)
- taxWallets[development].call{value: developmentETH}() (#1051)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + developmentETH)}() (#1054)
- uniswapV2Router02.swapExactTokensForETH(toSell,0,sellPath,address(this),block.timestamp) (#1015-1021)
External calls sending eth:
- _transfer(from,address(this),tax) (#994)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#1034-1041)
- taxWallets[marketing].call{value: marketingETH}() (#1049)
- taxWallets[community].call{value: communityETH}() (#1050)
- taxWallets[development].call{value: developmentETH}() (#1051)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + developmentETH)}() (#1054)
State variables written after the call(s):
- _approve(address(this),address(uniswapV2Router02),liquidityToken) (#1032)
- _allowances[owner][spender] = amount (#500)
Reentrancy in Astroshit.handleTax(address,address,uint256) (#965-1069):
External calls:
- _transfer(from,address(this),tax) (#994)
- uniswapV2Router02.swapExactTokensForETH(toSell,0,sellPath,address(this),block.timestamp) (#1015-1021)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#1034-1041)
- taxWallets[marketing].call{value: marketingETH}() (#1049)
- taxWallets[community].call{value: communityETH}() (#1050)
- taxWallets[development].call{value: developmentETH}() (#1051)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + developmentETH)}() (#1054)
- uniswapV2Router02.swapExactTokensForETH(toSell,0,sellPath,address(this),block.timestamp) (#1015-1021)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#1034-1041)
- _transfer(address(this),taxWallets[community],remainingTokens) (#1046)
- uniswapV2Router02.swapExactTokensForETH(toSell,0,sellPath,address(this),block.timestamp) (#1015-1021)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#1034-1041)
- taxWallets[marketing].call{value: marketingETH}() (#1049)
- taxWallets[community].call{value: communityETH}() (#1050)
- taxWallets[development].call{value: developmentETH}() (#1051)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + developmentETH)}() (#1054)
External calls sending eth:
- _transfer(from,address(this),tax) (#994)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#1034-1041)
- taxWallets[marketing].call{value: marketingETH}() (#1049)
- taxWallets[community].call{value: communityETH}() (#1050)
- taxWallets[development].call{value: developmentETH}() (#1051)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + developmentETH)}() (#1054)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#1034-1041)
- _transfer(address(this),taxWallets[community],remainingTokens) (#1046)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#1034-1041)
- taxWallets[marketing].call{value: marketingETH}() (#1049)
- taxWallets[community].call{value: communityETH}() (#1050)
- taxWallets[development].call{value: developmentETH}() (#1051)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + developmentETH)}() (#1054)
State variables written after the call(s):
- _transfer(address(this),taxWallets[community],remainingTokens) (#1046)
- _allowances[owner][spender] = amount (#500)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in Astroshit._transfer(address,address,uint256) (#1071-1086):
External calls:
- amount = handleTax(sender,recipient,amount) (#1082)
- uniswapV2Router02.swapExactTokensForETH(toSell,0,sellPath,address(this),block.timestamp) (#1015-1021)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#1034-1041)
- taxWallets[marketing].call{value: marketingETH}() (#1049)
- taxWallets[community].call{value: communityETH}() (#1050)
- taxWallets[development].call{value: developmentETH}() (#1051)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + developmentETH)}() (#1054)
External calls sending eth:
- amount = handleTax(sender,recipient,amount) (#1082)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#1034-1041)
- taxWallets[marketing].call{value: marketingETH}() (#1049)
- taxWallets[community].call{value: communityETH}() (#1050)
- taxWallets[development].call{value: developmentETH}() (#1051)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + developmentETH)}() (#1054)
Event emitted after the call(s):
- Transfer(sender,recipient,amount) (#425)
- super._transfer(sender,recipient,amount) (#1085)
Reentrancy in Astroshit.constructor() (#940-955):
External calls:
- uniswapV2Pair = IUniswapV2Pair(uniswapV2Factory.createPair(address(this),uniswapV2Router02.WETH())) (#944)
Event emitted after the call(s):
- Transfer(address(0),account,amount) (#446)
- _mint(msg.sender,initialSupply) (#953)
Reentrancy in Astroshit.handleTax(address,address,uint256) (#965-1069):
External calls:
- _transfer(from,address(this),tax) (#994)
- uniswapV2Router02.swapExactTokensForETH(toSell,0,sellPath,address(this),block.timestamp) (#1015-1021)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#1034-1041)
- taxWallets[marketing].call{value: marketingETH}() (#1049)
- taxWallets[community].call{value: communityETH}() (#1050)
- taxWallets[development].call{value: developmentETH}() (#1051)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + developmentETH)}() (#1054)
External calls sending eth:
- _transfer(from,address(this),tax) (#994)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#1034-1041)
- taxWallets[marketing].call{value: marketingETH}() (#1049)
- taxWallets[community].call{value: communityETH}() (#1050)
- taxWallets[development].call{value: developmentETH}() (#1051)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + developmentETH)}() (#1054)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#501)
- _approve(address(this),address(uniswapV2Router02),toSell) (#1013)
Reentrancy in Astroshit.handleTax(address,address,uint256) (#965-1069):
External calls:
- _transfer(from,address(this),tax) (#994)
- uniswapV2Router02.swapExactTokensForETH(toSell,0,sellPath,address(this),block.timestamp) (#1015-1021)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#1034-1041)
- taxWallets[marketing].call{value: marketingETH}() (#1049)
- taxWallets[community].call{value: communityETH}() (#1050)
- taxWallets[development].call{value: developmentETH}() (#1051)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + developmentETH)}() (#1054)
- uniswapV2Router02.swapExactTokensForETH(toSell,0,sellPath,address(this),block.timestamp) (#1015-1021)
External calls sending eth:
- _transfer(from,address(this),tax) (#994)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#1034-1041)
- taxWallets[marketing].call{value: marketingETH}() (#1049)
- taxWallets[community].call{value: communityETH}() (#1050)
- taxWallets[development].call{value: developmentETH}() (#1051)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + developmentETH)}() (#1054)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#501)
- _approve(address(this),address(uniswapV2Router02),liquidityToken) (#1032)
Reentrancy in Astroshit.handleTax(address,address,uint256) (#965-1069):
External calls:
- _transfer(from,address(this),tax) (#994)
- uniswapV2Router02.swapExactTokensForETH(toSell,0,sellPath,address(this),block.timestamp) (#1015-1021)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#1034-1041)
- taxWallets[marketing].call{value: marketingETH}() (#1049)
- taxWallets[community].call{value: communityETH}() (#1050)
- taxWallets[development].call{value: developmentETH}() (#1051)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + developmentETH)}() (#1054)
- uniswapV2Router02.swapExactTokensForETH(toSell,0,sellPath,address(this),block.timestamp) (#1015-1021)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#1034-1041)
- _transfer(address(this),taxWallets[community],remainingTokens) (#1046)
- uniswapV2Router02.swapExactTokensForETH(toSell,0,sellPath,address(this),block.timestamp) (#1015-1021)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#1034-1041)
- taxWallets[marketing].call{value: marketingETH}() (#1049)
- taxWallets[community].call{value: communityETH}() (#1050)
- taxWallets[development].call{value: developmentETH}() (#1051)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + developmentETH)}() (#1054)
External calls sending eth:
- _transfer(from,address(this),tax) (#994)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#1034-1041)
- taxWallets[marketing].call{value: marketingETH}() (#1049)
- taxWallets[community].call{value: communityETH}() (#1050)
- taxWallets[development].call{value: developmentETH}() (#1051)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + developmentETH)}() (#1054)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#1034-1041)
- _transfer(address(this),taxWallets[community],remainingTokens) (#1046)
- (amountToken,amountETH,liquidity) = uniswapV2Router02.addLiquidityETH{value: liquidityETH}(address(this),liquidityToken,0,0,taxWallets[liquidity],block.timestamp) (#1034-1041)
- taxWallets[marketing].call{value: marketingETH}() (#1049)
- taxWallets[community].call{value: communityETH}() (#1050)
- taxWallets[development].call{value: developmentETH}() (#1051)
- taxWallets[marketing].call{value: ethGained - (marketingETH + communityETH + liquidityETH + developmentETH)}() (#1054)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#501)
- _transfer(address(this),taxWallets[community],remainingTokens) (#1046)
- Transfer(sender,recipient,amount) (#425)
- _transfer(address(this),taxWallets[community],remainingTokens) (#1046)
Apply the check-effects-interactions pattern.
Additional information: link
Astroshit.handleTax(address,address,uint256) (#965-1069) uses timestamp for comparisons
Dangerous comparisons:
- tax > 0 (#979)
- tax > 0 (#993)
- taxSum == 0 (#1004)
- ethValue >= swapThreshold (#1008)
- remainingTokens > 0 (#1045)
- ethGained - (marketingETH + communityETH + liquidityETH + developmentETH) > 0 (#1053)
Avoid relying on block.timestamp.
Additional information: link
Context._msgData() (#193-195) is never used and should be removed
Remove unused functions.
Additional information: link
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#711) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#712) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#729) is not in mixedCase
Function IUniswapV2Router01.WETH() (#765) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#770) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#771)
Prevent variables from having similar names.
Additional information: link
Astroshit.slitherConstructorVariables() (#898-1220) uses literals with too many digits:
- swapThreshold = 500000000000 (#907)
Astroshit.slitherConstructorVariables() (#898-1220) uses literals with too many digits:
- liquidityTaxWallet = 0x0000000000000000000000000000000000000000 (#922)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
Astroshit.communityTaxBuy (#909) should be constant
Astroshit.communityTaxSell (#914) should be constant
Astroshit.communityTaxWallet (#919) should be constant
Astroshit.denominator (#904) should be constant
Astroshit.developmentTaxBuy (#912) should be constant
Astroshit.developmentTaxSell (#917) should be constant
Astroshit.developmentTaxWallet (#923) should be constant
Astroshit.initialSupply (#902) should be constant
Astroshit.liquidityTaxBuy (#911) should be constant
Astroshit.liquidityTaxSell (#916) should be constant
Astroshit.liquidityTaxWallet (#922) should be constant
Astroshit.marketingTaxBuy (#910) should be constant
Astroshit.marketingTaxSell (#915) should be constant
Astroshit.marketingTaxWallet (#920) should be constant
Astroshit.swapThreshold (#907) should be constant
Astroshit.taxLimit (#905) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
name() should be declared external:
- ERC20.name() (#249-251)
symbol() should be declared external:
- ERC20.symbol() (#257-259)
decimals() should be declared external:
- ERC20.decimals() (#274-276)
totalSupply() should be declared external:
- ERC20.totalSupply() (#281-283)
balanceOf(address) should be declared external:
- ERC20.balanceOf(address) (#288-290)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (#300-303)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (#308-310)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (#319-322)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (#337-351)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (#365-368)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (#384-392)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#591-593)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#599-602)
triggerTax() should be declared external:
- Astroshit.triggerTax() (#1091-1093)
pause() should be declared external:
- Astroshit.pause() (#1098-1101)
unpause() should be declared external:
- Astroshit.unpause() (#1106-1109)
burn(uint256) should be declared external:
- Astroshit.burn(uint256) (#1114-1116)
enableBlacklist(address) should be declared external:
- Astroshit.enableBlacklist(address) (#1121-1124)
disableBlacklist(address) should be declared external:
- Astroshit.disableBlacklist(address) (#1129-1132)
removeExclude(address) should be declared external:
- Astroshit.removeExclude(address) (#1145-1148)
enableTax() should be declared external:
- Astroshit.enableTax() (#1187-1190)
disableTax() should be declared external:
- Astroshit.disableTax() (#1195-1198)
Use the external attribute for functions never called from the contract.
Additional information: link
Contract has 13% buy tax and 13% sell tax.
Taxes are high (over 10%) but contract ownership is renounced.
Average 30d PancakeSwap volume is low.
Average PancakeSwap trading volume, liqudity, number of swaps are low. Token seems to be inactive.
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 number of swaps.
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of scam / price dump / death
Token has no active CoinGecko listing / rank
Young tokens have high risks of price dump / death
Token has relatively low CoinMarketCap rank
Last post in Twitter was more than 30 days ago
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account