Tradocaps is an ecosystem of various tools and platforms coming together to bridge the gap between Smart Traders and Investors. It is a decentralized smart investment and trading platform that operates via autonomous smart contracts.
Reentrancy in CoinToken._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[dev].call{value: devETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + devETH + 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[dev].call{value: devETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + devETH + liquidityETH + charityETH)}() (#979)
State variables written after the call(s):
- super._transfer(sender,recipient,amount) (#1010)
- _balances[sender] = senderBalance - amount (#349)
- _balances[recipient] += amount (#351)
Reentrancy in CoinToken.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[dev].call{value: devETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + devETH + 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[dev].call{value: devETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + devETH + liquidityETH + charityETH)}() (#979)
State variables written after the call(s):
- charityTokens += baseUnit * buyTaxes[charity] (#911)
- devTokens += baseUnit * buyTaxes[dev] (#909)
- liquidityTokens += baseUnit * buyTaxes[liquidity] (#910)
- marketingTokens += baseUnit * buyTaxes[marketing] (#908)
Reentrancy in CoinToken.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[dev].call{value: devETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + devETH + 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[dev].call{value: devETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + devETH + liquidityETH + charityETH)}() (#979)
State variables written after the call(s):
- charityTokens += baseUnit * sellTaxes[charity] (#925)
- devTokens += baseUnit * sellTaxes[dev] (#923)
- liquidityTokens += baseUnit * sellTaxes[liquidity] (#924)
- marketingTokens += baseUnit * sellTaxes[marketing] (#922)
Reentrancy in CoinToken.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[dev].call{value: devETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + devETH + 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[dev],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[dev].call{value: devETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + devETH + 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[dev].call{value: devETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + devETH + 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[dev],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[dev].call{value: devETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + devETH + liquidityETH + charityETH)}() (#979)
State variables written after the call(s):
- _transfer(address(this),taxWallets[dev],remainingTokens) (#971)
- _balances[sender] = senderBalance - amount (#349)
- _balances[recipient] += amount (#351)
- _transfer(address(this),taxWallets[dev],remainingTokens) (#971)
- charityTokens += baseUnit * buyTaxes[charity] (#911)
- charityTokens += baseUnit * sellTaxes[charity] (#925)
- charityTokens = 0 (#985)
- _transfer(address(this),taxWallets[dev],remainingTokens) (#971)
- devTokens += baseUnit * buyTaxes[dev] (#909)
- devTokens += baseUnit * sellTaxes[dev] (#923)
- devTokens = 0 (#983)
- _transfer(address(this),taxWallets[dev],remainingTokens) (#971)
- liquidityTokens += baseUnit * buyTaxes[liquidity] (#910)
- liquidityTokens += baseUnit * sellTaxes[liquidity] (#924)
- liquidityTokens = 0 (#984)
- _transfer(address(this),taxWallets[dev],remainingTokens) (#971)
- marketingTokens += baseUnit * buyTaxes[marketing] (#908)
- marketingTokens += baseUnit * sellTaxes[marketing] (#922)
- marketingTokens = 0 (#982)
Reentrancy in CoinToken.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[dev].call{value: devETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + devETH + 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[dev],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[dev].call{value: devETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + devETH + liquidityETH + charityETH)}() (#979)
- taxWallets[marketing].call{value: marketingETH}() (#974)
- taxWallets[dev].call{value: devETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + devETH + 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[dev].call{value: devETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + devETH + 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[dev],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[dev].call{value: devETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + devETH + liquidityETH + charityETH)}() (#979)
- taxWallets[marketing].call{value: marketingETH}() (#974)
- taxWallets[dev].call{value: devETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + devETH + liquidityETH + charityETH)}() (#979)
State variables written after the call(s):
- charityTokens = 0 (#985)
- devTokens = 0 (#983)
- liquidityTokens = 0 (#984)
- marketingTokens = 0 (#982)
Apply the check-effects-interactions pattern.
Additional information: link
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
CoinToken.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
Contract ownership is not renounced (belongs to a wallet)
CoinToken.handleTax(address,address,uint256) (#890-994) performs a multiplication on the result of a division:
-baseUnit = amount / denominator (#897)
-tax += baseUnit * buyTaxes[marketing] (#899)
CoinToken.handleTax(address,address,uint256) (#890-994) performs a multiplication on the result of a division:
-baseUnit = amount / denominator (#897)
-tax += baseUnit * sellTaxes[marketing] (#913)
CoinToken.handleTax(address,address,uint256) (#890-994) performs a multiplication on the result of a division:
-baseUnit = amount / denominator (#897)
-tax += baseUnit * buyTaxes[dev] (#900)
CoinToken.handleTax(address,address,uint256) (#890-994) performs a multiplication on the result of a division:
-baseUnit = amount / denominator (#897)
-tax += baseUnit * sellTaxes[dev] (#914)
CoinToken.handleTax(address,address,uint256) (#890-994) performs a multiplication on the result of a division:
-baseUnit = amount / denominator (#897)
-tax += baseUnit * buyTaxes[liquidity] (#901)
CoinToken.handleTax(address,address,uint256) (#890-994) performs a multiplication on the result of a division:
-baseUnit = amount / denominator (#897)
-tax += baseUnit * sellTaxes[liquidity] (#915)
CoinToken.handleTax(address,address,uint256) (#890-994) performs a multiplication on the result of a division:
-baseUnit = amount / denominator (#897)
-tax += baseUnit * buyTaxes[charity] (#902)
CoinToken.handleTax(address,address,uint256) (#890-994) performs a multiplication on the result of a division:
-baseUnit = amount / denominator (#897)
-tax += baseUnit * sellTaxes[charity] (#916)
CoinToken.handleTax(address,address,uint256) (#890-994) performs a multiplication on the result of a division:
-baseUnit = amount / denominator (#897)
-marketingTokens += baseUnit * buyTaxes[marketing] (#908)
CoinToken.handleTax(address,address,uint256) (#890-994) performs a multiplication on the result of a division:
-baseUnit = amount / denominator (#897)
-devTokens += baseUnit * buyTaxes[dev] (#909)
CoinToken.handleTax(address,address,uint256) (#890-994) performs a multiplication on the result of a division:
-baseUnit = amount / denominator (#897)
-marketingTokens += baseUnit * sellTaxes[marketing] (#922)
CoinToken.handleTax(address,address,uint256) (#890-994) performs a multiplication on the result of a division:
-baseUnit = amount / denominator (#897)
-devTokens += baseUnit * sellTaxes[dev] (#923)
CoinToken.handleTax(address,address,uint256) (#890-994) performs a multiplication on the result of a division:
-baseUnit = amount / denominator (#897)
-liquidityTokens += baseUnit * buyTaxes[liquidity] (#910)
CoinToken.handleTax(address,address,uint256) (#890-994) performs a multiplication on the result of a division:
-baseUnit = amount / denominator (#897)
-liquidityTokens += baseUnit * sellTaxes[liquidity] (#924)
CoinToken.handleTax(address,address,uint256) (#890-994) performs a multiplication on the result of a division:
-baseUnit = amount / denominator (#897)
-charityTokens += baseUnit * buyTaxes[charity] (#911)
CoinToken.handleTax(address,address,uint256) (#890-994) performs a multiplication on the result of a division:
-baseUnit = amount / denominator (#897)
-charityTokens += baseUnit * sellTaxes[charity] (#925)
CoinToken.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)
CoinToken.handleTax(address,address,uint256) (#890-994) performs a multiplication on the result of a division:
-marketingETH = (ethGained * ((marketingTokens * 10 ** 18) / taxSum)) / 10 ** 18 (#953)
CoinToken.handleTax(address,address,uint256) (#890-994) performs a multiplication on the result of a division:
-devETH = (ethGained * ((devTokens * 10 ** 18) / taxSum)) / 10 ** 18 (#954)
CoinToken.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
CoinToken._transfer(address,address,uint256) (#996-1011) uses tx.origin for authorization: require(bool,string)(! isBlacklisted(tx.origin),CoinToken: sender blacklisted) (#1004)
Do not use tx.origin for authorization.
Additional information: link
CoinToken.handleTax(address,address,uint256) (#890-994) ignores return value by taxWallets[marketing].call{value: marketingETH}() (#974)
CoinToken.handleTax(address,address,uint256) (#890-994) ignores return value by taxWallets[dev].call{value: devETH}() (#975)
CoinToken.handleTax(address,address,uint256) (#890-994) ignores return value by taxWallets[charity].call{value: charityETH}() (#976)
CoinToken.handleTax(address,address,uint256) (#890-994) ignores return value by taxWallets[marketing].call{value: ethGained - (marketingETH + devETH + liquidityETH + charityETH)}() (#979)
Ensure that the return value of a low-level call is checked or logged.
Additional information: link
CoinToken.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
CoinToken.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 CoinToken.constructor(string,string,uint256,address[6],uint256[8]) (#865-880):
External calls:
- uniswapV2Pair = IUniswapV2Pair(uniswapV2Factory.createPair(address(this),uniswapV2Router02.WETH())) (#871)
State variables written after the call(s):
- setBuyTax(_value[0],_value[1],_value[3],_value[2]) (#873)
- buyTaxes[dev] = dev (#1079)
- buyTaxes[marketing] = marketing (#1080)
- buyTaxes[liquidity] = liquidity (#1081)
- buyTaxes[charity] = charity (#1082)
- exclude(_addr[5]) (#876)
- excludeList[account] = true (#1064)
- exclude(address(this)) (#877)
- excludeList[account] = true (#1064)
- setSellTax(_value[4],_value[5],_value[7],_value[6]) (#874)
- sellTaxes[dev] = dev (#1090)
- sellTaxes[marketing] = marketing (#1091)
- sellTaxes[liquidity] = liquidity (#1092)
- sellTaxes[charity] = charity (#1093)
- taxWallets[liquidity] = _addr[0] (#872)
- setTaxWallets(_addr[2],_addr[3],_addr[4]) (#875)
- taxWallets[dev] = dev (#1100)
- taxWallets[marketing] = marketing (#1101)
- taxWallets[charity] = charity (#1102)
Reentrancy in CoinToken.constructor(string,string,uint256,address[6],uint256[8]) (#865-880):
External calls:
- uniswapV2Pair = IUniswapV2Pair(uniswapV2Factory.createPair(address(this),uniswapV2Router02.WETH())) (#871)
External calls sending eth:
- address(_addr[0]).transfer(msg.value) (#878)
State variables written after the call(s):
- _mint(_addr[5],initialSupply) (#879)
- _balances[account] += amount (#373)
- _mint(_addr[5],initialSupply) (#879)
- _totalSupply += amount (#372)
Reentrancy in CoinToken.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[dev].call{value: devETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + devETH + 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[dev].call{value: devETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + devETH + liquidityETH + charityETH)}() (#979)
State variables written after the call(s):
- _approve(address(this),address(uniswapV2Router02),toSell) (#938)
- _allowances[owner][spender] = amount (#428)
Reentrancy in CoinToken.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[dev].call{value: devETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + devETH + 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[dev].call{value: devETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + devETH + liquidityETH + charityETH)}() (#979)
State variables written after the call(s):
- _approve(address(this),address(uniswapV2Router02),liquidityToken) (#957)
- _allowances[owner][spender] = amount (#428)
Reentrancy in CoinToken.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[dev].call{value: devETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + devETH + 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[dev],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[dev].call{value: devETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + devETH + 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[dev].call{value: devETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + devETH + 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[dev],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[dev].call{value: devETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + devETH + liquidityETH + charityETH)}() (#979)
State variables written after the call(s):
- _transfer(address(this),taxWallets[dev],remainingTokens) (#971)
- _allowances[owner][spender] = amount (#428)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in CoinToken._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[dev].call{value: devETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + devETH + 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[dev].call{value: devETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + devETH + liquidityETH + charityETH)}() (#979)
Event emitted after the call(s):
- Transfer(sender,recipient,amount) (#353)
- super._transfer(sender,recipient,amount) (#1010)
Reentrancy in CoinToken.constructor(string,string,uint256,address[6],uint256[8]) (#865-880):
External calls:
- uniswapV2Pair = IUniswapV2Pair(uniswapV2Factory.createPair(address(this),uniswapV2Router02.WETH())) (#871)
External calls sending eth:
- address(_addr[0]).transfer(msg.value) (#878)
Event emitted after the call(s):
- Transfer(address(0),account,amount) (#374)
- _mint(_addr[5],initialSupply) (#879)
Reentrancy in CoinToken.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[dev].call{value: devETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + devETH + 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[dev].call{value: devETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + devETH + liquidityETH + charityETH)}() (#979)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#429)
- _approve(address(this),address(uniswapV2Router02),toSell) (#938)
Reentrancy in CoinToken.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[dev].call{value: devETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + devETH + 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[dev].call{value: devETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + devETH + liquidityETH + charityETH)}() (#979)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#429)
- _approve(address(this),address(uniswapV2Router02),liquidityToken) (#957)
Reentrancy in CoinToken.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[dev].call{value: devETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + devETH + 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[dev],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[dev].call{value: devETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + devETH + 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[dev].call{value: devETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + devETH + 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[dev],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[dev].call{value: devETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + devETH + liquidityETH + charityETH)}() (#979)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#429)
- _transfer(address(this),taxWallets[dev],remainingTokens) (#971)
- Transfer(sender,recipient,amount) (#353)
- _transfer(address(this),taxWallets[dev],remainingTokens) (#971)
Apply the check-effects-interactions pattern.
Additional information: link
CoinToken.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 + devETH + liquidityETH + charityETH) > 0 (#978)
Avoid relying on block.timestamp.
Additional information: link
Context._msgData() (#121-123) is never used and should be removed
Remove unused functions.
Additional information: link
Pragma version^0.8.9 (#4) 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 CoinToken.handleTax(address,address,uint256) (#890-994):
- taxWallets[marketing].call{value: marketingETH}() (#974)
- taxWallets[dev].call{value: devETH}() (#975)
- taxWallets[charity].call{value: charityETH}() (#976)
- taxWallets[marketing].call{value: ethGained - (marketingETH + devETH + 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() (#638) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#639) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#656) is not in mixedCase
Function IUniswapV2Router01.WETH() (#692) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Reentrancy in CoinToken.constructor(string,string,uint256,address[6],uint256[8]) (#865-880):
External calls:
- address(_addr[0]).transfer(msg.value) (#878)
State variables written after the call(s):
- _mint(_addr[5],initialSupply) (#879)
- _balances[account] += amount (#373)
- _mint(_addr[5],initialSupply) (#879)
- _totalSupply += amount (#372)
Event emitted after the call(s):
- Transfer(address(0),account,amount) (#374)
- _mint(_addr[5],initialSupply) (#879)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#697) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#698)
Prevent variables from having similar names.
Additional information: link
CoinToken.slitherConstructorVariables() (#825-1137) uses literals with too many digits:
- swapThreshold = 500000000000 (#833)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
CoinToken.devTaxBuy (#835) is never used in CoinToken (#825-1137)
CoinToken.marketingTaxBuy (#836) is never used in CoinToken (#825-1137)
CoinToken.liquidityTaxBuy (#837) is never used in CoinToken (#825-1137)
CoinToken.charityTaxBuy (#838) is never used in CoinToken (#825-1137)
CoinToken.devTaxSell (#840) is never used in CoinToken (#825-1137)
CoinToken.marketingTaxSell (#841) is never used in CoinToken (#825-1137)
CoinToken.liquidityTaxSell (#842) is never used in CoinToken (#825-1137)
CoinToken.charityTaxSell (#843) is never used in CoinToken (#825-1137)
CoinToken.devTaxWallet (#845) is never used in CoinToken (#825-1137)
CoinToken.marketingTaxWallet (#846) is never used in CoinToken (#825-1137)
CoinToken.liquidityTaxWallet (#847) is never used in CoinToken (#825-1137)
CoinToken.charityTaxWallet (#848) is never used in CoinToken (#825-1137)
Remove unused state variables.
Additional information: link
CoinToken.charityTaxBuy (#838) should be constant
CoinToken.charityTaxSell (#843) should be constant
CoinToken.charityTaxWallet (#848) should be constant
CoinToken.denominator (#831) should be constant
CoinToken.devTaxBuy (#835) should be constant
CoinToken.devTaxSell (#840) should be constant
CoinToken.devTaxWallet (#845) should be constant
CoinToken.liquidityTaxBuy (#837) should be constant
CoinToken.liquidityTaxSell (#842) should be constant
CoinToken.liquidityTaxWallet (#847) should be constant
CoinToken.marketingTaxBuy (#836) should be constant
CoinToken.marketingTaxSell (#841) should be constant
CoinToken.marketingTaxWallet (#846) should be constant
CoinToken.swapThreshold (#833) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
name() should be declared external:
- ERC20.name() (#177-179)
symbol() should be declared external:
- ERC20.symbol() (#185-187)
decimals() should be declared external:
- ERC20.decimals() (#202-204)
totalSupply() should be declared external:
- ERC20.totalSupply() (#209-211)
balanceOf(address) should be declared external:
- ERC20.balanceOf(address) (#216-218)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (#228-231)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (#236-238)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (#247-250)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (#265-279)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (#293-296)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (#312-320)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#518-520)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#526-529)
triggerTax() should be declared external:
- CoinToken.triggerTax() (#1016-1018)
pause() should be declared external:
- CoinToken.pause() (#1023-1026)
unpause() should be declared external:
- CoinToken.unpause() (#1031-1034)
burn(uint256) should be declared external:
- CoinToken.burn(uint256) (#1039-1041)
enableBlacklist(address) should be declared external:
- CoinToken.enableBlacklist(address) (#1046-1049)
disableBlacklist(address) should be declared external:
- CoinToken.disableBlacklist(address) (#1054-1057)
removeExclude(address) should be declared external:
- CoinToken.removeExclude(address) (#1070-1073)
enableTax() should be declared external:
- CoinToken.enableTax() (#1108-1111)
disableTax() should be declared external:
- CoinToken.disableTax() (#1116-1119)
Use the external attribute for functions never called from the contract.
Additional information: link
Contract has 5% buy tax and 7% sell tax.
Taxes are low but contract ownership is not renounced. Token has a high risk of becoming a honeypot.
Average 30d PancakeSwap liquidity is low.
Average 30d PancakeSwap volume is low.
Average 30d number of PancakeSwap swaps 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 token on CoinGecko
Additional information: link
Unable to find token contract audit
Unable to find audit link on the website
Unable to find whitepaper link on the website
Token is not listed at Mobula.Finance
Additional information: link
Unable to find token on CoinHunt
Additional information: link
Unable to find code repository for the project
Token has no active CoinGecko listing / rank
Young tokens have high risks of price dump / death
Young tokens have high risks of price dump / death
Token has relatively low CoinMarketCap rank
Young tokens have high risks of price dump / death
Last post in Twitter was more than 180 days ago
Unable to find Youtube account
Unable to find Discord account