Along with the development and growth of crypto and gold enthusiasts. Digital Gold Token is making developments that can change the future between gold and crypto interacting with ease in investing and transacting.
Digital Gold Token will turn gold and crypto into an ecosystem that interacts with each other as transactions or investments.
Digital Gold Token is the future of decentralized digital gold trading with physical gold as the backing. DGT gave birth to NFT, Exchange, Staking and retail gold that will cooperate with gold shop, gold factory.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
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)
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) (#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)
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) (#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)
Apply the check-effects-interactions pattern.
Additional information: link
Contract ownership is not renounced (belongs to a wallet)
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
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
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)
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)
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._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)
Apply the check-effects-interactions pattern.
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) 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:
-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:
-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)
-marketingTokens += baseUnit * buyTaxes[marketing] (#908)
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:
-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)
-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 * buyTaxes[liquidity] (#901)
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:
-charityETH = (ethGained * ((charityTokens * 10 ** 18) / taxSum)) / 10 ** 18 (#955)
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)
-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)
-tax += baseUnit * sellTaxes[liquidity] (#915)
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:
-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)
-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)
-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)
-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[charity] (#916)
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)
Consider ordering multiplication before division.
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[marketing].call{value: ethGained - (marketingETH + devETH + liquidityETH + charityETH)}() (#979)
CoinToken.handleTax(address,address,uint256) (#890-994) ignores return value by taxWallets[charity].call{value: charityETH}() (#976)
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.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)
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)
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
solc-0.8.11 is not recommended for deployment
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
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.PERMIT_TYPEHASH() (#639) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#656) is not in mixedCase
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#638) is not in mixedCase
Function IUniswapV2Router01.WETH() (#692) is not in mixedCase
Follow the Solidity naming convention.
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.liquidityTaxSell (#842) is never used in CoinToken (#825-1137)
CoinToken.marketingTaxWallet (#846) is never used in CoinToken (#825-1137)
CoinToken.liquidityTaxBuy (#837) is never used in CoinToken (#825-1137)
CoinToken.liquidityTaxWallet (#847) is never used in CoinToken (#825-1137)
CoinToken.devTaxWallet (#845) is never used in CoinToken (#825-1137)
CoinToken.devTaxSell (#840) is never used in CoinToken (#825-1137)
CoinToken.charityTaxWallet (#848) is never used in CoinToken (#825-1137)
CoinToken.devTaxBuy (#835) is never used in CoinToken (#825-1137)
CoinToken.marketingTaxSell (#841) is never used in CoinToken (#825-1137)
CoinToken.marketingTaxBuy (#836) is never used in CoinToken (#825-1137)
CoinToken.charityTaxBuy (#838) is never used in CoinToken (#825-1137)
CoinToken.charityTaxSell (#843) is never used in CoinToken (#825-1137)
Remove unused state variables.
Additional information: link
CoinToken.devTaxWallet (#845) should be constant
CoinToken.liquidityTaxSell (#842) should be constant
CoinToken.charityTaxSell (#843) should be constant
CoinToken.charityTaxWallet (#848) should be constant
CoinToken.marketingTaxWallet (#846) should be constant
CoinToken.marketingTaxBuy (#836) should be constant
CoinToken.devTaxSell (#840) should be constant
CoinToken.denominator (#831) should be constant
CoinToken.marketingTaxSell (#841) should be constant
CoinToken.liquidityTaxWallet (#847) should be constant
CoinToken.devTaxBuy (#835) should be constant
CoinToken.liquidityTaxBuy (#837) should be constant
CoinToken.charityTaxBuy (#838) should be constant
CoinToken.swapThreshold (#833) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
pause() should be declared external:
- CoinToken.pause() (#1023-1026)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (#265-279)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#518-520)
disableBlacklist(address) should be declared external:
- CoinToken.disableBlacklist(address) (#1054-1057)
decimals() should be declared external:
- ERC20.decimals() (#202-204)
disableTax() should be declared external:
- CoinToken.disableTax() (#1116-1119)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (#312-320)
symbol() should be declared external:
- ERC20.symbol() (#185-187)
balanceOf(address) should be declared external:
- ERC20.balanceOf(address) (#216-218)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (#228-231)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (#293-296)
removeExclude(address) should be declared external:
- CoinToken.removeExclude(address) (#1070-1073)
unpause() should be declared external:
- CoinToken.unpause() (#1031-1034)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#526-529)
triggerTax() should be declared external:
- CoinToken.triggerTax() (#1016-1018)
name() should be declared external:
- ERC20.name() (#177-179)
enableTax() should be declared external:
- CoinToken.enableTax() (#1108-1111)
enableBlacklist(address) should be declared external:
- CoinToken.enableBlacklist(address) (#1046-1049)
totalSupply() should be declared external:
- ERC20.totalSupply() (#209-211)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (#247-250)
burn(uint256) should be declared external:
- CoinToken.burn(uint256) (#1039-1041)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (#236-238)
Use the external attribute for functions never called from the contract.
Additional information: link
Number of Binance Smart Chain (BSC) token holders is less than 100. Token is either dead or inactive. Ignore for presale.
Contract has 5% buy tax and 14% sell tax.
Taxes are suspiciously high (over 10%) and contract ownership is not renounced. Token has a high risk of becoming a honeypot.
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
Token has only one trading pair
BscScan page for the token does not contain additional info: website, socials, description, etc.
Additional information: link
Unable to find token on CoinGecko
Additional information: link
Unable to find token on CoinMarketCap
Additional information: link
Unable to find token contract audit
Unable to find KYC or doxxing proof
Unable to find audit link on the website
Unable to find Telegram link on the website
Unable to find token on CoinHunt
Additional information: link
Unable to find code repository for the project
Token is not listed at Mobula.Finance
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
Young tokens have high risks of price dump / death
Young tokens have high risks of price dump / death
Unable to find Telegram account
Twitter account has less than 100 followers
Last post in Twitter was more than 30 days ago
Unable to find Blog account (Reddit or Medium)
Unable to find Discord account
Twitter account has few posts